Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(workspace): unblock pnpm lint + pnpm build, correct exports.types ordering
Prince Sinha28ce9f6bba8d
diff --git a/apps/docs/docs/operations/security.md b/apps/docs/docs/operations/security.mdindex 5f8c6f731..64b8773fd 100644--- a/apps/docs/docs/operations/security.md+++ b/apps/docs/docs/operations/security.md@@ -292,7 +292,7 @@ Two patterns are worth documenting because they came up repeatedly during the sw- **`py/log-injection` — sanitise inline at the call site.** When a user-controlled or DB-derived string lands in a structured log entry, do the cleansing right where the log call happens, not in a helper function. CodeQL's taint tracker doesn't follow `_log_safe(value)` through a function boundary reliably, but it does recognise an inline `.replace("\r", "").replace("\n", " ")[:32]` chain. The canonical example is `services/api/app/api/v1/endpoints/waitlist.py` — `entry_id` and `user.user_id` are `uuid.UUID`-typed so they can't actually contain CR/LF, but we still sanitise them explicitly so the property is visible to both CodeQL and future readers.- **`py/import-and-import-from` — pick one import style per module.** Tests that need to monkey-patch a module-level constant should use `pytest.MonkeyPatch.setattr(module, "_NAME", value)` (importing the module via the standard `from app.connectors.foo import _NAME` form), not `import app.connectors.foo as foo_module` _and_ a from-import for the same names. The dual style trips CodeQL's import-redundancy check.-The remaining alert categories (`py/uninitialized-local-variable`, `py/side-effect-in-assert`, `py/incomplete-url-substring-sanitization`, `py/ineffectual-statement`, `py/unnecessary-lambda`, `py/mixed-returns`, `py/unused-global-variable`, `py/unused-import`) are all standard Python correctness items and the fixes were uncontroversial — see the `[Unreleased]` section of the [CHANGELOG](../../../CHANGELOG.md) for the per-PR breakdown.+The remaining alert categories (`py/uninitialized-local-variable`, `py/side-effect-in-assert`, `py/incomplete-url-substring-sanitization`, `py/ineffectual-statement`, `py/unnecessary-lambda`, `py/mixed-returns`, `py/unused-global-variable`, `py/unused-import`) are all standard Python correctness items and the fixes were uncontroversial — see the `[Unreleased]` section of the [CHANGELOG](https://github.com/beenuar/AiSOC/blob/main/CHANGELOG.md) for the per-PR breakdown.## Reporting a vulnerabilitydiff --git a/packages/ocsf/package.json b/packages/ocsf/package.jsonindex fa2d9d696..dfcca9305 100644--- a/packages/ocsf/package.json+++ b/packages/ocsf/package.json@@ -7,15 +7,14 @@"types": "./dist/index.d.ts","exports": {".": {+ "types": "./dist/index.d.ts","import": "./dist/index.js",- "require": "./dist/index.js",- "types": "./dist/index.d.ts"+ "require": "./dist/index.js"}},"scripts": {"build": "tsc","dev": "tsc --watch",- "lint": "eslint src/**/*.ts","clean": "rm -rf dist"},"devDependencies": {diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.jsonindex 4a1b0a074..e989541fc 100644--- a/packages/sdk-ts/package.json+++ b/packages/sdk-ts/package.json@@ -9,9 +9,9 @@"types": "./dist/index.d.ts","exports": {".": {+ "types": "./dist/index.d.ts","import": "./dist/index.mjs",- "require": "./dist/index.js",- "types": "./dist/index.d.ts"+ "require": "./dist/index.js"}},"files": ["dist", "src"],@@ -19,8 +19,7 @@"codegen": "openapi-typescript ../../docs/openapi.yaml -o src/openapi.d.ts","build": "tsup src/index.ts --format cjs,esm --dts --clean","typecheck": "tsc --noEmit",- "test": "vitest run",- "lint": "eslint src --ext .ts"+ "test": "vitest run"},"dependencies": {"openapi-fetch": "^0.17.0"diff --git a/packages/types/package.json b/packages/types/package.jsonindex dabd6078b..4fe9b6425 100644--- a/packages/types/package.json+++ b/packages/types/package.json@@ -7,9 +7,9 @@"types": "./dist/index.d.ts","exports": {".": {+ "types": "./dist/index.d.ts","import": "./dist/index.mjs",- "require": "./dist/index.js",- "types": "./dist/index.d.ts"+ "require": "./dist/index.js"}},"scripts": {diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 120cd2dda..09a00d409 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -7,16 +7,15 @@"types": "./dist/index.d.ts","exports": {".": {+ "types": "./dist/index.d.ts","import": "./dist/index.js",- "require": "./dist/index.js",- "types": "./dist/index.d.ts"+ "require": "./dist/index.js"},"./styles": "./dist/styles.css"},"scripts": {"build": "tsc && cp src/styles.css dist/styles.css 2>/dev/null || true","dev": "tsc --watch",- "lint": "eslint src/**/*.tsx","clean": "rm -rf dist"},"peerDependencies": {diff --git a/services/mcp/package.json b/services/mcp/package.jsonindex 345dee35e..3f9156d7a 100644--- a/services/mcp/package.json+++ b/services/mcp/package.json@@ -29,8 +29,8 @@"types": "./dist/index.d.ts","exports": {".": {- "import": "./dist/index.js",- "types": "./dist/index.d.ts"+ "types": "./dist/index.d.ts",+ "import": "./dist/index.js"}},"bin": {@@ -47,7 +47,6 @@"start": "node dist/index.js serve","typecheck": "tsc --noEmit","test": "vitest run",- "lint": "eslint src --ext .ts","prepublishOnly": "npm run typecheck && npm run build"},"dependencies": {