Skip to content
Skills Library
Security · Review & audit

enterprise-controls

/enterprise-controls

In an aidd repository, use when code touches SSO, SCIM, MFA, audit logs, admin consoles, or SOC 2 controls.

Repository
aidd ↗
Licence
Apache-2.0
Last repository change
12.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
1
URLs in SKILL.md
8
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

In an aidd repository, use when code touches SSO, SCIM, MFA, audit logs, admin consoles, or SOC 2 controls.

Original author description

In an aidd repository, use when code touches SSO, SCIM, MFA, audit logs, admin consoles, or SOC 2 controls.

How it works

  1. Scope
  2. Standards
  3. Checklist by loop step
  4. Test commands
  5. Owned elsewhere
  6. References
  7. Keep it current
Original SKILL.md headings · 70 lines, 1,199 words
SKILL.md preview
---
name: enterprise-controls
description: "In an aidd repository, use when code touches SSO, SCIM, MFA, audit logs, admin consoles, or SOC 2 controls."
---

<!-- generated by `aidd gen-docs` from schemas/packs.json; edit the registry, not this file -->

# Enterprise controls

## Scope

Applies when the change touches sign-in, SSO, SCIM, MFA, sessions, audit logs, or an admin console. Or any change once `project.compliance` names a target. Not when compliance is off and no sign-in, session, admin, or audit path changes. Neighbours: `aidd-team:secure-coding`, `aidd-team:threat-model`, `aidd-team:incident-response`.

## Standards

| # | Standard | Edition | Checked | Source |
| --- | --- | --- | --- | --- |
| S1 | SOC 2 Trust Services Criteria (CC6 logical access, CC7 system operations, CC8 change management, A1 availability, C1 confidentiality) | 2017, with the 2022 revised points of focus | 2026-11-10 | <https://www.aicpa-cima.com/resources/download/2017-trust-services-criteria-with-revised-points-of-focus-2022> |
| S2 | ISO/IEC 27001:2022 Annex A, the technological controls (8.x) and the incident controls (5.24 to 5.28) | ISO/IEC 27001:2022 with Amd 1:2024 | 2026-10-16 | <https://www.iso.org/standard/27001> |
| S3 | GDPR Art. 25 (data protection by design and by default), Art. 32 (security of processing), and Art. 33 and 34 (breach notification) | Regulation (EU) 2016/679 | 2026-11-10 | <https://eur-lex.europa.eu/eli/reg/2016/679/oj> |
| S4 | OWASP ASVS 5.0: Level 1 by default, Level 2 for authentication, session, and admin surfaces when compliance is on | 5.0.0 | 2026-11-10 | <https://github.com/OWASP/ASVS/releases/tag/v5.0.0_release> |
| S5 | NIST SSDF (SP 800-218) | SP 800-218 v1.1 | 2026-11-10 | <https://csrc.nist.gov/pubs/sp/800/218/final> |
| S6 | SBOM in CycloneDX (with ML-BOM) or SPDX, and VEX | 1.7.2 | 2026-10-16 | <https://github.com/CycloneDX/specification/releases/tag/1.7.2> |
| S7 | NIST SP 800-63-4 Digital Identity Guidelines | SP 800-63-4 | 2026-11-10 | <https://csrc.nist.gov/pubs/sp/800/63/4/final> |
| S8 | ISO/IEC 42001 and ISO/IEC 23894 | ISO/IEC 42001:2023; ISO/IEC 23894:2023 | 2026-10-16 | <https://webstore.iec.ch/en/publication/90574> |

### Open choices

The team decides these. aidd's default holds until a `standards` entry fills one (`aidd standard list`).

| Choice | Question | aidd's default | Options |
| --- | --- | --- | --- |
| `image-scanner` | Which scanner finds vulnerabilities in a shipped container image? | Trivy, pinned, failing the build on a high or critical vulnerability, with its vulnerability database pinned too. | Trivy, Grype, Clair, Docker Scout |

## Checklist by loop step

| Step | Item | Standard |
| --- | --- | --- |
| Before the first edit (`aidd risk --paths`) | Read `project.compliance`. With compliance on (any target), name the controls the change touches (EC-01 to EC-19 in `references/controls.md`) in the Spec's Context. With it off, only this pack's triggers load it. | S1, S2 |
| Specify | A change on a security or auth path links a threat model and an authorization matrix; with compliance on, `aidd validate` warns without them. Each control the change touches has an Acceptance item that proves it. | S4 |
| Specify | The Spec's compliance record names each control id in its Obligations table with the test or record that proves it, so an auditor finds the evidence by id. | S1, S2, S3 |
| Specify | With an AI feature and compliance on, its controls (ISO/IEC 42001 Annex A) map to evidence like the rest, and `aidd-packs:ai-features` holds the AI rules. | S8 |
| Implement | Deny by default: every new endpoint, object, and admin action checks authorization server side. Secrets come from a secret manager, and CI follows `aidd-team:ci-pipeline`. Nothing sensitive reaches a log. | S4, S5 |
| Implement | Every sign-in, permission change, admin action, and data export writes one audit event (who, what, when, which record, from where). The event goes to an append-only store the product itself cannot rewrite. | S1, S2 |
| Review | Walk each control the change touches in `references/controls.md`; a control the Spec named and the diff does not meet is a finding. | S1, S2 |
| Roll out | The security workflow (`aidd-security.yml`: dependency scan, SAST, SBOM, secret scan) is green on the head; the runbook names the breach clocks `aidd-team:incident-response` lists and who starts them. | S5, S6, S3 |

## Test commands

| Command | Proves | How | Standard |
| --- | --- | --- | --- |
| Dependency scan | no dependency in any lockfile has a known vulnerability | `go run github.com/google/osv-scanner/v2/cmd/osv-scanner@v2.7.0 scan source --recursive --allow-no-lockfiles .`, in `aidd-security.yml` and in `tests`, so `aidd test` records it on the head | S5 |
| License check | every dependency's licence is on the allow-list, so a licence off the list, or unknown, waits for a person | `go run github.com/google/osv-scanner/v2/cmd/osv-scanner@v2.7.0 scan source --licenses="MIT,Apache-2.0,BSD-2-Clause,BSD-3-Clause,ISC,0BSD" --recursive --allow-no-lockfiles .`, on your machine whenever a lockfile changes; the team widens the list for a licence a person accepted | S5 |
| Static analysis | no injection, unsafe deserialization, or hard-coded secret pattern in the code | `uvx semgrep==1.180.0 scan --config p/default --metrics off --error` | S5, S4 |
| Secret scan | no secret in the working tree or the history | `gitleaks git --redact .` and `gitleaks dir --redact .` (gitleaks v8.30.1), with the base branch's `.gitleaks.toml` on a pull request, in the `secrets` job of `aidd-security.yml` (GitHub) or the `aidd-secrets` job of `aidd-security.gitlab-ci.yml` (GitLab) | S5 |
| Container scan and SBOM | no high or critical vulnerability in a shipped image, and an SBOM for it | the image-scanner's `tests` entry, such as `trivy image --exit-code 1 --severity HIGH,CRITICAL <image>`, and `syft <image> -o cyclonedx-json` (Syft v1.52.0) | S6, S5 |
| Authorization matrix, one test per cell | each role gets exactly the allow and the deny the matrix states, including across tenants | a parameterized API test generated from the authz matrix rows, in the repository suite | S4, S1 |
| Audit event per admin action | each admin, permission, and export action writes one event with actor, action, target, and time, and the event cannot be updated or deleted | an integration test that performs each action and then tries to update and delete its event as the application's database role | S1, S2 |
| Session and lockout | sign-in throttles or locks after the configured failures, a session expires when idle, and the session id rotates at sign-in and on privilege change | API tests with a frozen clock | S4, S7 |

## Owned elsewhere

- Breach and incident notification clocks: `aidd-team:incident-response`.
- When a change runs the scans, and least privilege in code: `aidd-team:secure-coding`.

## References

- [references/controls.md](references/controls.md): the unified control set, EC-01 to EC-19. For each control: what the product must do, the test or evidence that proves it, and the SOC 2, ISO/IEC 27001:2022, and GDPR items it serves.
- [references/readiness.md](references/readiness.md): the enterprise-deal checklist (SSO, SCIM, MFA, audit log, admin console, residency, SLA, trust center, VPAT), and the readiness ladder from MVP to certification. Also access management (EC-16): joiner, mover, and leaver, access reviews, break-glass, and service accounts.

## Keep it current

Each entry is due after its `review_every_days` (else emerging 90 days, established 365) or by its `review_due`. An emerging one applies only when the change needs it, said in the Spec. One `aidd eval standards` lists as due is looked up in Specify, and a missing one is proposed to aidd's `schemas/industry-standards.json`.
Files in this package (3)
  • SKILL.md 8 KB
  • references/controls.md 6 KB
  • references/readiness.md 5 KB

Versions

The database has no other skills named enterprise-controls.

Database snapshot: 13.11.2026 · package version 4b56f9fa6dbc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100posthog-enterprise-rbac
    Govern PostHog organization access with verified domains, SSO or SAML, SCIM, project roles, scoped keys, and audit evidence. Use when designing or reviewing enterprise access controls. Trigger with "PostHog SSO", "PostHog RBAC", or "PostHog SCIM".
  • 95identity-access-management
    Set up and manage SSO, SCIM provisioning, and MFA for startup teams using Google Workspace, Okta, or Azure AD. Use when centralizing authentication, onboarding SSO, or meeting compliance requirements.
  • 100sentry-enterprise-rbac
    Configure enterprise role-based access control, SSO/SAML2, and SCIM provisioning in Sentry. Use when setting up organization hierarchy, team permissions, identity provider integration, API token governance, or audit logging for compliance. Trigger: "sentry rbac", "sentry…
  • 100saas-sso-scim-enterprise-auth
    Use when implementing tenant-scoped SAML or OIDC SSO, SCIM provisioning, custom domains, IP allowlists, or enterprise auth migration.
  • 100iam
    Routing agent for Identity & Access Management technologies. Covers SSO, MFA, federation, provisioning, governance, and cross-platform IAM architecture. WHEN: \"IAM\", \"identity management\", \"access management\", \"SSO\", \"MFA\", \"federation\", \"SCIM provisioning\",…
  • 100authentication-setup
    Design or refactor product authentication setup for web apps and APIs. Use when choosing hosted/framework-native/platform-native/enterprise-add-on/self-hosted auth, sessions vs JWTs, OAuth/social login, passkeys, org/member models, callback/cookie environment setup, or SSO/SCIM rollout boundaries.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.