Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Budowanie i kod

audit-logging

/audit-logging

Zapisuje zdarzenia istotne dla bezpieczeństwa w odpornym na manipulacje dzienniku tylko do dopisywania, który mówi, kto co i kiedy zrobił.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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 05.09.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

Zapisuje zdarzenia istotne dla bezpieczeństwa w odpornym na manipulacje dzienniku tylko do dopisywania, który mówi, kto co i kiedy zrobił.

Oryginalny opis (EN)

Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data.

Jak działa

  1. Method
  2. Checks
  3. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 51 linii, 446 słów
Podgląd SKILL.md
---
name: audit-logging
description: Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data.
---

# Audit logging

An audit log is the record you reach for after the fact: a breach, a dispute,
an auditor asking who touched an account. It fails two ways, by never capturing
the event or by letting the attacker edit it on the way out. A method has to
close both, so the log is complete and any change to it announces itself.

## Method

1. **Capture the full sentence per event:** actor (user id plus how they
   authenticated), action, target resource, timestamp in UTC ISO 8601, source
   (IP and request id), and outcome. On a denial, add the reason. A record
   missing the actor or the outcome cannot answer the question you will ask.
2. **Split the audit stream from application logs.** Send it to a dedicated
   append-only sink: an S3 bucket with Object Lock (WORM), AWS CloudTrail, or a
   write-only topic. Operational logs rotate and get pruned for cost, and audit
   records must never share that fate.
3. **Chain entries by hash so edits show.** Each record stores the SHA-256 of
   the previous record concatenated with its own payload, so deleting or
   altering one entry breaks every link after it. Re-verify the chain on a
   schedule and alert the instant a link fails to match.
4. **Give the writer INSERT and nothing else.** The account that appends audit
   rows holds no UPDATE or DELETE grant. Retention and expiry run as a separate
   job under separate credentials, so the path that writes cannot also rewrite.
5. **Log the events that carry weight:** authentication success and failure,
   authorization denials, role and privilege changes, secret access,
   configuration changes, and data export. Leave out high-volume routine reads
   unless the resource read is itself sensitive.
6. **Keep the secret out of the record.** Log that a password changed, not the
   new password; that a token was read, not its bytes. Mask personal data down
   to what an investigator genuinely needs to see.
7. **Make timestamps trustworthy.** Run NTP on every host, store UTC, and record
   both event time and ingest time so a backdated or delayed entry stands apart
   instead of blending in.

## Checks

- Can you answer "who deleted this record, and when" from the audit log alone,
  with no help from the application database?
- Does altering a single past entry get caught within one verification cycle?
- Is the sink genuinely append-only, writable but not deletable by the runtime
  role the application actually uses?

## Boundaries

Audit logging proves what happened; it neither prevents the action nor serves
as your general operational log, which structured-logging covers. Retention
periods and mandated formats (SOX, HIPAA, PCI DSS) come from compliance and
legal, not from this skill.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
TerminalSkills/skills100Apache-2.0
FrancoStino/opencode-skills-collection100MIT
claude-dev-suite/claude-dev-suite100MIT
eyesecurity/skills100GPL-3.0
BagelHole/DevOps-Security-Agent-Skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki 8884fd0a8fc6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 100auditing-security-logging-completeness
    Sprawdza, czy aplikacja zapisuje zdarzenia bezpieczeństwa potrzebne w śledztwie i czy same logi nie ujawniają sekretów ani danych osobowych.
  • 100security-sensitive-path-instrumenter
    Instrumentuje ścieżki uwierzytelniania, autoryzacji i obsługi danych wejściowych, aby monitorować w czasie działania zdarzenia istotne dla bezpieczeństwa: logowania, decyzje dostępu, błędy walidacji i sesje.
  • 90logging-failures
    Wykrywa brakujące logi zdarzeń bezpieczeństwa, zapisane sekrety i wstrzyknięcia do logów przez dane wejściowe w kodzie obsługującym zdarzenia.
  • 100configuring-audit-logging
    Konfiguruje audyt SQL w klastrach CockroachDB, rejestrując uwierzytelnianie, zmiany uprawnień i dostęp do wrażliwych danych, wraz z politykami opartymi na rolach i weryfikacją ustawień.
  • 100logging
    Sprawdza, czy logowanie istotne dla bezpieczeństwa w Kubernetes i płaszczyźnie kontrolnej chmury jest włączone, kompletne, wysyłane poza hosta i odporne na manipulację.
  • 90logging-monitoring
    Przegląda logowanie i monitoring pod kątem widoczności bezpieczeństwa, wycieków danych wrażliwych i pokrycia audytu.

Uwagi i zgłoszenia

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