# robustastudio/semsec architecture

> Architecture diagram of the GitHub repository robustastudio/semsec, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/robustastudio/semsec
- Repository: https://github.com/robustastudio/semsec

## Overview

SemSec is a Semgrep ruleset, not a standalone scanner: users invoke Semgrep with the repository as configuration and a project as the scan target. Semgrep applies language-specific taint rules, cross-language authentication and cryptography rules, and provider-specific secret detectors, then reports findings. The README documents these configuration roles and scan relationships; no rule source was provided to establish finer-grained internal calls or data flow.

Main entry points: [`python-web-taint.yaml`](https://github.com/robustastudio/semsec/blob/main/python-web-taint.yaml) (Python Web Taint), [`javascript-web-taint.yaml`](https://github.com/robustastudio/semsec/blob/main/javascript-web-taint.yaml) (JavaScript Web Taint), [`java-web-taint.yaml`](https://github.com/robustastudio/semsec/blob/main/java-web-taint.yaml) (Java Web Taint), [`php-web-taint.yaml`](https://github.com/robustastudio/semsec/blob/main/php-web-taint.yaml) (PHP Web Taint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web Vulnerability Rules"]
  node_python["Python Web Taint"]
  node_javascript["JavaScript Web Taint"]
  node_java["Java Web Taint"]
  node_php["PHP Web Taint<br/>[php-web-taint.yaml]"]
end

subgraph group_cross["Cross-Language Rules"]
  node_auth["Auth Access Control"]
  node_crypto["Crypto Rules"]
end

subgraph group_secrets["Secret Detection"]
  node_hardcoded["Provider Secret Rules"]
end

node_user(("Security Team"))
node_semgrep["Semgrep Scanner"]
node_target["Project Source"]
node_findings["Scan Findings"]

node_user -->|"invokes"| node_semgrep
node_semgrep -->|"loads config"| node_python
node_semgrep -->|"loads config"| node_javascript
node_semgrep -->|"loads config"| node_java
node_semgrep -->|"loads config"| node_php
node_semgrep -->|"loads config"| node_auth
node_semgrep -->|"loads config"| node_crypto
node_semgrep -->|"loads config"| node_hardcoded
node_semgrep -->|"scans"| node_target
node_semgrep -->|"emits"| node_findings

click node_python "https://github.com/robustastudio/semsec/blob/main/python-web-taint.yaml"
click node_javascript "https://github.com/robustastudio/semsec/blob/main/javascript-web-taint.yaml"
click node_java "https://github.com/robustastudio/semsec/blob/main/java-web-taint.yaml"
click node_php "https://github.com/robustastudio/semsec/blob/main/php-web-taint.yaml"
click node_auth "https://github.com/robustastudio/semsec/blob/main/auth-access-control.yaml"
click node_crypto "https://github.com/robustastudio/semsec/blob/main/crypto-secrets.yaml"
click node_hardcoded "https://github.com/robustastudio/semsec/blob/main/hardcoded-secrets.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_python,node_javascript,node_java,node_php toneBlue
class node_auth,node_crypto toneAmber
class node_hardcoded toneMint
class node_user,node_semgrep,node_target,node_findings toneIndigo
```

## Components

### Web Vulnerability Rules

- [Python Web Taint](https://github.com/robustastudio/semsec/blob/main/python-web-taint.yaml): `python-web-taint.yaml`
- [JavaScript Web Taint](https://github.com/robustastudio/semsec/blob/main/javascript-web-taint.yaml): `javascript-web-taint.yaml`
- [Java Web Taint](https://github.com/robustastudio/semsec/blob/main/java-web-taint.yaml): `java-web-taint.yaml`
- [PHP Web Taint](https://github.com/robustastudio/semsec/blob/main/php-web-taint.yaml): `php-web-taint.yaml`

### Cross-Language Rules

- [Auth Access Control](https://github.com/robustastudio/semsec/blob/main/auth-access-control.yaml): `auth-access-control.yaml`
- [Crypto Rules](https://github.com/robustastudio/semsec/blob/main/crypto-secrets.yaml): `crypto-secrets.yaml`

### Secret Detection

- [Provider Secret Rules](https://github.com/robustastudio/semsec/blob/main/hardcoded-secrets.yaml): `hardcoded-secrets.yaml`

### Other components

- **Security Team**
- **Semgrep Scanner**
- **Project Source**
- **Scan Findings**

## Connections

- Security Team → Semgrep Scanner: invokes (evidence: `README.md`)
- Semgrep Scanner → Python Web Taint: loads config (evidence: `README.md`)
- Semgrep Scanner → JavaScript Web Taint: loads config (evidence: `README.md`)
- Semgrep Scanner → Java Web Taint: loads config (evidence: `README.md`)
- Semgrep Scanner → PHP Web Taint: loads config (evidence: `README.md`)
- Semgrep Scanner → Auth Access Control: loads config (evidence: `README.md`)
- Semgrep Scanner → Crypto Rules: loads config (evidence: `README.md`)
- Semgrep Scanner → Provider Secret Rules: loads config (evidence: `README.md`)
- Semgrep Scanner → Project Source: scans (evidence: `README.md`)
- Semgrep Scanner → Scan Findings: emits (evidence: `README.md`)
