alterlab-cosmic

Pass

Audited by Gen Agent Trust Hub on Nov 26, 2026

Risk Level: SAFECREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes local Python scripts to perform genomic data analysis and automate file retrieval.
  • Evidence: scripts/cosmic_open.py and scripts/download_cosmic.py invocations via Bash(python:*).
  • [EXTERNAL_DOWNLOADS]: Fetches mutational signatures, cancer gene lists, and mutation frequencies from established scientific repositories.
  • Target Sources: Wellcome Sanger Institute (cancer.sanger.ac.uk), OncoKB, cBioPortal, MSK Cancer Hotspots, and CIViC.
  • [CREDENTIALS_UNSAFE]: Accesses account identifiers and secrets from environment variables to authenticate with the COSMIC database. It follows best practices by using environment variables (COSMIC_EMAIL, COSMIC_PASSWORD) rather than hardcoding secrets.
  • [DATA_EXFILTRATION]: Transmits account credentials to the official COSMIC API over HTTPS to facilitate authenticated data downloads.
  • Evidence: scripts/download_cosmic.py sends credentials to https://cancer.sanger.ac.uk/api/mono/products/v1/downloads/scripted using HTTP Basic Auth.
  • [INDIRECT_PROMPT_INJECTION]: Ingests and processes biological data from several external APIs, creating a potential attack surface for untrusted content.
  • Ingestion Points: cosmic_open.py (JSON/text from APIs) and download_cosmic.py (TSV/VCF from downloaded archives).
  • Sanitization: Uses standard library and common data science parsers (json.loads, csv.DictReader, pandas.read_csv, pysam.VariantFile).
  • Boundary Markers: No explicit delimiters or instructions are used to separate ingested data from the agent's internal prompt context.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 26, 2026, 06:58 AM