자동화 보안 진단 및 감사 (SSRF, SQLi 등)

직접 명령어를 실행하거나 AI에게 코드를 감사하도록 지시하여 서버를 완벽하게 보호하세요.

이 위자드는 명령어(CMD) 검사와 AI 프롬프트 감사를 혼합하여 진행됩니다. 순서대로 미션을 완수하세요.

서버 인프라 보안 진단 (정적 분석)

서버 터미널에서 명령어를 실행하고 결과를 붙여넣기만 하면, 즉시 보안 상태를 진단합니다. 서버 IP 노출이나 외부 통신 없이 브라우저에서 100% 안전하게 구동됩니다.

1. 타겟 도메인 입력 (선택):

2. 서버에서 아래 명령어를 한 번에 복사해서 일괄 실행하세요:

sudo ss -tlnp
sudo ufw status verbose
sudo sshd -T
echo | openssl s_client -connect localhost:443 | openssl x509 -noout -dates
openssl s_client -tls1 -connect localhost:443 </dev/null 2>&1
apt list --upgradable | cat
sudo fail2ban-client status sshd
cat /etc/apt/apt.conf.d/20auto-upgrades
docker ps --format "table {{.Names}}\t{{.Ports}}"
sudo find / -perm /4000 -type f
crontab -l
cat /sys/class/dmi/id/sys_vendor /sys/class/dmi/id/product_name 2>/dev/null
dig TXT yourdomain.com +short && dig TXT _dmarc.yourdomain.com +short

3. 출력된 전체 텍스트 결과를 아래에 모두 붙여넣으세요:

진행률0%
🔍

Step 1. 인프라 보안 점검 (포트 & 방화벽)

서버 내부에서 직접 포트 및 방화벽 설정 상태를 확인합니다.

현재 수신 대기 중인 전체 포트 확인

LINUX

서버 터미널에 접속하여 아래 명령어를 실행하세요. (0.0.0.0 또는 :::로 표시된 포트가 외부 노출 상태입니다. 하드웨어 정보도 함께 확인합니다)

Terminal Command
sudo ss -tlnp
cat /sys/class/dmi/id/sys_vendor /sys/class/dmi/id/product_name 2>/dev/null
💡 기대 결과 / 체크 포인트

Local Address:Port에 0.0.0.0:3306(MySQL), 0.0.0.0:6379(Redis) 등이 보인다면 해킹 위험이 매우 높습니다. 단, 클라우드 환경(AWS 등)으로 확인될 경우 외부 방화벽으로 보호받을 수 있습니다.

방화벽(UFW) 상태 확인

LINUX

우분투/데비안 환경에서 방화벽 룰을 확인합니다.

Terminal Command
sudo ufw status verbose
💡 기대 결과 / 체크 포인트

Status: active 여야 하며, 80/tcp, 443/tcp, 22/tcp 외에 불필요한 포트(DB 등)가 ALLOW로 설정되어 있지 않아야 합니다.

AI에게 포트 목록 검토 위임

위 명령어 실행 결과를 복사해서 AI에게 점검을 맡기세요.

AI Prompt
내가 운영 중인 리눅스 서버에서 'sudo ss -tlnp', 'sudo ufw status', 그리고 하드웨어 벤더 정보를 실행한 결과야:

[여기에 터미널 출력결과를 붙여넣으세요]

이 결과에서 외부에 불필요하게 노출되어 해킹 타겟이 될 수 있는 위험한 포트(DB, 캐시, 개발용 서버 등)가 있는지 분석해주고, 해당 포트를 127.0.0.1로 바인딩하거나 방화벽으로 닫는 정확한 명령어를 작성해줘.

Target Context: Review the entire codebase/workspace.

Checklist-Driven Workflow Instructions:
1. Do NOT modify or generate any code yet.
2. First, scan the entire codebase to identify all files and components relevant to the vulnerabilities mentioned above.
3. Generate a step-by-step Security Audit & Remediation Checklist using a checkbox format (e.g., - [ ]). The checklist should list specific files or logical components to be audited.
4. Wait for my approval. Once I say "Proceed", execute the audit and remediation for the first item on the checklist.
5. After completing one step, wait for my confirmation before moving to the next unchecked item.