Conan

Review Conan source and binary scanning support in JFrog Xray.

Introduction

Conan is the primary C/C++ package manager supported by JFrog Xray. Conan packages follow a reference format (name/version@user/channel) and use recipe files (conanfile.txt or conanfile.py) to declare dependencies.

This page provides a detailed breakdown of Conan-specific scanning support across all scan contexts.


Capabilities

The following capabilities are available for Conan.

CapabilitySource Code ScanningBinary Scanning
Vulnerability Matching (CVEs)YESYES
License DetectionYESYES
Malicious Package DetectionYESYES
Operational RiskNONO
Smart RemediationNONO


Software Composition Analysis (SCA) isn't currently available for Conan source code scanning with jf audit. For more information, see Scan Your Source Code.

For how scan methods differ, see Source Scanning Engines and Frogbot Versions.

Supported Files

FileSupportedDetailsAvailable with
conanfile.txtNONot supportedDefault jf audit
conanfile.pyNONot supportedDefault jf audit
conan.lockNONot supportedDefault jf audit
conanfile.txtYESParses [requires] and [tool_requires] / [build_requires] sectionsFrogbot V3
conanfile.py⚠️ LimitedBasic parsing only. Complex Python logic, conditional dependencies, and dynamic version resolution are not evaluatedFrogbot V3
conan.lockNOLockfile parsing is not supportedFrogbot V3

Dependency Graph

FileDependency Graph
conanfile.txtNO Flat – No transitive dependency resolution
conanfile.pyNO Flat – No transitive dependency resolution

Best Practices

The following practices improve Conan scanning.

PracticeRecommendation
conanfile.txt instead of .pySimpler format with more reliable parsing
Exact versionsboost/1.82.0 is more accurate for scanning than version ranges
Artifactory storageBinary scanning provides the richest analysis for Conan
Conan revisionsConan revisions enable precise package identification in Artifactory

Related Topics


Did this page help you?