Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax errors in yaml parsing #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rules/filedroppedbyeqnedt32exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ detection:
EventID: 11
Image: '*\EQUATION\EQNEDT32.EXE*'
TargetFilename:
- '*\\*.exe*'
- '*\\*.dll*'
- '*\\*.vbs*'
- '*\\*.js*'
- '*\\*.hta*'
- '*\\*.bat*'
- '*\\*.exe*'
- '*\\*.dll*'
- '*\\*.vbs*'
- '*\\*.js*'
- '*\\*.hta*'
- '*\\*.bat*'
condition: selection
level: critical
2 changes: 1 addition & 1 deletion rules/get2downloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ status: experimental
description: Get2 downloader associated with TA505
author: Joe Security
references:
-https://www.proofpoint.com/us/threat-insight/post/ta505-distributes-new-sdbbot-remote-access-trojan-get2-downloader
- https://www.proofpoint.com/us/threat-insight/post/ta505-distributes-new-sdbbot-remote-access-trojan-get2-downloader
id: 200003
threatname: Get2Downloader
behaviorgroup: 2
Expand Down
6 changes: 3 additions & 3 deletions rules/koadicpostexploitationrootkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- *chcp 437 & schtasks /query /tn K0adic*
- *chcp 437 & schtasks /create /tn K0adic*
- '*chcp 437 & schtasks /query /tn K0adic*'
- '*chcp 437 & schtasks /create /tn K0adic*'
condition: selection
level: critical
2 changes: 1 addition & 1 deletion rules/nanocore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ logsource:
detection:
selection:
EventID: 11
TargetFilename: '*\AppData\Roaming\\*-*-*-*-*\run.dat*'
TargetFilename: '*\AppData\Roaming\\*-*-*-*-*\run.dat*'
condition: selection
level: critical
12 changes: 6 additions & 6 deletions rules/powershelldownloadingfilefromurlshortenersite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- '*powershell*downloadfile*/tinyurl.*'
- '*powershell*downloadfile*/bitly.*'
Expand All @@ -25,11 +25,11 @@ detection:
- '*powershell*new-object net.*https://shorturl.*'
- '*powershell*new-object net.*https://rebrandly.*'
- '*powershell*new-object net.*https://cutt.*'
- '*powershell*net.web*https://tinyurl.*
- '*powershell*net.web*https://bitly.*
- '*powershell*net.web*https://shorturl.*
- '*powershell*net.web*https://rebrandly.*
- '*powershell*net.web*https://tinyurl.*'
- '*powershell*net.web*https://bitly.*'
- '*powershell*net.web*https://shorturl.*'
- '*powershell*net.web*https://rebrandly.*'
- '*powershell*net.web*https://cutt.*'

condition: selection
level: critical
6 changes: 3 additions & 3 deletions rules/powershelllaunchregsvr32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Powershell launch regsvr32
author: Joe Security
date: 2020-03-10
id: 200062
threatname:
threatname:
behaviorgroup: 7
classification: 8
mitreattack:
Expand All @@ -13,8 +13,8 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- *powershell*regsvr32*
- '*powershell*regsvr32*'
condition: selection
level: critical
6 changes: 3 additions & 3 deletions rules/powershellsleepandlaunchexecutable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Powershell sleep and launch executable
author: Joe Security
date: 2020-03-17
id: 200065
threatname:
threatname:
behaviorgroup: 5
classification: 8
mitreattack:
Expand All @@ -13,8 +13,8 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- *powershell -c sleep -s *;saps *.exe*
- '*powershell -c sleep -s *;saps *.exe*'
condition: selection
level: critical
4 changes: 2 additions & 2 deletions rules/remcos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ detection:
EventID: 11
TargetFilename:
- '*\AppData\Roaming\remcos\logs*.dat*'

selection1:
EventID: 13
TargetObject:
- '*\Software\Remcos*exepath*'
- '*\Software\Remcos*exepath*'
condition: selection or selection1
level: critical
6 changes: 3 additions & 3 deletions rules/shedulehiddenpowershellscript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Shedule hidden powershell script
author: Joe Security
date: 2020-03-12
id: 200063
threatname:
threatname:
behaviorgroup: 2
classification: 8
mitreattack:
Expand All @@ -13,8 +13,8 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- *schtasks.exe*/create*powershell*hidden*
- '*schtasks.exe*/create*powershell*hidden*'
condition: selection
level: critical
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Wscript download file into temp location from wordpress site
author: Joe Security
date: 2020-03-10
id: 200061
threatname:
threatname:
behaviorgroup: 10
classification: 1
mitreattack:
Expand All @@ -13,8 +13,8 @@ logsource:
category: process_creation
product: windows
detection:
selection:
selection:
CommandLine:
- *cmd /c wscript.exe *\AppData\Local\Temp*/wp-data/*
- '*cmd /c wscript.exe *\AppData\Local\Temp*/wp-data/*'
condition: selection
level: critical