{"id":37107829,"url":"https://github.com/ilyaglow/go-cortex","last_synced_at":"2026-01-14T12:57:02.884Z","repository":{"id":39897720,"uuid":"102293676","full_name":"ilyaglow/go-cortex","owner":"ilyaglow","description":":crystal_ball: Cortex API client written in Go https://github.com/TheHive-Project/Cortex","archived":true,"fork":false,"pushed_at":"2019-06-25T16:03:58.000Z","size":213,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T04:52:30.866Z","etag":null,"topics":["cortex"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilyaglow.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":"2017-09-03T20:56:07.000Z","updated_at":"2023-02-26T20:06:39.000Z","dependencies_parsed_at":"2022-09-11T15:23:36.144Z","dependency_job_id":null,"html_url":"https://github.com/ilyaglow/go-cortex","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ilyaglow/go-cortex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyaglow%2Fgo-cortex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyaglow%2Fgo-cortex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyaglow%2Fgo-cortex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyaglow%2Fgo-cortex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilyaglow","download_url":"https://codeload.github.com/ilyaglow/go-cortex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyaglow%2Fgo-cortex/sbom","scorecard":{"id":484534,"data":{"date":"2025-08-11","repo":{"name":"github.com/ilyaglow/go-cortex","commit":"349e21b3655ef138b6d52329c5841662e21f28b6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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: GNU Affero General Public License v3.0: 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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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"}}]},"last_synced_at":"2025-08-19T17:27:46.167Z","repository_id":39897720,"created_at":"2025-08-19T17:27:46.167Z","updated_at":"2025-08-19T17:27:46.167Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"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":["cortex"],"created_at":"2026-01-14T12:57:02.296Z","updated_at":"2026-01-14T12:57:02.877Z","avatar_url":"https://github.com/ilyaglow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/ilyaglow/go-cortex?status.svg)](http://godoc.org/github.com/ilyaglow/go-cortex)\n[![Build Status](https://travis-ci.org/ilyaglow/go-cortex.svg?branch=v2)](https://travis-ci.org/ilyaglow/go-cortex)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1d131300c6864599b5335f2439b7e2d4)](https://www.codacy.com/app/ilyaglow/go-cortex?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ilyaglow/go-cortex\u0026amp;utm_campaign=Badge_Grade)\n[![Coverage Status](https://coveralls.io/repos/github/ilyaglow/go-cortex/badge.svg?branch=v2)](https://coveralls.io/github/ilyaglow/go-cortex?branch=v2)\n\nCortex client library\n---------------------\n\n## Usage example\n\nGet the latest library version:\n```\ngo get -u github.com/ilyaglow/go-cortex\n```\n\n### Simply run analyzer for an observable\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/ilyaglow/go-cortex\"\n)\n\nfunc main() {\n\tcrtx, err := cortex.NewClient(\"http://127.0.0.1:9001/\", \u0026cortex.ClientOpts{\n\t\tAuth: \u0026cortex.APIAuth{\n\t\t\tAPIKey: \"YOUR-API-KEY\",\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\trep, err := crtx.Analyzers.Run(context.Background(), \"MaxMind_GeoIP_3_0\", \u0026cortex.Task{\n\t\tData:     \"1.1.1.1\",\n\t\tDataType: \"ip\",\n\t\tTLP:      \u0026cortex.TLPGreen,\n\t\tPAP:      \u0026cortex.PAPGreen,\n\t}, time.Minute*5)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"%v\\n\", rep)\n}\n```\n\n### Aggregated analysis of an observable\n\nCould be used to analyze an observable by all analyzers that can process it's\ndata type at once.\n\nYou should use callback functions to set an action for each analyzer, when one\nreturns a report or an error.\nTake a look at the following example:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/ilyaglow/go-cortex\"\n)\n\nfunc main() {\n\tcrtx, err := cortex.NewClient(\"http://127.0.0.1:9001/\", \u0026cortex.ClientOpts{\n\t\tAuth: \u0026cortex.APIAuth{\n\t\t\tAPIKey: \"YOUR-API-KEY\",\n\t\t},\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\ttask := \u0026cortex.Task{\n\t\tData: \"1.1.1.1\",\n\t\tDataType: \"ip\",\n\t\tTLP: \u0026cortex.TLPWhite,\n\t\tPAP: \u0026cortex.PAPWhite,\n\t}\n\n\t// Create a new MultiRun struct with at most 5 minute timeout for the run\n\tmul := crtx.Analyzers.NewMultiRun(context.Background(), 5*time.Minute)\n\n\t// Handle each analyzer's report\n\tmul.OnReport = func(r *cortex.Report) {\n\t\tlog.Println(r)\n\t}\n\t// Log each analyzer's error\n\tmul.OnError = func(e error, o cortex.Observable, a *cortex.Analyzer) {\n\t\tlog.Printf(\"Cortex analyzer %s failed on data %s with an error: %s\", a.Name, o.Description(), e.Error())\n\t}\n\n\t// Actually run the analysis\n\terr = mul.Do(task)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filyaglow%2Fgo-cortex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filyaglow%2Fgo-cortex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filyaglow%2Fgo-cortex/lists"}