# BRAINIAC Repository Security Scorecard

> BRAINIAC Repository Security Scorecard is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-17).

Fetches the OpenSSF Scorecard security score and check details for a given GitHub or GitLab repository

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/cybersecurity-intelligence/repository/scorecard?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-repository-security-scorecard-b4b55d00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cxc4MMEFiioFMckCA2GPc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-repository-security-scorecard-b4b55d00 -d '<json body>'
```

Example prompt: Can you pull the OpenSSF Scorecard security score for https://github.com/expressjs/express and tell me which checks passed or failed?

## When to prefer this

Use this endpoint when you need a quick, structured security assessment of an open source repository based on the widely-recognized OpenSSF Scorecard framework. It is ideal for supply chain risk evaluation, dependency vetting, and DevSecOps workflows where you want heuristic security signals (maintenance activity, security policy presence, code review practices) without setting up your own OpenSSF Scorecard infrastructure. Prefer this over raw GitHub API calls when you specifically want normalized security scores and check results.

## Known failure modes

- Repository URL not supported (only GitHub and GitLab are covered) — returns partial or empty scorecard data
- Repository is private or inaccessible — scorecard data unavailable
- OpenSSF Scorecard API unavailable — upstream timeout or error
- Malformed repository URL input — validation error returned
- Repository too new or obscure — no scorecard data indexed yet

## How this service works

Retrieve the official OpenSSF Scorecard result for a GitHub, GitLab or other supported repository.

## Output

Returns a JSON object containing the repository URL, an overall numeric security score (e.g. 8.6/10), a list of individual scorecard checks with their names and scores (e.g. Maintained, Security-Policy, Code-Review), the data sources consulted including their URLs and retrieval timestamps, and a list of known limitations about the scoring methodology.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "repository": {
   "type": "string",
   "format": "uri"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sources": [
   {
    "url": "https://api.scorecard.dev/projects/github.com/ossf/scorecard",
    "source": "OpenSSF Scorecard API",
    "retrievedAt": "2026-10-29T12:00:00.000Z"
   }
  ],
  "scorecard": {
   "score": 8.6,
   "checks": [
    {
     "name": "Maintained",
     "score": 10
    },
    {
     "name": "Security-Policy",
     "score": 10
    }
   ]
  },
  "repository": "https://github.com/ossf/scorecard",
  "limitations": [
   "Scorecard results are from OpenSSF.",
   "Only GitHub, GitLab, and supported repositories are included.",
   "…"
  ],
  "retrievedAt": "2026-10-29T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-repository-security-scorecard-b4b55d00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
