본문으로 건너뛰기
cccskills
무료GitHub에 공개

analyzing-tls-config

Scan an authorized endpoint’s TLS setup, including protocol versions, cipher suites, certificate validity, hostname matching, and downgrade risks. The report ranks specific findings by severity, maps them to relevant controls, and offers remediation guidance.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Analyze a target's TLS configuration — negotiated protocol version, cipher suite, certificate chain, expiry, and downgrade vectors. Use when: SOC2 auditor flagged your endpoint for "weak TLS" but you don't know which control failed (TSC CC6.7 transmission integrity vs CC6.6 encryption) or which cipher is the problem. Threshold: any negotiated TLSv1.0 or TLSv1.1, OR a cipher with RC4 / 3DES / null / EXPORT, OR a cert with under 30 days to expiry, OR a chain that fails hostname verification. Trigger with: "audit tls", "check ssl config", "weak tls", "analyze tls".

연동 도구AWSGoogle Cloud

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Investigate a weak TLS finding from an audit
  • Check a certificate chain and expiration date
  • Review endpoint TLS settings before deployment
  • Create a TLS report for a security team

포함된 파일(5)

  • SKILL.md8.0 KB
  • references/AUTHORIZATION.md5.2 KB
  • references/PLAYBOOK.md6.9 KB
  • references/THEORY.md6.2 KB
  • scripts/analyze_tls.py16.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Analyzing TLS Configuration

Overview

This skill audits a target's TLS posture against current best practice (NIST SP 800-52r2, Mozilla TLS Configuration Guidelines, PCI DSS v4.0 Req 4.2.1.1). It reports specific findings — not "your TLS is weak" but "your server negotiated TLSv1.0 with RC4-SHA — see remediation".

When the skill produces findings

Specific failure thresholds, in order of severity:

FindingSeverityThresholdAffected control
TLSv1.0 or TLSv1.1 negotiatedHIGHAny handshake completes at v1.0/v1.1NIST 800-52r2 §3.1, PCI DSS Req 4.2.1.1
Null / EXPORT / anonymous cipherCRITICALAny null / EXPORT / aNULL in negotiated suiteNIST 800-52r2 §3.3.1
RC4 / 3DES cipherHIGHSweet32, RC4 biasesNIST 800-52r2 §3.3.1, PCI DSS Req 4.2.1.1
Cert expires in <7 daysCRITICALnotAfter - now ≤ 7dNIST 800-52r2 §4.1
Cert expires in <30 daysHIGHnotAfter - now ≤ 30dNIST 800-52r2 §4.1
Cert hostname mismatchHIGHSAN/CN doesn't match target hostRFC 6125
Self-signed or untrusted CAMEDIUMChain doesn't validate to system CAMozilla TLS Guidelines
Weak key (RSA < 2048, ECDSA < 256)HIGHPublic key bits below thresholdNIST 800-52r2 §3.4
Forward secrecy absentMEDIUMNo ECDHE / DHE in negotiated suiteNIST 800-52r2 §3.3.1

Prerequisites

  • Python 3.9+
  • openssl CLI (used for cipher enumeration the Python ssl module can't introspect directly)
  • Authorization to test the target (active scan — see references/AUTHORIZATION.md)

Instructions

Step 1 — Confirm Authorization

Active scan. Before invoking the scanner, ask the user verbatim:

"Do you have authorization to perform TLS testing on this target? I need confirmation before proceeding."

If the user says yes, proceed. If unsure, ask them to obtain written authorization. See references/AUTHORIZATION.md for the attestation pattern. Never run the scanner against a target the user does not own or have written permission to test.

Step 2 — Run the scanner

python3 ${CLAUDE_PLUGIN_ROOT}/skills/analyzing-tls-config/scripts/analyze_tls.py \
    https://target.example.com \
    --authorized

The --authorized flag is required for any non-loopback / non-RFC1918 target (gate enforced in lib/authz_check.py).

Options:

Usage: analyze_tls.py URL [OPTIONS]

Options:
  --authorized          Attest authorization for non-local targets (required)
  --port PORT           Target port (default: 443)
  --output FILE         Write findings to FILE (default: stdout)
  --format FMT          json | jsonl | markdown (default: markdown)
  --min-severity SEV    Floor: critical|high|medium|low|info (default: info)
  --timeout SECS        Per-probe timeout (default: 10)

Step 3 — Interpret findings

The scanner emits one Finding per detected issue. For each:

  1. Read the severity band — CRITICAL and HIGH require immediate action.
  2. Read the affected control — map to the framework the user is audited against.
  3. Read the remediation — copy-paste-ready config snippets for nginx / Caddy / Apache / HAProxy / AWS ALB / GCP LB.
  4. Cross-reference references/PLAYBOOK.md for the full template if the inline remediation is just a one-liner.

Step 4 — Report to user

Group findings by severity. For each, lead with the specific symptom ("TLSv1.0 negotiated") rather than the category ("transport security problem"). Pair every finding with one remediation step the user can take in the next 30 minutes.

Step 5 — Cross-skill chaining (optional)

If the user is doing a broader audit:

  • After this skill runs, suggest detecting-ssl-cert-issues (skill #2) for deeper cert-chain analysis (revocation, CT log presence, intermediate-cert order).
  • For HTTP-layer security headers that complement TLS findings, suggest checking-http-security-headers (skill #4) to audit HSTS preload status, which is meaningless without proper TLS.

Examples

Example 1 — SOC2 audit prep on a production endpoint

User says: "Auditor flagged our checkout endpoint for weak TLS. Help me figure out what's wrong."

python3 ${CLAUDE_PLUGIN_ROOT}/skills/analyzing-tls-config/scripts/analyze_tls.py \
    https://checkout.example.com \
    --authorized \
    --min-severity high

Expected output: a Markdown report with each HIGH/CRITICAL finding, the specific NIST/PCI control it violates, and a copy-paste remediation snippet for the target server type. Pair with references/PLAYBOOK.md for full templates.

Example 2 — CI integration on a staging gate

Pin the scan into the deploy pipeline before promotion:

- name: TLS posture check (staging)
  run: |
    python3 plugins/security/penetration-tester/skills/analyzing-tls-config/scripts/analyze_tls.py \
        https://staging.example.com \
        --authorized \
        --min-severity high \
        --format json \
        --output tls-report.json

Exit code 1 fails the deploy if any HIGH/CRITICAL finding lands. The JSON report uploads as a build artifact for the security team to triage.

Example 3 — Quick local check during dev

For local services (carve-out applies — no --authorized needed):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/analyzing-tls-config/scripts/analyze_tls.py \
    https://localhost:8443

Useful when prototyping TLS-terminating proxies (Caddy, Traefik) before shipping to staging.

Output

Each finding includes:

  • skill_id: analyzing-tls-config
  • title: imperative — e.g. "Server negotiates obsolete TLSv1.0"
  • severity: critical / high / medium / low / info
  • target: the URL scanned
  • detail: technical explanation of WHY this finding triggered
  • remediation: specific fix
  • cvss_score / cwe_id: when applicable
  • affected_control: framework + control ID (e.g. NIST 800-52r2 §3.1)
  • references: source URLs

JSON output is pipeable to jq for CI integration. Markdown output is human-readable for direct sharing with the engineering team.

Exit codes: 0 clean (no high/critical), 1 findings (high or critical), 2 error (auth missing, target unreachable, unparseable input).

Error Handling

--authorized missing for non-local target → exit 2 with attestation message pointing to references/AUTHORIZATION.md. Re-run with the flag after confirming authorization.

Target unreachable → exit 2 with the underlying socket error. Common causes: firewall blocks port 443, DNS resolution failure, server not listening on the configured port (try --port).

Certificate chain incomplete → finding emitted at MEDIUM severity (the scanner does not bail; it captures what was sent and reports the gap).

Resources

  • references/THEORY.md — How TLS negotiation works, why each finding matters, primary RFC references
  • references/PLAYBOOK.md — Copy-paste remediation templates per finding for nginx, Caddy, Apache, HAProxy, AWS ALB, GCP LB
  • references/AUTHORIZATION.md — Authorization attestation pattern + ROE example for active scans

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add a synthetic-data CI gate for customer-owned Abridge integration code. Test consent handling, note-review handoffs, redaction, and rollback behavior with mocked vendor boundaries, without connecting CI to a live Abridge or EHR tenant.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding regression checks to an Abridge integration repository
  • Testing consent and note-release handling
  • Checking logs for sensitive data exposure
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

Triage Abridge recording, note review, Epic handoff, and access problems using observed symptoms and approved guidance. Identify the affected workflow stage, organize a minimal timeline, and prepare a redacted escalation record for the responsible team.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Separate recording problems from upload failures
  • Investigate note creation delays and editor issues
  • Identify the responsible team for Epic handoff failures
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

Map and review an Abridge clinical documentation workflow from consent and recording through draft review, evidence checks, edits, and final disposition. Keep clinician approval explicit, identify failure exits, and separate verified facts from tenant-specific details and pending approvals.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Map a clinical note workflow for a care setting
  • Check where consent and patient identity are verified
  • Review draft notes against linked evidence before sign-off
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

Audit how clinician-reviewed Abridge note sections map into Epic templates and downstream workflows. Use approved test records to document destinations, exceptions, evidence, rollback steps, and a go or no-go decision for a specific environment.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking Abridge note section mappings to Epic templates
  • Auditing a department’s approved documentation handoff
  • Preparing test evidence and a go or no-go decision
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

Review Abridge adoption and workflow value using local usage records, clinician feedback, and verified contract costs. Build an evidence based decision table covering adoption, quality, support burden, and options to expand, hold, or improve the rollout.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing adoption after an Abridge rollout
  • Preparing evidence for a renewal decision
  • Comparing workflow outcomes across care settings
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

Prepare a bounded support bundle for an Abridge issue using allowlisted operational details such as versions, coarse timestamps, and correlation references. Exclude recordings, transcripts, patient identifiers, credentials, and unrestricted logs, then document redactions and review details.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Preparing reviewed evidence for an Abridge support case
  • Documenting redactions and excluded data
  • Collecting approved operational details for an incident
jeremylongshore/tons-of-skills-marketplace2.9천2026년 10월 23일 업데이트

jeremylongshore의 스킬 모두 보기

이 스킬의 문제 신고