{"id":18464290,"url":"https://github.com/projectdiscovery/openrisk","last_synced_at":"2025-10-23T23:42:22.911Z","repository":{"id":65071905,"uuid":"578526952","full_name":"projectdiscovery/openrisk","owner":"projectdiscovery","description":"openrisk is a tool that generates a risk score based on the results of a Nuclei scan.","archived":false,"fork":false,"pushed_at":"2025-02-04T12:00:57.000Z","size":65,"stargazers_count":168,"open_issues_count":6,"forks_count":17,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-11T16:15:43.531Z","etag":null,"topics":["ai","gpt-3","nuclei","openai","risk-score"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectdiscovery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2022-12-15T09:12:45.000Z","updated_at":"2025-04-05T01:07:55.000Z","dependencies_parsed_at":"2024-06-19T01:34:10.483Z","dependency_job_id":"aa546d5a-65f6-46ae-bcd1-e7ef1983e730","html_url":"https://github.com/projectdiscovery/openrisk","commit_stats":{"total_commits":20,"total_committers":7,"mean_commits":2.857142857142857,"dds":0.4,"last_synced_commit":"eb07fa476b2321b96b97e9bf4ebead420a19284a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fopenrisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fopenrisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fopenrisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectdiscovery%2Fopenrisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectdiscovery","download_url":"https://codeload.github.com/projectdiscovery/openrisk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"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":["ai","gpt-3","nuclei","openai","risk-score"],"created_at":"2024-11-06T09:09:22.192Z","updated_at":"2025-10-23T23:42:22.906Z","avatar_url":"https://github.com/projectdiscovery.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  openrisk\n\u003cbr\u003e\n\u003c/h1\u003e\n\n\nopenrisk is an experimental tool which reads [nuclei](http://github.com/projectdiscovery/nuclei) output (text, markdown, and JSON) and generates a risk score for the host using OpenAI's GPT-4o model. It is intended, for now, to work against a single target at a time.\n\n\u003e **NOTE**: This is an experimental program released by the ProjectDiscovery Research Team. As such, it may not meet the same code quality standards as our other projects, and may not be as well-tested. We welcome suggestions, bug fixes, and ideas on integrating these experiments into our other tools!\n\n### Install openrisk\nopenrisk requires **go1.20** to install successfully. Run the following command to install the latest version -\n\n```sh\ngo install -v github.com/projectdiscovery/openrisk@latest\n```\n\n### Usage\n\n```sh\nopenrisk -h\n```\n\n```console\n                               _      __  \n  ____  ____  ___  ____  _____(_)____/ /__\n / __ \\/ __ \\/ _ \\/ __ \\/ ___/ / ___/ //_/\n/ /_/ / /_/ /  __/ / / / /  / (__  ) ,\u003c   \n\\____/ .___/\\___/_/ /_/_/  /_/____/_/|_|  Powered by OpenAI (GPT-4o)\n    /_/                                   v0.0.1 (experimental)  \n                projectdiscovery.io\n\n openrisk is an experimental tool generates a risk score from nuclei output for the host using OpenAI's GPT-4o model.\n\nUsage:\n  openrisk [flags]\n\nFlags:\nINPUT:\n   -f, -files string[]  Nuclei scan result file or directory path. Supported file extensions: .txt, .md, .jsonl\n```\n\n\u003e **NOTE**: `OPENAI_API_KEY` is required to run this program and can be obtained by signing up at `https://openai.com/api/`\n\n### Generating Risk Score\n\n```sh\nexport OPENAI_API_KEY=\u003cOPENAI_API_KEY\u003e\n\nopenrisk -f nuclei_scan_result.txt\n```\n\n### Example Run:\n\n```console\nopenrisk -f nuclei_results.txt\n\n                               _      __  \n  ____  ____  ___  ____  _____(_)____/ /__\n / __ \\/ __ \\/ _ \\/ __ \\/ ___/ / ___/ //_/\n/ /_/ / /_/ /  __/ / / / /  / (__  ) ,\u003c   \n\\____/ .___/\\___/_/ /_/_/  /_/____/_/|_|  Powered by OpenAI (GPT-4o)\n    /_/                                   v0.0.1 (experimental)                                          \n  \n    projectdiscovery.io\n\n[RISK SCORE] The 10-scale risk score for the Nuclei scan results is 10. There are multiple high-severity vulnerabilities related to Pantheon, AWS, and Netlify takeovers.\n```\n\n### Using `openrisk` as a library\n\nTo utilize `openrisk` as a library, simply create an instance of the `Options` structure and input your OpenAI API key. With these options, you can then create `OpenRisk` and `IssueProcessor` by including a sample nuclei scan result file. To generate a score for the sample file, call the `openRisk.GetScore` function. For a clear example, refer to the code provided in the [examples](examples/) folder.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fopenrisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectdiscovery%2Fopenrisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectdiscovery%2Fopenrisk/lists"}