Security Engineering References

Purpose

Quick-reference material for security engineering.

OWASP Top 10 (2021)

RankCategory
A01Broken Access Control
A02Cryptographic Failures
A03Injection
A04Insecure Design
A05Security Misconfiguration
A06Vulnerable and Outdated Components
A07Identification and Authentication Failures
A08Software and Data Integrity Failures
A09Security Logging and Monitoring Failures
A10Server-Side Request Forgery (SSRF)

STRIDE Threat Model

ThreatDefinitionExample
SpoofingImpersonating another user or system.Session hijacking.
TamperingUnauthorized modification of data or code.Modifying request params.
RepudiationDenying an action was performed.User denies transaction.
InformationExposing information to unauthorized parties.Data leak via API.
Disclosure
Denial of ServiceMaking the system unavailable.Flooding an endpoint.
Elevation ofGaining unauthorized higher permissions.Privilege escalation.
Privilege

Security Tools Quick Reference

ToolTypePurposeRun
BrakemanSASTRails static security analysisbrakeman -q --no-pager
bundler-auditSCARuby dependency vulnerabilitiesbundler-audit check --update
TrivySCAContainer and filesystem scanning=trivy fs . =
OWASP ZAPDASTDynamic web application scanningzap.sh -cmd -quickurl
git-secretsSecretsPrevent committing secretsgit secrets --scan
truffleHogSecretsScan git history for secrets=trufflehog git file://. =

Security Response Timeline

SeverityResponse TimeExamples
CriticalWithin 24 hrsRemote code execution, auth bypass, data
breach.
HighWithin 1 weekSignificant data exposure, privilege
escalation.
MediumWithin 1 monthLimited info disclosure.
LowNext releaseMinimal risk, difficult to exploit.

Security Headers

HeaderPurposeValue Example
Content-Security-PolicyControls resources the browserdefault-src 'self'
is allowed to load.
Strict-Transport-SecurityEnforces HTTPS connections.max-age31536000=
X-Frame-OptionsPrevents clickjacking.DENY
X-Content-Type-OptionsPrevents MIME type sniffing.nosniff

Related Documents