A security compliance standard/framework.
| 27 | @dataclass |
| 28 | class SecurityStandard: |
| 29 | """A security compliance standard/framework.""" |
| 30 | id: str |
| 31 | name: str |
| 32 | version: str |
| 33 | description: str |
| 34 | controls: list[ControlCheck] = field(default_factory=list) |
| 35 | |
| 36 | def get_control(self, control_id: str) -> ControlCheck | None: |
| 37 | for control in self.controls: |
| 38 | if control.id == control_id: |
| 39 | return control |
| 40 | return None |
| 41 | |
| 42 | |
| 43 | # OWASP Top 10 (2021) |
| 44 | OWASP_TOP_10 = SecurityStandard( |