Dev.to Security ๐Ÿ” Cybersecurity ๐Ÿ‘ 0 ๐Ÿ“– 4 min read

DNS-Only Routing vs Restricted Origins: Reading WAF Evidence After Ransomware

A ransomware investigation raises an immediate question: did the attacker enter through an Internet-facing application? That is why I check WAF logs first after a ransomware incident involving exposed web services. They

A ransomware investigation raises an immediate question: did the attacker enter through an Internet-facing application? That is why I check WAF logs first after a ransomware incident involving exposed web services. They can provide an early lead while responders preserve host, identity, application, and network evidence.

But the value of that lead depends on placement. An application routed through a WAF can still have another reachable entrance. Before interpreting an empty attack list as reassurance, compare two configurations: DNS pointing at the WAF with an independently reachable origin, and DNS pointing at the WAF with origin access restricted to approved paths.

Choice A: Change DNS but leave the origin reachable

SafeLine's application setup uses a domain, listening port, and upstream address. Its documentation then instructs administrators to resolve the application domain to the SafeLine server's IP address. SafeLine receives HTTP/S requests as a reverse proxy and forwards traffic to the upstream application. These are documented setup steps in the application configuration guide.

Changing DNS establishes the normal route for visitors. It does not, by itself, establish a network restriction on the origin.

An attacker who knows a reachable origin address may attempt to connect directly, including by sending the application's expected hostname. An alternate public listener, forgotten hostname, or exposed administration service can create a similar investigation gap.

The defender might see exploit attempts in the application's access logs without corresponding WAF evidence. That discrepancy is a reason to investigate routing, timestamps, and logging coverage. It is not automatic proof that the WAF missed an attack: the request may never have reached it.

This configuration can simplify an initial rollout, but it leaves incident responders with two questions: what passed through the WAF, and what could reach the application another way?

Choice B: Restrict origin access to approved paths

The alternative combines WAF routing with network controls that restrict application ingress to the WAF and explicitly required operational paths. Those restrictions belong in the relevant firewall, security group, or network policy; the supplied SafeLine documentation does not describe an automatic origin-lockdown feature.

This configuration makes WAF evidence more useful because there are fewer routes around the inspection point. It also requires operational care. Health checks, internal integrations, recovery access, and other legitimate dependencies must be identified before restrictions are enforced.

Validate both sides of the decision: normal requests through the WAF should succeed, while unauthorized direct requests to the origin should fail. Include alternate ports, IPv6 exposure where applicable, and additional public interfaces in that review.

Even successful validation establishes present coverage. It does not prove that the same restrictions existed before the incident. Preserve historical configuration and change records where available.

Follow the attacker from request to execution

Consider a possible attack sequence, rather than an assumed incident narrative. An attacker probes a public application, attempts to exploit an unpatched input-handling flaw, and tries to establish a web shell. If execution succeeds, the attacker may seek credentials and move toward systems where ransomware can run.

SafeLine documents defenses against categories including SQL injection, command injection, RCE, and path traversal in its official overview. That supports considering it as an HTTP inspection and blocking layer. It does not establish that a particular request was detected, that every exploit is covered, or that later ransomware activity would be visible there.

SafeLine's setup guide documents an attack list in the console and a "detail" view for individual attacks. Use that documented view to inspect available evidence, without assuming fields, retention periods, export formats, or forensic integrations that the supplied sources do not specify.

A suspicious request is a lead. Execution requires corroboration: application behavior, an unexpected file, a suspicious process, or another relevant host artifact. A blocked request establishes a blocking decision for that request, not the absence of earlier compromise.

Make the comparison actionable

Before changing protection or rebuilding the service:

  1. Preserve available WAF, proxy, application, identity, and host evidence. Record time zones and clock differences before correlating events.
  2. Map every route to the application. Check public addresses, alternate listeners, administration endpoints, and any intermediary proxies.
  3. Inspect the available WAF attack details around the suspected entry window. Compare them with application and host evidence.
  4. Determine whether origin restrictions existed during that window. Separate current connectivity tests from historical conclusions.
  5. Close confirmed bypass paths, address the underlying vulnerability, and verify legitimate recovery traffic through the intended route.

For recovery, I favor restricted origins when dependencies can be accounted for and tested. The benefit is a more defensible traffic boundary and clearer evidence coverage. WAF configuration remains one part of recovery alongside containment, patching, credential remediation, and host investigation.

Does an empty WAF attack list rule out web-based initial access?

No. Check whether the affected service was covered, whether traffic could bypass the WAF, and whether evidence from the relevant period remains available. Also investigate other entry paths.

Does changing DNS prevent direct-origin attacks?

No. DNS directs ordinary hostname resolution. Separate network controls determine whether an attacker can connect directly to the origin.

Does a blocked exploit attempt prove the application is clean?

No. Investigate earlier requests, alternate routes, and host evidence. The blocking decision applies to the observed request; it does not certify the application's state.

Should I place a WAF in front of an application during recovery?

It can add an HTTP protection layer, but a new deployment cannot reconstruct earlier traffic. Preserve existing evidence first, configure and test the intended route, and remediate the application before treating it as ready for service.

SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.

๐Ÿ“ฐ Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.