putty
API ReferenceEngine

Scan a project for drainer and phishing patterns

Runs the static drainer / phishing scanner over every readable source file in the project's sandbox and returns every hit with the rule that fired, the file, and the line. This is the same scanner and the same six rules the export gate uses, so `blocked: true` here means the export gate would refuse this project too. The matched text is redacted before it leaves the process; a seed phrase or private key is never returned whole. Read-only: nothing in the project is written or deleted.

POST
/projects/{projectId}/scan

Runs the static drainer / phishing scanner over every readable source file in the project's sandbox and returns every hit with the rule that fired, the file, and the line. This is the same scanner and the same six rules the export gate uses, so blocked: true here means the export gate would refuse this project too. The matched text is redacted before it leaves the process; a seed phrase or private key is never returned whole. Read-only: nothing in the project is written or deleted.

Path Parameters

projectId*string

The project the operation is about.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/scan"
{  "projectId": "string",  "filesScanned": 0,  "findings": [    {      "rule": "seed_phrase",      "file": "string",      "line": 1,      "match": "string"    }  ],  "blocked": true}