Architecture Proposal · ai-servicers.com

Perimeter
Security

Continuous external assessment of the internet-facing attack surface, run from AWS. What it asserts, what it deliberately does not, and what it costs.

Review Board: Gemini · Codex · Claude  |  2026-07-31

The gap this closes

What happened

A platform review found five public surfaces answering unauthenticated — including the Traefik dashboard returning the complete router and service topology.

All five were closed the same day.

Why that wasn't enough

Closure was verified only from inside the LAN. With split-horizon DNS, a local check proves LAN closure and proves nothing about the public internet.

There was no vantage point outside the house.

The root cause is systemic: Traefik auth is opt-in per router label, and nothing rejects a router that omits it. This will recur — which is why the control must be continuous, not a one-off audit

First result: measured from outside

Obtained via SSM against the existing mail-edge EC2 instance — zero new infrastructure.

HostnameFrom AWSExpected
playwright · tradingview-api · optionsearch-api · langserve404404✅ closed
traefik/api/rawdata401401✅ closed
grafana (control)403403✅ correct
keycloak · gitlab (controls)302302✅ correct
traefik dashboard root404302 per docs⚠ closed, undocumented shape

The remediation is confirmed from the public internet. This also proves one-off questions need no new build — SSM answers them in ~60 seconds.

The architecture

AWS · us-east-1

EventBridge Schedulercron(0 7 ? * SUN *)
TZ America/New_York — DST-safe
Fargate task0.25 vCPU / 0.5 GB · public subnet + public IP · no NAT gateway
Prowler taskseparate read-only role, no target egress
S3 (versioned)normalized reports + baseline
CloudWatch alarmsmissing-data = breaching
→
HTTPS by hostname
SNI + Host pinned to
validated IP
→
SMTP / IMAPS
25 · 465 · 587 · 993

Targets (both owned)

Home edge — 108.35.80.85Verizon residential, dynamic
Traefik · ~30 SNI-routed hostnames
Mail edge — 34.194.247.228AWS EC2 + Elastic IP
HAProxy → WireGuard → home
Cloudflare DNSapex proxied · subdomains grey
wildcard CNAME * → home

One workload · one state file · one image. Alerts split by fate: findings → Matrix, liveness → SNS email.

The safety gate — runs before a single packet

The home IP is dynamic. If DDNS lapses, naive resolution returns the next Verizon customer's address — and you scan a stranger. This is the sharpest risk in the whole design.

1

Resolve publicly

Public DNS only — that is what the internet sees. Never trust local DDNS state.

2

Reject non-global

Private, reserved, multicast. Fail on an unexpected AAAA rather than ignoring IPv6.

3

Prove ownership

TLS handshake must present a valid in-date cert whose SAN covers *.ai-servicers.com.

4

Pin the IP

Freeze for the whole run — no second DNS lookup. Closes the time-of-check/time-of-use hole.

ABORTAny failure → zero packets sent, first-class alert
A stranger who inherits your IP cannot present a valid certificate for your domain. The cert is the ownership token — and it doubles as the Cloudflare-proxy-flip detector.

Five assessment planes, one job

Plane A

Auth invariant

Every public hostname either challenges or is explicitly allowlisted. Redirects never followed.

Daily · PRIMARY

Plane B

Ports & TLS

Scoped TCP connect scan; per-SNI cert expiry; protocol floor; cipher suites; STARTTLS on mail ports.

Weekly

Plane C

Discovery

Wildcard detection → wordlist Host-probe → response fingerprint → reconcile vs inventory. Takeover checks.

Weekly

Mail

Mail posture

SPF/DKIM/DMARC/MTA-STS/TLS-RPT/CAA. Open-relay, VRFY/EXPN, cleartext AUTH, DNSBL on the edge IP.

Weekly + daily DNSBL

AWS

Account posture

Public S3/EBS/AMI, security-group 0.0.0.0/0, IMDSv2 drift, root & IAM hygiene.

Weekly · own role

~130 checks catalogued across three reviewers. ~15–20 built; the rest consciously declined, each with a recorded reason — every catalogue row still appears in the report as pass / fail / declined / not-assessable.

Who watches the watcher

A prober that silently dies looks exactly like a clean perimeter. Both are silence. Design the heartbeat before the check

The failure mode

This estate has been bitten three separate times by absence-of-signal reading as success — a truncated log that made an active service look idle, a health endpoint that answered while the provider behind it was dead, and a pipeline whose fallback string was indistinguishable from a real pass.

The mechanism

  • Heartbeat emitted only after the report is successfully published — never at task start.
  • CloudWatch alarm on the absence of that metric, treatMissingData: breaching.
  • The alarm is AWS-managed and does not share fate with the scanner — so when the scanner is dead, the alarm still fires.
  • 8-day window absorbs the DST shift.

The discovery problem — measured, not assumed

Two reviewers proposed Certificate Transparency logs as the way to find hostnames you forgot. I checked the actual estate.

MechanismVerdict hereEvidence
CT logs for self-discoveryDeadOne wildcard cert *.ai-servicers.com serves every host. CT contains 3 names, not 30.
DNS enumeration / brute forceDeadWildcard DNS — three random garbage names all resolved to the home IP.
Authoritative zone exportNear-emptyThe whole Cloudflare zone is 16 records; one wildcard CNAME covers all ~30 services.
Host-probe + response fingerprintWorksUnrouted names return 404 / 19 bytes; routed names return service-shaped responses.
CT for mis-issuanceWorksSomeone else's cert for your name still appears within minutes. Free via Cloudflare CT Monitoring.

Conclusion: external discovery is wordlist-bounded, so the authoritative inventory must come from Traefik's own router config — enforced by a CI check. That dependency lives in the traefik project, not here.

What the first assessment already found

DMARC is p=none

Nothing enforced — and the reports go to a third-party aggregator rather than to you. Combined with SPF ~all, the domain is trivially spoofable today.

Missing DNS controls

No CAA — any CA on earth may issue for the domain. No MTA-STS — inbound mail is downgradeable. No TLS-RPT, no DNSSEC.

Zero image scanning

2 of 30 CI configs carry any security job. 148 containers, no CVE visibility. The largest single gap — and it belongs in CI at home, not in AWS.

No HTTP-edge rate limiting

fail2ban is active for mail (3 jails) but nothing protects ~30 public hostnames from brute force. Fix is a Traefik middleware.

Third-party name dependency

mailu routes through an ASUS DDNS name you don't control at the registry. Not dangling today — a takeover risk if it ever lapses.

What was rejected, and why

OptionVerdictReason
Classic vulnerability scanner (OpenVAS / Greenbone)RejectedCategory error. Matches CVE banners; would have found none of the five actual defects. Needs a persistent feed-syncing server.
AWS LambdaRejected900-second hard ceiling doesn't degrade — it kills mid-run, and a truncated scan is indistinguishable from a clean one.
EC2 / SpotRejectedAn OS to patch and an AMI to maintain, in order to solve a monitoring problem.
NAT gatewayRejected~$32.85/mo for a job that runs minutes per week. Public subnet + assigned public IP is free.
Classic EventBridge RulesRejectedUTC-only — 07:00 would drift by an hour twice a year. Scheduler takes a named IANA timezone.
Amazon Inspector for the container fleetRejectedThe 148 containers run at home, not in AWS. Inspector would cover one EC2 instance.
SYN scan · full 65k standing sweep · UDP sweepRejectedFargate has no CAP_NET_RAW; broad sweeps match abuse-detection traffic patterns.
Fargate + EventBridge Scheduler + Prowler + scoped nuclei/nmap/testsslChosenNo time cliff, free egress, ~6 maintained tools cover ~40 of the catalogued checks.

What a green result does not mean

"The enumerated, validated public surfaces matched these unauthenticated checks at this time."
Never "the posture is sound."

Covered from outside

  • Public HTTP auth & exposure
  • Open ports, TLS posture, cert expiry
  • Mail protocol & DNS policy
  • AWS account internet-facing config
  • Certificate mis-issuance

Structurally invisible

  • Post-authentication authorization flaws
  • Container escape · Docker-socket mounts
  • Lateral movement between ~90 containers on a shared network
  • SSRF reachability
  • Any hostname nobody registered in the inventory

This is a smoke detector, not a sprinkler. The root-cause fix — a CI check that rejects a public router lacking auth middleware — lives in the traefik project and matters more than this does.

Cost

$2–3per month
baseline build
$0Prowler · Access Analyzer
Cloudflare CT Monitoring
$7–10per month with optional
GuardDuty + Security Hub
~6tools covering ~40
catalogued checks

Why it stays small

Coverage collapses onto a handful of maintained tools. One checkdmarc call covers the entire mail-DNS block; one testssl.sh covers a dozen TLS rows; one prowler run covers the whole AWS-config plane.

Unrelated correction

The mail-edge Elastic IP is no longer free while attached — about $3.60/mo. The existing README still claims "$0 while attached." That documentation is stale.

Open decisions

#DecisionNote
1DMARC enforcement — move off p=noneHighest severity found. Needs your call: three authorized senders could start being dropped if alignment is wrong. Point rua at yourself first.
2Sign the zone with DNSSEC?Real benefit, real risk — a botched rollover breaks resolution for the whole domain.
3Prowler vs paid Security Hub Essentials2–1 for Prowler at $0. Recommend taking the 30-day trial separately so the call is made on a real bill.
4CadenceYou asked weekly Sunday 07:00; the board recommends daily probe + weekly deep. Six extra runs a week you didn't request.
5Build orderShould the Traefik CI check come first? It is the root-cause fix; this is the complement.
—Free wins, no decision neededAdd CAA, MTA-STS and TLS-RPT records. Additive, no failure mode, high value.

Small, boring, and alive
beats comprehensive and dead.

The catalogue is comprehensive; the implementation is selective. Every declined check is recorded as a decision rather than an oversight — so the boundary of what this proves stays auditable.

docs/reviews/internet-exposure-assessment.final.md