Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

1.8 KB
Raw Blame
id: det-endpoint-298
name: Executable Dropped in World-Writable Directory (FIM)
description: >
  An osquery file_events CREATED event was recorded for a file with a common
  executable extension (.sh, .py, .pl, .rb, .elf, .bin, no extension + executable
  path) under a world-writable path (/tmp, /var/tmp, /dev/shm, /run/shm).
  This is a classic indicator of malware staging, web shell deployment, or
  attacker tool transfer (T1027, T1059, T1036.005).
version: 1.0.0
severity: medium
tags:
  - mitre.attack.t1027        # Obfuscated Files or Information
  - mitre.attack.t1059        # Command and Scripting Interpreter
  - mitre.attack.t1036.005   # Masquerading: Match Legitimate Name or Location
  - mitre.attack.t1570        # Lateral Tool Transfer
  - tlp.white
  - data_source.osquery
  - data_source.fim
category: endpoint
log_source:
  product: osquery
  service: file_events
detection:
  condition: |
    action == "CREATED"
    AND target_path STARTS_WITH_ANY ["/tmp/", "/var/tmp/", "/dev/shm/", "/run/shm/"]
    AND (
      target_path ENDS_WITH_ANY [".sh", ".py", ".pl", ".rb", ".elf", ".bin", ".so"]
      OR target_path MATCHES "/(tmp|var/tmp|dev/shm|run/shm)/[^./]+"
    )
false_positives:
  - Build/CI pipelines that write compiled artifacts to /tmp
  - Package managers that stage files in /tmp during installation
  - Container entrypoint scripts copied from image layers to /tmp
  - Legitimate Python/Ruby scripts deployed to /tmp by config management
playbook: tpl-defense-evasion
enabled: false
author: AiSOC
references:
  - https://attack.mitre.org/techniques/T1036/005/
  - https://attack.mitre.org/techniques/T1059/
created: '2026-05-10'
modified: '2026-05-10'
quarantine_reason: "authored as YAML with no Python spec, so the engine never loaded it; no connector is known to emit its fields, so translating it would add a rule that cannot fire"