Looking for ways to integrate security training into your development workflow? SecureFlag’s new code recipes repository might be just what you need.
It’s a growing collection of useful scripts, code snippets, and small demo apps that help teams get hands-on with the SecureFlag platform.
SecureFlag code recipes aim to provide users with ways to interact with and experiment on the platform, and to understand how SecureFlag can be integrated into everyday development.
At the same time, they can also give managers and team leads visibility into assignments and progress.
If you’re exploring the API, testing out ideas, or looking for inspiration, the repository is for you.
The repository contains practical examples designed to be straightforward to run and adapt to your own projects.
For developers, we recently introduced Git hooks, which bring SecureFlag training and guidance directly into your local workflow. It automatically enforces vulnerability training compliance whenever a commit references a GitHub Security Advisory (GHSA).
For managers and team leads, there is the Users’ Assignment Report. It’s a Python script that retrieves all users in your organization, along with their assigned learning paths and exercises.
It then exports the combined results to a CSV report, giving you practical examples of API integration.
This Python script lets managers or team leads remove pending user assignments through the SecureFlag APIs. Completed activities remain marked as solved, and unassigned activities can be reassigned later via the management UI or APIs.
No complex setup required, as each recipe includes step-by-step documentation and can run independently.
Clone or fork the repository: Get a local copy so you can start exploring the examples right away.
Pick your use case: Browse the examples and find what matches your needs.
Test safely: Run everything in your development environment first.
Customize and deploy: Adapt the code to your organization’s specific requirements.
You can run them as-is or adapt them to suit your organization’s needs. If you build something that others could benefit from, consider contributing back!
The code recipes repository is just getting started. We’ll continue adding new scripts, snippets, and demo apps over time, and we’d love to hear from the community.
If you have an idea for a new example or integration, open an issue or submit a pull request on GitHub.
SecureFlag helps teams create safer applications from the very first keystroke. Our platform delivers hands-on secure coding training and interactive learning paths in real development environments.
Combining training with practical solutions, such as the code recipes repository, SecureFlag ensures that security knowledge is learned and applied directly in daily development practices.