check-malicious endpoint to send a single GET request with a report_type and a resource_identifier, and the API tells you whether that resource appears in the OSM threat database. The endpoint covers all supported resource types through one unified interface.
Use this endpoint to:
- Investigate a suspected threat: During an active incident or hunt, look up any resource to instantly confirm whether it’s in the database and get more info about it.
- Enrich threat intelligence workflows: Integrate real-time malicious resource lookups into your SIEM, SOAR, or TIP to automatically flag known-bad indicators as they surface.
- Monitor exposure across your environment: Check whether resources already in use in your organization have been flagged since you last reviewed them.
- Vet assets before they’re installed: Query before accepting a package or extension suggested by an AI coding assistant.
- Scan dependencies in CI/CD: Catch malicious packages before they reach production by querying OSM as part of your build pipeline.
Query parameters
| Parameter | Required | Description |
|---|---|---|
report_type | Required | package | container | repository | url | domain | ip | wallet | |
resource_identifier | Required | The resource to check (package name, URL, domain, etc.) |
ecosystem | Optional | For packages: npm, pypi, maven, nuget, vscode, skills, etc. |
version | Optional | Specific package or container version to check |
Response examples
Malicious resource found
Resource not found
Report types with cURL examples
Packages
Check packages by name across supported ecosystems: npm, PyPI, Maven, NuGet, VS Code extensions, and AI Skills. Use theecosystem parameter to scope the lookup. Use the version parameter to check a specific release.
Container Images
Check container images from Docker Hub, GitHub Container Registry (GHCR), or Quay for known malicious payloads such as cryptominers or backdoors. Use theecosystem parameter to specify the registry (dockerhub, ghcr, quay).
Repositories
Check GitHub or GitLab repositories linked to malicious activity. Theresource_identifier must be the full repository URL including https://.
URLs
Check a specific URL for malicious content (phishing pages, malware delivery endpoints, and similar threats).Domains
Check domains associated with command-and-control (C2) infrastructure, phishing campaigns, or other malicious activity. Pass only the domain, without a protocol or path.IP Addresses
Check IP addresses associated with C2 infrastructure, attack sources, or other malicious network activity.Crypto Wallets
Check cryptocurrency wallet addresses that have been linked to ransomware payments, extortion campaigns, or other attacks.Using check-malicious with AI coding assistants
AI coding assistants like Claude, GitHub Copilot, and Cursor suggest and install open-source dependencies as part of their workflow, often without any malicious resource checking. Since these tools generate and execute package installation commands directly, a malicious package recommendation gets installed as fast as a legitimate one. Before accepting a dependency suggestion from an AI coding assistant, run a quick check against the OSM database. Pass the package name and ecosystem to/check-malicious and confirm the response returns "malicious": false before installing.

