• Public

Software Composition Analysis Group

Skip Feed
  1. ⚠️ Announcement: this group will be archived at the end of the week.

     

    We wanted to give you a heads-up that we’re archiving this user group at the end of this week, to help centralize discussions in the SCA topical forum where you can continue to ask questions, exchange ideas, learn and share best practices, and get updates from the Veracode team.

     

    🔔To share feedback and stay on top of new SCA discussions , follow #Veracode Software Composition Analysis​  and enable email notifications.

    Expand Post

  2. 🚩Weekly Product Update (01.29.21): API Notifications, new SCA API, and Dynamic Findings

    Here's a summary of the release over the last two weeks. Let us know in the comment section below if you have any question!

     

    #Veracode Dynamic Analysis​ 

    Changes to Reporting of CWE-829 - no longer map findings concerning missing or misconfigured CSP headers to CWE-829 when responses have no body. 

     

    #Veracode Software Composition Analysis​ 

    New API Endpoint for Listing Issues by Project - The Veracode SCA Agent REST API includes a new endpoint for querying issues by the project ID. This endpoint enables you to view issues specific to a project in an agent-based scan workspace. If the project is a container, the API also lists all issues linked to projects inside the container. 

     

    #Veracode Platform​ 

    Improved Email Notifications for Expiring API Credentials - Veracode sends an email notification when your Veracode API credentials are about to expire. The email now displays your API username for quickly identifying the account for which you need to generate new credentials. 

     

    @Dynamic Analysis Group (Archived)​ @Software Composition Analysis Group (Archived)​ 

    Expand Post

    VCode likes this.

  3. indra.patel (Community Member) asked a question.

    Agent Based scan - How to configure Maven options to increase Java Heap space

    Hi,

    While I am running a desktop agent based scan, after running a while, srcclr reports "com.sourceclear.agent.commands.ScanCommand ERROR Unable to scan and generate report: Java heap space".

    I think increasing heap space via Jvm options to Maven (e.g. -Xms512m -Xmx3g -XX:MaxPermSize=1024m) might do the job.

    How can I make srcclr use these JVM values when running mvn during the scan which is being done manually at present on Windows 2016 server Powershell window.?

     

    I see srcclr using the following options in the debug output:

     

    2020-09-23/15:04:37.798 com.sourceclear.engine.component.collectors.MavenNativeCollector INFO Running Maven with: C:\MAVEN\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin\mvn.cmd compile -Dcheckstyle.skip=true -e -DskipTests -DskipITs -Dmaven.test.skip=true --fail-fast --nsu -Denforcer.skip=true com.srcclr:srcclr-maven-plugin:3.1.20:scan --batch-mode -DheadlessOutputFile=C:\Users\INDRA~1.PAT\AppData\Local\Temp\graph-1593005717018069188.json

     

    I have spent multiple days searching the internet, and trying the other srcclr options such as compile_first, install_first, but nothing works. Help!

     

    Thanks.

    Indra.

    Expand Post
    Question with a best answer.

    Best Answer

    I was able to overcome the issue by specifying the following before starting srcclr in the Powershell window.

    $Env:JAVA_OPTS="-Xms8g -Xmx20g".

     

    indra.patel by indra.patel (Community Member)

    1 of 2
    • SWithey992668 (Community Member)

      This didn't fix the issue for me.. The build agents we're running on have 7GB memory so I tried limiting to 6GB, but it seems crazy that it is maxing that out! Any other options?

  4. 🚩 #Weekly Product Update​ - weekly product news and announcements every Thursday (4/9)

    Hello Community! 👋 It’s time of the week again! Here is the round-up of the updates from the release notes this week: 

     

    #Static Analysis​ 

    • Support for AWS Lambda Functions: now supports AWS Lambda functions for Java, .NET, Node.js, and Python 
    • Improved Support for iOS Applications - Improved results quality for iOS 13 applications, added support for Xcode 11.4 
    • Improved CWE 404 Reporting - more specific about where they occur, which may result in additional findings.  

     

    #Software Composition Analysis (SCA)​ 

    • Organization Rules for Agent-Based Scans - now supports configuring rules for agent-based scans at the organization level. Administrators can apply these rules to all workspaces in an organization to efficiently enforce a common security standard. 
    • New API Endpoint for Auditing Agent-Based Scan Events - now includes a new endpoint that provides a detailed audit of events for agent-based scans. 

     

    Expand Post

  5. wilsonperdomo (Community Member) asked a question.

    Getting False Positives with Python Apps in SCA reports

    I’m currently integrating some Veracode scans with some Python 3.8 apps. In the process, I’ve noticed that some SCA reports are returning false positives with some dependencies that have security vulnerabilities. The issue is that many of those dependencies aren’t actually being packaged with the app and are just dev dependencies. It seems the platform has a hard time distinguishing the two in the Pipfiles (dependency manifests) my projects have. I read in the documentation the requirements.txt are also supported however that doesn't seem to be the case. I do not get any results when doing so. Can anyone help?

     

    Example of the pipfile

    [[source]]

    name = "pypi"

    url = "https://pypi.org/simple"

    verify_ssl = true

     

    [dev-packages]

    importlib-metadata = "*"

    pytest = "*"

    pytest-cov = "*"

     

    [packages]

    requests = "*"

    simplejson = "*"

     

    [requires]

    python_version = "3.7"

     

     

    Expand Post

    wilsonperdomo likes this.
    1 of 8
    • nkakar430822 (Community Member)

      Clear separation of dev and production dependencies in your Pipfile. Check Veracode's supported file formats, but if 'requirements.txt' doesn't work, stick with the Pipfile approach. Exclude dev dependencies from the scan if they won't be packaged with the app.

  6. AGorr125347 (Community Member) asked a question.

    I am attempting to integrate a SourceClear scan into an Azure DevOps build using a AzurePowerShell task. The task does execute but ultimately fails with this message:

    No supported build system found. Please see our list of supported systems

    More details follow. The task:

     

    - task: AzurePowerShell@5

     displayName: 'SourceClear Scan'

     inputs:

      azureSubscription: '{subscription here}'

      ScriptType: InlineScript

      Inline: |

       $Env:SRCCLR_API_TOKEN="{token here}"

       

       Set-ExecutionPolicy AllSigned -Scope Process -Force

       

       iex ((New-Object System.Net.WebClient).DownloadString('https://download.srcclr.com/ci.ps1'))

       

       srcclr scan $(Build.SourcesDirectory) --debug

      azurePowerShellVersion: LatestVersion

     condition: succeededOrFailed()

     

    To be honest I do not know much about the script other than it is used successfully in another build pipeline for a different source code repository

     

    The project that fails is .NET Core 3.1

     

    Any suggestions for what I need to modify to complete a successful scan?

    What other information can I provide to assist with diagnosing this issue?

     

    Expand Post

    1 of 3
    • akapur (Veracode, Inc.)

      Hi All,

       

      I now have the support case and would be sending out the next set of actions for debugging from Support via Email.

       

      Regards,

      Aditi

      Expand Post

  7. Hi, here a list of our major Veracode SCA product deliverables in Q4 (Oct-Dec 2019), more information can be found in help.veracode.com:

     

    Go Modules Support:

    In addition to package managers Glide, GoVendor, GoDep, GoGet, Dep, and Trash, SCA now supports Go Modules – the widely used package manager for Golang.

     

    Windows Support:

    The SCA Agent for Windows which is currently supported has been enhanced for complete feature parity with the list of languages and features available in the agent for other operating systems.

     

    Gradle Support:

    SCA supports the latest version of Gradle that includes support for “implementation” as the dependency configuration.

     

    New Roles – Workspace Editor and Submitter:

    Two new roles have been introduced in the new Integrated SCA product – Veracode Workspace Editor and Veracode Submitter

     

    Veracode Workspace Editor inherits a subset of capabilities of the Workspace Administrator.

    A Veracode Workspace Editor has permissions for all Workspace Administrator tasks except:

    1. Adding teams to workspaces
    2. Editing workspaces
    3. Deleting workspaces

     

    Veracode Submitter - This new role enables agent management without providing permissions to view the results. The Veracode Submitter can:

    • View the SCA portfolio page
    • Create agents 
    • Rename agents
    • Regenerate agent tokens
    • Delete agents

    Doc Link: https://help.veracode.com/reader/RXjxbTR2MDQdN3gX4l53CQ/_8oXXhMujVU63_VFWcTC9g

     

    SCA Agent API:

    Over that last 2 quarters we have been adding more features to the Agent API (formerly SourceClear API), not only making available scan results at workspace and project level, but also administration features. Take a look at the Swagger documentation.

    https://app.swaggerhub.com/apis/Veracode/veracode-sca_agent_api_specification/3.0

     

    CVSS v3 in Application Upload and Scan:

    Vulnerabilities in app upload and scan will now have both CVSS v2 and CVSS v3 ratings for viewing.

    Customers can choose between v2 and v3 when browsing the ‘Third-Party Components’ and ‘Vulnerabilities’ tab.

    The CVSS version used in SCA Policies is, however, set at the organizational level by Veracode’s customer support. This version once set is uniformly applicable all policies. The version that is in use for Policy is listed in the ‘CVSS Version’ column in SCA’s application scan reports.

    Doc link: https://help.veracode.com/reader/9nOkCbEfhLEzMgzr2zCv5Q/S8NjhjaQXsKaGfjQ~Wy4mg

     

    Expand Post

    DeCaPa likes this.
    • DeCaPa (Community Member)

      Roles will greatly help to manage large teams and workspaces. Thanks!

End of Feed
8 Chatter Feed Items

Group Details

Details

Description
The Software Composition Analysis Group is where you can engage with other Community members, including Veracoders, on your experiences with Veracode's Software Composition Analysis (SCA) and SourceClear as well as processes and policies around ensuring the open source components which developers use in their code are secure.
Show More
Owner