After an internet facing application breach, restoring the website is only one part of recovery. Security owners must also determine whether attackers still have access, whether the exploited weakness remains reachable, and whether public traffic can bypass new controls.
A reverse proxy WAF can help inspect incoming application traffic, but deploying one does not remove a web shell, revoke stolen credentials, or repair vulnerable code. Treat the following setup as one workstream within incident response. SafeLine documents its role as a self-hosted WAF that filters and monitors HTTP traffic in front of web applications. Official overview
1. Preserve evidence and define the immediate containment boundary
Before changing routing, preserve relevant web server logs, application logs, authentication events, and available host evidence according to your incident response process. Record the time of each containment change so investigators can distinguish attacker activity from recovery work.
Consider a vulnerability exploitation scenario: an attacker sends a crafted request to a public endpoint, gains command execution, and writes a web shell into a location the application serves. Subsequent requests may use that shell to execute commands or retrieve data.
Defenders might see unusual POST requests, unexpected executable files, application processes launching shells, or outbound connections from the server. These are investigation leads, not proof that every suspicious request succeeded.
Decide whether the application can remain available. If evidence suggests active command execution, isolate the affected system using your incident response procedures. A new traffic filter does not establish that the host is trustworthy.
2. Identify every public route to the application
Inventory public hostnames, origin IP addresses, alternate ports, API endpoints, and administrative interfaces. Determine which route the attacker used and whether the same vulnerable functionality remains exposed elsewhere.
Draw the intended request path: client, SafeLine, application upstream. SafeLine's application guide describes an HTTP/HTTPS reverse proxy that receives website traffic and forwards permitted traffic to the original application. Application configuration
Plan network restrictions so public clients cannot reach the origin directly. Account for legitimate monitoring and operational access before enforcing them. These restrictions are infrastructure decisions; adding an application in the WAF does not by itself prove that origin bypass is closed.
3. Prepare a clean host and install SafeLine
Use a host you trust rather than placing a new defensive control on a server with unresolved compromise.
Check the documented installation prerequisites: Linux, a supported architecture, Docker 20.10.14 or later, Docker Compose 2.0.0 or later, and at least one CPU core, 1 GB of memory, and 5 GB of disk space. The deployment guide also lists an ssse3 CPU requirement and states that ARM deployments require a Pro license. Confirm the applicable requirements before choosing the host. Installation guide
Follow the official deployment procedure. Its automated installation requires root privileges. If choosing manual deployment, follow the complete environment-variable, secret-generation, and filesystem-permission instructions rather than copying only the service launch command.
After installation, the documented console address is https://<safeline-ip>:9443/. Retrieve the administrator credentials with the documented command:
docker exec safeline-mgt resetadmin
Restrict management access to your approved administrative network. Installation and console access
4. Configure the application and move traffic deliberately
In the SafeLine console, open Applications and select Add Application. Enter the application's domain, the port SafeLine should listen on, and the real upstream address. For an HTTPS application, select the SSL option. The official procedure then directs you to resolve the application domain to the SafeLine server's IP address. Application setup
Before changing production DNS, verify your certificate arrangements, upstream connectivity, and recovery plan. After the change, test normal browsing, login, uploads, and API operations that matter to the business.
Then test origin isolation from an external network. If the origin still accepts direct public requests, fix the routing or network policy before treating the WAF as the enforced entry point.
5. Validate blocking and connect observations to decisions
On an authorized test application or an explicitly approved production test, use a harmless, controlled request based on the official SQL injection or path traversal examples. Avoid replaying a destructive exploit against a recovering service.
The SafeLine guide describes checking for a blocking page, opening the console's attack list, and selecting an attack's detail view. Use those observations to verify that the test reached the WAF and was blocked. Official validation procedure
Pair WAF observations with application and host evidence. Repeated exploitation attempts support reviewing exposure and patch status. Successful logins following suspicious authentication traffic support investigating account takeover. Requests to a suspected web shell require host investigation even if later requests are blocked.
SafeLine documents IP-based rate limiting, CAPTCHA challenges, and access control capabilities. Evaluate these against the observed abuse and legitimate client behavior; shared IP addresses and automated API clients need particular care. Documented capabilities
Keep patching, credential rotation, persistence removal, and recovery validation moving alongside the proxy deployment.
Does a blocked exploit prove the breach is contained?
No. It establishes that a particular request was blocked on that path. Existing sessions, stolen credentials, persistence, and alternative entry points still require investigation.
Should we replay the original attack to test protection?
Only within an explicitly authorized and controlled validation plan. Prefer an isolated reproduction when the original exploit could execute commands, change data, or disrupt service.
What if legitimate traffic is blocked after cutover?
Identify the affected request and business workflow, inspect the available details, and make the narrowest justified adjustment. Retest both the legitimate workflow and the relevant attack case.
When is this setup ready for normal operation?
When intended traffic traverses the WAF, direct public origin access is restricted, critical workflows work, and controlled blocking checks pass. Incident closure additionally requires evidence that the underlying compromise and its cause have been addressed.
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.
- SafeLine website: https://ly.cyberserval.tech/bvK1BAV
- Demo: https://demo.waf.chaitin.com:9443/statistics
- Official docs: https://docs.waf.chaitin.com/en/home
- GitHub: https://github.com/chaitin/SafeLine
- Pro offer: https://cyberserval.tech/landing/lto
Top comments (0)