Secure Software Build Monitoring via Dynamic Trace Logging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Monitoring and auditing secure software builds are challenging due to the complexity of various sources used in building an OCI image, making it difficult to detect potential malicious code effectively and efficiently.

Innovation Solution

A method that determines an indicator value for each build instruction, allowing for fine-grained control of logging, focusing on capturing only suspicious data, and using a hardcoded mapping table to differentiate between allowed and unpermitted instructions, thereby reducing the size of manifest files and analysis time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If comprehensive logging of all build instructions is performed to ensure high detection rate of malicious code, then security detection capability is improved, but analysis time and resource consumption increase significantly

Engineering Contradiction:
Improvedetection rate of malicious codeVSAvoidanalysis time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the build process into individual build instructions and assigns different monitoring levels to each instruction based on its security risk. This allows the system to focus detailed analysis only on high-risk instructions rather than uniformly logging all instructions, thereby reducing overall analysis time while maintaining high detection rates for malicious code in critical operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by differentiating the monitoring intensity for different build instructions based on their security sensitivity. High-risk instructions receive detailed logging and analysis (high monitoring level), while low-risk instructions receive minimal or no logging (low monitoring level). This selective approach reduces resource consumption and analysis time while maintaining effective detection where it matters most.

Inventive Principle:
Principle #3Local quality

2Reliability

If detailed trace information is logged for all build instructions to ensure thorough security auditing, then security monitoring capability is improved, but the size of manifest files increases significantly

Engineering Contradiction:
Improvesecurity auditing capabilityVSAvoidsize of manifest files
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential security-relevant information from build instructions and includes it in manifest files, rather than logging complete detailed traces of all instructions. By selectively extracting only critical data elements related to security auditing, the system maintains thorough security monitoring capability while significantly reducing the quantity of data stored in manifest files.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If comprehensive logging of all build instructions is performed to ensure thorough security monitoring, then security coverage is improved, but resource consumption increases significantly

Engineering Contradiction:
Improvesecurity coverageVSAvoidresource consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent implements dynamic monitoring that adjusts the level of logging and analysis based on the risk profile of each build instruction. The system dynamically determines monitoring levels and applies them selectively, ensuring comprehensive security coverage for high-risk operations while minimizing resource consumption for low-risk operations. This dynamic approach allows the system to maintain thorough security monitoring where needed while optimizing resource usage overall.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12164911B2Monitoring and auditing secure software builds
Publication Date: 2024.12.10 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12164911B2 patent drawing
  • US12164911B2 patent drawing
  • US12164911B2 patent drawing

AI summary

A computer-implemented method for monitoring and auditing secure software builds is disclosed. The computer-implemented includes receiving a build file containing a sequence of build instructions. The computer-implemented method further includes, for each build instruction being executed: determining an indicator value corresponding to a monitoring level associated with a build instruction; and modifying logging of trace information associated with a computing system executing the build instruction based, at least in part, on the indicator value corresponding to the monitoring level.