PrecisionSec REST API Documentation (1.0.0)

Download OpenAPI specification:

API for querying PrecisionSec threat intelligence including malware samples, malicious URLs, domains, and IP addresses. Provides access to threat feeds and IOC (Indicator of Compromise) lookups.

To request an API key, please contact info@precisionsec.com.

Get IP feed

Serves a static feed of malicious IP addresses from the last 60 days

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
[
  • "192.168.1.1"
]

Get URL feed

Serves a static feed of malicious URLs from the last 60 days

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{ }

Get sample by MD5

Retrieve sample information by MD5 hash

Authorizations:
ApiKeyAuth
path Parameters
md5
required
string
Example: a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

MD5 hash of the sample

Responses

Response samples

Content type
application/json
{
  • "first_seen": 1633046400,
  • "md5": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  • "sha256": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6",
  • "tag": "ransomware",
  • "magic": "PE32 executable for MS Windows",
  • "campaign_id": "campaign123",
  • "botnet_id": "botnet456",
  • "distribution_urls": [],
  • "c2_urls": []
}

Get sample by SHA256

Retrieve sample information by SHA256 hash

Authorizations:
ApiKeyAuth
path Parameters
sha256
required
string
Example: a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6

SHA256 hash of the sample

Responses

Response samples

Content type
application/json
{
  • "first_seen": 1633046400,
  • "md5": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  • "sha256": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6",
  • "tag": "ransomware",
  • "magic": "PE32 executable for MS Windows",
  • "campaign_id": "campaign123",
  • "botnet_id": "botnet456",
  • "distribution_urls": [],
  • "c2_urls": []
}

Get domain information

Retrieve information about a domain, including associated samples and resolutions

Authorizations:
ApiKeyAuth
path Parameters
domain
required
string
Example: malicious.example.com

Domain name to lookup

Responses

Response samples

Content type
application/json
{
  • "domain": "malicious.example.com",
  • "first_seen": 1633046400,
  • "tag": "phishing",
  • "communicating_samples": [
    ],
  • "resolutions": [
    ]
}

Check if URL is malicious

Check if a URL is known to be malicious

Authorizations:
ApiKeyAuth
path Parameters
url
required
string
Example: http://malicious.example.com/page

URL to check

Responses

Response samples

Content type
application/json
{
  • "result": "Malicious"
}

Check if domain is malicious

Check if a domain is known to be malicious

Authorizations:
ApiKeyAuth
path Parameters
domain
required
string
Example: malicious.example.com

Domain to check

Responses

Response samples

Content type
application/json
{
  • "result": "Malicious"
}

Get IPv4 information

Retrieve information about an IPv4 address, including associated samples, passive DNS, and detected URLs

Authorizations:
ApiKeyAuth
path Parameters
ip
required
string
Example: 192.168.1.1

IPv4 address to lookup

Responses

Response samples

Content type
application/json
{
  • "ip": "192.168.1.1",
  • "first_seen": 1633046400,
  • "tag": "c2",
  • "confidence": "high",
  • "communicating_samples": [
    ],
  • "passive_dns": [
    ],
  • "detected_urls": []
}

Check if IPv4 addresses exist

Check if a list of IPv4 addresses exist in the database

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
Array
string

Responses

Request samples

Content type
application/json
[
  • "192.168.1.1"
]

Response samples

Content type
application/json
{
  • "results": {
    }
}

List available tags

List all available tags in the system

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
[
  • "ransomware"
]

Get IOCs for tag

Get all Indicators of Compromise (IOCs) associated with a specific tag

Authorizations:
ApiKeyAuth
path Parameters
tag
required
string
Example: ransomware

Tag to lookup

Responses

Response samples

Content type
application/json
{
  • "ips": [
    ],
  • "domains": [
    ],
  • "samples": [
    ]
}