IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

App Control: How to Query DAS for CounterChain Blocks

App Control: How to Query DAS for CounterChain Blocks

Environment

  • App Control Console: All Supported Versions
  • App Control Server: All Supported Versions
  • Microsoft SQL Server Management Studio: All Supported Versions

Objective

How to query the App Control database (DAS) to identify Publisher & Certificate information related to Block Events due to: IneligibleForApproval: CounterChainIdx.

Resolution

  1. Collect the File Name and the full File Hash from the relevant Block Event. This can be done with the Columns, "File Name" and "File Hash".
  2. Login to the application server as the Carbon Black Service Account.
  3. Launch Microsoft SQL Server Management Studio and choose the option to connect to the SQL Server hosting the DAS database using the Authentication: Windows Authentication.
  4. Click New Query and execute the following query:
    use das;
    select * from dbo.filenames with (nolock) where filename like '%BlockedFile.exe%';
    
  5. Note the filename_id returned and use it in place of AAAA in the next query, and use the Hash value from the Block Event in place of BBBB
    select timestamp_cert_id, hash from dbo.antibodies with (nolock) where filename_id = 'AAAA' AND hash = 'BBBB';
    
  6. Note the timestamp_cert_id and use it in place of CCCC in the next query:
    select publisher_id, subject_name, serial_number, thumbprint, valid_from, valid_to from dbo.certificates with (nolock) where cert_id = 'CCCC';
    
  7. This should return a single result containing the information of the Certificate that caused the Block Event.

Additional Notes

  • The publisher_id can be used in place of ZZZZ to change the Certificate State to Approved via the Console: https://ServerAddress/publisher-details.php?publisher_id=ZZZZ
  • The Agent relies on the Windows Cryptographic API to validate these certificates. The error returned is provided by this API.
  • An extended discussion regarding these queries, and the reasons behind them, can be found in the Community Discussion here.
  • See the Related Content for additional articles to help with troubleshooting Publisher Approval issues.

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎08-16-2022
Views:
1069
Contributors