ScanMalware Hunting rules API
The Hunting rules API from ScanMalware — 9 operation(s) for hunting rules.
The Hunting rules API from ScanMalware — 9 operation(s) for hunting rules.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/scanmalware-com:scanmalware-com-hunting-rules-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ScanMalware Hunting rules API
description: URL Security Scanner API
version: 1.0.0
tags:
- name: Hunting rules
paths:
/api/v1/hunting-rules/community:
get:
tags:
- Hunting rules
summary: Community hunting rules
description: 'Active community hunting rules, newest first. `public_matches_30d` counts distinct public scans matched in the
last 30 days.'
operationId: list_community_rules_api_v1_hunting_rules_community_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
maximum: 10000
minimum: 0
default: 0
title: Offset
- name: category
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 20
- type: 'null'
title: Category
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/community/scan/{scan_id}:
get:
tags:
- Hunting rules
summary: Community hunting rules that matched a scan
description: 'Active community hunting rules that matched this scan (page or scripts). Supporting evidence only: they are
written by users, checked automatically and not reviewed by an analyst.'
operationId: community_rules_of_scan_api_v1_hunting_rules_community_scan__scan_id__get
parameters:
- name: scan_id
in: path
required: true
schema:
type: string
title: Scan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/community/{rule_id}:
get:
tags:
- Hunting rules
summary: A community hunting rule
description: 'One community hunting rule and its most recent matches on public scans. The rule''s text (`rule`) is returned
only to a signed-in staff account.'
operationId: community_rule_api_v1_hunting_rules_community__rule_id__get
security:
- OptionalHTTPBearer: []
parameters:
- name: rule_id
in: path
required: true
schema:
type: string
title: Rule Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 200
minimum: 1
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/stats:
get:
tags:
- Hunting rules
summary: Hunting-rule statistics
description: 'Overall hunting-rule detection statistics.
Returns aggregated statistics about hunting-rule matches, including:
- Total detections and unique patterns
- Severity distribution
- Most common threat categories
- Detection trends over time'
operationId: get_hunting_rule_stats_published_api_v1_hunting_rules_stats_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Get Hunting Rule Stats Published Api V1 Hunting Rules Stats Get
/api/v1/hunting-rules/threats/recent:
get:
tags:
- Hunting rules
summary: Recent threats found by hunting rules
description: 'Threats recently detected by hunting rules across all scans.
Returns recent malware pattern matches sorted by detection time,
useful for threat monitoring and security intelligence.'
operationId: get_recent_hunting_rule_threats_published_api_v1_hunting_rules_threats_recent_get
parameters:
- name: hours
in: query
required: false
schema:
type: integer
maximum: 168
minimum: 1
description: Hours to look back
default: 24
title: Hours
description: Hours to look back
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
description: Maximum results
default: 100
title: Limit
description: Maximum results
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Recent Hunting Rule Threats Published Api V1 Hunting Rules Threats Recent Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/scan/{scan_id}:
get:
tags:
- Hunting rules
summary: Hunting-rule matches of a scan
description: 'Hunting-rule matches for a specific scan.
Returns the hunting rules that matched the page, its frames or its scripts, including rule metadata, severity,
matched strings and threat intelligence.'
operationId: get_hunting_rule_matches_by_scan_published_api_v1_hunting_rules_scan__scan_id__get
parameters:
- name: scan_id
in: path
required: true
schema:
type: string
title: Scan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Hunting Rule Matches By Scan Published Api V1 Hunting Rules Scan Scan Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/{scan_id}:
get:
tags:
- Hunting rules
summary: Hunting-rule matches of a scan (legacy path)
description: 'Hunting-rule matches for a specific scan (legacy endpoint).
This is an alias for /scan/{scan_id} for backward compatibility.'
operationId: get_hunting_rule_matches_published_api_v1_hunting_rules__scan_id__get
parameters:
- name: scan_id
in: path
required: true
schema:
type: string
title: Scan Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Hunting Rule Matches Published Api V1 Hunting Rules Scan Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/hunting-rules/test:
post:
tags:
- Hunting rules
summary: Test a hunting rule on public scripts
description: 'Runs a hunting rule in isolation: static checks, compilation with every warning an error, a benchmark on a fixed set of public scripts (speed and breadth), then the scripts you name. Signed-in users only; 30 tests an hour, 200 a day. Rule names must start with `vis_`. Only public scans'' scripts can be targets. Results never affect any verdict.'
operationId: test_hunting_rule_published_api_v1_hunting_rules_test_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/HuntingRuleTestRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/v1/hunting-rules/community/{rule_id}/follow:
put:
tags:
- Hunting rules
summary: Follow Rule
description: 'Follow a community hunting rule: get an email when it matches new scans (in the same hourly digest as the
hunts you follow). Requires a Bearer token and a verified email address. Idempotent.'
operationId: follow_rule_api_v1_hunting_rules_community__rule_id__follow_put
security:
- HTTPBearer: []
parameters:
- name: rule_id
in: path
required: true
schema:
type: string
description: community rule public id (UUID) or name
title: Rule Id
description: community rule public id (UUID) or name
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Hunting rules
summary: Unfollow Rule
description: Stop following a community hunting rule. Requires a Bearer token. Idempotent.
operationId: unfollow_rule_api_v1_hunting_rules_community__rule_id__follow_delete
security:
- HTTPBearer: []
parameters:
- name: rule_id
in: path
required: true
schema:
type: string
description: community rule public id (UUID) or name
title: Rule Id
description: community rule public id (UUID) or name
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
HuntingRuleTestRequest:
properties:
rule:
type: string
maxLength: 65536
minLength: 1
title: Rule
description: The hunting rule's source. Rule names must start with vis_; see the limits in the docs.
fingerprint_ids:
items:
type: integer
type: array
maxItems: 20
title: Fingerprint Ids
description: Public scripts to match, by fingerprint id
scan_id:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Scan Id
description: Also match this public scan's page as captured and its scripts, largest first, up to 20 in all
type: object
required:
- rule
title: HuntingRuleTestRequest
securitySchemes:
OptionalHTTPBearer:
type: http
scheme: bearer
HTTPBearer:
type: http
scheme: bearer