{"id":26327532,"url":"https://github.com/priyabug/race-condition-detection-and-mitigation","last_synced_at":"2026-05-16T13:02:28.311Z","repository":{"id":269537999,"uuid":"907717243","full_name":"Priyabug/Race-Condition-Detection-and-Mitigation","owner":"Priyabug","description":"It explores race condition vulnerabilities, detection techniques, and mitigation strategies, providing insights into how they are exploited and how to prevent them.","archived":false,"fork":false,"pushed_at":"2025-02-22T23:20:08.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T00:06:39.145Z","etag":null,"topics":["attack-program","countermeasure","detection","improved-attack","mitigation","python","race-conditions","target-machine","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"C","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/Priyabug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-24T08:11:24.000Z","updated_at":"2025-02-22T23:20:10.000Z","dependencies_parsed_at":"2025-07-07T00:06:38.969Z","dependency_job_id":"f4935815-f4e3-4d50-b269-89c8ce27c457","html_url":"https://github.com/Priyabug/Race-Condition-Detection-and-Mitigation","commit_stats":null,"previous_names":["priyabug/race-condition-detection-and-mitigation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Priyabug/Race-Condition-Detection-and-Mitigation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyabug%2FRace-Condition-Detection-and-Mitigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyabug%2FRace-Condition-Detection-and-Mitigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyabug%2FRace-Condition-Detection-and-Mitigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyabug%2FRace-Condition-Detection-and-Mitigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Priyabug","download_url":"https://codeload.github.com/Priyabug/Race-Condition-Detection-and-Mitigation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Priyabug%2FRace-Condition-Detection-and-Mitigation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267109941,"owners_count":24037627,"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-26T02:00:08.937Z","response_time":62,"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":["attack-program","countermeasure","detection","improved-attack","mitigation","python","race-conditions","target-machine","ubuntu"],"created_at":"2025-03-15T20:19:50.060Z","updated_at":"2026-05-16T13:02:23.290Z","avatar_url":"https://github.com/Priyabug.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eRace-Condition-Detection-and-Mitigation\u003c/h1\u003e\n\n\u003ch2\u003eDescription\u003c/h2\u003e\n A race condition arises when multiple processes simultaneously access and modify the same data, and the execution outcome depends on the sequence of these accesses. \n If a privileged program contains a race-condition vulnerability, attackers can execute a parallel process to \"race\" against the privileged program, aiming to alter its behavior.\n Here we have exploited the vulnerability and gain the root privilege. In addition to the attacks, and we will also discuss about various protection schemes that can be used to counter the race-condition attacks.\n The lab covers the following topics:\u003c/br\u003e\n    • Race condition vulnerability\u003c/br\u003e\n    • Sticky symlink protection\u003c/br\u003e\n    • Principle of least privilege\u003c/br\u003e\n\n \u003cimage\u003e   ![image](https://github.com/user-attachments/assets/ed8fa262-f0bc-4056-ada0-df40383dc7bd)\n\n\n\n \u003ch2\u003eLanguages and Utilities Used\u003c/h2\u003e\n\n- \u003cb\u003ePython\u003c/b\u003e \n- \u003cb\u003eUnuntu 20.04 VM\u003c/b\u003e\n\n\u003ch2\u003eEnvironments Used \u003c/h2\u003e\n\n- \u003cb\u003eWindows 11 Home\u003c/b\u003e (21H2)\n\n\u003ch2\u003eProgram walk-through:\u003c/h2\u003e\n\n\u003cb\u003eTask 1:\u003c/b\u003e Choosing Our Target\u003cbr\u003e\n\u003cb\u003eTask 2:\u003c/b\u003e Launching the Race Condition Attack\u003cbr\u003e\u003cbr\u003e\n       2.A: Simulating a Slow Machine\u003cbr\u003e\n       2.B: The Real Attack\u003cbr\u003e\n       2.C: An Improved Attack Method\u003cbr\u003e\n\u003cb\u003eTask 3:\u003c/b\u003e Countermeasures\u003cbr\u003e\n         \u003cbr\u003e 3.A: Applying the Principle of Least Privilege\n         \u003cbr\u003e 3.B: Using Ubuntu’s Built-in Scheme\n\n\n\u003cembed src a href=\"https://drive.google.com/file/d/1uCxoX4KH4VHQnJwIdMl1H1Zu7jlkE_vg/view\" alt=\"\"\u003e\u003c/a\u003e \u003c/embed\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyabug%2Frace-condition-detection-and-mitigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpriyabug%2Frace-condition-detection-and-mitigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpriyabug%2Frace-condition-detection-and-mitigation/lists"}