Lockdown Ledger
Lockdown Ledger
@LockdownLedger

Case: One chmod Sweep Found 1,847 World-Writable Files

Case: One chmod Sweep Found 1,847 World-Writable Files
Inherited a hosting account after a malware cleanup. A previous "fix" had set huge swaths of files to 0777.

Audit SOP:

— Step 1: Inventory the damage. find . -type f -perm -0002 | wc -l returned 1,847 world-writable files.
— Step 2: Inventory dirs. find . -type d -perm -0002 | wc -l returned 213.
— Step 3: Reset files to 644. find . -type f -exec chmod 644 {} +
— Step 4: Reset dirs to 755. find . -type d -exec chmod 755 {} +
— Step 5: Lock config. chmod 600 wp-config.php
— Step 6: Re-scan with step 1 — expect 0.

Outcome: 1,847 → 0 world-writable files. Two reinfection attempts in the next week both failed to write payloads.

Run this every time.
Этот пост опубликован в Telegram-канале Lockdown Ledger. Подписаться можно по ссылке: @LockdownLedger.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.