Infra reference

From Crapule421/tiger-team · View interactive version

Infra reference is an AI agent skill from the GitHub repository Crapule421/tiger-team. Infrastructure knowledge base - layer-by-layer diagnosis, checklists (server build, firewall change, certificate renewal, DNS change, patching) and references on network/TLS, network access control (802.1X), DNS, Linux and Windows Server.

How to use this skill

Skill file

Infrastructure reference

Scope: on-premises and hybrid infrastructure supporting integration projects in regulated contexts (banking, healthcare, defense). Commands are standard forms; where behaviour depends on version/edition the references say "verify against your version".

References (read on demand)

Related skills: flow-matrix (build flow matrices and firewall requests), devsecops-reference (hardening baselines, containers, secrets), dba-reference (database HA/ports/listeners).

1. Diagnosis method - layer by layer

Rule: never jump to the application before proving the lower layers, and never conclude from a test run from the wrong place. Test from the real source host, with the real name, at the time of the failure, and record timestamps (needed to match firewall/proxy logs).

Triage questions (first 5 minutes)

  1. What exactly fails (error text, code, screenshot), for whom (one user, one site, all), since when?
  2. What changed (deployments, firewall rules, certificates, DNS, patches, password rotations, scheduler plan)? Check the change calendar.
  3. Is it total, intermittent, or slow? Intermittent often = one bad member behind a LB, DNS round robin with one dead IP, idle timeout, port/NAT exhaustion, MTU.
  4. Does it work from another source/zone? Comparing a working and a failing path localises the fault fast.
  5. Business impact and urgency -> incident priority; who decides on rollback?

Layers

| # | Layer | Question | Quick tests | Typical root causes |

|---|---|---|---|---|

| 1 | Name resolution | Does the name resolve to the expected IP from the source? | dig/getent hosts/Resolve-DnsName against the resolver the host uses | Stale record/TTL, split-horizon mismatch, hosts file, wrong search suffix, DNSSEC SERVFAIL |

| 2 | Addressing/routing | Is the destination network reachable via the expected path? | ip route get, Find-NetRoute, traceroute -T -p <port>, tracert | Missing route, asymmetric routing, overlapping subnets, wrong gateway on multi-NIC host |

| 3 | Transport/firewall | Does TCP connect succeed on the port? | nc -vz, Test-NetConnection -Port, capture (SYN / SYN-ACK / RST) | Firewall rule missing/expired, NAT, host firewall, service not listening, listening on 127.0.0.1 only |

| 4 | Load balancer/proxy | Is the VIP healthy and are members up? | LB status, curl --resolve to each member, proxy logs (502/503/504) | Health monitor failing, SNAT/return path, persistence, timeouts, body size limits |

| 5 | TLS | Does the handshake succeed and is the chain/name valid? | openssl s_client -connect host:port -servername host -showcerts | Expired cert, missing intermediate, SAN mismatch, truststore, client cert (mTLS), protocol/cipher mismatch, TLS inspection |

| 6 | Authentication | Is the identity accepted? | Event logs 4625/4771, LDAP bind test, Kerberos tickets (klist), time sync | Password rotated/expired, locked account, SPN, clock skew, gMSA not installed on host |

| 7 | Authorization | Is the identity allowed? | App/DB/OS logs, SELinux AVC, file ACLs, DB grants | Missing grant/role, SELinux/AppArmor denial, share/NTFS permissions |

| 8 | Application/protocol | Does the application answer correctly? | App logs, health endpoint, protocol test (SQL query, MQ put/get, API call) | Config/version mismatch, dependency down, resource exhaustion |

| 9 | Resources | Is the host saturated? | CPU/memory/disk/inodes/FD/ports (linux.md section 7, windows.md section 12) | Disk full, OOM, swap, I/O latency, file descriptor or ephemeral port exhaustion |

Interpretation shortcuts: refused = reached and rejected (RST); timeout = dropped; works by IP but not by name = DNS or TLS SAN/SNI; works from server but not from client = firewall/proxy/path; works for small payloads only = MTU or proxy body size; works after restart then degrades = leak/exhaustion; fails every N minutes of idle = idle timeout.

Evidence pack for escalation (to network/security/vendor teams)

Source host + IP (and NAT IP if any), destination name + IP + port + protocol, exact timestamp (with timezone), error message, test commands and output, capture file if taken, what changed recently, flow matrix ID.

2. Checklists

New server build (before handover to application team)

Firewall change

Certificate renewal

DNS change

Patching campaign

Decommissioning

3. Design rules of thumb

4. Handoff hints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.