curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/malware-advisories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"direction": "asc",
"ecosystem": "npm",
"per_page": 3
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/malware-advisories"
payload = {
"direction": "asc",
"ecosystem": "npm",
"per_page": 3
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({direction: 'asc', ecosystem: 'npm', per_page: 3})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/malware-advisories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/github/repositories/malware-advisories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'direction' => 'asc',
'ecosystem' => 'npm',
'per_page' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/github/repositories/malware-advisories"
payload := strings.NewReader("{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/github/repositories/malware-advisories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/malware-advisories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}"
response = http.request(request)
puts response.read_body{
"advisories": [
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-5qp4-hqhx-c3q8",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-5qp4-hqhx-c3q8",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-5qp4-hqhx-c3q8"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "opsie",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-09T21:16:00Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in opsie",
"type": "malware",
"updated_at": "2022-05-09T21:16:01Z",
"withdrawn_at": null
},
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-4hcg-qwff-c8g3",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-4hcg-qwff-c8g3",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-4hcg-qwff-c8g3"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "jquerry",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-11T16:45:06Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in jquerry",
"type": "malware",
"updated_at": "2022-05-11T16:45:07Z",
"withdrawn_at": null
},
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-2f9c-72r6-fg7g",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-2f9c-72r6-fg7g",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-2f9c-72r6-fg7g"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "personal-colorss",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-13T17:03:32Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in personal-colorss",
"type": "malware",
"updated_at": "2022-05-13T17:03:32Z",
"withdrawn_at": null
}
],
"attribution": "GitHub Advisory Database (https://github.com/advisories), licensed CC BY 4.0",
"count": 3,
"filter": {
"affects": [],
"cve_id": null,
"cwes": [],
"direction": "asc",
"ecosystem": "npm",
"is_withdrawn": null,
"modified": null,
"published": null,
"severity": null,
"sort": "published",
"type": "malware",
"updated": null
},
"license": "CC-BY-4.0",
"next_cursor": "Y3Vyc29yOnYyOpK0MjAyMi0wNS0xM1QxNzowMzozMlrOAAEx6Q%3D%3D",
"observed_at_ms": 1792789824000,
"per_page": 3,
"source_url": "https://github.com/advisories?query=type%3Amalware%20ecosystem%3Anpm%20sort%3Apublished-asc",
"upstream_requests": 1
}Malware advisories
Malicious-package advisories from the GitHub Advisory Database (type malware), newest first by default: the package and ecosystem, the malicious version range, CWE-506 style weaknesses, references (often the OpenSSF malicious-packages report) and publication dates. Filter by ecosystem, package names and a publication date range; one cursor page of up to 100. OSV.dev and NVD have no malware browsing, so this is the feed to check a dependency list or watch an ecosystem for newly flagged packages. CC BY 4.0, attribute GitHub.
curl --request POST \
--url https://api.aisa.one/apis/v1/github/repositories/malware-advisories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"direction": "asc",
"ecosystem": "npm",
"per_page": 3
}
'import requests
url = "https://api.aisa.one/apis/v1/github/repositories/malware-advisories"
payload = {
"direction": "asc",
"ecosystem": "npm",
"per_page": 3
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({direction: 'asc', ecosystem: 'npm', per_page: 3})
};
fetch('https://api.aisa.one/apis/v1/github/repositories/malware-advisories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/github/repositories/malware-advisories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'direction' => 'asc',
'ecosystem' => 'npm',
'per_page' => 3
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/github/repositories/malware-advisories"
payload := strings.NewReader("{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/github/repositories/malware-advisories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/github/repositories/malware-advisories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"direction\": \"asc\",\n \"ecosystem\": \"npm\",\n \"per_page\": 3\n}"
response = http.request(request)
puts response.read_body{
"advisories": [
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-5qp4-hqhx-c3q8",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-5qp4-hqhx-c3q8",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-5qp4-hqhx-c3q8"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "opsie",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-09T21:16:00Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in opsie",
"type": "malware",
"updated_at": "2022-05-09T21:16:01Z",
"withdrawn_at": null
},
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-4hcg-qwff-c8g3",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-4hcg-qwff-c8g3",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-4hcg-qwff-c8g3"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "jquerry",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-11T16:45:06Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in jquerry",
"type": "malware",
"updated_at": "2022-05-11T16:45:07Z",
"withdrawn_at": null
},
{
"credits": [],
"cve_id": null,
"cvss_v3": null,
"cvss_v4": null,
"cwes": [
{
"cwe_id": "CWE-506",
"name": "Embedded Malicious Code"
}
],
"epss": null,
"ghsa_id": "GHSA-2f9c-72r6-fg7g",
"github_reviewed_at": null,
"html_url": "https://github.com/advisories/GHSA-2f9c-72r6-fg7g",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-2f9c-72r6-fg7g"
}
],
"nvd_published_at": null,
"packages": [
{
"ecosystem": "npm",
"first_patched_version": null,
"name": "personal-colorss",
"vulnerable_functions": [],
"vulnerable_version_range": ">= 0"
}
],
"published_at": "2022-05-13T17:03:32Z",
"repository_advisory_url": null,
"severity": "critical",
"source_code_location": null,
"summary": "Malware in personal-colorss",
"type": "malware",
"updated_at": "2022-05-13T17:03:32Z",
"withdrawn_at": null
}
],
"attribution": "GitHub Advisory Database (https://github.com/advisories), licensed CC BY 4.0",
"count": 3,
"filter": {
"affects": [],
"cve_id": null,
"cwes": [],
"direction": "asc",
"ecosystem": "npm",
"is_withdrawn": null,
"modified": null,
"published": null,
"severity": null,
"sort": "published",
"type": "malware",
"updated": null
},
"license": "CC-BY-4.0",
"next_cursor": "Y3Vyc29yOnYyOpK0MjAyMi0wNS0xM1QxNzowMzozMlrOAAEx6Q%3D%3D",
"observed_at_ms": 1792789824000,
"per_page": 3,
"source_url": "https://github.com/advisories?query=type%3Amalware%20ecosystem%3Anpm%20sort%3Apublished-asc",
"upstream_requests": 1
}Request contract
- Method and path: POST /apis/v1/github/repositories/malware-advisories
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/github/repositories/malware-advisories
{
"operationId": "github.repositories.malware-advisories",
"method": "POST",
"path": "/apis/v1/github/repositories/malware-advisories",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"direction": "asc",
"ecosystem": "npm",
"per_page": 3
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"cursor": {
"description": "next_cursor from the previous page. Pattern: ^[A-Za-z0-9+/=%_-]+$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"direction": {
"default": "desc",
"description": "direction\n\nProvider reference: allowed values [\"asc\", \"desc\"]; default \"desc\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"asc",
"desc"
]
}
},
"ecosystem": {
"description": "Package ecosystem. pip is PyPI, rust is crates.io, composer is Packagist, actions is GitHub Actions.\n\nProvider reference: allowed values [\"rubygems\", \"npm\", \"pip\", \"maven\", \"nuget\", \"composer\", \"go\", \"rust\", \"erlang\", \"actions\", \"pub\", \"other\", \"swift\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"rubygems",
"npm",
"pip",
"maven",
"nuget",
"composer",
"go",
"rust",
"erlang",
"actions",
"pub",
"other",
"swift"
]
}
},
"packages": {
"description": "Package names (or name@version) to check; matches any of them.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"per_page": {
"default": 30,
"description": "per_page\n\nProvider reference: minimum 1; maximum 100; default 30.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"published": {
"description": "Publication date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\\d{4}-\\d{2}-\\d{2}|\\d{4}-\\d{2}-\\d{2}\\.\\.\\d{4}-\\d{2}-\\d{2})$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
Malicious-package advisories from the GitHub Advisory Database (type malware), newest first by default: the package and ecosystem, the malicious version range, CWE-506 style weaknesses, references (often the OpenSSF malicious-packages report) and publication dates. Filter by ecosystem, package names and a publication date range; one cursor page of up to 100. OSV.dev and NVD have no malware browsing, so this is the feed to check a dependency list or watch an ecosystem for newly flagged packages. CC BY 4.0, attribute GitHub.
The response contains the tool result directly.
The provider identifies advisories as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
credits | object[] | |
cve_id | string | |
cvss_v3 | object | CVSS v3 base score and vector; null when GitHub has no v3 score. |
cvss_v4 | object | CVSS v4 base score and vector; null when GitHub has no v4 score. |
cwes | object[] | |
epss | object | FIRST EPSS score GitHub attaches to the CVE; null when the advisory has no scored CVE. |
ghsa_id | string | GitHub Security Advisory id, GHSA-xxxx-xxxx-xxxx. |
github_reviewed_at | string | |
html_url | string | https://github.com/advisories/{ghsa_id} |
identifiers | object[] | |
nvd_published_at | string | |
packages | object[] | Affected packages with version ranges. Unreviewed advisories often have none. |
published_at | string | RFC 3339 UTC |
repository_advisory_url | string | API URL of the repository advisory this was published from, when there is one. |
severity | string | critical, high, medium, low or unknown. |
source_code_location | string | |
summary | string | |
type | string | reviewed: curated by GitHub with package ranges; unreviewed: imported from NVD, often without packages; malware: a malicious package. |
updated_at | string | RFC 3339 UTC |
withdrawn_at | string | Set when GitHub withdrew the advisory. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.