apache down for short periods
netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n
but there is no difference during the downtime event and 5 minutes after the downtime event.
netstat -plant
similarly just shows a lot of regular traffic.
sar -r
just shows about 10% more memory underĀ %commit andĀ
sar -q
just shows regular cpu usage.
Since this was such a specific apache related issue, I decided I needed a snapshot of what was going on across accounts at that time.
cat /home/*/access-logs/* > combined_access_logs.txt
Then search for cases of the timestamp inside the combined access log.
This revealed the account that was getting attacked (in this case, with a mountain of traffic from Scrapy despite being behind Cloudflare). I set up specific defenses in Cloudflare's WAF targeting Scrapy and I guess this is solved until the next AI data miner shows up.
-
Fantastic work.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
sondroyo - excellent detective work!
0
Please sign in to leave a comment.
Comments
2 comments