title: Electron ASAR Archive Secret Scraping via Node or Asar CLI id: 99a41e12-5c09-4e11-8d21-090909000001 status: experimental description: Detects cross-platform (Linux, macOS, Windows) ad-hoc Node.js scripts or asar CLI invocations unpacking or slicing Electron app.asar and companion CLI CJS bundles via command-line arguments to extract embedded OAuth client secrets. author: Odin by Brandefense date: 2026-11-16 tags: - attack.credential_access - attack.t1552.001 logsource: category: process_creation detection: selection_asar_cli: CommandLine|contains: - 'asar extract' - 'asar e ' selection_inline_bundle: CommandLine|contains: - 'resources/app.asar' - 'resources\app.asar' - 'Contents/Resources/app.asar' - 'app.asar.unpacked' - 'cli-bundle.cjs' selection_inline_intent: CommandLine|contains: - 'OAUTH' - 'APP_SECRET' - 'readFileSync' - 'hostProcessLocalEnv' selection_extractor_script: Image|endswith: - '/node' - '\node.exe' CommandLine|contains: 'find_secret' condition: selection_asar_cli or (selection_inline_bundle and selection_inline_intent) or selection_extractor_script falsepositives: - Authorized desktop application security audits and CI/CD packaging pipelines level: high --- title: Unauthorized CLI Access or Ad-Hoc HTTP Exposure of Claude and Hermes Credential Stores id: 99a41e12-5c09-4e11-8d21-090909000002 status: experimental description: Detects non-official CLI processes referencing ~/.claude/.credentials.json or ~/.hermes/ token stores in command lines, macOS Keychain queries for Claude OAuth entries, or ad-hoc Python HTTP servers launched inside AI agent dotfile directories. author: Odin by Brandefense date: 2026-11-16 tags: - attack.credential_access - attack.t1528 - attack.t1555.001 logsource: category: process_creation detection: selection_cred_paths: CommandLine|contains: - '.claude/.credentials.json' - '.claude\.credentials.json' - '.hermes/.anthropic_oauth.json' - '.hermes\.anthropic_oauth.json' - '.hermes/.env' - '.hermes\.env' selection_macos_keychain: Image|endswith: '/security' CommandLine|contains: - 'find-generic-password' - 'dump-keychain' selection_macos_target: CommandLine|contains: - 'Claude' - 'anthropic' selection_adhoc_http_proc: Image|endswith: - '/python' - '/python3' - '\python.exe' CommandLine|contains: - 'http.server' - 'SimpleHTTPServer' selection_adhoc_http_cwd: CurrentDirectory|contains: - '/.hermes' - '\.hermes' - '/.claude' - '\.claude' - '/.codex' - '\.codex' selection_adhoc_http_arg: CommandLine|contains: - '.hermes' - '.claude' - '.codex' condition: selection_cred_paths or (selection_macos_keychain and selection_macos_target) or (selection_adhoc_http_proc and (selection_adhoc_http_cwd or selection_adhoc_http_arg)) falsepositives: - Developer backup scripts explicitly archiving dotfile configurations - The official vendor CLI reading its own credential file; tune by exact signed executable path in the SIEM level: high --- title: Java Process Spawning Reverse-Shell or Exploit Callback Subshell id: 99a41e12-5c09-4e11-8d21-090909000003 status: experimental description: Detects JVM application processes spawning shells with explicit reverse-shell redirection or exploit-callback primitives following H2 CREATE ALIAS, Log4Shell JNDI, or MySQL JDBC autoDeserialize exploitation across Linux, macOS, and Windows. author: Odin by Brandefense date: 2026-11-16 tags: - attack.initial_access - attack.t1190 - attack.execution - attack.t1059.004 logsource: category: process_creation detection: selection_parent: ParentImage|endswith: - '/java' - '\java.exe' selection_shell: Image|endswith: - '/sh' - '/bash' - '/dash' - '/zsh' - '\cmd.exe' - '\powershell.exe' - '\pwsh.exe' selection_payload: CommandLine|contains: - '/dev/tcp/' - 'nc -e' - 'nc -c' - 'ncat ' - '/hr.sh' - '/evil1.sql' - ':8081/r?d=' condition: selection_parent and selection_shell and selection_payload falsepositives: - Custom security-validation harnesses executing simulated reverse-shell commands inside test JVMs level: high