HTTP 응답 헤더 보안 & 캐싱 감사기
붙여넣은 HTTP 응답 헤더를 100% 로컬에서 감사해 HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy, Set-Cookie, COOP/CORP 및 Cache-Control을 진단합니다.
| Header | Status | Observed | Finding & Fix |
|---|---|---|---|
Strict-Transport-Security Security | fail | Missing | HTTPS enforcement header is absent, allowing downgrade or SSL-stripping risks. Set max-age to at least 31536000 (1 year) with includeSubDomains. |
Content-Security-Policy Security | fail | default-src * 'unsafe-inline' 'unsafe-eval' | CSP permits 'unsafe-eval', weakening XSS protection. Remove 'unsafe-eval', wildcards, and http:// sources; use nonces/hashes. |
X-Frame-Options Security | fail | Missing | Missing clickjacking protection (neither X-Frame-Options nor CSP frame-ancestors). Set X-Frame-Options: DENY (or SAMEORIGIN). |
X-Content-Type-Options Security | fail | Missing | Browser MIME-type sniffing is not disabled. Set X-Content-Type-Options: nosniff. |
Referrer-Policy Security | fail | Missing | Referrer-Policy header is missing. Set Referrer-Policy: strict-origin-when-cross-origin. |
Permissions-Policy Security | warn | Missing | Permissions-Policy is not set to restrict powerful browser APIs. Restrict camera, microphone, geolocation, and payment APIs. |
Set-Cookie Cookies | fail | session=abc123; Path=/ | session missing Secure, HttpOnly, SameSite Add Secure; HttpOnly; SameSite=Lax (or Strict) to every sensitive cookie. |
COOP / CORP Isolation | warn | Missing | Cross-Origin-Opener-Policy and Cross-Origin-Resource-Policy are absent. Add COOP: same-origin and CORP: same-origin to isolate browsing contexts. |
Cache-Control Caching | fail | public, max-age=600 | Response sets cookies while marking Cache-Control as public (risk of shared cache leak). Switch to Cache-Control: private, no-store when setting user cookies. |
Server / X-Powered-By Leakage | warn | Server: Apache/2.4.49 (Unix); X-Powered-By: PHP/8.1.2 | Runtime or server version fingerprint exposed in response headers. Strip X-Powered-By and omit exact software version numbers from Server. |
사용 방법
- curl -I 출력이나 브라우저 DevTools 네트워크 탭에서 원본 HTTP 응답 헤더를 복사해 입력창에 붙여넣으세요.
- 전체 A+~F 등급, 통과/경고/실패 지표 및 헤더별 상세 진단 테이블을 검토하세요.
- "수정 헤더 복사" 또는 "보고서 다운로드"를 클릭해 권장되는 보안 강화 설정을 서버에 적용하세요.
HTTP 응답 헤더 보안 & 캐싱 감사기이란?
HTTP 응답 헤더 보안 & 캐싱 감사기는 외부 서버를 스캔하거나 내부 스테이징 엔드포인트를 노출하지 않고도 원본 HTTP 응답 헤더를 A+부터 F 등급까지 채점해 주는 100% 클라이언트 사이드 분석 도구입니다. 누락된 전송 보안, 취약한 CSP 지시문, 안전하지 않은 쿠키 플래그, 교차 출처 격리 누락 및 위험한 캐싱 조합을 찾아냅니다.
작동 원리
curl -I 또는 브라우저 DevTools Network 탭에서 응답 헤더를 붙여넣으면 순수 TypeScript 파서가 대소문자 구분 없이 상태 줄, 여러 줄의 Set-Cookie 항목 및 각 헤더 값을 추출합니다. 10가지 가중 보안·격리·정보 누출·캐싱 규칙을 평가해 점수를 매기고 실패·경고 항목용 수정 헤더 블록을 합성합니다.
주요 활용 사례
- 외부 온라인 스캐너가 접근할 수 없는 로컬 개발 서버나 비공개 내부 스테이징 환경의 HTTP 헤더 보안 감사
- Content-Security-Policy 내의 위험한 'unsafe-eval', 'unsafe-inline' 또는 와일드카드 * 지시문 신속 적발
- 세션 Set-Cookie 헤더가 Secure, HttpOnly, SameSite 속성을 올바르게 강제하는지 일괄 검증
- CDN의 Cache-Control 및 stale-while-revalidate 정책이 쿠키와 결합되어 민감 정보를 캐시하지 않는지 점검
기술 세부 정보
네트워크 요청 제로의 정적 파서로 HTTP/1.x 및 HTTP/2 상태 줄, curl -v "< " 접두사, CSP 지시문 토큰화, 다중 쿠키 플래그 검사, COOP/CORP 격리 검증, Server/X-Powered-By 버전 지문 노출 확인 및 자동 수정 헤더 합성을 지원합니다.
자주 묻는 질문
이 감사 도구가 내 웹사이트로 네트워크 요청을 보내나요?
아니요. 브라우저 DevTools나 curl -I에서 얻은 응답 헤더를 직접 붙여넣기만 하면 모든 보안 및 캐싱 규칙이 브라우저 내부에서 완전히 오프라인으로 평가됩니다.
A+부터 F까지의 보안 등급은 어떤 검사 항목으로 결정되나요?
Strict-Transport-Security, Content-Security-Policy(unsafe-eval, unsafe-inline, 와일드카드 감점), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Set-Cookie 플래그, COOP/CORP 격리 및 Cache-Control 안전성을 종합 평가합니다.
Cache-Control 헤더가 왜 보안에 중요한가요?
세션 쿠키를 설정하면서 Cache-Control: public을 응답하면 CDN이나 공용 프록시가 개인 사용자 데이터를 캐시할 수 있습니다. 민감한 응답에는 private, no-store를 사용하고 정적 에셋에는 max-age와 stale-while-revalidate를 적용하는 것이 안전합니다.