Skip to content

Conversation

@cx-atish-jadhav
Copy link
Contributor

Description

This PR introduces telemetry AI event support to the Java wrapper:

  • Adds a telemetry AI command in the wrapper to report AI-related events (provider, agent, event type, subtype, engine, severity, scan type, status, totals).
  • Provides unit tests covering different invocation scenarios (AI interaction logging, detection logging, and edge/minimal parameters).
  • Keeps existing behavior intact for all other commands.

Background and motivation

  • Enables clients and IDE plugins to emit standardized telemetry around AI-assisted workflows and detections.
  • Aligns the Java wrapper with newer CLI capabilities, simplifying adoption by downstream integrations.

Impacts

  • Public API: new method in the wrapper to emit telemetry AI events.
  • No change to existing public methods, input contracts, or default flows.
  • No migration required for current users; this is purely additive.
  • Performance and memory impact are negligible (command assembly and execution only).
  • Logging: leverages the existing logger; no new logging frameworks added.

References

AST-127560

Testing

  • Integration tests: Added focused tests for telemetry AI event invocation covering:
    • AI interaction logging with minimal-but-meaningful parameters
    • Detection logging with scan-type/status/totalCount emphasis
    • Edge cases with empty or minimal values
  • Existing tests: All pre-existing test suites complete without errors.

Additional notes

  • Backward compatibility maintained; no existing flags or parsing logic were changed.
  • Error handling follows established wrapper behavior: non-zero CLI exit codes propagate as exceptions.
  • The feature is safe to roll out; it’s disabled unless explicitly called by in plugin code

cx-atish-jadhav and others added 29 commits October 14, 2025 12:42
…ast-cli-java-wrapper into feature/agentic_ai

# Conflicts:
#	src/main/java/com/checkmarx/ast/wrapper/CxConstants.java
#	src/main/java/com/checkmarx/ast/wrapper/CxWrapper.java
#	src/test/java/com/checkmarx/ast/SecretsRealtimeResultsTest.java
commit d95cdea
Merge: 09bebed bfcd160
Author: AST Sypher <astsypher@checkmarx.com>
Date:   Mon Dec 15 15:41:37 2025 +0530

    Merge pull request #452 from Checkmarx/feature/update_cli_2.3.41

    Update checkmarx-ast-cli binaries with 2.3.41

commit bfcd160
Author: cx-anurag-dalke <120229307+cx-anurag-dalke@users.noreply.github.com>
Date:   Mon Dec 15 09:54:20 2025 +0000

    Update checkmarx-ast-cli to 2.3.41

commit 87bb7ad
Author: github-actions <github-actions@github.com>
Date:   Mon Dec 15 09:54:19 2025 +0000

    Track Checkmarx CLI binaries with Git LFS

commit 09bebed
Author: Atish Jadhav <141334503+cx-atish-jadhav@users.noreply.github.com>
Date:   Mon Dec 15 13:26:35 2025 +0530

    Devassist: Realtime scanners (OSS, Secrets, Containers, IaC) with unified wrapper and enhanced parsing(AST-115438) (#451)

    * aimcp server changes

    * oss-realtime scanner changes

    * Create OssRealtimeVulnerability.java

    * Unify realtime scan wrappers; consolidate Secrets/IaC models; deprecate and stub obsolete result classes

    * Add ContainersRealtimeVulnerability model for containers realtime scan parsing

    * Add @JsonCreator constructor to OssRealtimeVulnerability for reliable Jackson deserialization

    * Refactoring package name and adding test for oss and mcp flag

    * Add integration tests for OSS, Container, and Secrets realtime scanners

    * Changed variable from id to CVE as per OSS response

    * Add maskedResult for secret remediation and change log level from INFO to DEBUG

    * Remove masked secrets functionality from codebase

    * Implemented mask cmd in java wrapper

    ---------

    Co-authored-by: cx-anand-nandeshwar <73646287+cx-anand-nandeshwar@users.noreply.github.com>
Merge branch 'main' into feature/agentic_ai
@cx-ben-alvo
Copy link
Collaborator

Logo
Checkmarx One – Scan Summary & Detailsfa6b9fb8-67ea-46f6-ac4a-671e7af50bab

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

Copy link
Collaborator

@cx-anurag-dalke cx-anurag-dalke left a comment

Choose a reason for hiding this comment

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

ok

@cx-anurag-dalke cx-anurag-dalke merged commit f27370c into main Dec 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants