Files
sigma-rules/rta/exec_cmd_wmic_antivirus_enum.py
T
Jonhnathan f41c5288cc [RTA] New RTAs for Windows Rules (#2426)
* Part 1

* Part 2

* Part3

* Part4

* Final Part

* Dedup RTA where Office app loads wmiutils

* Add techniques

* Remove helper

* Update exec_cmd_set_mppreference.py
2023-03-20 07:56:51 -03:00

30 lines
891 B
Python

# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License
# 2.0; you may not use this file except in compliance with the Elastic License
# 2.0.
from . import common
from . import RtaMetadata
metadata = RtaMetadata(
uuid="d123ee22-aa28-4dcd-9c3b-5be047eb6eff",
platforms=["windows"],
endpoint=[],
siem=[{'rule_id': '6ea55c81-e2ba-42f2-a134-bccf857ba922', 'rule_name': 'Security Software Discovery using WMIC'}],
techniques=['T1518', 'T1518.001'],
)
@common.requires_os(metadata.platforms)
def main():
wmic = "C:\\Windows\\System32\\wbem\\WMIC.exe"
# Execute command
common.execute([wmic, "/namespace:\\\\root\\SecurityCenter2", "Path",
"AntiVirusProduct", "get", "displayname"], timeout=10)
if __name__ == "__main__":
exit(main())