{"id":22266321,"url":"https://github.com/cipherkrish69x/security-headers-tool","last_synced_at":"2025-06-18T08:36:42.463Z","repository":{"id":236989135,"uuid":"793577084","full_name":"Cipherkrish69x/security-headers-tool","owner":"Cipherkrish69x","description":"Welcome to the Security Headers Tool, developed by Cipherkrish69x. This tool provides a set of scripts to analyze and check security headers in HTTP responses. It includes scripts to perform various security header checks and a web crawler to gather URLs for testing.","archived":false,"fork":false,"pushed_at":"2024-05-03T20:18:55.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T14:23:06.182Z","etag":null,"topics":["security","security-headers-scanner","securityheaders","web-application-penetration-testing","web-application-security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cipherkrish69x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T13:36:10.000Z","updated_at":"2024-05-03T20:18:58.000Z","dependencies_parsed_at":"2024-12-03T10:28:33.937Z","dependency_job_id":null,"html_url":"https://github.com/Cipherkrish69x/security-headers-tool","commit_stats":null,"previous_names":["cipherkrish69x/security-headers-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cipherkrish69x/security-headers-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cipherkrish69x%2Fsecurity-headers-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cipherkrish69x%2Fsecurity-headers-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cipherkrish69x%2Fsecurity-headers-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cipherkrish69x%2Fsecurity-headers-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cipherkrish69x","download_url":"https://codeload.github.com/Cipherkrish69x/security-headers-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cipherkrish69x%2Fsecurity-headers-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260520202,"owners_count":23021561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["security","security-headers-scanner","securityheaders","web-application-penetration-testing","web-application-security"],"created_at":"2024-12-03T10:18:19.660Z","updated_at":"2025-06-18T08:36:37.450Z","avatar_url":"https://github.com/Cipherkrish69x.png","language":"Python","readme":"###Security Headers Tool\n\nThis repository contains a set of Python scripts designed to check the presence and configuration of security HTTP headers in web server responses.\n\nTable of Contents\nInstallation\nScripts Overview\n1. check_headers.py\n2. check_specific_header.py\n3. check_specific_headerr.py\n4. enhanced_security_header_checker.py\n5. security_headers_checker.py\n6. spider.py\n\n## Scripts\n\ncheck_headers.py: Analyzes HTTP response headers for security settings.\ncheck_specific_header.py: Checks for specific security headers in HTTP responses.\ncheck_specific_headerr.py: Checks for specific security headers in HTTP responses using URLs from a file.\nenhanced_security_header_checker.py: Performs enhanced security header checks on a given URL.\nsecurity_headers_checker.py: Checks for predefined security headers in the response headers of a specified URL.\nspider.py: Web crawler to collect URLs for testing\n\n## Supported Security Headers and Significance\n\nThe tool checks for the following security headers and explains their significance:\n\n- **Content-Security-Policy (CSP)**: Specifies approved sources for content, protecting against XSS and data injection attacks.\n- **X-XSS-Protection**: Enables or disables the browser's XSS protection.\n- **Strict-Transport-Security (HSTS)**: Ensures that browsers only access a website over HTTPS, preventing protocol downgrade attacks.\n- **X-Frame-Options**: Prevents clickjacking attacks by controlling if and how a page can be loaded within a frame or iframe.\n- **X-Content-Type-Options**: Prevents browsers from MIME-sniffing a response away from the declared content type.\n- **Referrer-Policy**: Controls how much referrer information is included with requests.\n\nEach security header contributes to enhancing the security posture of a web application by mitigating specific types of attacks.\n\n## Usage\n\nTo use the scripts, ensure you have Python installed. Install any required dependencies with:\n\n### Prerequisites\n\n- Python 3.x installed on your system.\n\n### Installation\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/Cipherkrish69x/security-headers-tool.git\n   cd security-headers-tool\n   ```\n\n2. **Install Requirements:**\n\n   Ensure you have Python 3 installed. Install the required Python packages using pip:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n- -\tpip install requests\n  -\tpip install requests argparse \n## Scripts Overview\n\n### 1. `check_headers.py`\n\n-- python check_headers.py --urls-file urls.txt --headers-file headers.txt --output-file output.json\nThis script checks the presence of specified HTTP headers in the response headers of a single URL.\n\nBenefits of JSON Output:\nData Persistence: JSON output allows for persistent storage and retrieval of results.\nPortability: JSON files can be easily shared and transported between different systems.\nFlexibility: JSON output can be processed and analyzed using a wide range of tools and libraries.\n\nUse the --help Option:\nIncorporate a built-in help menu (--help option) using argparse\n\n-\tpython check_headers.py --help\n\n\n**Usage:**\n\n```bash\npython3 check_headers.py --urls-file urls.txt --headers-file headers.txt --output-file results.json\n```\n\n- `--urls-file`: Path to a text file containing URLs to check.\n- `--headers-file`: Path to a text file containing HTTP headers to verify.\n- `--output-file`: (Optional) Path to save the JSON results.\n\n### 2. `check_specific_header.py`\n\nChecks the presence of a specific HTTP header in the response headers of multiple URLs.\n\n**Usage:**\n\n```bash\npython3 check_specific_header.py\n```\n\n- You will be prompted to enter the header name and URLs separated by spaces.\n\n### 3. `check_specific_headerr.py`\n\nSimilar to `check_specific_header.py`, but reads URLs from a file (`urls.txt`).\n\n**Usage:**\n\n```bash\npython3 check_specific_headerr.py\n```\n\n- Reads URLs from the `urls.txt` file and prompts for the header name.\n\n### 4. `enhanced_security_header_checker.py`\n\n-- python enhanced_security_header_checker.py https://example.com --output-file result.txt\n\nPerforms enhanced security header checks on a single URL.\n\n**Usage:**\n\n```bash\npython3 enhanced_security_header_checker.py \u003curl\u003e --output-file output.txt\n```\n\n- Replace `\u003curl\u003e` with the URL you want to check.\n- Use `--output-file` to specify a file to save the results.\n\n### 5. `security_headers_checker.py`\n\nChecks for the presence and configuration of a set of predefined security headers in a given URL.\n\n**Usage:**\n\n```bash\npython3 security_headers_checker.py\n```\n\n- You will be prompted to enter the URL you want to test.\n\n## Author\n\n- **Alla Krishna Vamsi Reddy** ([GitHub Profile](https://github.com/Cipherkrish69x))\n- GitHub: Cipherkrish69x\n\n#### License\n\nThis project is licensed under the [MIT License](LICENSE). \n\n---\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherkrish69x%2Fsecurity-headers-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcipherkrish69x%2Fsecurity-headers-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcipherkrish69x%2Fsecurity-headers-tool/lists"}