Skip to content

Commit adc6051

Browse files
authored
Merge pull request #559 from owasp-noir/release/0.20.0
Release v0.20.0
2 parents 156ffdb + 0ac0f72 commit adc6051

File tree

12 files changed

+42
-31
lines changed

12 files changed

+42
-31
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If applicable, add screenshots to help explain your problem.
2323

2424
**Versions**
2525
- OS: [e.g. macos, linux]
26-
- Version [e.g. v0.19.1]
26+
- Version [e.g. v0.20.0]
2727

2828
**Additional context**
2929
Add any other context about the problem here.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update && \
1313
##= RUNNER =##
1414
FROM debian:12-slim
1515
LABEL org.opencontainers.image.title="OWASP Noir"
16-
LABEL org.opencontainers.image.version="0.19.1"
16+
LABEL org.opencontainers.image.version="0.20.0"
1717
LABEL org.opencontainers.image.description="OWASP Noir is an open-source project specializing in identifying attack surfaces for enhanced whitebox security testing and security pipeline."
1818
LABEL org.opencontainers.image.authors="Noir Team (@hahwul, @ksg97031)"
1919
LABEL org.opencontainers.image.source=https://github.com/owasp-noir/noir

docs/_advanced/ai_integration.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ New (v0.20.0)
2525
* `--ai-model MODEL`: Set the model name to use for AI analysis. Required for AI features.
2626
* `--ai-key KEY`: Provide the API key for authenticating with the AI provider's API. Alternatively, use the `NOIR_AI_KEY` environment variable.
2727

28-
#### Prefixes and Default URLs
28+
#### Prefixes and Default Hosts
2929

30-
| Prefix | Default URL |
30+
| Prefix | Default Host |
3131
|---------|--------------------------------------|
3232
| openai | https://api.openai.com |
33-
| x.ai | https://api.x.ai |
33+
| xAI | https://api.x.ai |
34+
| github | https://models.github.ai |
3435
| azure | https://models.inference.ai.azure.com|
3536
| vllm | http://localhost:8000 |
3637
| ollama | http://localhost:11434 |
@@ -53,12 +54,7 @@ Since (v0.19.0) / Deprecated
5354
### Step 1: Configure AI Provider
5455

5556
1. Choose an AI provider and obtain the necessary API key.
56-
2. Set the provider and model using the `--ai-provider` and `--ai-model` flags. For example:
57-
58-
```bash
59-
# Set AI provider and model
60-
noir -b . --ai-provider=openai --ai-model=gpt-4 --ai-key=your-api-key
61-
```
57+
2. If you wish to use Local LLM, please install each application.
6258

6359
### Step 2: Run Noir with AI Analysis
6460

Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
11
---
2-
title: Github marketplace (Azure)
2+
title: Github
33
parent: AI Integration
44
nav_order: 6
55
layout: page
66
---
77

8-
# Github marketplace Integration (Azure)
8+
# Github
99

1010
## Setup Github marketplace
1111

1212
1. Obtain an API Key: Follow the instructions on Github to obtain a Personal Access Token (PAS)[^1].
1313
2. Select and Configure the Model: Choose the desired model from the [Github marketplace](https://github.com/marketplace/models)[^2] and ensure it is properly configured.
1414

1515
## Run Noir with Github marketplace Models
16-
1716
To leverage Github marketplace's models capabilities for additional analysis, use the following command:
1817

18+
```bash
19+
noir -b ./spec/functional_test/fixtures/hahwul \
20+
--ai-provider=github \
21+
--ai-model=gpt-4o \
22+
--ai-key=github_....
23+
```
24+
*Use to models.github.ai*
25+
26+
or
27+
1928
```bash
2029
noir -b ./spec/functional_test/fixtures/hahwul \
2130
--ai-provider=azure \
2231
--ai-model=gpt-4o \
2332
--ai-key=github_....
2433
```
34+
*Use to models.inference.ai.azure.com*
2535

26-
This command performs the standard Noir operations while utilizing the specified Azure model for enhanced analysis.
36+
This command performs the standard Noir operations while utilizing the specified Github or Azure's inference API for enhanced analysis.
2737

2838
[^1]: [https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
2939
[^2]: Github > Marketplace > Models

docs/_advanced/ai_integration/xai.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
title: X.AI
2+
title: xAI
33
parent: AI Integration
44
nav_order: 5
55
layout: page
66
---
77

8-
# X.AI Integration
8+
# xAI Integration
99

10-
## Setup X.AI
10+
## Setup xAI
1111

12-
1. Obtain an API Key: Follow the instructions on the [official X.AI website](https://x.ai/api) to obtain an API key.
12+
1. Obtain an API Key: Follow the instructions on the [official xAI website](https://x.ai/api) to obtain an API key.
1313
2. Configure the Model: Ensure the desired model is available and configured.
1414

15-
## Run Noir with X.AI
15+
## Run Noir with xAI
1616

17-
To leverage X.AI capabilities for additional analysis, use the following command:
17+
To leverage xAI capabilities for additional analysis, use the following command:
1818

1919
```bash
2020
noir -b ./spec/functional_test/fixtures/hahwul \
21-
--ai-provider=x.ai \
21+
--ai-provider=xai \
2222
--ai-model=grok-2-1212 \
2323
--ai-key=xai-t
2424
```
2525

26-
This command performs the standard Noir operations while utilizing the specified X.AI model for enhanced analysis.
26+
This command performs the standard Noir operations while utilizing the specified xAI model for enhanced analysis.

docs/_developers/release_procedure.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ layout: page
3131
2. Generate a PR for the Homebrew core:
3232
```bash
3333
brew bump-formula-pr --strict --version <VERSION> noir
34-
# Example: brew bump-formula-pr --strict --version 0.19.1 noir
34+
# Example: brew bump-formula-pr --strict --version 0.20.0 noir
3535
```
3636

3737
#### Troubleshooting
3838
If you encounter issues, try the following commands:
3939
```bash
4040
HOMEBREW_NO_INSTALL_FROM_API=1 brew update
41-
brew bump-formula-pr --strict --version 0.19.1 noir
41+
brew bump-formula-pr --strict --version 0.20.0 noir
4242
```
4343

4444
#### Style Check

docs/_includes/usage.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ FLAGS:
4747
--ai-provider PREFIX|URL Specify the AI (LLM) provider or directly set a custom API URL. Required for AI features.
4848
[Prefixes and Default URLs]
4949
* openai: https://api.openai.com
50-
* x.ai: https://api.x.ai
50+
* xai: https://api.x.ai
51+
* github: https://models.github.ai
5152
* azure: https://models.inference.ai.azure.com
5253
* vllm: http://localhost:8000
5354
* ollama: http://localhost:11434

shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Metadata
22
name: noir
3-
version: 0.19.1
3+
version: 0.20.0
44
authors:
55
- hahwul <[email protected]>
66
- ksg97031 <[email protected]>

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: noir
22
base: core20
3-
version: 0.19.1
3+
version: 0.20.0
44
summary: Attack surface detector that identifies endpoints by static analysis.
55
description: |
66
Noir is an open-source project specializing in identifying attack surfaces for enhanced whitebox security testing and security pipeline.

src/llm/general/client.cr

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ module LLM
1414
"http://localhost:11434/v1/chat/completions"
1515
when "lmstudio"
1616
"http://localhost:1234/v1/chat/completions"
17-
when "x.ai"
17+
when "xai"
1818
"https://api.x.ai/v1/chat/completions"
1919
when "vllm"
2020
"http://localhost:8000/v1/chat/completions"
2121
when "azure"
2222
"https://models.inference.ai.azure.com/chat/completions"
23+
when "github"
24+
"https://models.github.ai/inference/chat/completions"
2325
else
2426
url
2527
end

src/noir.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require "./options.cr"
66
require "./techs/techs.cr"
77

88
module Noir
9-
VERSION = "0.19.1"
9+
VERSION = "0.20.0"
1010
end
1111

1212
# Run options parser

src/options.cr

+3-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def run_options_parser
114114
parser.on "--ai-provider PREFIX|URL", "Specify the AI (LLM) provider or directly set a custom API URL. Required for AI features.\n" \
115115
" [Prefixes and Default URLs]\n" \
116116
" * openai: https://api.openai.com\n" \
117-
" * x.ai: https://api.x.ai\n" \
117+
" * xai: https://api.x.ai\n" \
118+
" * github: https://models.github.ai\n" \
118119
" * azure: https://models.inference.ai.azure.com\n" \
119120
" * vllm: http://localhost:8000\n" \
120121
" * ollama: http://localhost:11434\n" \
@@ -198,6 +199,7 @@ def run_options_parser
198199
parser.on "-h", "--help", "Show help" do
199200
banner()
200201
puts parser
202+
exit
201203
end
202204
parser.on "--help-all", "Show all help" do
203205
banner()

0 commit comments

Comments
 (0)