Conversation
adds execution from GH runner entrypoint script to the rule scope as well as few binaries.
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
|
⛔️ Test failed Results
|
DefSecSentinel
left a comment
There was a problem hiding this comment.
Thanks for the responses. Looks good.
| /* Secret management */ | ||
| "vault", | ||
| /* GitHub CLI */ | ||
| "gh" |
There was a problem hiding this comment.
| "gh" | |
| "gh", | |
| /* AWS CLI */ | |
| aws, | |
| /*Azure CLI */ | |
| az, | |
| /*GCP CLI */ | |
| gcloud, | |
| /* Google Workspace CLI */ | |
| gws |
We can add cloud CLIs, but there is a chance that FPs will increase especially if these are runners whom leverage these to accomplish auth/ops.
| /* Crypto / encoding (potential exfiltration or C2 channel) */ | ||
| "openssl", "base64", | ||
| /* Data manipulation / inspection */ | ||
| "tr", "cat", |
There was a problem hiding this comment.
curious if we should add grep, sed, awk here for common credential recon.
| /* Windows scripting & LOLBins */ | ||
| "powershell.exe", "cmd.exe", "pwsh.exe", "certutil.exe", "rundll32.exe", | ||
| /* Unix shells */ | ||
| "bash", "sh", "zsh", "dash", "ash", "tcsh", "csh", "ksh", "fish", |
There was a problem hiding this comment.
| "bash", "sh", "zsh", "dash", "ash", "tcsh", "csh", "ksh", "fish", | |
| "bash", "sh", "zsh", "dash", "ash", "tcsh", "csh", "ksh", "fish", "mksh", "busybox", "pwsh", |
| /* Unix shells */ | ||
| "bash", "sh", "zsh", "dash", "ash", "tcsh", "csh", "ksh", "fish", | ||
| /* File / archive manipulation */ | ||
| "tar", "rm", "sed", "chmod", |
There was a problem hiding this comment.
| "tar", "rm", "sed", "chmod", | |
| "tar", "gzip", "rm", "sed", "chmod", |
| /* Process persistence helpers */ | ||
| "nohup", "setsid", | ||
| /* Scripting runtimes */ | ||
| "python*", "perl*", "ruby*", "lua*", "php*", "node", "node.exe", |
There was a problem hiding this comment.
| "python*", "perl*", "ruby*", "lua*", "php*", "node", "node.exe", | |
| "python*", "perl*", "ruby*", "lua*", "php*", "node", "nodejs", "node.exe", |
| /* Discovery & reconnaissance */ | ||
| "pgrep", "grep", "find", "printenv", "env", "nmap", | ||
| /* Crypto / encoding (potential exfiltration or C2 channel) */ | ||
| "openssl", "base64", |
There was a problem hiding this comment.
| "openssl", "base64", | |
| "openssl", "base64", "basez", "base64plain", "base64url", "base64mime", "base64pem", "basenc", "base32", "base16", "xxd", |
| /* Data manipulation / inspection */ | ||
| "tr", "cat", | ||
| /* Network relay / tunneling */ | ||
| "nc", "ncat", "netcat", "socat", "wg", "wg-quick", |
There was a problem hiding this comment.
| "nc", "ncat", "netcat", "socat", "wg", "wg-quick", | |
| "nc", "ncat", "netcat", "nc.traditional", "nc.openbsd", "socat", "wg", "wg-quick", |
| /* Network relay / tunneling */ | ||
| "nc", "ncat", "netcat", "socat", "wg", "wg-quick", | ||
| /* Remote access */ | ||
| "ssh", "ssh.exe", |
There was a problem hiding this comment.
| "ssh", "ssh.exe", | |
| "ssh", "ssh.exe", "ftp", "tftp", "scp", "sftp", |
| /* Remote access */ | ||
| "ssh", "ssh.exe", | ||
| /* Kubernetes / infrastructure */ | ||
| "kubectl", "helm", |
There was a problem hiding this comment.
| "kubectl", "helm", | |
| "kubectl", "helm", "docker", "ctr", "crictl", |
| /* GitHub CLI */ | ||
| "gh" |
There was a problem hiding this comment.
| /* GitHub CLI */ | |
| "gh" | |
| /* GitHub CLI */ | |
| "gh", | |
| /* Misc. */ | |
| "kill", "killall", "pkill", "getcap", "capsh", "chpasswd", "dd" |
adds execution from GH runner entrypoint script to the rule scope as well as few binaries.