# US 2026/0300510 A1 · System and method for analyzing artificial intelligence utilization and associated risks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0300510 A1
- Document ID: US20260300510A1
- Status: Published application
- Kind: A1
- Application number: 19/697,994
- Filed: 2026-06-04
- Published: 2026-10-01
- Earliest claimed: 2024-03-15
- Assignees: Cranium Ai, Inc.
- Applicants: Cranium AI, Inc.
- Inventors: Jonathan Dambrot; Nora Stack; Daniel Carroll; Richard Samoilenko; Felix Newberry; Chinmay Wyawahare
- Web page: https://patentgrep.com/patent/US20260300510A1

## CPC

- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 8/36: Software reuse
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A code sensor system is provided, configured for execution by one or more processors, for cataloging and analyzing code repositories containing Artificial Intelligence (“AI”) and associating risks and vulnerabilities to the code repositories, the system comprising: a Detect AI module configured to identify code repositories that may contain AI; a Deep Scan module configured to generate an AI Bill-of-Materials (“BOM”) from the code repositories, the AI BOM including a plurality of categories including technologies, models and datasets; a Vulnerability Scan module configured to generate an interactive assessment of the risks and vulnerabilities associated with the AI BOM by cross-referencing content of the AI BOM with Open-Source Resources and a Threat Intelligence Database; a Code Sensor Platform configured to control the operation of the Detect AI module, the Deep Scan module and the Vulnerability Scan module; and a User Interface configured to display the risks and vulnerabilities to a user.

## Claims

### Claim 1

A code sensor system, configured for execution by one or more processors, for cataloging and analyzing code repositories containing Artificial Intelligence (“AI”) and associating risks and vulnerabilities to the code repositories, the system comprising:
a Detect AI module configured to identify code repositories that may contain AI, the Detect AI module including a Configuration File AI Check algorithm which assesses whether a configuration file contains one or more AI libraries;
a Deep Scan module configured to generate an AI Bill-of-Materials (“BOM”) from the code repositories, the AI BOM including a plurality of categories including a technologies category, a models category and a datasets category, the Deep Scan module including a Deep AST Generator;
a Vulnerability Scan module including a Virtual Environmental Analysis algorithm used to generate an interactive assessment of the risks and vulnerabilities associated with the AI BOM by cross-referencing content of the AI BOM with Open-Source Resources and a Threat Intelligence Database;
a Code Sensor Platform configured to control the operation of the Detect AI module, the Deep Scan module and the Vulnerability Scan module; and
a User Interface configured to display the risks and vulnerabilities to a user.

### Claim 2 (depends on 1)

The code sensor system of claim 1, wherein the technologies category of the AI BOM includes code building blocks for building AI systems.

### Claim 3 (depends on 1)

The code sensor system of claim 1, wherein the models category of the AI BOM includes algorithms and/or neural networks trained on data to perform at least one of predictions, classifications or output generation.

### Claim 4 (depends on 1)

The code sensor system of claim 1, wherein the datasets category of the AI BOM includes data used for performing at least one of model analysis, model training or model validation.

### Claim 5 (depends on 1)

The code sensor system of claim 1, wherein the User Interface is configured to present the user with a list of every code repository containing AI.

### Claim 6 (depends on 1)

The code sensor system of claim 1, wherein the Detect AI module is configured to iterate over the code repositories, clone each code repository, and iterate over files in the cloned repositories.

### Claim 7 (depends on 6)

The code sensor system of claim 6, wherein the Deep Scan module is configured to perform a Configuration File Analysis on the files in the cloned repositories which produce a portion of the technologies in the AI BOM.

### Claim 8 (depends on 7)

The code sensor system of claim 7, wherein the Configuration File Analysis is configured to build a list of libraries used in a code repository using context from one or more Open-Source Package Repositories.

### Claim 9 (depends on 1)

The code sensor system of claim 1, further comprising a Client Version Control System (“VCS”) Connector configured to provide the Detect AI module, the Deep Scan module and the Vulnerability Scan module with read access to the code repositories.

### Claim 10 (depends on 9)

The code sensor system of claim 9, wherein the Detect AI module is configured to retrieve a VCS Repository List via calls to an Application Programming Interface (“API”) of the Client VCS Connector.

### Claim 11 (depends on 1)

The code sensor system of claim 1, wherein the Detect AI module includes a Config Detect module that analyzes configuration files in the code repositories for the presence of AI, categorizes configuration files containing AI as AI files, and stores the AI files in a Detect AI Storage database.

### Claim 12 (depends on 11)

The code sensor system of claim 11, wherein the Config Detect module includes the Configuration File AI Check algorithm and the one or more AI libraries are stored in an AI Library Database.

### Claim 13 (depends on 12)

The code sensor system of claim 12, wherein the Detect AI module further includes a Code Detect module that analyzes other files in the code repositories for the presence of AI and stores results of the analysis.

### Claim 14 (depends on 13)

The code sensor system of claim 13, wherein the Code Detect module assesses each of the other files by executing a Shallow Abstract Syntax Tree (“AST”) Generator on import statements of the other files.

### Claim 15 (depends on 14)

The code sensor system of claim 14, wherein the Shallow AST Generator is configured to construct a structural representation of code by mapping syntax of the code in a tree format.

### Claim 16 (depends on 14)

The code sensor system of claim 14, wherein the Code Detect module includes an AST File AI Check algorithm which scans results of the Shallow AST Generator against the AI Library Database.

### Claim 17 (depends on 16)

The code sensor system of claim 16, wherein if an AI library is present in one of the other files, the code repository containing the other file is categorized as code repository containing AI.

### Claim 18 (depends on 11)

The code sensor system of claim 11, wherein the Deep Scan module includes a Deep AST Generator which is configured to use a Model and Dataset Search algorithm to identify models and/or datasets included in an Open-Source AI Library, to identify, using a Find Code Libraries algorithm, additional libraries in the code repositories that are not specified in the configuration files, and to format the code to deliver to a Large Language Model Analysis algorithm.

### Claim 19 (depends on 18)

The code sensor system of claim 18, wherein the Large Language Model Analysis algorithm employs a Large Language Model to identify content in the AI BOM including the models and/or datasets identified by the Deep AST Generator.

### Claim 20 (depends on 18)

The code sensor system of claim 18, wherein the Large Language Model is used by the Large Language Model Analysis algorithm to map the models and/or datasets from the code repositories to the AI BOM.

### Claim 21 (depends on 18)

The code sensor system of claim 18, wherein the Large Language Model Analysis algorithm is configured to interface with any of a plurality of Large Language Models.

### Claim 22 (depends on 18)

The code sensor system of claim 18, wherein the Find Code Libraries algorithm is configured to examine import statements in the code repositories that are not specified in the configuration files to identify libraries for addition to the AI BOM.

### Claim 23 (depends on 18)

The code sensor system of claim 18, wherein the Model and Dataset Search algorithm is configured to identify AI components from nodes of an AST that belong to common Open-Source AI Libraries.

### Claim 24 (depends on 1)

The code sensor system of claim 1, wherein the Deep Scan module is activated by identification by the Detect AI module of a code repository that may contain AI or in response to a user request via the User Interface.

### Claim 25 (depends on 1)

The code sensor system of claim 1, wherein the Deep AST Generator is configured to scan certain file types in the code repositories to identify AI usage patterns.

### Claim 26 (depends on 1)

The code sensor system of claim 1, wherein the Vulnerability Scan module is activated either automatically upon completion of the Deep Scan module or in response to a user request via the User Interface.

### Claim 27 (depends on 1)

The code sensor system of claim 1, wherein the Virtual Environmental Analysis algorithm identifies potentially open-source packages in the AI BOM for analysis by a Technology Vulnerability Evaluation algorithm to generate the risks and vulnerabilities from the plurality of categories of the AI BOM.

### Claim 28 (depends on 27)

The code sensor system of claim 27, wherein the Virtual Environmental Analysis algorithm is configured to identify candidate technologies from the AI BOM to be scanned by the Vulnerability Scan module by instantiating a clean virtual environment with only native Python technologies installed, iterating through the technologies from the AI BOM, and identifying the candidate technologies as technologies not installed in the clean virtual environment for use by the Technology Vulnerability Evaluation algorithm.

### Claim 29 (depends on 28)

The code sensor system of claim 28, wherein the Technology Vulnerability Evaluation algorithm includes a Vulnerability Metadata Enrichment algorithm which identifies technology names and technology version numbers associated with the risks and vulnerabilities.

### Claim 30 (depends on 1)

The code sensor system of claim 1, wherein the Vulnerability Scan module includes a Dataset and Model Vulnerability Evaluation algorithm which identifies high-level risks and vulnerabilities from the AI BOM and stores data associated with the high-level risks and vulnerabilities in a Vulnerability Assessment Storage which may be accessed by a user via the User Interface.

### Claim 31 (depends on 30)

The code sensor system of claim 30, wherein the Dataset and Model Vulnerability Evaluation algorithm is configured to access the Threat Intelligence Database, which includes a plurality of AI risks and vulnerabilities.

### Claim 32 (depends on 30)

The code sensor system of claim 30, wherein the Dataset and Model Vulnerability Evaluation algorithm is configured to access an Open-Source Risks and Vulnerabilities database including a plurality of open-source AI risks and vulnerabilities.

### Claim 33 (depends on 30)

The code sensor system of claim 30, wherein the Dataset and Model Vulnerability Evaluation algorithm includes an Entity Source Analysis algorithm that uses datasets and/or models from the AI BOM to identify datasets and/or models without a source and determine the presence of a card in the datasets and/or models without a source.

### Claim 34 (depends on 31)

The code sensor system of claim 31, wherein the Dataset and Model Vulnerability Evaluation algorithm includes a Model Mapping component which associates each model with a model family, identifies models with a common foundational AI model, and determines a type of each model.

### Claim 35 (depends on 34)

The code sensor system of claim 34, wherein the Dataset and Model Vulnerability Evaluation algorithm includes a Model Vulnerability and Risk Analysis configured to use the model families and model types from the Model Mapping component to identify the high-level risks and vulnerabilities.

### Claim 36 (depends on 35)

The code sensor system of claim 35, wherein the Model Vulnerability and Risk Analysis is configured to, for each model family, identify vulnerability data from the Treat Intelligence Database and associate the vulnerability data with the model family.

### Claim 37

A system for cataloging and analyzing code repositories containing Artificial Intelligence (“AI”) and associating risks and vulnerabilities to the code repositories, the system comprising:
at least one processor;
at least one memory device accessible by the at least one processor, the at least one memory device including a plurality of instructions for execution by the at least one processor; and
at least one display in operative communication with the at least one processor;
wherein, the plurality of instructions include:
a Detect AI module configured to identify code repositories that may contain AI, the Detect AI module including a Configuration File AI Check algorithm which assesses whether a configuration file contains one or more AI libraries;
a Deep Scan module configured to generate an AI Bill-of-Materials (“BOM”) from the code repositories, the AI BOM including a plurality of categories including technologies, models and datasets, the Deep Scan module including a Deep AST Generator;
a Vulnerability Scan module including a Virtual Environmental Analysis algorithm used to generate an interactive assessment of the risks and vulnerabilities associated with the AI BOM by cross-referencing content of the AI BOM with Open-Source Resources and a Threat Intelligence Database; and
a Code Sensor Platform configured to control the operation of the Detect AI module, the Deep Scan module and the Vulnerability Scan module;
wherein the display is configured to generate a User Interface to display the risks and vulnerabilities to a user.

### Claim 38

A method for cataloging and analyzing code repositories containing Artificial Intelligence (“AI”) and associating risks and vulnerabilities to the code repositories, comprising:
identifying, by a Detect AI module executed by at least one processor, code repositories that may contain AI, the Detect AI module including a Configuration File AI Check algorithm which assesses whether a configuration file contains one or more AI libraries;
generating, by a Deep Scan module executed by the at least one processor, an AI Bill-of-Materials (“BOM”) from the code repositories, the AI BOM including a plurality of categories including technologies, models and datasets, the Deep Scan module including a Deep AST Generator;
generating, using a Virtual Environmental Analysis algorithm of a Vulnerability Scan module executed by the at least one processor, an interactive assessment of the risks and vulnerabilities associated with the AI BOM by cross-referencing content of the AI BOM with Open-Source Resources and a Threat Intelligence Database;
controlling, by a Code Sensor Platform executed by the at least one processor, the operation of the Detect AI module, the Deep Scan module and the Vulnerability Scan module; and
providing to a user, via a User Interface, access to the risks and vulnerabilities.
