Skip to main content
Custom instructions allow you to guide Strix’s testing behavior, focus on specific vulnerability types, provide test credentials, or define particular areas of interest. This makes Strix highly adaptable to your specific security testing needs.

Overview

You can provide custom instructions in two ways:
You cannot use both --instruction and --instruction-file at the same time. Choose one method based on your needs.

Inline Instructions

Use the --instruction flag for short, focused guidance:

When to Use Inline Instructions

  • Short, focused testing objectives
  • Single-line guidance
  • Quick testing adjustments
  • Simple scope definitions

Examples

Instruction Files

For complex, multi-line instructions, use the --instruction-file flag:

When to Use Instruction Files

  • Complex testing scenarios
  • Multiple test credentials
  • Detailed scope and exclusions
  • Rules of engagement
  • Compliance requirements
  • Reusable testing templates
Instruction files can be in any text format (.txt, .md, etc.). Strix reads the entire file content as instructions.

Example: Basic Instruction File

Create instructions.txt:
Run with:

Example: Detailed Security Assessment

Create detailed_instructions.md:
Run with:

Common Use Cases

Authenticated Testing

Provide credentials for testing protected areas:
accounts.txt:

Vulnerability-Focused Testing

Target specific vulnerability classes:
owasp-top10.txt:

Business Logic Testing

Focus on application-specific logic:
business-logic.txt:

API Security Assessment

Target API-specific vulnerabilities:
api-security.md:

Compliance-Driven Testing

Align testing with compliance requirements:
hipaa-compliance.txt:

Best Practices

1

Be specific

Provide clear, actionable guidance:Good: “Focus on IDOR vulnerabilities in the /api/users endpoint”Bad: “Test the API”
2

Include credentials

Provide test accounts when testing authenticated features:
3

Define scope

Clearly specify what’s in and out of scope:
4

Prioritize

Indicate what matters most:

Instruction File Templates

General Web Application

API Assessment

Penetration Test

Example: Complete Workflow

1

Create instruction file

Create webapp-test.md with your testing requirements:
2

Run Strix with instructions

3

Review results

Strix follows your instructions and focuses on the specified areas:

Tips and Tricks

Reusable Templates

Create reusable instruction files for common scenarios:

Combining with Other Flags

Instructions work with all Strix features:

Validation

Strix validates instruction files before starting:
Do not specify both --instruction and --instruction-file. Strix will exit with an error if you try to use both.

Next Steps

Multi-Target Testing

Combine custom instructions with multi-target scans

Advanced Testing

Learn about grey-box and white-box testing strategies