{"id":19768219,"url":"https://github.com/squareslab/oeg-code","last_synced_at":"2026-06-09T18:31:03.171Z","repository":{"id":82620116,"uuid":"124330311","full_name":"squaresLab/oeg-code","owner":"squaresLab","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-29T19:59:31.000Z","size":84426,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T10:59:05.779Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squaresLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license/License.Dockerfile","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":"2018-03-08T03:19:27.000Z","updated_at":"2021-05-17T20:58:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ac2a53e-38bd-42b0-80a0-d4aab2a0b299","html_url":"https://github.com/squaresLab/oeg-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/squaresLab/oeg-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaresLab%2Foeg-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaresLab%2Foeg-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaresLab%2Foeg-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaresLab%2Foeg-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squaresLab","download_url":"https://codeload.github.com/squaresLab/oeg-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaresLab%2Foeg-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34121020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":"2024-11-12T04:36:18.144Z","updated_at":"2026-06-09T18:31:03.166Z","avatar_url":"https://github.com/squaresLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#APT Observability\n## Game Theory Code\n\nImportant Files:\n+`model_zero_sum.py` This file provides methods to obtain the payoff values for the defender.\nThis includes necessary helper tasks like computing the attacker's expected time in the system.\nZero-sum means that the attacker and defenders payoffs are the opposite of one another.\n+'model_gen_sum.py' This file extends the zero-sum version of the model to a general-sum case.\nThere is an extra method for computing the defenders cost to evict each attacker TTP.\nAdditionally, the defender suffers an extra penalty for allowing TTP2 to remain in the system.\n+`harsanyi_nash_equilibrium_solver` This file uses the Harsanyi transform to solve the Nash equilibrium.\nIt requires that the Gambit library for python be installed. See http://www.gambit-project.org/gambit13/pyapi.html\n+`gurobi_stackelberg_equilibrium_solver` This file uses mathematical programming to solve for the Stackelberg equilibrium.\nIt requires that the Gurobi optimiser be installed, see http://www.gurobi.com/resources/seminars-and-videos/modeling-with-the-gurobi-python-interface\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquareslab%2Foeg-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquareslab%2Foeg-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquareslab%2Foeg-code/lists"}