Skip to content

Add VirusTotal Sample Downloader expansion module - #980

Merged
adulau merged 1 commit into
mainfrom
codex/expansion-virustotal-downloader
Oct 25, 2026
Merged

adulau merged 1 commit into
mainfrom
codex/expansion-virustotal-downloader

Conversation

@adulau

@adulau adulau commented Oct 25, 2026

Copy link
Copy Markdown
Member

Download an existing file from VirusTotal by hash.

Requires a VirusTotal API key with file download entitlement. Uses GET /api/v3/files/{hash}/download. Streams at most max_size_mb (default 50, range 1-100) and verifies the downloaded file against the requested hash. Signed HTTPS redirects are followed without forwarding the API key. Returns raw bytes as a MISP attachment in a file object with MD5, SHA-1 and SHA-256 hashes; no sample is executed or submitted.

The module validates inputs and configuration, preserves the source attribute and its UUID, sets new enrichment attributes to to_ids=false, and returns actionable HTTP and response errors without including API credentials. Configuration and example requests are documented in documentation/expansion/virustotal_downloader.md.

Validation: 32 passed, 1 warning in 1.27s from pytest tests/test_virustotal_downloader.py, plus flake8, import/discovery and documentation metadata rendering checks. Provider responses are mocked; authenticated live API requests have not been exercised.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-25T10:30:38.363269Z ebad010 PR opened
🔒 Security Review ✅ Completed 2026-10-25T10:33:56.423744Z ebad010 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adulau
adulau merged commit c91ed11 into main Oct 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant