detecting-malicious-scheduled-tasks-with-sysmon
できること
このツールは、お使いのコンピューターに作成された悪意のあるタスクを見つけるのに役立ちます。隠れて、特定の時刻に実行され、被害を引き起こそうとするプログラムを探します。
使う場面
- ✓悪意のあるプログラムが隠れて動作している疑いがあるとき。
- ✓コンピューターへのセキュリティ攻撃を調査するとき。
- ✓システムの防御がこれらの脅威に対して機能しているかを確認するとき。
スキルのリンク
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-malicious-scheduled-tasks-with-sysmon/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“タスクスケジューラーによって作成された不審なタスクを探してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、どのプログラムが作成され、どのファイルが変更されたかを記録するシステムログ(Sysmon)を分析します。これらの情報を照らし合わせることで、通常と異なる動きを特定します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Detecting Malicious Scheduled Tasks with Sysmon
Overview
Adversaries abuse Windows Task Scheduler (schtasks.exe, at.exe) for persistence (T1053.005) and lateral movement. Sysmon Event ID 1 captures schtasks.exe process creation with full command-line arguments, while Event ID 11 captures task XML files written to C:\Windows\System32\Tasks. Windows Security Event 4698 logs task registration details. This skill covers building detection rules that correlate these events to identify malicious scheduled tasks created from suspicious paths, with encoded payloads, or targeting remote systems.
When to Use
- When investigating security incidents that require detecting malicious scheduled tasks with sysmon
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Sysmon installed with a detection-focused configuration (e.g., SwiftOnSecurity or Olaf Hartong)
- Windows Event Log forwarding to SIEM (Splunk, Elastic, or Sentinel)
- PowerShell ScriptBlock Logging enabled (Event 4104)
Steps
- Configure Sysmon to log Event IDs 1, 11, 12, 13 with task-related filters
- Build detection rules for schtasks.exe /create with suspicious arguments
- Correlate Event 4698 (task registered) with Sysmon Event 1 (process create)
- Hunt for tasks executing from public directories or with encoded commands
- Alert on remote task creation (schtasks /s) for lateral movement detection
Expected Output
[CRITICAL] Suspicious Scheduled Task Detected
Task: \Microsoft\Windows\UpdateCheck
Command: powershell.exe -enc SQBuAHYAbwBrAGUALQBXAGUAYgBSAGU...
Created By: DOMAIN\compromised_user
Parent Process: cmd.exe (PID 4532)
Source: \\192.168.1.50 (remote creation)
MITRE: T1053.005 - Scheduled Task/Job
よくある質問
「スケジュールタスク」とは何ですか?
Windowsが、更新やメンテナンスなどのために、設定された時刻に自動で実行できるコマンドやプログラムのことです。
攻撃者(アドバーサリー)はなぜこれを使うのですか?
攻撃者は、コンピューターへのアクセスを維持したり、悪意のあるコードを実行したり、他のシステムに広がったりするために、スケジュールタスクを作成することがあります。
「Sysmon」とは何ですか?
コンピューター上で起きていることを詳細に記録し、不審な活動を検出するのに役立つツールです。
詳細
作者による元の説明
Detect malicious scheduled task creation and modification using Sysmon Event IDs 1 (Process Create for schtasks.exe), 11 (File Create for task XML), and Windows Security Event 4698/4702. The analyst correlates task creation with suspicious parent processes, public directory paths, and encoded command arguments to identify persistence and lateral movement via scheduled tasks. Activates for requests
人気
- GitHubのスター
- 35k
- ランキング
- #7846
- ライセンス
- Apache-2.0
- 更新日
- 2026/8/31
コメント
- …
このリポジトリの他のスキル
abusing-dpapi-for-credential-access
35k特定のタスク向けに用意された指示をAIエージェントに与え、より良く、より速く作業できるようにします。
abusing-shadow-credentials-for-privesc
35kAIエージェントに、明確で構成のしっかりした文章の書き方を教えます。
achieving-cmmc-level-2-compliance
35kエージェントがCMMC Level 2への準拠に向けた環境を整えられるようにします。セキュリティ要件を実装し、必要なドキュメントを管理します。
acquiring-disk-image-with-dd-and-dcfldd
35kエージェントがハードディスクの完全なコピーを作成できるようにします。調査中に情報が失われたり改変されたりしないようにするのに役立ちます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。