RedFlag leverages AI to determine high-risk code changes. Run it in batch mode to scope manual security testing of release candidates, or run it in your CI pipelines to flag PRs and add the appropriate reviewers.
Despite being a security tool, RedFlag can be leveraged for almost any team as it’s configuration makes it infinitely flexible.
RedFlag is able to analyze a large number of commits in a single run. These commits can be specified using commit hashes, branch names, or tags. This is useful for scoping manual security testing of logical groups of code, such as release candidates.
python -m venv redflag-venv
source redflag-venv/bin/activate
2. Install RedFlag:
pip install addepar-redflag
Alternatively, if you’d like to use Poetry, clone the repo and use poetry install
and then poetry run redflag
.
Credentials can be set using…
.env
fileRedFlag uses Boto3-Compatible Credentials using Profiles or Env Vars. Ensure that your AWS IAM policy has InvokeModel
and InvokeModelWithResponseStream
permissions to Amazon Bedrock. Lastly, make sure you’ve requested the necessary Claude models!
Use a Personal Access Token with repo
permissions. Set the token as an environment variable:
export RF_GITHUB_TOKEN=your-token-here
First, set a Jira URL (https://your-org.atlassian.net
) in the configuration file (jira_url
), as a CLI parameter (--jira-url
), or as an environment variable (RF_JIRA_URL
).
Then create a Jira API Token and set it as an environment variable:
export RF_JIRA_USER=your-username-here
export RF_JIRA_TOKEN=your-token-here
Here are some examples on how to run RedFlag in batch mode.
# Using branch names:
redflag --repo YourOrg/SomeRepo --from main --to dev
# Using commit hashes:
redflag --repo YouOrg/SomeRepo --from a1b2c3 --to d4e5f6
# With a custom configuration file:
redflag --config custom-config.yml
For more information click here.
garak checks if an LLM can be made to fail in a way we don't…
Vermilion is a simple and lightweight CLI tool designed for rapid collection, and optional exfiltration…
ADCFFS is a PowerShell script that can be used to exploit the AD CS container…
Tartufo will, by default, scan the entire history of a git repository for any text…
Loco is strongly inspired by Rails. If you know Rails and Rust, you'll feel at…
A data hoarder’s dream come true: bundle any web page into a single HTML file.…