Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Passive Scan #419

Closed
hahwul opened this issue Sep 27, 2024 · 0 comments · Fixed by #420
Closed

Add Passive Scan #419

hahwul opened this issue Sep 27, 2024 · 0 comments · Fixed by #420
Assignees
Milestone

Comments

@hahwul
Copy link
Member

hahwul commented Sep 27, 2024

Passive Scan is a feature in Noir that allows for the collection of various issues and information during the analysis of source code by using specified rules. It uses a YAML-defined file and collects information based on defined regular expressions during the source code analysis, displaying the results. During this process, any data that can be mapped to an endpoint is mapped and shown.

Add a new function by combining #316 #317 #319 issues.

Flags

  • -p --use-passive-scan
  • --passive-scan-rules

Scan remote rule directory:

$NOIR_HOME/passive_scans e.g~/.config/noir/passive_scans

Scan rule Format (YAML)

id: ...
info:
  name: ABCD
  author:
    - alice
    - bob
  severity: critical
  description: ....
  reference:
    - https://google.com

matchers-condition: and
matchers:
  - type: word
    patterns:
      - abcd
      - dddd
    condition: and

  - type: regex
    patterns:
      - ".*"
      - "^a"
    condition: or

category: secret
techs:
  - *
  - ruby-rails

Flow

graph TD
    A[Load Rule File] --> B[Validate Rules]
    B --> C[Check Issues using Rules in Detector]
    C -->|Issue Detected| D[Store in Passive Scan Results]
    C -->|No Issue| E[Proceed]
    D --> F[Continue with Other Processes]
    E --> F
    F --> G[Generate Output]
    G --> H[Include Passive Scan Results in Output]
Loading
@hahwul hahwul added this to the v0.18.0 milestone Sep 27, 2024
@hahwul hahwul self-assigned this Sep 27, 2024
@hahwul hahwul linked a pull request Sep 27, 2024 that will close this issue
4 tasks
@hahwul hahwul closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant