The Trail of Bits Testing Handbook is a resource for developers and security professionals on configuring, optimizing, and automating many static and dynamic analysis tools we use at Trail of Bits.
Preview Testing Handbook: https://appsec.guide 🌐
- 📃 The documentation for configuring and optimizing existing tools is often not developer-friendly, as it is often meant for security professionals. This is especially the case when it comes to fuzzing utilities. This can lead to frustration and poor adoption of security tools that should be straightforward to configure.
- ⚙️ Even if the tool is easy to configure locally, it can be difficult to configure them in CI/CD pipelines. Often, security tools are set up by following online documentation, but their configuration is rarely optimized. This can lead to a noisy tool that is more difficult to maintain than worth.
- 🧠 We aim to make it as easy as possible to set up security tools effectively. In doing so, we also hope to demystify static and dynamic analysis techniques such as fuzzing and taint analysis.
Topic | Link |
---|---|
Introduction to Semgrep | https://www.youtube.com/watch?v=yKQlTbVlf0Q |
Introduction to CodeQL: Examples, Tools and CI Integration | https://www.youtube.com/watch?v=rQRlnUQPXDw |
Mastering Web Research with Burp Suite | https://www.youtube.com/watch?v=0PV5QEQTmPg |
- Formal verification and Tamarin
- Rust
If you would like to contribute to the Testing Handbook, here are some guidelines to help you get started:
- Add a New Tool: If you want to cover a new tool in the Testing Handbook, propose a topic in GitHub Issues. Afterward, you can work on a new pull request.
- Improve Existing Chapters: If you have an idea to make a specific chapter better, you can add a GitHub issue.
- Pick Up Small Tasks: If you don't have much time but still want to contribute, you can pick up any small task from the GitHub issues list.
- Report Issues: If you find a small technical issue or a typo, create a new GitHub issue and/or fix it in the new pull request.
-
Install Hugo in your system
brew install hugo
-
Clone the repo
git clone --recurse-submodules https://github.com/trailofbits/testing-handbook.git
-
Create a new branch or select a branch you want to work on
cd testing-handbook # then git checkout -b name-of-your-new-branch # or git checkout name-of-existing-branch
-
Run the Hugo server with drafts turned on (
-D
) from the project's root directory. Your browser will be automatically refreshed with changes whenever you save a file.hugo server -D
-
Add a new tool as "doc", and run the following from the project's root directory.
hugo new docs/<name of tool>
Note: This project uses the same hugo template as zkdocs. The template refers to each new page as a "doc," as opposed to a post. This is why you'd want to type
hugo new docs/<name of tool>
and notpost/my-new-post
. -
Edit, add, and create pull requests to merge your changes into
main
. -
❗Keep in mind that when you merge your PR into
main
, the content goes live in https://appsec.guide. Our current policy forces at least one review before merging. -
For updates to the home page, edit content/_index.md
-
The format should be consistent between each "doc." When adding a new doc (i.e., when adding a new tool), follow the template in content/docs/template.md. Send a PR for this file with suggested changes as needed.
-
Create a new branch with your changes, and create a PR to merge into
main
when you are done. -
The GitHub workflow in this repository verifies the correctness of Markdown files through three checks:
- Markdown Link Check: This step extracts links from Markdown files and verifies if they are valid and accessible. It uses the lychee link checking action.
- Markdown Linter: This step ensures that Markdown files adhere to the desired style and formatting rules.
It uses a custom configuration file (
.github/workflows/.markdownlint.jsonc
) and the markdownlint-cli2-action action. Use the markdownlint extension with Visual Studio Code for better user experience while working on the Testing Handbook. - Spellcheck: This step checks the spelling in Markdown files (built on top of retext and remark). Uses the tbroadley/spellchecker-cli-action action.
-
Familiarize yourself with the Hugo Book theme as it has a couple of nice features (buttons, etc.)
-
Reach out in #testing-handbook Empire Hacking Slack if you have any questions.
- The term "Testing Handbook" should be capitalized any time it appears on the website (whether in a header/subheader or running text), since it is the title of a document. But if you'd like to avoid the capitalization because it looks strange, you can substitute "Testing Handbook" for "this handbook" (since it's clear enough what the title of the handbook is).
You can export the document from Google Docs as Markdown. Open the document in Google Docs. Click File
> Download
, and then select Markdown (.md)
.
{{< customFigure "Caption" >}}
{{< /customFigure >}}
{{< resourceFigure "cov1.png" >}}
{{< /resourceFigure >}}
{{< hint info >}}
{{< /hint >}}