skills/mblode/agent-skills/tidy/Gen Agent Trust Hub

tidy

Fail

Audited by Gen Agent Trust Hub on Nov 10, 2026

Risk Level: HIGHDATA_EXFILTRATIONCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DATA_EXFILTRATION]: In evals/fixtures/proof-upload/head/src/routes/proof-upload.ts, the uploadProof function uses a client-supplied filename to construct a server-side storage path via join(directory, file.filename). This lack of sanitization allows an attacker to use ../ segments to perform directory traversal, potentially overwriting or creating files anywhere the process has write permissions.
  • [DATA_EXFILTRATION]: In evals/fixtures/referral-reward-job/head/src/jobs/award-referral.ts, the awardReferral function performs a ledger credit before sending an email and updating the referral status. Since the queue worker (in evals/fixtures/referral-reward-job/base/src/queue/worker.ts) automatically retries failed jobs, a failure during the email step will cause the job to rerun and credit points multiple times, as the ledger credit is not idempotent and lacks a unique reference.
  • [COMMAND_EXECUTION]: The dailyAverage function in evals/fixtures/workday-average/head/src/reports/averages.ts filters days based on the workdaysOnly flag. If the provided period consists only of weekends and workdaysOnly is true, days.length becomes zero, leading to a division by zero that returns NaN. This value propagates to the teamDigest headline, leading to corrupted data and potential UI crashes.
  • [CREDENTIALS_UNSAFE]: The evals/fixtures/signature-verify/head/src/webhooks/verify.ts implementation includes a custom constantTimeEqual function and a hand-rolled toHex utility. While not a direct secret leak, using hand-rolled cryptographic primitives instead of established node:crypto built-ins like timingSafeEqual increases the risk of side-channel attacks and implementation errors.
  • [DATA_EXFILTRATION]: The saveReceipt function in evals/fixtures/receipt-upload-catch/head/src/receipts/save.ts wraps the putObject call in a try-catch block that only logs the error. Because it still returns a receiptKey, the caller (submitExpense) assumes success and discards the temporary upload, resulting in the permanent loss of the user's receipt file while the database records it as successfully stored.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 10, 2026, 11:02 PM