# AI Sec Watch: how an agent checks a project Someone asked you to check a software project against AI Sec Watch (https://aisecwatch.com). This page gives the steps in the order to take them. Everything on it is open: no key and no login. ## What the check answers For the dependency files of a project, Stack Check reports: - the published advisories that affect the exact versions the files pin, with the versions that fix each - the LLM components in use (LLM SDKs, agent frameworks, MCP components), and the dependencies that reach one through another package - the authority that the dependencies hand to a language model (code execution, file system, shell, browser, HTTP, MCP tools) - controls that follow from those facts ## 1. Send the dependency files Read the project's manifests and lockfiles and send their text, at most 5 files in one request. Prefer a lockfile. Only an exact version can be matched to an advisory, and a dependency given as a version range is not checked. Files that are read: package.json, package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, pyproject.toml, poetry.lock, uv.lock, Pipfile.lock, go.mod, go.sum, Cargo.toml, Cargo.lock, or a CycloneDX or SPDX SBOM in JSON. With the MCP server (step 5), call the tool `check_stack`: {"files": [{"filename": "requirements.txt", "content": ""}]} Without it, send the same JSON: POST https://aisecwatch.com/api/v1/check?format=markdown Content-Type: application/json With `?format=markdown` the answer is the report as text. Without it the answer is JSON with every field, and `?format=cyclonedx` returns a CycloneDX 1.6 AI-BOM. The files are processed in memory and not stored. Package names and pinned versions are sent to OSV (osv.dev) to find advisories. Send `"osv": false` to turn that off; the report then holds no advisories. ## 2. Read the report - The first line counts the dependencies, how many are pinned, the LLM components and the advisories. The next names the authority that the dependencies hand to a model. - "Vulnerabilities" has one row for each pinned version and advisory, most severe first: the package and version, the advisory's identifier with a link, the severity and the versions that fix it. "see advisory" means no severity was given, and "no fix listed" means the advisory names no fixed version. "(indirect)" marks a package the project does not depend on directly. - The table holds at most 50 rows. When more advisories match, a line under the table says so and gives the count for each package. The JSON answer holds them all. - "LLM components" lists the LLM SDKs, agent frameworks and MCP components among the dependencies, with the kind of each. "Reached through dependencies" gives the path from a package to one. - "Controls" are steps that follow from what was found, each with the fact behind it. - A line that begins with ">" is a note on what could not be checked. An identifier that links to https://aisecwatch.com/issues/ has a record on AI Sec Watch. Read it with the tool `get_issue` for a summary and, on a CVE, the EPSS score and the CISA KEV status. An identifier that links to osv.dev has no record here. ## 3. Tell the person - Start with the versions that have a critical or high advisory, and give the version that fixes each. - For a package with several advisories, look for one version at or above every fix listed for it, and check it against the project's other constraints before you propose it. - After a change to the files, run the check again on the new text to confirm what is left. - Say what was not checked: dependencies without an exact version, files that were not sent, and anything the notes report. - When nothing is found, say that no advisory was found for those versions in the sources that are read. That is not a statement that the project is safe. - Labels and summaries are produced automatically and can be wrong. The linked source is authoritative, so open it before you act on a detail. - Propose the upgrades. Change the project's files only if the person asked for that. ## 4. Look something up - One package: the tool `check_llm_exposure` with `{"package": "pypi:langchain"}`, or GET https://aisecwatch.com/api/v1/packages/pypi/langchain. The ecosystems are pypi, npm, cargo and go. The answer says whether the package depends on an LLM SDK, agent framework or MCP component and since which release, the authority its dependencies grant, and the advisories that name it. A package the registry does not hold yet is queued for the next refresh. - One advisory: the tool `get_issue` with `{"id": ""}`, or GET https://aisecwatch.com/api/v1/advisories/{id}. - A search: the tool `search_issues`, or GET https://aisecwatch.com/api/v1/issues?search=langchain&severity=critical&issueType=vulnerability. - Package or vendor names without versions: the tool `scan_stack`. It matches by name, so it also returns advisories for versions the project does not use. ## 5. Stay connected The MCP server is at https://aisecwatch.com/api/mcp (Streamable HTTP, no key). In a client that reads a JSON configuration: {"mcpServers": {"aisecwatch": {"type": "http", "url": "https://aisecwatch.com/api/mcp"}}} Its tools: - `search_issues`: Search AI security advisories and news - `get_issue`: Get one AI security record - `scan_stack`: Scan package and vendor names - `latest_digest`: Latest daily AI security digest - `dataset_info`: The AI Sec Watch research dataset - `check_stack`: Stack Check: diagnose dependency files - `check_llm_exposure`: Look up a package in the Exposure Registry The report gives the address of a feed of new advisories for the packages that were checked. The address carries the package names, and nothing is stored. ## Limits - At most 10 checks a minute and 60 other requests a minute from one address. An answer with status 429 carries a Retry-After header. - At most 5 files in a request: manifests and lockfiles up to 2 MB each, SBOMs up to 5 MB, 6 MB in total. - Coverage follows the sources that are read. A vulnerability that none of them reports has no record here. ## More - Every endpoint: https://aisecwatch.com/api/v1/openapi.json - The site described for programs: https://aisecwatch.com/llms.txt - The research dataset, for an agent that helps with a paper: https://aisecwatch.com/dataset.md