Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

security

/security

Podpowiada zabezpieczenia OWASP Top 10, obsługę sekretów, walidację granic, JWT i model zagrożeń STRIDE przy audytach i zmianach uwierzytelniania.

Licencja
MIT
Ostatnia zmiana repozytorium
12.05.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.05.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Podpowiada zabezpieczenia OWASP Top 10, obsługę sekretów, walidację granic, JWT i model zagrożeń STRIDE przy audytach i zmianach uwierzytelniania.

Oryginalny opis (EN)

Application security guidance covering OWASP Top 10 mitigations, secrets handling, boundary validation, SQL injection prevention, JWT usage, dependency scanning, and STRIDE threat modeling. Use for audits, auth changes, or any security-sensitive code.

Jak działa

  1. When to Activate
  2. OWASP Quick Reference
  3. Secrets and Boundary Validation
  4. SQL Injection and JWTs
  5. Dependency Scanning and STRIDE
  6. Checklist
Sekcje z nagłówków SKILL.md, w oryginale · 112 linii, 596 słów
Podgląd SKILL.md
---
name: security
description: Application security guidance covering OWASP Top 10 mitigations, secrets handling, boundary validation, SQL injection prevention, JWT usage, dependency scanning, and STRIDE threat modeling. Use for audits, auth changes, or any security-sensitive code.
---

# Security

Secure the system at boundaries, minimize trust, and make risky behavior explicit in code, configuration, and review.

## When to Activate

- Add a new auth or authorization flow
- Handle user input at an external boundary
- Write database queries or ORM filters
- Review secrets, tokens, or credential handling
- Audit dependencies for known vulnerabilities
- Threat-model a new feature or integration
- Review logging for security-critical events

## OWASP Quick Reference

| Risk | Default Mitigation |
| --- | --- |
| Broken access control | Enforce authorization on every sensitive action |
| Cryptographic failures | Use standard libs and managed secrets |
| Injection | Parameterized queries, escaped templates |
| Insecure design | Threat-model before shipping privileged flows |
| Security misconfiguration | Harden defaults, disable debug in production |
| Vulnerable components | Scan dependencies continuously |
| Identification/auth failures | Strong session rotation and token expiry |
| Integrity failures | Verify signed artifacts and trusted inputs |
| Logging/monitoring failures | Emit actionable audit logs |
| SSRF | Restrict outbound targets and metadata access |

## Secrets and Boundary Validation

| Preferred | Avoid |
| --- | --- |
| Runtime environment variables or secret managers | Hardcoded tokens in source |
| `.env.example` placeholders | Real secrets in sample files |
| Secret rotation playbooks | Long-lived shared credentials |

Rules:

- Validate at request, message, CLI, and job-input boundaries.
- Convert external data into typed internal models once.
- Do not scatter ad hoc validation deep inside core logic unless it enforces domain invariants.

## SQL Injection and JWTs

BAD

```python
query = f"SELECT * FROM users WHERE email = '{email}'"
cursor.execute(query)
```

GOOD

```python
cursor.execute("SELECT * FROM users WHERE email = %s", (email,))
```

GOOD

```ts
await db.query("SELECT * FROM users WHERE email = $1", [email]);
```

| Rule | Why |
| --- | --- |
| Keep JWT lifetimes short | Limits replay window |
| Validate `iss`, `aud`, `exp`, `nbf` | Prevents token confusion |
| Prefer asymmetric signing for distributed verification | Better key separation |
| Store refresh tokens securely and revoke on reuse | Limits session theft |
| Never put secrets or mutable authorization state in JWT payloads | Tokens are bearer artifacts |

## Dependency Scanning and STRIDE

| Frequency | Action |
| --- | --- |
| On every PR | Scan manifests and lockfiles |
| Weekly | Review new advisories for production dependencies |
| Before release | Confirm no unresolved critical issues |

| Threat | Ask |
| --- | --- |
| Spoofing | Can an attacker impersonate a principal? |
| Tampering | Can data be altered without detection? |
| Repudiation | Is there enough audit evidence? |
| Information Disclosure | Can sensitive data leak? |
| Denial of Service | Can work queues or endpoints be exhausted? |
| Elevation of Privilege | Can low-privilege actors cross boundaries? |

BAD

```ts
const token = process.env.JWT_SECRET || "dev-secret";
```

GOOD

```ts
const token = env.JWT_SECRET;
```

## Checklist

- [ ] Secrets are loaded from runtime configuration, not source
- [ ] External input is validated once at the boundary
- [ ] Queries use parameters rather than string interpolation
- [ ] JWTs validate issuer, audience, and expiry claims
- [ ] Sensitive operations emit audit-grade logs
- [ ] Dependency scanning is part of CI or release checks
- [ ] STRIDE risks were considered for new privileged flows

Wersje

RepozytoriumWynikLicencja
Ta strona · kid-sid/codex-spellbook100MIT
flavien-ia/hypervibe-craft100Apache-2.0
boshu2/agentops100Apache-2.0
asckye/tia_portal_openness_mcp100MIT
Esposter/Esposter100Apache-2.0
event4u-app/agent-config100MIT
motormetrics/motormetrics100MIT
motormetrics/motormetrics100MIT
lamngockhuong/aiteamkit100MIT

Migawka bazy z 28.10.2026 · wersja paczki 5c97854be77a (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100flux-threat-model
    Tworzy model zagrożeń STRIDE dla repozytorium przy konfiguracji monitoringu bezpieczeństwa, po zmianach architektury i w audytach bezpieczeństwa.
  • 85security-review-checklists
    Dostarcza listy kontrolne przeglądu bezpieczeństwa kodu i uwierzytelniania oraz modelowanie zagrożeń według STRIDE i OWASP Top 10.
  • 100threat-model
    Opracowuje model zagrożeń dla logowania, płatności, uploadu plików i systemów AI: aktywa, STRIDE i zabezpieczenia, bez kodu.
  • 90security-and-hardening
    Stosuje zasady OWASP Top 10, wzorce uwierzytelniania, zarządzanie sekretami, audyt zależności i walidację na granicach systemu przy obsłudze danych użytkownika i integracji.
  • 90security-threat-modeling
    Przeprowadza model zagrożeń w stylu STRIDE dla komponentu: aktywa, punkty wejścia, granice zaufania i środki zaradcze, z właścicielem każdego zagrożenia.
  • 100security-audit
    Audytuje bezpieczeństwo pod kątem OWASP, STRIDE i powierzchni ataku AI, w tym walidacji wywołań narzędzi i łańcucha dostaw umiejętności.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.