forked from vxcontrol/xp-rules
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The corresponding prefix has been added to all rules for Mac OS (#434)
* The corresponding prefix has been added to all rules for Mac OS * small fix
- Loading branch information
1 parent
1080888
commit 8d044b6
Showing
49 changed files
with
68 additions
and
65 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
...open_package/correlation_rules/mitre_attck_defense_evasion/DirtyNIB/tests/test_conds_1.tc
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...n_rules/mitre_attck_defense_evasion/Hidden_File_or_Folder_Execution/tests/test_conds_1.tc
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...efense_evasion/DirtyNIB/i18n/i18n_en.yaml → ..._evasion/MacOS_DirtyNIB/i18n/i18n_en.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'The application {subject.process.name } launched with a potentially malicious file {object.fullpath}' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_DirtyNIB' | ||
- LocalizationId: 'corrname_MacOS_DirtyNIB' | ||
EventDescription: 'correlation_name = "DirtyNIB"' |
2 changes: 1 addition & 1 deletion
2
...efense_evasion/DirtyNIB/i18n/i18n_ru.yaml → ..._evasion/MacOS_DirtyNIB/i18n/i18n_ru.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'Приложение {subject.process.name} запущено с потенциально вредоносным файлом {object.fullpath}' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_DirtyNIB' | ||
- LocalizationId: 'corrname_MacOS_DirtyNIB' | ||
EventDescription: 'correlation_name = "DirtyNIB"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 4 additions & 1 deletion
5
..._defense_evasion/DirtyNIB/tests/test_1.sc → ...se_evasion/MacOS_DirtyNIB/tests/test_1.sc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Здесь укажи какие нормализованные события (одно или несколько) ты подаешь на вход правилу корреляции. | ||
# События отделяются друг от друга символом новой строки. Каждое их них должно быть записано в строку. | ||
|
||
|
||
# Здесь укажи какие нормализованные события (одно или несколько) ты подаешь на вход правилу корреляции. | ||
# События отделяются друг от друга символом новой строки. Каждое их них должно быть записано в строку. | ||
# Тут будет твой тест. В секции expect укажи сколько и каких корреляционных событий ты ожидаешь | ||
expect 1 {"correlation_name":"DirtyNIB"} | ||
expect 1 {"correlation_name":"MacOS_DirtyNIB"} |
2 changes: 2 additions & 0 deletions
2
...ackage/correlation_rules/mitre_attck_defense_evasion/MacOS_DirtyNIB/tests/test_conds_1.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
expect 1 {"category.generic":"Attack","category.high":"Defense Evasion","correlation_name":"MacOS_DirtyNIB","correlation_type":"incident","event_src.host":"127.0.0.1","importance":"medium","incident.aggregation.key":"MacOS_DirtyNIB|127.0.0.1|Freeform","incident.aggregation.timeout":7200,"incident.category":"SoftwareSuspiciousActivity","incident.severity":"medium","object":"file_object","object.fullpath":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/CRLAboutPanel.nib","object.name":"CRLAboutPanel.nib","object.path":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/","subject":"process","subject.account.id":"501","subject.account.session_id":"1","subject.process.cmdline":"/private/tmp/Freeform.app/Contents/MacOS/Freeform","subject.process.cwd":"/","subject.process.fullpath":"/private/tmp/Freeform.app/Contents/MacOS/Freeform","subject.process.hash":"B377F3EEBCAB61FFED11F292E6FF2BC8B0180C8A","subject.process.id":"2904","subject.process.name":"Freeform","subject.process.parent.id":"1","subject.process.path":"/private/tmp/Freeform.app/Contents/MacOS/"} | ||
expect 1 {"correlation_name":"Subrule_MacOS_DirtyNIB","correlation_type":"subrule","event_src.host":"127.0.0.1","importance":"low","object":"file_object","object.fullpath":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/CRLAboutPanel.nib","object.name":"CRLAboutPanel.nib","object.path":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/","subject":"process","subject.account.id":"501","subject.account.session_id":"450","subject.process.fullpath":"/bin/cp","subject.process.hash":"UNKNOWN:72FAD644EC24C0FB99080CCFBD8C0F5EE8245B04","subject.process.id":"2900","subject.process.name":"cp","subject.process.parent.id":"456","subject.process.path":"/bin/"} |
2 changes: 1 addition & 1 deletion
2
...ile_or_Folder_Execution/i18n/i18n_en.yaml → ...ile_or_Folder_Execution/i18n/i18n_en.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'The process started from a hidden folder' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_Hidden_File_or_Folder_Execution' | ||
- LocalizationId: 'corrname_MacOS_Hidden_File_or_Folder_Execution' | ||
EventDescription: 'The {object.process.cmdline} process has been started on the {event_src.host} host. It is possible that there are hidden directories or files in the specified path. This could indicate an attempt to bypass security measures' |
2 changes: 1 addition & 1 deletion
2
...ile_or_Folder_Execution/i18n/i18n_ru.yaml → ...ile_or_Folder_Execution/i18n/i18n_ru.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'Запустился процесс из скрытой папки' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_Hidden_File_or_Folder_Execution' | ||
- LocalizationId: 'corrname_MacOS_Hidden_File_or_Folder_Execution' | ||
EventDescription: 'На узле {event_src.host} запустился процесс {object.process.cmdline}. Предположительно в пути пристуствуют скрытые папки или файлы. Это может свидетельствовать о попытке обхода механозмов защиты' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...s/mitre_attck_defense_evasion/MacOS_Hidden_File_or_Folder_Execution/tests/test_conds_1.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
expect 1 {"correlation_name":"MacOS_Hidden_File_or_Folder_Execution"} |
2 changes: 1 addition & 1 deletion
2
...vasion/Subrule_DirtyNIB/i18n/i18n_en.yaml → .../MacOS_Subrule_DirtyNIB/i18n/i18n_en.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'Added a file with the extension *.nib {object.fullpath}' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_Subrule_DirtyNIB' | ||
- LocalizationId: 'corrname_MacOS_Subrule_DirtyNIB' | ||
EventDescription: 'correlation_name = "Subrule_DirtyNIB"' |
2 changes: 1 addition & 1 deletion
2
...vasion/Subrule_DirtyNIB/i18n/i18n_ru.yaml → .../MacOS_Subrule_DirtyNIB/i18n/i18n_ru.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Description: 'Добавлен файл с расширением *.nib {object.fullpath}' | ||
EventDescriptions: | ||
- LocalizationId: 'corrname_Subrule_DirtyNIB' | ||
- LocalizationId: 'corrname_MacOS_Subrule_DirtyNIB' | ||
EventDescription: 'correlation_name = "Subrule_DirtyNIB"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...orrelation_rules/mitre_attck_defense_evasion/MacOS_Subrule_DirtyNIB/tests/test_conds_1.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Successfull test | ||
expect 1 {"action":"modify","correlation_name":"MacOS_Subrule_DirtyNIB","correlation_type":"subrule","datafield1":"Freeform","importance":"low","object":"file_object","object.fullpath":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/CRLAboutPanel.nib","object.name":"CRLAboutPanel.nib","object.path":"/private/tmp/Freeform.app/Contents/Resources/Base.lproj/","status":"success","subject":"process","subject.account.id":"501","subject.account.session_id":"450","subject.process.fullpath":"/bin/cp","subject.process.hash":"UNKNOWN:72FAD644EC24C0FB99080CCFBD8C0F5EE8245B04","subject.process.id":"2900","subject.process.name":"cp","subject.process.parent.id":"456","subject.process.path":"/bin/"} |
2 changes: 0 additions & 2 deletions
2
...kage/correlation_rules/mitre_attck_defense_evasion/Subrule_DirtyNIB/tests/test_conds_1.tc
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...elation_rules/mitre_attck_discovery/Credentials_Validation_via_Dscl/tests/test_conds_1.tc
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...elation_rules/mitre_attck_discovery/Credentials_Validation_via_Dscl/tests/test_conds_2.tc
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.