cyjax-cti provides a Python library to use Cyjax platform API.
Project description
Introduction
cyjax-cti
is a Python library to use Cyjax platform API. You can access different resources (incident reports,
threat actors, indicators of compromise, etc.) from a Python script.
The library is available on Python Package Index.
Install
You can install the cyjax-cti
library with pip:
pip install cyjax-cti
Examples
Set the API key
import cyjax
# set a global API key
cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
# set a resource API key
cyjax.IndicatorOfCompromise(api_key="346568ecf85f0b5ca98f389908e8b803")
Get indicators of compromise in the last 5 minutes
import cyjax
from datetime import timedelta
cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
indicators = cyjax.IndicatorOfCompromise().list(since=timedelta(minutes=5))
for indicator in indicators:
print(indicator)
Get APT activity in last 6 months
import cyjax
from datetime import timedelta
cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
reports = cyjax.IncidentReport().list(query="APT", since=timedelta(days=30*6))
for report in reports:
print("Title: {}" % report['title'])
print("Severity: {}" % report['severity'])
print("Timestamp: {}" % report['last_update'])
Get leaked emails in the last 30 days
import cyjax
from datetime import timedelta
cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
for leaked_email in cyjax.LeakedEmail().list(since=timedelta(days=30)):
print("Email: {}" % leaked_email['email'])
print("Source: {}" % leaked_email['source'])
print("Timestamp: {}" % leaked_email['discovered_at'])
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
cyjax-cti-1.0.0.tar.gz
(9.3 kB
view hashes)
Built Distributions
cyjax_cti-1.0.0-py3.9.egg
(19.9 kB
view hashes)
cyjax_cti-1.0.0-py3-none-any.whl
(18.3 kB
view hashes)
cyjax_cti-1.0.0-py2.7.egg
(19.2 kB
view hashes)
Close
Hashes for cyjax_cti-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92603c0ef8232fc79726bf27439e026c8ba2544f9ead39372810046360a1493 |
|
MD5 | 6bff93af6bdd1173f72a7949ae56156a |
|
BLAKE2b-256 | 64953352886f329f2f8adf41185a5dfd5202a54d112d237a89b3db2ab151f43b |