In modern software development environments, sensitive credential exposure and phishing attacks remain two of the most critical security vulnerabilities threatening enterprise infrastructure. Traditional security solutions often operate in isolation and identify vulnerabilities long after code has been committed or applications deployed. This paper presents OmniGuard AI, an integrated dual-engine security platform that unifies static secret detection, automated remediation and phishing threat analysis. Engine 1 (Code Secret Scanner) combines regular-expression signatures with Shannon entropy scoring to detect hardcoded API keys, database connection strings and tokens, while Engine 2 (Phishing Threat Analyzer) evaluates URLs with structural and lexical feature heuristics to assign risk scores. To enforce a “shift-left” security model, the platform provides a local Git pre-commit hook that intercepts credential leaks before they are committed, and Credential Shield JS, a lightweight browser-side runtime monitoring module. An automated refactoring engine then remediates detected vulnerabilities by replacing hardcoded credentials with secure environment-variable calls (os.getenv()). The prototype is implemented in Python Flask with a browser dashboard and is validated functionally on backend and frontend routes: the scanner reports simulated credentials with file, line, signature, entropy and severity, no false positives were observed on the clean templates tested, and the pre-commit hook is implemented to abort commits that contain credential patterns. By bridging pre-commit prevention with application-level threat analysis, OmniGuard AI provides a scalable, developer-centric framework for enterprise security assurance.
Introduction
The text presents OmniGuard AI, an integrated cybersecurity platform designed to detect and prevent source-code credential leaks and phishing attacks. Modern software development increasingly depends on cloud services, APIs, and distributed repositories, creating security risks such as accidental exposure of sensitive credentials and phishing-based attacks.
Traditional security tools often handle code vulnerabilities and phishing threats separately, resulting in delayed detection, limited protection, and manual remediation. To overcome these limitations, OmniGuard AI combines two security engines into a single web-based platform.
The system has the following main features:
Engine 1 – Code Secret Scanner: Detects exposed credentials, such as AWS access keys, Stripe tokens, database connection strings, and private API keys using regular expressions and Shannon entropy analysis.
Engine 2 – Phishing Threat Analyzer: Identifies suspicious URLs by examining domain structure, subdomains, deceptive extensions, brand impersonation, and other phishing-related characteristics.
Automated Refactoring: Automatically replaces detected hardcoded credentials with environment variable references using os.getenv().
Git Pre-commit Hook: Prevents developers from committing source code containing sensitive credentials to Git repositories.
Credential Shield JS: Monitors browser input fields and generates security warnings to help prevent accidental exposure of sensitive information.
Audit and Reporting: Maintains security records and allows administrators to export findings in CSV format.
The literature survey highlights existing research on phishing detection, entropy-based secret scanning, machine learning, automated security hooks, and runtime monitoring. It identifies the need for a unified platform that combines detection, prevention, remediation, and reporting.
The proposed system is developed using Python Flask for the backend, HTML, CSS, JavaScript, and Bootstrap for the frontend, and SQLite or MySQL for database management. Additional technologies include Scikit-learn for machine learning, Git hooks for developer-side security, and Python libraries for file processing and reporting.
The methodology involves scanning uploaded source files using regular-expression patterns and Shannon entropy calculations to identify potentially exposed credentials. URLs are analyzed using structural, lexical, and heuristic features to calculate phishing risk scores and classify suspicious websites. Detected vulnerabilities are recorded in the database and presented through a centralized dashboard.
Conclusion
This paper presented OmniGuard AI, an integrated, developer-centric platform that unifies static secret detection, automated remediation, shift-left developer tooling and heuristic phishing analysis. Engine 1 combines regex signatures with Shannon entropy to report hardcoded credentials with file, line and severity; the Git pre-commit hook and Credential Shield JS move enforcement to the developer workstation and the browser; the refactoring module turns detection into remediation by rewriting secrets into os.getenv() calls; and Engine 2 scores URLs from structural and lexical features. Telemetry and CSV audit export give administrators a complete record. The prototype shows that these controls can be combined in one lightweight Flask application, and the limitations above define the evaluation and hardening needed before field use.
References
[1] A. Smith and B. Johnson, “Phishing URL detection using machine learning and structural features,” J. Cybersecurity Res., vol. 14, no. 1, pp. 12–25, 2026.
[2] K. Patel and R. Gomez, “Contextual machine learning for secret leakage detection,” Int. J. Softw. Eng. Secur., vol. 12, no. 3, pp. 110–124, 2025.
[3] L. Zhang and H. Wang, “Real-time phishing detection via ensemble feature optimization,” IEEE Trans. Inf. Forensics Security, vol. 20, pp. 3450–3462, 2025.
[4] M. Davis and S. Taylor, “Shifting security left with Git pre-commit automation,” J. Syst. Softw. Eng., vol. 9, no. 4, pp. 88–97, 2024.
[5] R. Anderson and C. Lee, “Hybrid credential exposure prevention in code assets,” Comput. Secur., vol. 138, pp. 103–115, 2024.
[6] A. Kumar and R. Sharma, “Entropy-based static code analysis for credential and secret leakage detection in modern software assets,” J. Syst. Softw. Secur., vol. 15, no. 4, pp. 112–128, 2022.
[7] R. Williams and D. Singh, “Browser runtime monitoring and credential shielding in web applications,” in Proc. Int. Conf. Innovative Comput. Commun. (ICICC), 2023, paper 4523.
[8] T. Brown and L. Davis, “Interactive security operations dashboards for automated vulnerability remediation,” IEEE Trans. Learn. Technol., vol. 17, no. 1, pp. 25–35, 2024.
[9] B. Ahmed and S. N. Malik, “Lexical feature extraction and heuristic evaluation systems for phishing analysis,” in Proc. IEEE Int. Conf. Signal Process. Commun. (ICSPC), 2022, pp. 410–415.
[10] V. Chandra and P. Nair, “Automated compliance auditing and telemetry export frameworks for software security,” Int. J. Artif. Intell. Appl. (IJAIA), vol. 11, no. 2, pp. 45–53, 2020.
[11] Pallets Projects, “Flask documentation.” [Online]. Available: https://flask.palletsprojects.com/
[12] Git SCM, “githooks – Hooks used by Git.” [Online]. Available: https://git-scm.com/docs/githooks
[13] Bootstrap Team, “Bootstrap.” [Online]. Available: https://getbootstrap.com/
[14] C. E. Shannon, “A mathematical theory of communication,” Bell Syst. Tech. J., vol. 27, no. 3, pp. 379–423, Jul. 1948.