v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

List SAST rules

List SAST rules. Requires scope repositories:read

get/repositories/code/sast/rules

Query parameters

repo_idinteger

Optional: Filters the open issue count to only count the issues related to the specified repo

Response

A list of SAST rules

idstring

The unique identifier of this rule

titlestring

The title of this rule

base_scoreinteger

A numeric value from 1 to 100 indicating how severe the issue associated with this rule is

descriptionstring

A summary of what the issue associated with this rule is

how_to_fixstring

A description on how to fix the issue associated with this SAST rule

language'JS' | 'TS' | 'PHP' | 'Java' | 'Scala' | 'GO' | 'PY' | 'Ruby' | '.NET' | 'RUST' | 'Dart' | 'Swift' | 'Elixir' | 'C' | 'Clojure' | 'kotlin' | 'terraform' | 'generic'

The programming language associated with this SAST rule

open_issues_countinteger

A numeric value indicating how many open single issues are associated with this rule

Example response

[
  {
    "id": "AIK_use_of_polyfill_io",
    "title": "Serving JS code from a malicious domain",
    "base_score": 100,
    "description": "Aikido found references to a malicious domain (e.g. polyfill[.]io, bootcss[.]net). You may be embedding its scripts in your application. The domains are owned by an entity known for serving malicious code.",
    "how_to_fix": "Remove any references to the malicious domain.",
    "language": "JS",
    "open_issues_count": 1
  }
]