Files
sigma-rules/rta/file_delete_vbk.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

33 lines
821 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
import os
metadata = RtaMetadata(
uuid="a6c80b08-ca72-4c3e-93c7-ac3421e4235e",
platforms=["windows"],
endpoint=[],
siem=[{
'rule_id': '11ea6bec-ebde-4d71-a8e9-784948f8e3e9',
'rule_name': 'Third-party Backup Files Deleted via Unexpected Process'
}],
techniques=['T1490'],
)
@common.requires_os(metadata.platforms)
def main():
fakebkp = os.path.abspath("fake.vbk")
with open(fakebkp, 'w'):
pass
common.remove_file(fakebkp)
if __name__ == "__main__":
exit(main())