Skip to main content

BinaryAI-SDK is a library provides an abstracted client module to simplify the procedure of uploading file for analysis.

Project description

BinaryAI Python SDK

PUBLISH Downloads Gitter

BinaryAI is a binary file security analysis platform. This SDK aims at providing a simple client to upload file and get analysis result. It can also works as a demo on calling BinaryAI's GraphQL API directly. The Python3 SDK for BinaryAI provides an abstracted client module to simplify the procedure of uploading file for analysis.

To use SDK, you need a valid credentials. Read BinaryAI docs about detailed instructions.

Dependency

Python >= 3.9

Download and installation

python3 -m pip install binaryai

Contributing

See CONTRIBUTING.md.

Internals

Endpoints

The default endpoint is https://api.binaryai.cn/v1/endpoint.

API Credentials

API Credentials are used for signing requests. We suggest you using our SDK or our library to sign it, but you can also have your own implementation. We are using the signing method TC3-HMAC-SHA256, same with the Tencent Cloud. You can read their document about how to sign requests. BinaryAI would require following fields:

Region  = "ap-shanghai"
service = "binaryai"
Action  = "BinaryAI"
Version = "2023-04-15"

Additional Reading

Read the Changelog of our product, and hope you can also have fun reading papers related to our job:

  1. Yu, Zeping, et al. "Codecmr: Cross-modal retrieval for function-level binary source code matching." Advances in Neural Information Processing Systems 33 (2020): 3872-3883.
  2. Yu, Zeping, et al. "Order matters: Semantic-aware neural networks for binary code similarity detection." Proceedings of the AAAI conference on artificial intelligence. Vol. 34. No. 01. 2020.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binaryai-0.7.0a3.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

binaryai-0.7.0a3-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file binaryai-0.7.0a3.tar.gz.

File metadata

  • Download URL: binaryai-0.7.0a3.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.9.18 Linux/6.2.0-1011-azure

File hashes

Hashes for binaryai-0.7.0a3.tar.gz
Algorithm Hash digest
SHA256 b48006c9f342467dcca84ccb6c8d34a048bfc1c78911556c1e707515cca19542
MD5 40499d1f1a187c913307dd40cd97d25d
BLAKE2b-256 d4cf270c9fe3a6784b482d0b5365a77d3852accaabfb282755bda2bec3390c58

See more details on using hashes here.

File details

Details for the file binaryai-0.7.0a3-py3-none-any.whl.

File metadata

  • Download URL: binaryai-0.7.0a3-py3-none-any.whl
  • Upload date:
  • Size: 48.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.9.18 Linux/6.2.0-1011-azure

File hashes

Hashes for binaryai-0.7.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 7480c68c13c6ca49e51ed9dd19b609c3b91e224b904dcc2104f60746bcb32ea1
MD5 395af7512767543f3402cc070be0ea5d
BLAKE2b-256 d1b236cefd554f9abd07e0197f62e2459c83320e5012f3f959481e88bb49a657

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page