Why this matters
Structured logs are evidence for SOC 2.
Log security events via ILogger with properties {Action, UserId, ResourceId, Result, TraceId}; configure sink to JSON and send to SIEM.
Structured logs are evidence for SOC 2.
Side-by-side examples engineers can pattern-match during review.
logger.LogInformation("user updated");logger.LogInformation("{Action} {UserId} {ResourceId} {Result} {TraceId}", "user.update", uid, rid, "success", tid);logger.LogInformation("{Action}", "auth.login")logger.LogInformation("login")From the same buckets as this rule.
Public services must require TLSv1.2 or higher and set HSTS (max-age ≥ 15552000, includeSubDomains). Reject plaintext HTTP and weak ciphers; cookies must be Secure and HttpOnly with SameSite set.