Source Code Repository API Discovery for Inactive API Risk Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing API discovery and management systems are inadequate in identifying and securing neglected APIs due to their lack of traffic flow, leading to potential security vulnerabilities, and existing platforms rely on outdated information that may not account for newly added APIs.

Innovation Solution

An AI-based system that detects both active and inactive APIs by analyzing metadata from source code repositories, continuously updates information, and performs threat evaluations, using AI models to generate reports and provide mitigation strategies.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traffic analysis is used to identify active APIs, then active APIs can be detected, but neglected and forgotten APIs cannot be identified due to lack of traffic flow

Engineering Contradiction:
ImproveAPI detection accuracyVSAvoidAbility to detect inactive APIs
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent introduces source code repository metadata as an intermediary data source to detect inactive APIs. Instead of relying solely on network traffic (which only shows active APIs), the system queries source code repositories to find API definitions, descriptions, and metadata. This intermediary approach allows detection of both active and inactive APIs by comparing repository data with actual traffic patterns.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent adds a new dimension to API detection by incorporating source code repository information alongside network traffic analysis. This multi-dimensional approach combines dynamic traffic data with static code repository metadata, enabling comprehensive detection of APIs across different states (active, inactive, deprecated) that single-dimension traffic analysis cannot detect.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Ease of operation

If API management platforms rely on developer-provided information, then they can maintain API lists, but newly added APIs remain invisible and insufficiently secure

Engineering Contradiction:
ImproveManual API registrationVSAvoidCurrency of API information
Core Design Contradiction:
Ease of operationVSLoss of information

Solution Approach 1:

The patent implements continuous feedback loops where the system periodically queries source code repositories to detect changes, new APIs, and modifications. This automated feedback mechanism ensures API information remains current without relying on manual developer updates, addressing the currency problem while reducing manual operational burden through automation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs self-service by automatically querying source code repositories to discover and update API information without requiring manual developer input. The automated discovery process continuously monitors repository changes, identifies new APIs, and updates the API inventory, making the system self-maintaining and reducing reliance on developer-provided information.

Inventive Principle:
Principle #25Self-service

3Reliability

If comprehensive API scanning is performed to identify all APIs, then security coverage is improved, but processing time and computational resources increase

Engineering Contradiction:
ImproveAPI security coverageVSAvoidAPI detection time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by prioritizing security assessments based on API risk categories. Instead of uniformly scanning all APIs with equal depth, the system performs comprehensive analysis on high-risk APIs (those with known vulnerabilities, deprecated status, or sensitive data access) while using lighter-weight detection methods for lower-risk APIs, optimizing the balance between security coverage and processing time.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system performs preliminary filtering by first querying source code repositories to identify API definitions and metadata, then pre-categorizing APIs based on their risk profiles before conducting detailed security assessments. This preliminary action reduces the overall processing time by focusing intensive analysis only on APIs that require it, rather than uniformly scanning all APIs.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12493692B1Systems, methods, and storage media for API detection and management in a source-code repository using a computing platform
Publication Date: 2025.12.09 STACKHAWK INC
  • US12493692B1 patent drawing
  • US12493692B1 patent drawing
  • US12493692B1 patent drawing

AI summary

A system, method, and apparatus for Application Programming Interface (API) discovery that is configured to detect APIs, both active and inactive, and perform risk assessments and threat evaluations for the detected APIs. Furthermore, the system is configured to extract metadata information from a source code repository to detect APIs. In some examples, the source code repository (SCR) data can include API-specific data, non-API related data (i.e., data not related to any APIs), and metadata. The system can then assess the extracted information (e.g., API-related information) to identify vulnerabilities and conduct a threat evaluation (or threat eval). Additionally, the system is also configured to continuously and automatically update the extracted API-related information, repository metadata, etc., which can help obviate the need for manual intervention as a code base changes and APIs are created and destroyed over time.