Skip to content

Contrib/dzion - create-appsec-rules#42981

Open
DorZion51 wants to merge 27 commits intodemisto:contrib/DorZion51_contrib/dzion-CreateAppSecRulesfrom
DorZion51:contrib/dzion-CreateAppSecRules
Open

Contrib/dzion - create-appsec-rules#42981
DorZion51 wants to merge 27 commits intodemisto:contrib/DorZion51_contrib/dzion-CreateAppSecRulesfrom
DorZion51:contrib/dzion-CreateAppSecRules

Conversation

@DorZion51
Copy link

@DorZion51 DorZion51 commented Feb 9, 2026

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - wait to DR +DEMO

Related Issues

https://jira-dc.paloaltonetworks.com/browse/BCE-56629
https://jira-dc.paloaltonetworks.com/browse/CRTX-226145

Description

Requesting module : CAS

Operational Use Case: Enables automated creation of custom Application Security rules to detect secrets (API keys, credentials) and IaC misconfigurations across the application lifecycle, eliminating manual rule creation and ensuring consistent security policy enforcement.

Scope of Contribution:

New Script: CreateAppsecRule – Underlying automation script.
New Action: CreateSecretAppsecRule – For secrets detection rules.
New Action: CreateIACAppsecRule – For Infrastructure-as-Code security rules.
Enhancement Agent: Application Security Agent
Technical Details
API Endpoint: /api/webapp/public_api/appsec/v1/rules **

HTTP Method: POST

Endpoint Docs

Wrapper Command: core-generic-api-call

Inputs/Parameters:

rule_name (required): Unique rule name.
severity (required): CRITICAL, HIGH, MEDIUM, LOW
scanner (required): SECRETS or IAC
category (required): Scanner-specific categories (8 for SECRETS, 9 for IAC)
sub_category (required for IAC): Granular classification
frameworks (required): JSON array with name, definition, remediationDescription
description (optional): Rule description
labels (optional): Comma-separated labels
Outputs:

Appsec.Rule.RULE_NAME: Created rule name
Full rule object in context
Target Supported License:
Valid modules for this action:

agentix
xsiam
cloud_posture
cloud_appsec

Must have

  • Tests
  • Documentation

relates: https://jira-dc.paloaltonetworks.com/browse/CIAC-15801

@CLAassistant
Copy link

CLAassistant commented Feb 9, 2026

CLA assistant check
All committers have signed the CLA.

@content-bot content-bot added Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack labels Feb 9, 2026
@content-bot content-bot changed the base branch from master to contrib/DorZion51_contrib/dzion-CreateAppSecRules February 9, 2026 13:35
@content-bot content-bot requested a review from kamalq97 February 9, 2026 13:35
@content-bot
Copy link
Contributor

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed.
For your convenience, here is a link to the contributions SLAs document.

@content-bot
Copy link
Contributor

Hi @DorZion51, thanks for contributing to the XSOAR marketplace. To receive credit for your generous contribution please follow this link.

@content-bot
Copy link
Contributor

🤖 AI-Powered Code Review Available

Hi @kamalq97, you can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @content-bot start review - Initiate a full AI code review
  • @content-bot re-review - Incremental review for new commits

@kamalq97 kamalq97 assigned JudahSchwartz and unassigned kamalq97 Feb 9, 2026
@kamalq97 kamalq97 removed their request for review February 9, 2026 13:46
…required , change script to add uniqness to rule name
@mayyagoldman mayyagoldman self-requested a review March 2, 2026 10:49
version: -1
name: CreateSecretAppsecRule
display: CAS - Create Secret Appsec Rule
description: Creates a new Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Creates a new Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.
description: Creates a new Secret Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.

version: -1
name: CreateIACAppsecRule
display: CAS - Create Iac Appsec Rule
description: Creates a new Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Creates a new Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.
description: Creates a new IAC Application Security rule in Cortex Platform. An AppSec rule defines the specific criteria and scanners used to detect vulnerabilities or misconfigurations across your application lifecycle.

- name: rule_name
underlyingargname: rule_name
description: >
Must be unique if exist generate new one
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Must be unique if exist generate new one

underlyingargname: rule_name
description: >
Must be unique if exist generate new one
A unique name for the AppSec rule following the organization's naming conventions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A unique name for the AppSec rule following the organization's naming conventions.
A unique name for the AppSec rule.


else:
context = res[0]["EntryContext"]
data = context.get("data")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data = context.get("data")
data = context.get("data" , {})

CommandResults(
outputs_prefix="Appsec.Rule",
outputs=data,
readable_output=f"Rules {data}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
readable_output=f"Rules {data}",

DorZion51 and others added 4 commits March 16, 2026 18:00
Co-authored-by: Maya Goldman <94686128+mayyagoldman@users.noreply.github.com>
Co-authored-by: Maya Goldman <94686128+mayyagoldman@users.noreply.github.com>
@DorZion51 DorZion51 force-pushed the contrib/dzion-CreateAppSecRules branch from bfa5981 to c67487a Compare March 16, 2026 16:14
@DorZion51 DorZion51 requested a review from mayyagoldman March 17, 2026 10:10
@merit-maita merit-maita reopened this Mar 18, 2026
@merit-maita merit-maita reopened this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Contribution Thank you! Contributions are always welcome! External PR Xsoar Support Level Indicates that the contribution is for XSOAR supported pack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants