This is the official Python client library for ANY.RUN. Automate management of ANY.RUN REST endpoints
Project description
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
Note:
Please inline ANY.RUN API-Key and Basic authorization token using the prefix:
API-KEY format: API-KEY WmNfqnpo...2Sjon7mtvm8e
Basic token format: Basic c2VtZW5f...GCd0RvUg==
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anyrun_sdk-1.10.9.tar.gz.
File metadata
- Download URL: anyrun_sdk-1.10.9.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
725bc82d5635c2fc782bde8c76935f596e5532d4c24a81ddb3a80cf0bdbda916
|
|
| MD5 |
32d96e188fbb17e13fb62dc864332c27
|
|
| BLAKE2b-256 |
729d98a9f0aa41160675411b0b5674507ede0d7500f3ab3e42ce40d56c7d08ae
|
Provenance
The following attestation bundles were made for anyrun_sdk-1.10.9.tar.gz:
Publisher:
release-action.yml on anyrun/anyrun-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anyrun_sdk-1.10.9.tar.gz -
Subject digest:
725bc82d5635c2fc782bde8c76935f596e5532d4c24a81ddb3a80cf0bdbda916 - Sigstore transparency entry: 389041894
- Sigstore integration time:
-
Permalink:
anyrun/anyrun-sdk@6d9e81806929005d7dd5897515478618b56a67f9 -
Branch / Tag:
refs/tags/v1.10.9 - Owner: https://github.com/anyrun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-action.yml@6d9e81806929005d7dd5897515478618b56a67f9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file anyrun_sdk-1.10.9-py3-none-any.whl.
File metadata
- Download URL: anyrun_sdk-1.10.9-py3-none-any.whl
- Upload date:
- Size: 49.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10fe57c009bf3214d1e0d0a306069e15d4120a72991a407146e70dbc6f5fd9ec
|
|
| MD5 |
b32203109b015916dd9a7174913b7c91
|
|
| BLAKE2b-256 |
91034149bd7a122dbfaafe0e7fb91bb6c2c1e517148421708386de30177f365b
|
Provenance
The following attestation bundles were made for anyrun_sdk-1.10.9-py3-none-any.whl:
Publisher:
release-action.yml on anyrun/anyrun-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anyrun_sdk-1.10.9-py3-none-any.whl -
Subject digest:
10fe57c009bf3214d1e0d0a306069e15d4120a72991a407146e70dbc6f5fd9ec - Sigstore transparency entry: 389041907
- Sigstore integration time:
-
Permalink:
anyrun/anyrun-sdk@6d9e81806929005d7dd5897515478618b56a67f9 -
Branch / Tag:
refs/tags/v1.10.9 - Owner: https://github.com/anyrun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-action.yml@6d9e81806929005d7dd5897515478618b56a67f9 -
Trigger Event:
release
-
Statement type: