{"id":37091451,"url":"https://github.com/vertoforce/go-ioc","last_synced_at":"2026-01-14T11:06:45.297Z","repository":{"id":56610488,"uuid":"226195054","full_name":"vertoforce/go-ioc","owner":"vertoforce","description":"IOC (Indicator of compromise) library to find, fang/defang, etc IOCs from a string or reader","archived":false,"fork":false,"pushed_at":"2022-02-11T02:16:05.000Z","size":111,"stargazers_count":9,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T04:02:27.674Z","etag":null,"topics":["cli","hacktoberfest","ioc"],"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/vertoforce.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}},"created_at":"2019-12-05T21:50:12.000Z","updated_at":"2023-09-28T11:08:48.000Z","dependencies_parsed_at":"2022-08-15T21:50:51.313Z","dependency_job_id":null,"html_url":"https://github.com/vertoforce/go-ioc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vertoforce/go-ioc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertoforce%2Fgo-ioc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertoforce%2Fgo-ioc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertoforce%2Fgo-ioc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertoforce%2Fgo-ioc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vertoforce","download_url":"https://codeload.github.com/vertoforce/go-ioc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertoforce%2Fgo-ioc/sbom","scorecard":{"id":919131,"data":{"date":"2025-08-11","repo":{"name":"github.com/vertoforce/go-ioc","commit":"1fa144effdf1ee334671198094db1c433653a66b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:18: pin your Docker image by updating golang:alpine to golang:alpine@sha256:f18a072054848d87a8077455f0ac8a25886f2397f88bfdd222d6fafbb5bba440","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2020-0015 / GHSA-5rcv-m4m3-hfh7","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T23:47:26.246Z","repository_id":56610488,"created_at":"2025-08-24T23:47:26.246Z","updated_at":"2025-08-24T23:47:26.246Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","hacktoberfest","ioc"],"created_at":"2026-01-14T11:06:44.831Z","updated_at":"2026-01-14T11:06:45.290Z","avatar_url":"https://github.com/vertoforce.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang IOC Library\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/vertoforce/go-ioc)](https://goreportcard.com/report/github.com/vertoforce/go-ioc)\n[![Documentation](https://godoc.org/github.com/vertoforce/go-ioc?status.svg)](https://godoc.org/github.com/vertoforce/go-ioc)\n\nThis library provides functions to extract IOCs from text or a reader.  You can also fang and defang IOCs.\n\n## CLI Usage\n\n```txt\ngo-ioc can be used to extract IOCs from articles, RSS feeds, and text.\n\nUsage:\n  go-ioc [command] [flags]\n  go-ioc [command]\n\nExamples:\ngo-ioc url https://google.com\n\nAvailable Commands:\n  docs        Generate docs\n  help        Help about any command\n  rss         Crawl a RSS feed and get all IOCs from articles in the feed\n  stdin       Find IOCs from stdin\n  url         Crawl a URL and print all the IOCs\n\nFlags:\n      --all                  Get all fanged IOCs.  This typically is rather noisy in that it finds _all_ links, etc\n  -f, --format string        Print format for printing IOCs.  Options include: csv, table (default \"csv\")\n  -h, --help                 help for go-ioc\n  -o, --output string        Save IOCs to file\n      --printFanged          Print all IOCs fanged, will override standardizeDefangs\n  -s, --sort                 Sort IOCs by their type (default true)\n      --standardizeDefangs   Standardize all defanged IOCs using square brackets (default true)\n      --stats                Print count of each IOC found at start of output\n\nUse \"go-ioc [command] --help\" for more information about a command.\n```\n\n### Docker CLI usage\n\n```sh\ndocker run -it vertoforce/go-ioc help\n```\n\n## Library Usage\n\n### GetIOCs\n\n```go\ndata := `this is a bad url http[://]google[.]com/path`\niocs := GetIOCs(data, false, true)\n// iocs is a list with 2 IOCs (google[.]com and the URL `http[://]google[.]com/path`)\n// See example_test.go\niocs[0].IsFanged() // -\u003e false because `http[://]google[.]com/path` is not fanged\n```\n\n### Defang / Fang\n\n```go\nioc := \u0026IOC{IOC: \"google.com\", Type: Domain}\n\nioc = ioc.Defang()\nfmt.Println(ioc)\n\nioc = ioc.Fang()\nfmt.Println(ioc)\n\n// Output: google[.]com|Domain\n// google.com|Domain\n```\n\n## How\n\nThe finding IOCs in readers uses these two libraries:\n\n- [multiregex](https://github.com/vertoforce/multiregex)\n- [streamregex](https://github.com/vertoforce/streamregex)\n\n## IOC Methods\n\n- String() string\n- Defang() *IOC\n- Fang() *IOC\n- IsFanged() bool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertoforce%2Fgo-ioc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvertoforce%2Fgo-ioc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertoforce%2Fgo-ioc/lists"}