[BUG] Elevated Group Discovery with PowerView: the test sample windows-xml.log is declared as Sysmon but holds Security events
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- powershell, yaml
- 領域
- security, testing-qa
調査の方向性
detections/endpoint/elevated_group_discovery_with_powerview.yml の tests ブロックから始め、2 番目の attack_data エントリを datasets/attack_techniques/T1069.002/AD_discovery/AD_discovery.yml の descriptor と比較してください。この descriptor では windows-xml.log が XmlWinEventLog:Security として宣言されています。issue に記載された grep コマンドを windows-xml.log に対して実行し、Security 5145 イベントのみを含むことを確認してください。2 番目のサンプルのソースが Security と一致するか、ルールが イベント 4104 を検索しておりファイルにそれが存在しないためサンプルを削除する場合に完了となります。編集する前に、メンテナーがどちらの選択肢を好むかを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In the tests block of detections/endpoint/elevated_group_discovery_with_powerview.yml (id 10d62950-0de5-4199-a710-cff9ea79b413, version 11), the second sample is declared as a Sysmon log. The file holds Security events, and the descriptor in attack_data says so.
tests:
- name: True Positive Test
attack_data:
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1069.002/AD_discovery/windows-powershell-xml-powerview.log
source: XmlWinEventLog:Microsoft-Windows-PowerShell/Operational
sourcetype: XmlWinEventLog
- data: https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1069.002/AD_discovery/windows-xml.log
source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
sourcetype: XmlWinEventLog
The file datasets/attack_techniques/T1069.002/AD_discovery/windows-xml.log holds 8 events. All 8 are Security event 5145 (a network share object was checked), on the Security channel. The file has no mention of the Sysmon provider.
$ grep -o '<Channel>[^<]*</Channel>' windows-xml.log | sort | uniq -c
8 <Channel>Security</Channel>
$ grep -o '<EventID>[0-9]*</EventID>' windows-xml.log | sort | uniq -c
8 <EventID>5145</EventID>
The descriptor datasets/attack_techniques/T1069.002/AD_discovery/AD_discovery.yml in attack_data declares the same file as XmlWinEventLog:Security:
- name: windows-xml
path: /datasets/attack_techniques/T1069.002/AD_discovery/windows-xml.log
sourcetype: XmlWinEventLog
source: XmlWinEventLog:Security
The rule itself searches PowerShell script block logging (powershell macro, EventCode=4104, data_source: Powershell Script Block Logging 4104). The first sample, windows-powershell-xml-powerview.log, holds 15 events, all 4104 on Microsoft-Windows-PowerShell/Operational. The second sample holds no event 4104.
Expected behavior
The source of each sample should name the log the file holds. For windows-xml.log that is XmlWinEventLog:Security.
Suggested change: change the source of the second sample to XmlWinEventLog:Security. Or remove the second sample, because the rule searches event 4104 and the file holds none.
Screenshots
None.
App Version:
- ESCU: 6.10.0 (the
testsblock is the same in release v6.10.0 and ondevelop) - Splunk Security Essentials: Not applicable
Additional context
None.
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 507
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 35
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
splunk/security_content のほかの issue
-
[BUG] Windows New EventLog ChannelAccess Registry Value Set: second path has single backslashesオープンbug
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
splunk/security_content#4417 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]Linux Change File Owner To Root: detection bypass using "chown root: <file>"対応中かも @thegreatmhn が 1 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
splunk/security_content#4413 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
splunk/security_content#4401 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
splunk/security_content#4400 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
splunk/security_content#4409 ·
メンテナーはふだん 1 日以内に返信
splunk/security_content の issue をすべて見る
似ている issue
-
[Bug / Enhancement]: Improve teleop_robot CLI with configurable timeout, robust input validation, and clean ROS shutdown対応中かも @muskan-creates352 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
-
bug(pipelines): shortcode stripping deletes text between a {{< >}} shortcode and the next {{% %}}対応中かも @Ashborne-lab が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
kubeflow/docs-agent#293 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Imbad0202/academic-research-skills#1093 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pierreaubert/gpui-toolkit#114 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lightricks/LTX-2#336 · コメント 1 件 ·