Attack Ent T1037 002 Login Hookのロゴ

Attack Ent T1037 002 Login Hook

コミュニティ
santosomar
attack-ent-t1037-002-login-hook

MITRE ATT&CKエンタープライズマトリクスのT1037.002「ログインフック」を分析します。TTPのトリアージ、検知エンジニアリング、脅威ハンティング、防御的エミュレーションの計画、緩和策、インシデント対応とのマッピング、ATT&CKのカバレッジ、またはT1037.002、「ログインフック」、「エンタープライズATT&CK」に関する質問にご利用ください。攻撃者は、ユーザーのログイン時に実行されるログインフックを利用して永続化を図ることがあります。

概要

公開者santosomar
リポジトリmitre-attack-agent-skills
スキル名attack-ent-t1037-002-login-hook
スター
31
フォーク
5
同梱ファイル
10
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 10個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    santosomarがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Attack Ent T1037 002 Login Hook」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/santosomar/mitre-attack-agent-skills/tree/main/enterprise/attack-ent-t1037-002-login-hook
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/santosomar/mitre-attack-agent-skills.git /tmp/mitre-attack-agent-skills
mkdir -p .claude/skills
cp -r /tmp/mitre-attack-agent-skills/enterprise/attack-ent-t1037-002-login-hook .claude/skills/attack-ent-t1037-002-login-hook
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAttack Ent T1037 002 Login Hookを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAttack Ent T1037 002 Login Hookを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Attack Ent T1037 002 Login Hookは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

MITRE ATT&CK T1037.002: Login Hook

When to use this skill

Use this skill when the task involves T1037.002, Login Hook, enterprise ATT&CK, TTP mapping, detection engineering, hunting, incident-response enrichment, control validation, or authorized adversary-emulation planning. Treat it as a defensive analysis aid: keep outputs focused on understanding, detecting, mitigating, and safely validating this ATT&CK sub-technique.

Technique context

  • ATT&CK domain: enterprise
  • ATT&CK ID: T1037.002
  • Technique name: Login Hook
  • Type: sub-technique
  • ATT&CK URL: https://attack.mitre.org/techniques/T1037/002
  • Tactics: persistence, privilege-escalation
  • Platforms: macOS
  • Required permissions: Not specified
  • Effective permissions: Not specified
  • Defenses bypassed: Not specified

ATT&CK description

Adversaries may use a Login Hook to establish persistence executed upon user logon. A login hook is a plist file that points to a specific script to execute with root privileges upon user logon. The plist file is located in the /Library/Preferences/com.apple.loginwindow.plist file and can be modified using the defaults command-line utility. This behavior is the same for logout hooks where a script can be executed upon user logout. All hooks require administrator permissions to modify or create hooks.(Citation: Login Scripts Apple Dev)(Citation: LoginWindowScripts Apple Dev)

Adversaries can add or insert a path to a malicious script in the com.apple.loginwindow.plist file, using the LoginHook or LogoutHook key-value pair. The malicious script is executed upon the next user login. If a login hook already exists, adversaries can add additional commands to an existing login hook. There can be only one login and logout hook on a system at a time.(Citation: S1 macOs Persistence)(Citation: Wardle Persistence Chapter)

Note: Login hooks were deprecated in 10.11 version of macOS in favor of Launch Daemon and Launch Agent

Agent workflow

  1. Clarify scope: identify the system, asset class, log sources, cloud or endpoint platform, and whether the user wants triage, detection, coverage assessment, or safe emulation planning.
  2. Load bundled resources as needed: use references/technique-profile.json for structured metadata, references/detection-and-mitigation.md for triage and telemetry guidance, references/known-threat-context.md for ATT&CK relationship context, and templates/ for repeatable outputs.
  3. Map observations to ATT&CK: compare the user's evidence to the ATT&CK description, tactics, platforms, and known procedure patterns before asserting a match.
  4. Produce defensive outputs: prioritize hypotheses, telemetry requirements, detection logic ideas, validation steps, containment guidance, and mitigations.
  5. Preserve uncertainty: distinguish confirmed evidence, plausible indicators, assumptions, and gaps. Recommend what to collect next.
  6. Stay safe: do not provide malware, credential theft, persistence, evasion, destructive automation, or unauthorized exploitation instructions. For adversary emulation, keep steps bounded to approved lab or control-validation contexts and omit operational abuse details.

Bundled resources

  • references/technique-profile.json: machine-readable ATT&CK metadata for this technique.
  • references/detection-and-mitigation.md: detection notes, telemetry checklist, triage questions, mitigation candidates, and false-positive considerations.
  • references/known-threat-context.md: ATT&CK relationship context with attribution cautions.
  • templates/detection-brief.md: detection engineering brief template.
  • templates/hunt-plan.md: threat hunt plan template.
  • templates/incident-response-note.md: incident response note template.
  • templates/coverage-assessment.md: ATT&CK coverage assessment template.
  • scripts/render_brief.py: local helper that renders a Markdown defensive brief from technique-profile.json.
  • assets/output-schema.json: JSON schema for structured technique analysis outputs.

To generate a quick brief, run python scripts/render_brief.py --output brief.md from inside this skill directory, or adapt the templates directly.

Detection guidance

No ATT&CK detection guidance was present in the source STIX object.

Useful telemetry and data sources

  • Not specified in the STIX object.

Mitigations to consider

  • Restrict File and Directory Permissions

Known threat context

Use these examples only as contextual leads, not as proof that an observed event is this technique:

  • No group or software uses relationships were included for this technique in the source STIX bundle.

Recommended output pattern

When responding with this skill, structure the answer as:

  • Assessment: whether the evidence supports this ATT&CK mapping and why.
  • Evidence: specific indicators, logs, behaviors, and assumptions.
  • Detection: telemetry sources, analytic logic, and tuning considerations.
  • Response: containment, eradication, recovery, and validation actions.
  • Coverage gaps: missing logs, sensors, controls, or environmental details.
  • References: include the ATT&CK URL and any user-provided evidence references.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Attack Ent T1037 002 Login Hook」では何ができますか?

MITRE ATT&CKエンタープライズマトリクスのT1037.002「ログインフック」を分析します。TTPのトリアージ、検知エンジニアリング、脅威ハンティング、防御的エミュレーションの計画、緩和策、インシデント対応とのマッピング、ATT&CKのカバレッジ、またはT1037.002、「ログインフック」、「エンタープライズATT&CK」に関する質問にご利用ください。攻撃者は、ユーザーのログイン時に実行されるログインフックを利用して永続化を図ることがあります。

TypingMindでAttack Ent T1037 002 Login Hookを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Attack Ent T1037 002 Login Hookはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAttack Ent T1037 002 Login Hookをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/santosomar/mitre-attack-agent-skills/tree/main/enterprise/attack-ent-t1037-002-login-hookを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Attack Ent T1037 002 Login Hookを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Attack Ent T1037 002 Login Hookで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAttack Ent T1037 002 Login Hookを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Attack Ent T1037 002 Login Hook」は無料ですか?

santosomarがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇