{"id":17789518,"url":"https://github.com/benderscript/rag_poison","last_synced_at":"2025-04-02T00:45:42.666Z","repository":{"id":213201840,"uuid":"733289196","full_name":"BenderScript/rag_poison","owner":"BenderScript","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-11T01:45:21.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T16:28:49.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenderScript.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":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-19T01:56:23.000Z","updated_at":"2023-12-19T02:41:12.000Z","dependencies_parsed_at":"2024-01-11T04:46:48.507Z","dependency_job_id":null,"html_url":"https://github.com/BenderScript/rag_poison","commit_stats":null,"previous_names":["benderscript/rag_poison"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Frag_poison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Frag_poison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Frag_poison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Frag_poison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenderScript","download_url":"https://codeload.github.com/BenderScript/rag_poison/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246735363,"owners_count":20825224,"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":[],"created_at":"2024-10-27T10:32:59.220Z","updated_at":"2025-04-02T00:45:42.648Z","avatar_url":"https://github.com/BenderScript.png","language":"Python","readme":"# GenAI RAG Poison URL Safety Check Program\n\n## Overview\nThis Python program checks URLs for safety using a few techniques:\n\n* the Google Safe Browsing API\n* Abuse.ch database\n\nFor demo purposes it fetches the top 100 URLs from Wikipedia and evaluates each for threats like malware, social engineering, unwanted software, and potentially harmful applications.\n\n\n## Features\n- Integration with Google Safe Browsing API.\n- Extraction of URLs from an HTML table.\n- Assessment of URLs for various threat types.\n- Reporting on potential threats or confirming safety.\n\n## Prerequisites\n- Python 3.11\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/BenderScript/rag_poison\n   ```\n2. Navigate to the cloned directory:\n   ```bash\n   cd rag_poison\n   ```\n3. Install required packages using `pip3`:\n   ```bash\n   pip3 install -r requirements.txt\n   ```\n\n## Configuration\n1. Obtain a Google Safe Browsing API key and place it in a `.env` file as `GOOGLE_SAFE_BROWSING_API_KEY`.\n\n## Usage\nRun the program with Python 3:\n```bash\npython3 main.py\n```\n\n## Function Descriptions\n- `check_url_with_google_safe_browsing(url, api_key)`: Checks a URL against Google's Safe Browsing API and returns matches.\n- `run()`: Main function for URL extraction, API key loading, and URL safety checking.\n\n## Error Handling\n- Manages non-200 responses from the API.\n- Catches exceptions from request failures.\n\n## Contributing\nFeel free to contribute! Open an issue or submit a pull request on GitHub.\n\n## License\nThis project is licensed under the Apache License.\n\n---\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Frag_poison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenderscript%2Frag_poison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Frag_poison/lists"}