ANY.RUN SDK
This is the official Python client library for ANY.RUN, supporting the cybersecurity solutions like the Interactive Sandbox, TI Lookup, and TI Feeds.
With this library you can interact with the ANY.RUN REST API and automate your workflow quickly and efficiently.
Available features
- Built-in objects iterator and exception handling
- Synchronous and asynchronous interface
- Python 3.9-3.13 support
Sandbox API
ANY.RUN Sandbox is an online interactive sandbox for malware analysis, a tool for detection, monitoring, and research of cyber threats in real time.
- Submit files and URLs for analysis
- Monitor analysis progress in real-time
- Get detailed reports
- Manage the tasks
TI Lookup API and YARA Search
TI Lookup is a searchable database of IOCs, IOAs, IOBs, and events for threat hunting and a service for browsing malicious files by their content. Perform deep searches, look up threats online, and enrich your security solutions.
- Look up URLs and file hashes
- Search for IOCs using YARA rules
- Get threat intelligence data
- Monitor search progress in real time
- Get detailed analysis results
TI Feeds API
Threat Intelligence Feeds provide data on the known indicators of compromise: malicious IPs, URLs, Domains Supports the following feed formats:
- MISP
- TAXII STIX
- Network IOCs
The library public interface overview
import os
from pprint import pprint
from anyrun.connectors import SandboxConnector
def main():
with SandboxConnector.android(api_key) as connector:
# Initialize the url analysis
task_id = connector.run_url_analysis('https://any.run')
print(f'Analysis successfully initialized. Task uuid: {task_id}')
# View analysis status in real time
for status in connector.get_task_status(task_id):
print(status)
# Get report results
report = connector.get_analysis_report(task_id)
pprint(report)
# Remove the task from history
connector.delete_task(task_id)
if __name__ == '__main__':
# Setup ANY.RUN api key
api_key = os.getenv('ANY_RUN_Sandbox_API_KEY')
main()
You can find additional usage examples here
Installation Guide
You can install the SDK using pip or any other package manager
$ pip install anyrun-sdk
Also, you can install the SDK manually using pyproject.toml
$ git clone git@github.com:anyrun/anyrun-sdk.git
$ cd anyrun-sdk
$ python -m pip install .
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Useful links
TI Lookup query Guide
ANY.RUN API documentation
Contact us
Support, sales, and trial inquiries – support@any.run
Public relations and partnerships – pr@any.run
Metadata
Release files for anyrun-legacy 1.9.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| anyrun-legacy-1.9.6.tar.gz | 30.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anyrun_legacy-1.9.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.3 kB
Release files / anyrun-legacy-1.9.6.tar.gz
| Download URL | anyrun-legacy-1.9.6.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bda42564cc024ded702452684287ba65a1cb75d8700a34eb15c9001d3f7596ef
|
|
BLAKE2b-256 checksum How to use checksums |
4c3120a827dc55b808e1556d01d1eee01511a054bf7b6c14fdd5bf146c97178d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/28.8.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.10
|
Release files / anyrun_legacy-1.9.6-py3-none-any.whl
| Download URL | anyrun_legacy-1.9.6-py3-none-any.whl |
|---|---|
| Size | 52.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2316267572b76a9167560722bb2ac80dacf639eef3d01ba97788d71f41b0d59e
|
|
BLAKE2b-256 checksum How to use checksums |
261351b6e80538b8c77e1f4fe148c3d1d31008845ba5f55a6efaea6d87161bbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/28.8.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.5.10
|