
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
totalvirus-api
Advanced tools
Node.js wrapper for VirusTotal API. Scan files, URLs, and fetch malware analysis reports.
A lightweight, modern, and powerful Node.js wrapper for the VirusTotal API.
Scan files, scan URLs, and fetch real-time malware analysis — with a single line of code.
⚡ Plug in your API key once, and you're ready to sniff out threats like a digital hound.
TotalVirus Scanner connects directly with the VirusTotal v3 API, allowing you to:
All API calls are abstracted into neat promise-based functions for modern, hassle-free integration.
npm install totalvirus-scanner
// Import and initialize with your VirusTotal API key
const scanner = require('totalvirus-scanner')('YOUR_API_KEY_HERE');
// Scan a file
scanner.scanFile('./example.exe')
.then(console.log)
.catch(console.error);
// Scan a URL
scanner.scanUrl('https://example.com')
.then(console.log)
.catch(console.error);
// Get a scan report by ID
scanner.getReport('your_analysis_id_here')
.then(console.log)
.catch(console.error);
| Function | Description |
|---|---|
scanFile(filePath) | Uploads a file and returns a scan analysis |
scanUrl(url) | Submits a URL for scan and returns analysis |
getReport(id) | Fetches the results of a scan by ID |
To use this package, you need a free VirusTotal API key:
👉 Get API Key
Once you have your key, just pass it once:
const scanner = require('totalvirus-scanner')('YOUR_API_KEY');
No need to repeat it — it stays with the session.
totalvirus-scanner/
│
├── index.js # Entry point
├── api/
│ └── virustotal.js # Core scanning logic
├── package.json # NPM metadata
└── README.md # You’re reading it!
{
"data": {
"id": "u-12345abcd",
"type": "analysis",
"attributes": {
"status": "completed",
"stats": {
"malicious": 1,
"harmless": 68,
"suspicious": 0,
"undetected": 2,
"timeout": 0
}
}
}
}
npm install /path/to/your/totalvirus-scanner
Then:
const scanner = require('totalvirus-scanner')('your_api_key');
scanner.scanUrl('https://example.com').then(console.log);
MIT License © 2025 Vraj Suratwala
A Node.js wrapper for the VirusTotal v3 API. Easily scan files and URLs, and retrieve malware analysis reports in real-time. Plug in your API key once and start scanning securely.
In the land of code, where threats may hide,
A tool was forged, with truth as its guide.
Give it a file, a link, a clue —
It scans, reveals, and protects you too.
TotalVirus Scanner — where scanning is simplified, and malware gets nullified. 🔥
FAQs
Node.js wrapper for VirusTotal API. Scan files, URLs, and fetch malware analysis reports.
We found that totalvirus-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.