|
1 | | -# Credenciales y secretos — NUNCA subir |
| 1 | +# ══════════════════════════════════════════════════════════════════ |
| 2 | +# .gitignore — SOC Zero Trust TFG ASIR 2025-2026 |
| 3 | +# Regla de oro: si contiene credenciales, claves o datos privados → fuera |
| 4 | +# ══════════════════════════════════════════════════════════════════ |
| 5 | + |
| 6 | +# ────────────────────────────────────────────────────────────────── |
| 7 | +# CREDENCIALES Y CLAVES — NUNCA subir bajo ningún concepto |
| 8 | +# ────────────────────────────────────────────────────────────────── |
2 | 9 | *.pem |
3 | 10 | *.key |
4 | 11 | *.p12 |
5 | 12 | *.pfx |
| 13 | +*.crt |
| 14 | +*.cer |
6 | 15 | .env |
7 | 16 | .env.* |
| 17 | +.env.local |
| 18 | +.env.production |
8 | 19 | secrets.yml |
| 20 | +secrets.yaml |
9 | 21 | credentials.json |
| 22 | +credentials.yml |
| 23 | + |
| 24 | +# Wazuh específico |
10 | 25 | wazuh-agent-key.txt |
| 26 | +client.keys |
11 | 27 | *registration_password* |
| 28 | +*authd*password* |
| 29 | +*.ossec-tmp |
| 30 | + |
| 31 | +# Contraseñas en config — patrones comunes |
| 32 | +*password* |
| 33 | +*passwd* |
| 34 | +*secret* |
| 35 | +*token* |
| 36 | +# Excepción: archivos de config del proyecto (tienen placeholders, no valores reales) |
| 37 | +!config/wazuh/ossec.conf |
| 38 | +!config/fail2ban/jail.local |
| 39 | +!config/fail2ban/*.conf |
| 40 | +!config/nginx/*.conf |
| 41 | +!config/opnsense/*.sh |
| 42 | +!config/active-response/* |
12 | 43 |
|
13 | | -# Capturas y evidencias (ficheros grandes, privados) |
| 44 | +# ────────────────────────────────────────────────────────────────── |
| 45 | +# CAPTURAS Y EVIDENCIAS — privadas o demasiado grandes |
| 46 | +# ────────────────────────────────────────────────────────────────── |
14 | 47 | Capturas/ |
15 | 48 | media/screenshots/ |
| 49 | +media/*.pcap |
| 50 | +media/*.pcapng |
16 | 51 | *.pcap |
17 | 52 | *.pcapng |
| 53 | +*.cap |
18 | 54 |
|
19 | | -# Documentación interna del TFG (no va en el repo público) |
| 55 | +# ────────────────────────────────────────────────────────────────── |
| 56 | +# DOCUMENTACIÓN INTERNA DEL TFG — no va al repo público |
| 57 | +# ────────────────────────────────────────────────────────────────── |
20 | 58 | Documento-TFG/ |
21 | 59 | memory/ |
22 | 60 | Chats/ |
23 | 61 | Sesiones-Datos/ |
24 | 62 | Arquitectura-Resumenes/ |
25 | 63 | copy_vms.py |
| 64 | +*.drawio.bak |
26 | 65 |
|
27 | | -# Python |
| 66 | +# ────────────────────────────────────────────────────────────────── |
| 67 | +# PYTHON |
| 68 | +# ────────────────────────────────────────────────────────────────── |
28 | 69 | __pycache__/ |
29 | | -*.pyc |
| 70 | +*.py[cod] |
| 71 | +*$py.class |
30 | 72 | *.pyo |
31 | 73 | .Python |
| 74 | +pip-log.txt |
| 75 | +pip-delete-this-directory.txt |
32 | 76 | venv/ |
33 | 77 | .venv/ |
| 78 | +env/ |
| 79 | +.env/ |
| 80 | +*.egg-info/ |
| 81 | +dist/ |
| 82 | +build/ |
| 83 | +*.egg |
34 | 84 |
|
35 | | -# Node / build |
| 85 | +# ────────────────────────────────────────────────────────────────── |
| 86 | +# NODE / JAVASCRIPT (web señuelo si algún día se expande) |
| 87 | +# ────────────────────────────────────────────────────────────────── |
36 | 88 | node_modules/ |
| 89 | +npm-debug.log* |
| 90 | +yarn-debug.log* |
| 91 | +yarn-error.log* |
| 92 | +.npm |
37 | 93 | dist/ |
38 | 94 | build/ |
39 | 95 |
|
40 | | -# OS |
| 96 | +# ────────────────────────────────────────────────────────────────── |
| 97 | +# LOGS — nunca al repositorio |
| 98 | +# ────────────────────────────────────────────────────────────────── |
| 99 | +*.log |
| 100 | +*.log.* |
| 101 | +logs/ |
| 102 | +/var/log/ |
| 103 | +ossec.log |
| 104 | +alerts.log |
| 105 | +archive.log |
| 106 | + |
| 107 | +# ────────────────────────────────────────────────────────────────── |
| 108 | +# ARCHIVOS TEMPORALES Y BACKUPS |
| 109 | +# ────────────────────────────────────────────────────────────────── |
| 110 | +*.tmp |
| 111 | +*.temp |
| 112 | +*.bak |
| 113 | +*.backup |
| 114 | +*.orig |
| 115 | +*.swp |
| 116 | +*.swo |
| 117 | +*~ |
| 118 | +\#*\# |
| 119 | + |
| 120 | +# ────────────────────────────────────────────────────────────────── |
| 121 | +# SISTEMA OPERATIVO |
| 122 | +# ────────────────────────────────────────────────────────────────── |
| 123 | +# macOS |
41 | 124 | .DS_Store |
| 125 | +.AppleDouble |
| 126 | +.LSOverride |
| 127 | +._* |
| 128 | +.Spotlight-V100 |
| 129 | +.Trashes |
| 130 | + |
| 131 | +# Windows |
42 | 132 | Thumbs.db |
| 133 | +Thumbs.db:encryptable |
| 134 | +ehthumbs.db |
43 | 135 | desktop.ini |
| 136 | +$RECYCLE.BIN/ |
| 137 | +*.lnk |
44 | 138 |
|
45 | | -# Editors |
| 139 | +# Linux |
| 140 | +.directory |
| 141 | +.Trash-* |
| 142 | + |
| 143 | +# ────────────────────────────────────────────────────────────────── |
| 144 | +# EDITORES E IDEs |
| 145 | +# ────────────────────────────────────────────────────────────────── |
| 146 | +# VSCode |
46 | 147 | .vscode/ |
| 148 | +*.code-workspace |
| 149 | + |
| 150 | +# JetBrains |
47 | 151 | .idea/ |
| 152 | +*.iml |
| 153 | +*.iws |
| 154 | +*.ipr |
| 155 | + |
| 156 | +# Vim/Emacs |
48 | 157 | *.swp |
49 | | -*~ |
| 158 | +*.swo |
| 159 | +[._]*.s[a-v][a-z] |
| 160 | +[._]*.sw[a-p] |
| 161 | +Session.vim |
| 162 | +.netrwhist |
50 | 163 |
|
51 | | -# Logs del lab (nunca al repo) |
52 | | -*.log |
| 164 | +# ────────────────────────────────────────────────────────────────── |
| 165 | +# DOCKER (si se usan contenedores localmente) |
| 166 | +# ────────────────────────────────────────────────────────────────── |
| 167 | +.docker/ |
| 168 | +docker-compose.override.yml |
| 169 | + |
| 170 | +# ────────────────────────────────────────────────────────────────── |
| 171 | +# ARCHIVOS GRANDES DE MEDIA (subir manualmente cuando estén listos) |
| 172 | +# ────────────────────────────────────────────────────────────────── |
| 173 | +# El GIF y PNG se añaden explícitamente cuando existan |
| 174 | +# media/*.gif ← NO ignorar, queremos el demo GIF |
| 175 | +# media/*.png ← NO ignorar, queremos el diagrama PNG |
| 176 | +# El .drawio SÍ se incluye (ya está en el repo) |
0 commit comments