What Server Logs Reveal About Attackers: Analyzing Suspicious Requests on Linux
Server logs can reveal significant details about potential attackers by capturing sequences of events on Linux systems. This practical guide for junior Blue Team specialists shows where to locate traces of suspicious activity, how to interpret SSH and web server records, and why a single unusual request does not necessarily indicate a compromise.
Essential Log Sources
Three primary sources support initial investigations. System journals contain service events, errors, and operating system messages; on systemd-based distributions these are accessed with journalctl. SSH and authentication logs record successful and failed login attempts, unknown usernames, and access-related events. Web server and application logs document HTTP requests, requested resources, response codes, and application errors.
On Debian and Ubuntu systems authentication events typically reside in /var/log/auth.log; on RHEL-based systems they appear in /var/log/secure. Recent SSH events can be viewed with:
sudo journalctl -u ssh --since "1 hour ago"
or, on distributions where the service is named sshd:
sudo journalctl -u sshd --since "1 hour ago"
The last 100 lines of an Nginx access log are retrieved with:
sudo tail -n 100 /var/log/nginx/access.log
Failed SSH Login Attempts
Example entries show repeated failures from the same source IP using different usernames at short intervals. Such patterns may indicate automated credential testing, yet they can also result from misconfigured automation or forgotten passwords. Quick searches use:
sudo grep -E "Failed password|Invalid user" /var/log/auth.log
Key Indicators in Logs
- Event frequency: hundreds of attempts in minutes versus occasional failures.
- Username diversity: sequential testing of many accounts suggests automation.
- Successful logins following failures: these require verification against expected user behavior.
- Timing: nighttime activity must be compared with normal operational schedules.
Web Server Request Analysis
Nginx access logs may contain sequences such as requests for /admin, /backup.zip, and /.env. Consecutive checks of common sensitive paths often signal automated reconnaissance, although individual requests can originate from legitimate users or crawlers. Response codes alone do not confirm compromise because applications may return 200 OK for missing resources.
Identifying Active IP Addresses
The following command counts the most frequent client addresses in an Nginx access log:
sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nr | head -20
High counts require context; they may reflect API usage, load balancers, or reverse proxies rather than malicious traffic. Headers such as X-Forwarded-For are reliable only when trusted proxies are correctly configured.
Application-Level Logging
System and web-server logs often lack details about authorization decisions. Structured JSON events should record timestamp, event type, user identifier, resource, result, and reason. The OWASP Logging Cheat Sheet recommends capturing successful and failed authentication, access-control denials, input-validation errors, and administrative actions.
Information That Must Not Appear in Logs
- Passwords and session tokens
- Private keys
- Database connection strings containing credentials
- Unnecessary personal data
Logs must be protected against tampering, rotated regularly, and shielded from log-injection attacks through proper encoding.
Limitations of Log Data
Even well-configured logging cannot capture every event. Clocks may be unsynchronized, IP addresses may represent NAT or VPN pools, and privileged attackers can alter or delete local logs. Mature environments forward events to centralized logging or SIEM platforms.
Minimal Investigation Plan
- Record the exact time window of suspicious events.
- Preserve original log files and system metadata without modification.
- Correlate SSH, web-server, application, and system logs for the same period.
- Check for successful actions after sequences of failures.
- Compare observed activity against known baselines such as backups and scheduled tasks.
- Assess impact on accounts, data, and configurations.
- Execute response procedures only after evidence supports the hypothesis.
Server logs remain a foundational Blue Team tool when events contain sufficient context, timestamps are consistent, and analysis combines multiple data sources.
Related articles
30 Tools for Six Core Information Security Tasks: From Recon to Forensics
The article provides a practical guide for system administrators managing a single website, database, and server setup. It covers 30 specific tools across six categories: reconnaissance, web application testing, infrastructure scanning, incident response, digital forensics, and secure development practices. Each section recommends five tools with explanations of their use cases, such as discovering forgotten assets like test2 or analyzing network traffic during off-hours incidents. Tools include Subfinder for passive subdomain enumeration, Burp Suite for request inspection, Nmap for port scanning, Zeek for structured logging, Autopsy for disk image analysis, and Gitleaks for secret detection in Git history. The guide emphasizes proper documentation of assets, including ownership confirmation by colleagues like Lena, and highlights limitations such as VPN effects on scan results or TLS termination at load balancers. It concludes by stressing the value of maintaining accurate records to simplify future certificate renewals and incident handling.
UPS Battery Checks Trigger Minute-by-Minute Fluctuations in Global Power Grids
Power grids worldwide have exhibited synchronized frequency dips exactly once per minute for years, caused by simultaneous battery testing routines in large uninterruptible power supply installations. Researchers from Germany traced the phenomenon to UPS management software that initiates battery health checks on synchronized clocks, creating cumulative power spikes when thousands of units activate together. The team installed monitoring equipment across 80 locations at the Jülich research center and confirmed the characteristic one-minute rhythm wherever large battery systems operated. Detailed measurements on a single installation revealed a sharp consumption spike at the start of every minute. Although the oscillations do not yet threaten grid stability, they force hydroelectric turbines to repeatedly slow and accelerate, increasing mechanical wear. In Ireland the amplitude of the minute-scale signal grew fourfold between 2016 and 2021. The proposed mitigation is to desynchronize the checks by introducing random time offsets across devices.
10 Services for Instant Video Meetings by Link Without Registration
The article reviews ten platforms designed for quick video calls that require minimal setup. Services such as Bitrix24 Sync and SaluteJazz stand out because they allow organizers and guests to join meetings without creating accounts. Other options like Yandex Telemost, VK Calls, Google Meet, Zoom, Microsoft Teams, Jitsi Meet, MTS Link, and Kontur.Talk offer varying levels of registration requirements, participant limits, and time restrictions on free plans. The comparison highlights differences in meeting duration, guest access policies, screen sharing, and integration with corporate tools. Practical advice is provided on testing connections, checking mobile support, and understanding technical limits that may affect long sessions. The review concludes that choosing the right service depends on team size, need for extended calls, and existing ecosystem preferences.
Heterogeneous IT Infrastructure Management Persists Among Russian Companies
A recent AM Live viewer poll revealed that 54% of participants manage their heterogeneous IT infrastructure only partially, with just 3% achieving unified control across multiple vendors. The discussion took place during the broadcast titled 'IT Ecosystems: Convenience, Savings, or Dependency?' and highlighted ongoing challenges in the Russian market amid import substitution efforts involving companies such as Orion Soft and Astra Group. 23% of respondents reported using separate platforms with independent management, while 16% relied on a single vendor's unified ecosystem. Key drivers for interest in unified platforms included automation needs (78%), cost reduction (64%), compatibility issues (61%), and specialist shortages (53%). Experts Sergey Rychikhin and Alexander Gavrilenko emphasized that true ecosystems require technological integration, consistent user experience, scalable architecture, and unified support rather than simple branding alignment. Recommendations included clearly defining integration requirements and exit conditions in contracts to mitigate vendor lock-in risks.