SPB Git

Repository Public

scopes.json 4.6 KB 134 lines json

1{2  "comment": "Where each rule file of this directory runs, and the per-rule path exclusions. Every exclusion names the single sanctioned implementation of the construct the rule forbids elsewhere, with its justification. Exclusions are counted in the run metrics (suppressed_by_scope).",3  "severity_mapping": {4    "custom": "metadata.qy_severity of the rule (critical/high/medium/low/info)",5    "registry": "Semgrep ERROR -> high, WARNING -> medium, INFO -> low"6  },7  "inventory_rules": {8    "comment": "Rules that list constructs to review rather than defects. Their matches are counted and written to security/reports/raw/semgrep-inventory.json; they do not become findings.",9    "rules": [10      "qyvora-userdefaults-use",11      "qyvora-debug-else-branch",12      "qyvora-secret-dependent-division",13      "qyvora-parser-force-unwrap",14      "qyvora-parser-unchecked-length-arithmetic"15    ]16  },17  "scopes": [18    {19      "config": "qyvora-general.yaml",20      "targets": [21        "Sources",22        "App/Sources"23      ]24    },25    {26      "config": "qyvora-crypto.yaml",27      "targets": [28        "Sources/QyvoraMath",29        "Sources/QyvoraKeccak",30        "Sources/QyvoraSymmetric",31        "Sources/QyvoraMLKEM",32        "Sources/QyvoraMLDSA",33        "Sources/QyvoraSLHDSA",34        "Sources/QyvoraSecp256k1",35        "Sources/QyvoraCrypto",36        "Sources/QyvoraCore",37        "Sources/QyvoraVault",38        "Sources/QyvoraIdentity",39        "Sources/QyvoraRecovery",40        "Sources/QyvoraStorage",41        "Sources/QyvoraEd25519",42        "Sources/QyvoraSolana",43        "Sources/QyvoraTron",44        "Sources/QyvoraWallet"45      ]46    },47    {48      "config": "qyvora-parsers.yaml",49      "targets": [50        "Sources/QyvoraMath",51        "Sources/QyvoraKeccak",52        "Sources/QyvoraSymmetric",53        "Sources/QyvoraMLKEM",54        "Sources/QyvoraMLDSA",55        "Sources/QyvoraSLHDSA",56        "Sources/QyvoraSecp256k1",57        "Sources/QyvoraCrypto",58        "Sources/QyvoraCore",59        "Sources/QyvoraBitcoin",60        "Sources/QyvoraEthereum",61        "Sources/QyvoraStorage",62        "Sources/QyvoraNetworking",63        "Sources/QyvoraVault",64        "Sources/QyvoraIdentity",65        "Sources/QyvoraRecovery",66        "Sources/QyvoraQuantumShield",67        "Sources/QyvoraMigration",68        "Sources/QyvoraWallet",69        "Sources/QyvoraEd25519",70        "Sources/QyvoraSolana",71        "Sources/QyvoraTron"72      ]73    },74    {75      "config": "registry:swift",76      "targets": [77        "Sources",78        "App/Sources"79      ]80    },81    {82      "config": "registry:secrets",83      "targets": [84        "Sources",85        "App",86        "Scripts",87        "security/audit",88        "security/policies",89        "docs",90        "site",91        "site-server"92      ]93    }94  ],95  "exclusions": [96    {97      "rule": "qyvora-insecure-randomness",98      "path": "Sources/QyvoraMath/SystemRandom.swift",99      "justification": "The single sanctioned entropy source: the only call to SecRandomCopyBytes of the engine."100    },101    {102      "rule": "qyvora-pasteboard-outside-helper",103      "path": "Sources/QyvoraUI/Feedback.swift",104      "justification": "QClipboard, the sanctioned clipboard helper (local-only and expiring items for sensitive values)."105    },106    {107      "rule": "qyvora-file-write-without-protection",108      "path": "Sources/QyvoraStorage/FileStore.swift",109      "justification": "FileStore, the sanctioned file writer (data protection class and backup exclusion applied there)."110    },111    {112      "rule": "qyvora-file-write-without-protection",113      "path": "Sources/qyvora-bench/",114      "justification": "macOS command-line benchmark tool: not part of the iOS application; it writes benchmark reports chosen by the operator."115    },116    {117      "rule": "qyvora-debug-flag-runtime",118      "path": "Sources/qyvora-bench/",119      "justification": "macOS command-line benchmark tool: reading its own command-line arguments is its interface."120    },121    {122      "rule": "qyvora-tron-api-key-header",123      "path": "Sources/QyvoraTron/TronClient.swift",124      "justification": "TronClient.request, the single place where the header is set, behind the TronGrid-host and https checks (verified by QyvoraWalletTests.TronAuditRegressionTests)."125    },126    {127      "rule": "qyvora-tron-api-key-value-use",128      "path": "Sources/QyvoraTron/TronClient.swift",129      "justification": "TronClient.request reads the value to set the header; TronAPIKey itself is defined in this module."130    }131  ],132  "comment_registry": "The registry pack p/mobsfscan is not listed: it is the rule set of mobsfscan, executed by the mobsfscan runner (running it here too would report every match twice)."133}134
Files main
Menu

Theme