CrowdStrike Falcon CrowdStrike Subreddit

Using the Certificate Based Exclusions service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
cb_exclusions_get_v1
PEP8get_exclusions
Find all exclusion IDs matching the query with filter
cb_exclusions_create_v1
PEP8create_exclusions
Create new Certificate Based Exclusions.
cb_exclusions_delete_v1
PEP8delete_exclusions
Delete the exclusions by id
cb_exclusions_update_v1
PEP8update_exclusions
Updates existing Certificate Based Exclusions
certificates_get_v1
PEP8get_certificates
Retrieves certificate signing information for a file
cb_exclusions_query_v1
PEP8query_certificates
Search for cert-based exclusions.

cb_exclusions_get_v1

Find all exclusion IDs matching the query with filter.

PEP8 method name

get_exclusions

Endpoint

MethodRoute
GET/exclusions/entities/cert-based-exclusions/v1

Required Scope

ml-exclusions:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe ids of the exclusions to retrieve.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format. Not required when using other keywords.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.get_exclusions(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.cb_exclusions_get_v1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("cb_exclusions_get_v1", ids=id_list)
print(response)

Back to Table of Contents

cb_exclusions_create_v1

Create new Certificate Based Exclusions.

PEP8 method name

create_exclusions

Endpoint

MethodRoute
POST/exclusions/entities/cert-based-exclusions/v1

Required Scope

ml-exclusions:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
applied_globallyService Class SupportUber Class SupportbodybooleanBoolean flag indicating if this exclusion is applied globally.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
certificateService Class SupportUber Class SupportbodydictionaryDictionary describing the certificate.
children_cidsService Class SupportUber Class Supportbodystring or list of stringsList of child CIDs to apply this exclusion to.
commentService Class SupportUber Class SupportbodystringExclusion comment.
created_byService Class SupportUber Class SupportbodystringExclusion created by.
created_onService Class SupportUber Class SupportbodystringExclusion creation date. UTC date formatted string.
descriptionService Class SupportUber Class SupportbodystringExclusion description.
host_groupsService Class SupportUber Class Supportbodystring or list of stringsList of host groups to apply this exclusion to.
issuerService Class SupportUber Class SupportbodystringCertificate issuer. Overwritten if certificate keyword is provided.
modified_byService Class SupportUber Class SupportbodystringExclusion modified by.
modified_onService Class SupportUber Class SupportbodystringExclusion last modification date. UTC date formatted string.
nameService Class SupportUber Class SupportbodystringExclusion name.
serialService Class SupportUber Class SupportbodystringCertificate serial. Overwritten if certificate keyword is provided.
statusService Class SupportUber Class SupportbodystringExclusion status.
subjectService Class SupportUber Class SupportbodystringCertificate subject. Overwritten if certificate keyword is provided.
thumbprintService Class SupportUber Class SupportbodystringCertificate thumbprint. Overwritten if certificate keyword is provided.
valid_fromService Class SupportUber Class SupportbodystringCertificate valid from date. UTC date formatted string. Overwritten if certificate keyword is provided.
valid_toService Class SupportUber Class SupportbodystringCertificate valid to date. UTC date formatted string. Overwritten if certificate keyword is provided.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

response = falcon.create_exclusions(applied_globally=boolean,
                                    children_cids=child_ids,
                                    comment="string",
                                    created_by="string",
                                    created_on="string",
                                    description="string",
                                    host_groups=host_group_ids,
                                    issuer="string",
                                    modified_by="string",
                                    modified_on="string",
                                    name="string",
                                    serial="string",
                                    status="string",
                                    subject="string",
                                    thumbprint="string",
                                    valid_from="string",
                                    valid_to="string"
                                    )
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

response = falcon.cb_exclusions_create_v1(applied_globally=boolean,
                                          children_cids=child_ids,
                                          comment="string",
                                          created_by="string",
                                          created_on="string",
                                          description="string",
                                          host_groups=host_group_ids,
                                          issuer="string",
                                          modified_by="string",
                                          modified_on="string",
                                          name="string",
                                          serial="string",
                                          status="string",
                                          subject="string",
                                          thumbprint="string",
                                          valid_from="string",
                                          valid_to="string"
                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

body_payload = {
  "exclusions": [
    {
      "applied_globally": boolean,
      "certificate": {
        "issuer": "string",
        "serial": "string",
        "subject": "string",
        "thumbprint": "string",
        "valid_from": "UTC string",
        "valid_to": "UTC string"
      },
      "children_cids": [
        "string"
      ],
      "comment": "string",
      "created_by": "string",
      "created_on": "UTC string",
      "description": "string",
      "host_groups": [
        "string"
      ],
      "modified_by": "string",
      "modified_on": "UTC string",
      "name": "string",
      "status": "string"
    }
  ]
}

response = falcon.command("cb_exclusions_create_v1", body=body_payload)
print(response)

Back to Table of Contents

cb_exclusions_delete_v1

Delete the exclusions by ID.

PEP8 method name

delete_exclusions

Endpoint

MethodRoute
DELETE/exclusions/entities/cert-based-exclusions/v1

Required Scope

ml-exclusions:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsThe IDs of the exclusions to delete.
commentService Class SupportUber Class SupportquerystringThe comment why these exclusions were deleted.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format. Not required when using other keywords.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.delete_exclusions(comment="string", ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.cb_exclusions_delete_v1(comment="string", ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

PARAMS = {
    "comment": "string"
}

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("cb_exclusions_delete_v1", parameters=PARAMS, ids=id_list)
print(response)

Back to Table of Contents

cb_exclusions_update_v1

Updates existing Certificate Based Exclusions.

PEP8 method name

update_exclusions

Endpoint

MethodRoute
PATCH/exclusions/entities/cert-based-exclusions/v1

Required Scope

ml-exclusions:write

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
applied_globallyService Class SupportUber Class SupportbodybooleanBoolean flag indicating if this exclusion is applied globally.
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format.
certificateService Class SupportUber Class SupportbodydictionaryDictionary describing the certificate.
children_cidsService Class SupportUber Class Supportbodystring or list of stringsList of child CIDs to apply this exclusion to.
commentService Class SupportUber Class SupportbodystringExclusion comment.
created_byService Class SupportUber Class SupportbodystringExclusion created by.
created_onService Class SupportUber Class SupportbodystringExclusion creation date. UTC date formatted string.
descriptionService Class SupportUber Class SupportbodystringExclusion description.
host_groupsService Class SupportUber Class Supportbodystring or list of stringsList of host groups to apply this exclusion to.
issuerService Class SupportUber Class SupportbodystringCertificate issuer. Overwritten if certificate keyword is provided.
modified_byService Class SupportUber Class SupportbodystringExclusion modified by.
modified_onService Class SupportUber Class SupportbodystringExclusion last modification date. UTC date formatted string.
nameService Class SupportUber Class SupportbodystringExclusion name.
serialService Class SupportUber Class SupportbodystringCertificate serial. Overwritten if certificate keyword is provided.
statusService Class SupportUber Class SupportbodystringExclusion status.
subjectService Class SupportUber Class SupportbodystringCertificate subject. Overwritten if certificate keyword is provided.
thumbprintService Class SupportUber Class SupportbodystringCertificate thumbprint. Overwritten if certificate keyword is provided.
valid_fromService Class SupportUber Class SupportbodystringCertificate valid from date. UTC date formatted string. Overwritten if certificate keyword is provided.
valid_toService Class SupportUber Class SupportbodystringCertificate valid to date. UTC date formatted string. Overwritten if certificate keyword is provided.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

response = falcon.update_exclusions(applied_globally=boolean,
                                    children_cids=child_ids,
                                    comment="string",
                                    created_by="string",
                                    created_on="string",
                                    description="string",
                                    host_groups=host_group_ids,
                                    issuer="string",
                                    modified_by="string",
                                    modified_on="string",
                                    name="string",
                                    serial="string",
                                    status="string",
                                    subject="string",
                                    thumbprint="string",
                                    valid_from="string",
                                    valid_to="string"
                                    )
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

response = falcon.cb_exclusions_update_v1(applied_globally=boolean,
                                          children_cids=child_ids,
                                          comment="string",
                                          created_by="string",
                                          created_on="string",
                                          description="string",
                                          host_groups=host_group_ids,
                                          issuer="string",
                                          modified_by="string",
                                          modified_on="string",
                                          name="string",
                                          serial="string",
                                          status="string",
                                          subject="string",
                                          thumbprint="string",
                                          valid_from="string",
                                          valid_to="string"
                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

child_ids = 'CID1,CID2,CID3'  # Can also pass a list here: ['CID1', 'CID2', 'CID3']
host_group_ids = 'HGID1,HGID2,HGID3'  # Can also pass a list here: ['HGID1', 'HGID2', 'HGID3']

body_payload = {
    "resources": [
        {
            "applied_globally": boolean,
            "certificate": {
                "issuer": "string",
                "serial": "string",
                "subject": "string",
                "thumbprint": "string",
                "valid_from": "UTC string",
                "valid_to": "UTC string"
            },
            "children_cids": child_ids,
            "comment": "string",
            "created_by": "string",
            "created_on": "UTC string",
            "description": "string",
            "host_groups": host_group_ids,
            "modified_by": "string",
            "modified_on": "UTC string",
            "name": "string",
            "status": "string"
        }
    ]
}

response = falcon.command("cb_exclusions_update_v1", body=body_payload)
print(response)

Back to Table of Contents

certificates_get_v1

Retrieves certificate signing information for a file

PEP8 method name

get_certificates

Endpoint

MethodRoute
GET/exclusions/entities/certificates/v1

Required Scope

ml-exclusions:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class SupportquerystringThe SHA256 hash of the file to retrieve certificate signing info for.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format. Not required when using other keywords.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.get_certificates(ids=id_list)
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.certificates_get_v1(ids=id_list)
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

id_list = 'ID1,ID2,ID3'  # Can also pass a list here: ['ID1', 'ID2', 'ID3']

response = falcon.command("certificates_get_v1", ids=id_list)
print(response)

Back to Table of Contents

cb_exclusions_query_v1

Search for cert-based exclusions.

PEP8 method name

query_certificates

Endpoint

MethodRoute
GET/exclusions/queries/cert-based-exclusions/v1

Required Scope

ml-exclusions:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results.
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return. [1-100]
offsetService Class SupportUber Class SupportqueryintegerThe offset to start retrieving records from
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format. Not required when using other keywords.
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results.

Usage

Service class example (PEP8 syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

response = falcon.query_certificates(filter="string",
                                     offset=integer,
                                     limit=integer,
                                     sort="string"
                                     )
print(response)
Service class example (Operation ID syntax)
from falconpy import CertificateBasedExclusions

falcon = CertificateBasedExclusions(client_id=CLIENT_ID,
                                    client_secret=CLIENT_SECRET
                                    )

response = falcon.cb_exclusions_query_v1(filter="string",
                                         offset=integer,
                                         limit=integer,
                                         sort="string"
                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("cb_exclusions_query_v1",
                          filter="string",
                          offset=integer,
                          limit=integer,
                          sort="string"
                          )
print(response)

Back to Table of Contents