How to Audit Hosting Logs for Brute Force Attempts

How to Audit Hosting Logs for Brute Force Attempts

Repeated login failures can be an early sign that someone is guessing passwords against a website, control panel, or server account. Hosting logs help you spot patterns, but they rarely tell the whole story on their own. A web access log can show requests to a login page; it usually cannot confirm whether a login succeeded. To investigate confidently, compare the relevant logs with application or authentication records and account for your hosting setup.

This guide explains how to audit hosting logs for brute force attempts, from choosing the right log files to checking suspicious activity and deciding what to do next. The steps apply broadly to shared hosting, VPS hosting, and cloud servers, though access and available records vary by provider.

What Does Auditing Hosting Logs for Brute Force Attempts Mean?

A log audit is a structured review of recorded server or application events. In this context, it means looking for repeated, unsuccessful attempts to authenticate, often from one source or a cluster of sources, over a short period. A brute force attempt repeatedly tries passwords; a related technique, credential stuffing, tests username-and-password pairs exposed elsewhere.

Not every burst of failed requests is a confirmed attack. A user who forgot a password, a misconfigured integration, a monitoring service, or a shared network address can create similar patterns. A useful audit connects several clues: the requested login endpoint, response or application outcome, timing, account names, source addresses, and any successful sign-in that follows.

Know Which Hosting Logs to Check

What Does Auditing Hosting Logs for Brute Force Attempts Mean?: How to Audit Hosting Logs for Brute Force Attempts
What Does Auditing Hosting Logs for Brute Force Attempts Mean?: How to Audit Hosting Logs for Brute Force Attempts

Web server access and error logs

Access logs commonly record a request path, timestamp, client address, response status, and user agent. Look for repeated requests to sign-in endpoints such as a WordPress login page, a hosting control panel, or an application-specific authentication route. Error logs may add context about server-side problems, but they are not a reliable record of every failed password.

A response status alone is not proof of authentication success or failure. For example, a login page can return a normal page status after rejecting a password. Conversely, redirects may occur after either a successful or unsuccessful action. Confirm outcomes using application records where possible.

Authentication and application logs

Know Which Hosting Logs to Check: How to Audit Hosting Logs for Brute Force Attempts
Know Which Hosting Logs to Check: How to Audit Hosting Logs for Brute Force Attempts

On a VPS or dedicated server, inspect the operating system’s authentication records for SSH and other account services. Depending on the distribution and configuration, events may appear in system logs or the systemd journal. Applications such as WordPress, a content management system, or a custom site may have their own security or authentication logs. Those records can identify failed and successful account logins more directly than web access logs.

Control-panel and provider records

On shared hosting, customers often cannot read system-wide authentication logs. Check the hosting dashboard, security tools, and documentation, or ask support which records are available and how long they are retained. Do not assume that a provider’s web access log includes control-panel sign-ins, mail authentication, or SSH activity. Each service may log separately.

Practical Steps for an Audit

1. Confirm scope and preserve relevant records

Decide which site, account, service, and time period you are reviewing. Record the time zone used by each log; server time, application time, and your local time may differ. If an incident may need further investigation, preserve a copy of relevant logs before changing settings or allowing routine rotation to remove them. Store copies securely because logs can contain usernames, IP addresses, URLs, and other sensitive information.

Use read-only access where possible. Avoid editing original records, and note when you collected them and from which host. On a shared plan, follow the provider’s rules rather than trying to access files outside your account.

2. Find the relevant login routes

Identify the actual authentication endpoints for your site and services. For WordPress, common targets include wp-login.php and, where enabled, XML-RPC. Other applications use different routes. Check your application configuration and documentation rather than relying on a generic list. If a login page has been renamed or protected by a plugin, its requests may not appear under the familiar path.

For server access, identify which services are enabled, such as SSH or a hosting control panel, and locate their authentication records. Auditing a website’s access log alone will not reveal every attempt against the server.

3. Filter by route and time

Start with a manageable time window around a reported event or a period of unusual traffic. On a Unix-like server, a basic search can help locate requests to a known path:

grep 'wp-login.php' access.log

To narrow the review, use the timestamp format present in your log, or filter a copy of the file with suitable tools. Log formats differ, so check a few sample lines before building a parser. Avoid treating a command copied from another server as authoritative: custom formats, compressed rotations, and different date conventions can change the result.

4. Group repeated events

Compare the number and timing of requests by source address, requested account name if recorded, route, and outcome. A small script, spreadsheet, or log-analysis tool can help group events without changing the source files. Look for repeated failures, rapid account-name changes, repeated attempts against one account, and activity spread across multiple addresses.

Distributed attempts may not produce a large count from any one address. Conversely, many users may share a single public address through an office, mobile carrier, VPN, or proxy. Treat an address as a clue, not as proof of an individual’s identity or intent.

5. Correlate failures with successes

Check whether a successful authentication occurred after a series of failures, especially for the same account or service. Compare application login records, server authentication logs, and access-log timestamps. Look for unexpected account creation, password changes, new administrator accounts, unfamiliar sessions, or changes to site files. A successful response code in a web log is not enough to establish that a login succeeded.

If you find a potentially unauthorized success, prioritize containment: use a trusted route to change affected credentials, revoke active sessions or tokens where supported, and contact your host if server access may be involved. Preserve evidence and avoid deleting suspicious files before they have been reviewed.

6. Check logs for gaps and limitations

Confirm whether logging was enabled for the service and whether the period you need is still available. Rotation, retention limits, provider policies, and application settings can leave gaps. A log with no failed attempts does not prove that no attempts occurred; requests may have been blocked before reaching that log, recorded elsewhere, or removed through rotation.

Also check that timestamps are consistent and that the server clock is reasonably synchronized. If a reverse proxy or CDN sits in front of the site, the apparent client address may be the proxy unless trusted forwarding headers are configured correctly. Do not trust arbitrary forwarded-address fields without verifying the proxy setup.

What Patterns Deserve Follow-Up?

  • Repeated authentication failures against one or several accounts in a short period.
  • Attempts cycling through many account names or common routes that your site does not use.
  • Failed attempts followed by an unexpected successful login or account change.
  • Login traffic that continues after a rate limit or block should have taken effect.
  • Authentication activity at times or from locations inconsistent with the account’s normal use, considered alongside other evidence.

There is no universal request count that proves brute forcing. The expected traffic depends on the application, audience, and controls in place. Establish a baseline for your own site and investigate combinations of signals rather than applying a single threshold mechanically.

Responding to Findings

For a confirmed or credible account compromise, reset affected passwords from a trusted device, use unique credentials, and enable multifactor authentication where available. Revoke sessions and application tokens, review administrator accounts, and update vulnerable software and plugins. If a server account may be compromised, ask the provider or a qualified administrator to help assess the host; changing only a website password may not be enough.

For repeated failures without evidence of a successful login, strengthen controls proportionately. Options include rate limiting, multifactor authentication, bot protection, restricting administrative access, and tools such as Fail2ban on systems where you have appropriate administrative control. Test changes carefully so that legitimate users, integrations, and recovery access are not locked out. Blocking an address can reduce noise, but attackers may rotate addresses and legitimate users may share them.

On shared hosting, ask the provider about account-level protections and reporting. On a VPS, you generally have more control over firewall rules and authentication services, but also more responsibility for configuration, updates, monitoring, and backups. Cloud hosting adds provider and network layers; know which logs belong to the application, operating system, and cloud service.

Benefits and Limitations of Log Auditing

Benefits

  • It can reveal repeated attempts and help distinguish ordinary login errors from persistent patterns.
  • Correlating records can help identify whether an attempt was followed by a successful sign-in.
  • It can guide practical improvements, such as stronger authentication, better rate limits, or clearer monitoring.
  • It gives site owners and hosting support a shared, time-based record for troubleshooting.

Limitations

  • Logs may be incomplete, rotated, unavailable on shared plans, or configured not to record authentication outcomes.
  • IP addresses can be shared, proxied, or misleading, and do not by themselves identify a person.
  • High request volume can have benign causes, while distributed attempts can be difficult to spot from a single log.
  • Analysis can expose personal or security-sensitive data, so access, storage, and retention should be controlled.

Sources and Method

This guide uses a cross-log review method: identify the service and its authentication route, group events by time and source, verify outcomes using application or system authentication records, and account for retention and proxy configuration. The guidance is consistent with the OWASP Logging Cheat Sheet, which discusses application logging and protecting log data; the Fail2ban project documentation, which describes a log-based approach to banning repeated sources; and the systemd journalctl manual, which documents journal review on systems using systemd. Consult your host’s documentation for its specific log locations, formats, and retention rules.

Concise Q&A

Can an access log prove that a password was guessed correctly?

Usually not by itself. Access logs record web requests and responses, not necessarily the authentication decision. Check application or authentication logs for a confirmed success or failure.

Should I block every address with repeated failures?

No. First consider shared networks, proxies, and legitimate users. Use rate limits or other controls where appropriate, and treat address-based blocks as one measure rather than a complete defense.

What if my shared host does not provide authentication logs?

Ask support whether account-level security events can be reviewed and what protections are available. You can still audit the logs you can access, but note that the result is incomplete and does not cover provider-managed services.

How often should I review logs?

Review them on a schedule suited to your site’s risk and available monitoring, and promptly after suspicious alerts, account changes, or unexpected site behavior. Automated alerts can help, but should be tested and periodically checked for missed or noisy events.

Conclusion

A sound audit does more than count login requests. It identifies the relevant service, checks repeated failures in context, correlates them with successful authentication records, and acknowledges gaps in the available data. Use the findings to improve authentication and monitoring without assuming that an IP address or a single response code proves who acted or what happened. This article is informational and does not replace incident-response help from your hosting provider or a qualified security professional when you suspect a compromise.