In practice / Security
How to find out whether your website has been hacked
Suspicious redirects, foreign code or changed accounts? Learn the signs of a compromised website and the first steps when you suspect a security incident.
Unusual website behaviour is a reason to investigate, not automatic proof of an attack. A redirect can be caused by foreign code or by a faulty configuration. An outage can be a security incident or a technical failure.
Signs worth investigating
- The website redirects only some visitors to unknown pages.
- Unknown texts have appeared in the content or in search results.
- Accounts have appeared that your team did not create.
- Files or scheduled tasks have changed without a known deployment.
- The server shows unusual outgoing connections or error events.
Every sign needs context. Record the time, URL, user and the conditions under which it appeared. A comparison with the latest legitimate changes also helps.
What to do first
Contact the administrator and the responsible person. Preserve the available logs and evidence. Coordinate changing credentials and any restriction of operation so that you do not destroy important information while still reducing further damage. With every intervention, write down what changed.
If personal data is processed, handle the necessary legal and organisational assessment alongside the technical intervention. Its outcome depends on the specific findings; a technician should not replace it with an estimate.
Why simply deleting a file is not enough
A visible malicious file may be only a consequence. Without fixing the entry vulnerability and checking accounts and other places where code can run, the problem can return. During recovery, we therefore also assess the trustworthiness of the backup and the state of the application.
How to close an incident
Verify functionality, the removal of the identified cause and the necessary changes to access. Prepare a record of the scope of the investigation and its limitations. Follow-up monitoring should help detect recurring symptoms, not create an impression of absolute certainty.
For an initial assessment, describe the symptoms and the available access to us. We will agree on the scope of the intervention and the next steps according to the situation.
Sources and further reading
The links lead to the original announcements, reports and documentation the article is based on.