{"id":13822736,"url":"https://github.com/trailofbits/appjaillauncher-rs","last_synced_at":"2025-05-16T17:31:48.304Z","repository":{"id":48674098,"uuid":"93456056","full_name":"trailofbits/appjaillauncher-rs","owner":"trailofbits","description":"AppJailLauncher in Rust","archived":true,"fork":false,"pushed_at":"2021-07-14T19:19:21.000Z","size":360,"stargazers_count":105,"open_issues_count":2,"forks_count":16,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-08-05T08:10:21.001Z","etag":null,"topics":["appcontainer","rust","sandbox","windows"],"latest_commit_sha":null,"homepage":"https://blog.trailofbits.com/2017/08/02/microsoft-didnt-sandbox-windows-defender-so-i-did/","language":"Rust","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/trailofbits.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-06-05T23:30:14.000Z","updated_at":"2024-07-30T00:47:39.000Z","dependencies_parsed_at":"2022-08-27T07:51:18.572Z","dependency_job_id":null,"html_url":"https://github.com/trailofbits/appjaillauncher-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fappjaillauncher-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fappjaillauncher-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fappjaillauncher-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailofbits%2Fappjaillauncher-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailofbits","download_url":"https://codeload.github.com/trailofbits/appjaillauncher-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225442976,"owners_count":17475150,"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","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":["appcontainer","rust","sandbox","windows"],"created_at":"2024-08-04T08:02:15.230Z","updated_at":"2024-11-19T23:31:03.003Z","avatar_url":"https://github.com/trailofbits.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# AppJailLauncher (Rust)\n\nAppJailLauncher is akin to a simple version of **xinetd** for Windows but with sandboxing enabled for the spawned child processes. The sandboxing is accomplished via [AppContainers](https://goo.gl/5gNlUy). This project is a rewrite of an [earlier version](https://github.com/trailofbits/AppJailLauncher) in C.\n\n### Tested Platforms\n * Windows 10 Professional x64 (build 14393.1198)\n * Windows 10 Professional x64 (build 15063.296)\n\n### Supported Platforms\n * Windows 8 and above\n * Windows Server 2012 and above\n \n## Creating Challenges\n\nThere is an example challenge template in `example/` that can be built using CMake.\n\nTo build the example challenge:\n\n```\n\u003e cd example\n\u003e mkdir build\n\u003e cd build\n\u003e cmake ..\n\u003e cmake --build .\n```\n\nAfter building the example challenge, you serve the challenge via the following command in the root of the repository:\n\n```\n\u003e .\\target\\debug\\appjaillauncher-rs.exe run --key .\\unittest_support\\pub\\key2.txt .\\example\\build\\Debug\\example_challenge.exe\n```\n\n## Frequently Asked Questions\n\n#### In the example challenge, what does `InitChallenge` do?\nThe `InitChallenge` function will create an timer that will terminate the process after a specified amount of milliseconds and  set `stdout` buffering options to work better with network sockets. The first part is essential for countering griefing operations directed at your challenges by malicious actors.\n\n#### I think I broke something. Is there a way to get more logging?\nAppJailLauncher uses `env_logger` for logging. This means you can get more debug logging by setting the `RUST_LOG` environment variable to `debug`. For example, in PowerShell, the following command would be sufficient: \n\u003cpre\u003e\n\u003e $env:RUST_LOG=\"debug\"\n\u003c/pre\u003e\n\n#### How do I target x86 Windows from x64 Windows with Rust?\n`rustup` should be part of the default Rust install. First, use `rustup` to add the new x86 target:\n\n```\n\u003e rustup target add i686-pc-windows-msvc\n```\n\nAfter installation, add `--target=i686-pc-windows-msvc` to the `cargo build`, `cargo test` commands to build for x86.\n\n#### I have a complex ACL setup for my key, why won't things work?\nOur ACL implementation is simple and should work on _most_ configurations. However, it is entirely possible that for complex ACL setups, this will not work as intended. If you run into any issues, file an issue.\n\n#### `cargo build` complains that `msvc targets depend on msvc linker but \"link.exe\" was not found`\nYou need to install the [Visual C++ 2015 Build Tools](http://go.microsoft.com/fwlink/?LinkId=691126\u0026fixForIE=.exe) or newer.\n\n## Development\n[Install Rust](https://www.rust-lang.org/en-US/install.html), then:\n\nBuild AppJailLauncher: `cargo build`\n\nRun the unit tests: `cargo test`\n\n## Authors\n * [Andy Ying](https://github.com/yying)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fappjaillauncher-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailofbits%2Fappjaillauncher-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailofbits%2Fappjaillauncher-rs/lists"}