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

Feature Support : IAST Scheduling & IAST Scan Ignore #320

Merged
merged 31 commits into from
Sep 12, 2024

Conversation

lovesh-ap
Copy link
Contributor

@lovesh-ap lovesh-ap commented Aug 20, 2024

IAST Scheduling
Schedule IAST, which will allow users to schedule the startup and scanning of IAST and duration will grant them capability to set run duration of the IAST scan in minutes.

scan_schedule:
     delay: 30			  #In minutes, default is 0 min
     duration: 300		  #In minutes, default will be forever
     schedule: “0 0 * * * ?” #delay takes precedence over schedule
     allow_iast_sample_collection: false #default is false

Ignore IAST Scan, feature allows users to ignore the scanning of certain APIs, categories, or parameters based on their configuration.

skip_iast_scan:
    api:
      - \/api\/v1\/login.*
      - \/api\/v1\/.*?update.*
    parameters:
      header: ["X-Forwaded-For"]
      query: ["count"]
      body: ["object.cc_number"]
    iast_detection_category:
      insecure_settings: false
      invalid_file_access: false
      sql_injection: false
      nosql_injection: false
      ldap_injection: false
      javascript_injection: false
      command_injection: false
      xpath_injection:false
      ssrf: false
      rxss: false

fix for event being generated for HTTP request and SYSTEM COMMAND
# Conflicts:
#	gradle.properties
#	newrelic-security-agent/src/main/java/com/newrelic/agent/security/AgentConfig.java
#	newrelic-security-agent/src/main/java/com/newrelic/agent/security/instrumentator/utils/InstrumentationUtils.java
#	newrelic-security-agent/src/main/java/com/newrelic/agent/security/intcodeagent/controlcommand/ControlCommandProcessor.java
#	newrelic-security-agent/src/main/java/com/newrelic/agent/security/intcodeagent/websocket/EventSendPool.java
#	newrelic-security-agent/src/main/java/com/newrelic/api/agent/security/Agent.java
#	newrelic-security-api/src/main/java/com/newrelic/api/agent/security/schema/HttpRequest.java
Fix default values of IAST scan ignore categories
Add feature to schedule via cron expression
Prevent multiple schedules of IAST trigger
Upgrade pool cleanups and reset
@lovesh-ap lovesh-ap requested a review from IshikaDawda August 20, 2024 04:31
@lovesh-ap lovesh-ap self-assigned this Aug 20, 2024
NR-304574: Rate limit the IAST replay requests
@lovesh-ap lovesh-ap changed the base branch from main to feature/iast-restricted September 12, 2024 05:51
@lovesh-ap lovesh-ap changed the base branch from feature/iast-restricted to main September 12, 2024 06:07
@lovesh-ap lovesh-ap changed the base branch from main to feature/iast-restricted September 12, 2024 06:07
…kip-n-schedule

# Conflicts:
#	newrelic-security-agent/src/main/java/com/newrelic/agent/security/AgentConfig.java
#	newrelic-security-agent/src/main/java/com/newrelic/api/agent/security/Agent.java
@lovesh-ap lovesh-ap merged commit 6e2b124 into feature/iast-restricted Sep 12, 2024
4 checks passed
@lovesh-ap lovesh-ap deleted the feature/iast-skip-n-schedule branch September 12, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants