{"id":45639927,"url":"https://github.com/r3li4nt/rulesaudit","last_synced_at":"2026-03-01T07:01:08.222Z","repository":{"id":340042288,"uuid":"1164265412","full_name":"R3LI4NT/RulesAudit","owner":"R3LI4NT","description":"Herramienta para auditoría de reglas de Firewall.","archived":false,"fork":false,"pushed_at":"2026-02-25T00:58:27.000Z","size":1513,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-25T06:39:09.030Z","etag":null,"topics":["audit","ethical-hacking","firewall","firewall-rules","pentesting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R3LI4NT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-22T21:50:16.000Z","updated_at":"2026-02-25T00:58:30.000Z","dependencies_parsed_at":"2026-02-25T03:01:50.013Z","dependency_job_id":null,"html_url":"https://github.com/R3LI4NT/RulesAudit","commit_stats":null,"previous_names":["r3li4nt/rulesaudit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/R3LI4NT/RulesAudit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3LI4NT%2FRulesAudit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3LI4NT%2FRulesAudit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3LI4NT%2FRulesAudit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3LI4NT%2FRulesAudit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R3LI4NT","download_url":"https://codeload.github.com/R3LI4NT/RulesAudit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3LI4NT%2FRulesAudit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29848662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","ethical-hacking","firewall","firewall-rules","pentesting"],"created_at":"2026-02-24T02:26:24.419Z","updated_at":"2026-02-27T05:00:44.861Z","avatar_url":"https://github.com/R3LI4NT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"500\" height=\"180\" src=\"https://github.com/user-attachments/assets/8e576ea8-536e-45f6-9a2e-5913de8ee017\" alt=\"RulesAudit\" Logo\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://dotnet.microsoft.com/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-Tool-00DD00.svg\"\u003e\n  \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Release-1.0-00DD00.svg\"\u003e\n  \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Public-%F0%9F%97%9D%EF%B8%8F-00DD00.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\n### Acerca de RulesAudit\n\nRulesAudit es una herramienta desarrollada en Python para analizar configuraciones inseguras en reglas de Firewalls. \n\nCuenta con un motor propio de vulnerabilidades basado en el archivo `vulns.json`, completamente personalizable, que permite clasificar los hallazgos en distintos niveles de severidad según su tipo: **Crítica, Alta, Media, Baja e Informativa**.\n\n\u003cimg width=\"1572\" height=\"882\" alt=\"1\" src=\"https://github.com/user-attachments/assets/ee65d2ae-5b7e-4d3c-86ea-37e50b082dd3\" /\u003e\n\nEl archivo `mapeo\\csv_to_excel` permite convertir una o varias reglas CSV a un formato más legible (Excel).\n\n\u003cimg width=\"1333\" height=\"653\" alt=\"mapeo-2\" src=\"https://github.com/user-attachments/assets/0bb6ce8c-01ef-4a0d-b7b9-93adaf1ecbb7\" /\u003e\n\nUtiliza \u003ca href=\"https://pandas.pydata.org/\"\u003ePandas\u003c/a\u003e para estructurar los datos del Excel en diferentes headers según su tipo: **Policy, Source, Destination, Schedule, Service, Action, IP Pool, NAT, Type, Security Profiles, Log, Bytes, Extra_13**.\n\n\u003cimg width=\"1755\" height=\"774\" alt=\"3\" src=\"https://github.com/user-attachments/assets/1f97a5a3-8671-4b7f-b124-85f9ba7b2c38\" /\u003e\n\nEn caso de que las reglas exportadas del cliente tenga diferentes formatos, pueden modificar los archivos `csv_to_excel` y `analyzer.py` para especificarle los headers.\n\n\u003cimg width=\"722\" height=\"214\" alt=\"formatos-2\" src=\"https://github.com/user-attachments/assets/a5cae1ef-b775-480a-bb3b-18986521aa83\" /\u003e\n\n\u003cimg width=\"1096\" height=\"887\" alt=\"formatos\" src=\"https://github.com/user-attachments/assets/eda0112b-9ad7-456c-97d5-c6570ee21489\" /\u003e\n\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\nLuego de mapear los resultados, el módulo `analyzer\\audit.py` se encarga de tomar las reglas y analizarlas en busca de configuración insegura basandose en el motor `vulns.json`.\n\n\u003cimg width=\"1726\" height=\"942\" alt=\"audit-1\" src=\"https://github.com/user-attachments/assets/82aa2a2e-ce70-4f08-86c8-98c6d169318e\" /\u003e\n\n\u003cimg width=\"1165\" height=\"421\" alt=\"audit-2\" src=\"https://github.com/user-attachments/assets/f19440c1-a3b7-4580-a3d8-3256c6716535\" /\u003e\n\nLos resultados se guardan en un `excel` y un `html` interactivo para su posterior análisis:\n\n\u003cimg width=\"1641\" height=\"811\" alt=\"excel\" src=\"https://github.com/user-attachments/assets/74bcbd55-3c2d-427c-a6b8-2cc10d391586\" /\u003e\n\nEl reportador HTML permite exportar un CSV si usted así lo requiere.\n\n\u003cimg width=\"1919\" height=\"954\" alt=\"7\" src=\"https://github.com/user-attachments/assets/1d638ec5-6fb8-4e76-8e1b-0f77946f4a32\" /\u003e\n\n\u003cimg width=\"1919\" height=\"947\" alt=\"html\" src=\"https://github.com/user-attachments/assets/b2cae175-77a2-4bb2-9164-cd33d9121c77\" /\u003e\n\n\u003cimg width=\"1917\" height=\"945\" alt=\"reporte\" src=\"https://github.com/user-attachments/assets/2f666bad-f109-49d6-b43d-893a71867bd4\" /\u003e\n\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\n### Consideraciones a tener en cuenta\n\nEl motor construido se basa en la lógica del Analista, usted debe analizar si las configuraciones inseguras encontradas son válidas y si corresponden a la severidad clasificada. Siéntase libre de optimizar y ampliar el archivo `vulns.json` para mejorar la precisión en la detección y clasificación de vulnerabilidades.\n\nEl script `IA_audit.py` corresponde a un analizador de reglas pero utilizando la IA de Gemini que aún se encuentra en fase de pruebas.\n\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\nCorreo de contacto:\n\n\u003cimg src=\"https://img.shields.io/badge/r3li4nt.contact@keemail.me-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\" /\u003e\n\n\u003ch1 align=\"center\"\u003e\u003c/h1\u003e\n\n#### Developer: ~R3LI4NT~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3li4nt%2Frulesaudit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3li4nt%2Frulesaudit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3li4nt%2Frulesaudit/lists"}