{"id":28159662,"url":"https://github.com/dobin/ttpextractor","last_synced_at":"2025-07-28T00:04:21.961Z","repository":{"id":283268245,"uuid":"949012177","full_name":"dobin/ttpExtractor","owner":"dobin","description":"Extract the Procedures (TTP) from CTI reports","archived":false,"fork":false,"pushed_at":"2025-06-17T12:22:31.000Z","size":84,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T13:31:51.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ttpextractor.r00ted.ch","language":"Python","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/dobin.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-15T13:31:32.000Z","updated_at":"2025-06-17T12:22:35.000Z","dependencies_parsed_at":"2025-03-19T11:31:07.408Z","dependency_job_id":"3f37c47a-4bd7-48c1-9c03-da694110b05a","html_url":"https://github.com/dobin/ttpExtractor","commit_stats":null,"previous_names":["dobin/ttpextractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dobin/ttpExtractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2FttpExtractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2FttpExtractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2FttpExtractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2FttpExtractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dobin","download_url":"https://codeload.github.com/dobin/ttpExtractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2FttpExtractor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267442448,"owners_count":24087800,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-05-15T10:11:19.942Z","updated_at":"2025-07-28T00:04:21.954Z","avatar_url":"https://github.com/dobin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttpExtractor\n\nUses LLM to extract TTP's from CTI report PDFs. \nWith focus on the P (Procedures). As in, what the threat actors were actually doing. \nFor RedTeamers seeking to imitate TAs. \n\nLive at [ttpextractor.r00ted.ch](https://ttpextractor.r00ted.ch)\n\nThis project is more a experiment and playground, and not a reasonable\napplication.\n\n\nIt analyzes it in three ways: \n* ChatGPT 4o, paged\n* Google Gemini 2.0, unpaged\n* Google Gemini 2.5, unpaged\n\n\n## Install\n\n```\n$ pip install -r requirements.txt\n```\n\n## Commandline \n\n```\n$ export OPENAI_API_KEY=\"...\"\n$ export GEMINI_API_KEY=\"...\"\n$ cp ttp-test.pdf input/\n$ python ./ttpextractor.py ttp-test.pdf\n```\n\nResult: \n```\n$ ls output/ttp-test.pdf/\nttp-test.pdf_0_chunk.txt\nttp-test.pdf_0_response.txt\nttp-test.pdf_1_chunk.txt\nttp-test.pdf_1_response.txt\n...\n```\n\n## Start Web UI\n\n```\n$ export OPENAI_API_KEY=\"...\"\n$ export UPLOAD_PW=\"...\"\n$ python ./web.py\n```\n\nOpen `http://localhost:5000`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobin%2Fttpextractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdobin%2Fttpextractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobin%2Fttpextractor/lists"}