Skip to content

Commit

Permalink
Deprecate crxcavator module (cartography-cncf#1362)
Browse files Browse the repository at this point in the history
### Summary
> Describe your changes.

The crxcavator project does not seem to be actively maintained anymore.
We are removing it from cartography.

-
https://www.reddit.com/r/cybersecurity/comments/1fklwuz/did_crxcavator_stop_working_for_anyone_else/
-
https://www.reddit.com/r/cybersecurity/comments/1fp45s7/cisco_duo_spinning_down_crxcavatorio/

Signed-off-by: Daniel Brauer <[email protected]>
  • Loading branch information
achantavy authored and danbrauer committed Oct 31, 2024
1 parent 85190e0 commit dc4adad
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 857 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ You can learn more about the story behind Cartography in our [presentation at BS
- [Amazon Web Services](https://lyft.github.io/cartography/modules/aws/index.html) - API Gateway, Config, EC2, ECS, ECR, Elasticsearch, Elastic Kubernetes Service (EKS), DynamoDB, IAM, Inspector, KMS, Lambda, RDS, Redshift, Route53, S3, Secrets Manager, Security Hub, SQS, SSM, STS, Tags
- [Google Cloud Platform](https://lyft.github.io/cartography/modules/gcp/index.html) - Cloud Resource Manager, Compute, DNS, Storage, Google Kubernetes Engine
- [Google GSuite](https://lyft.github.io/cartography/modules/gsuite/index.html) - users, groups
- [Duo CRXcavator](https://lyft.github.io/cartography/modules/crxcavator/index.html) - Chrome extensions, GSuite users
- [Oracle Cloud Infrastructure](docs/setup/config/oci.md) - IAM
- [Okta](https://lyft.github.io/cartography/modules/okta/index.html) - users, groups, organizations, roles, applications, factors, trusted origins, reply URIs
- [Github](https://lyft.github.io/cartography/modules/github/index.html) - repos, branches, users, teams
Expand Down
24 changes: 0 additions & 24 deletions cartography/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,6 @@ def _build_parser(self):
' If not specified, cartography by default will run all AWS sync modules available.'
),
)
parser.add_argument(
'--crxcavator-api-base-uri',
type=str,
default='https://api.crxcavator.io/v1',
help=(
'Base URI for the CRXcavator API. Defaults to public API endpoint.'
),
)
parser.add_argument(
'--crxcavator-api-key-env-var',
type=str,
default=None,
help=(
'The name of an environment variable containing a key with which to auth to the CRXcavator API. '
'Required if you are using the CRXcavator intel module. Ignored otherwise.'
),
)
parser.add_argument(
'--analysis-job-directory',
type=str,
Expand Down Expand Up @@ -626,13 +609,6 @@ def main(self, argv: str) -> int:
else:
config.okta_api_key = None

# CRXcavator config
if config.crxcavator_api_base_uri and config.crxcavator_api_key_env_var:
logger.debug(f"Reading API key for CRXcavator from env variable {config.crxcavator_api_key_env_var}.")
config.crxcavator_api_key = os.environ.get(config.crxcavator_api_key_env_var)
else:
config.crxcavator_api_key = None

# GitHub config
if config.github_config_env_var:
logger.debug(f"Reading config string for GitHub from environment variable {config.github_config_env_var}")
Expand Down
8 changes: 0 additions & 8 deletions cartography/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ class Config:
:param azure_client_secret: Client Secret for connecting in a Service Principal Authentication approach. Optional.
:type aws_requested_syncs: str
:param aws_requested_syncs: Comma-separated list of AWS resources to sync. Optional.
:type crxcavator_api_base_uri: str
:param crxcavator_api_base_uri: URI for CRXcavator API. Optional.
:type crxcavator_api_key: str
:param crxcavator_api_key: Auth key for CRXcavator API. Optional.
:type analysis_job_directory: str
:param analysis_job_directory: Path to a directory tree containing analysis jobs to run. Optional.
:type oci_sync_all_profiles: bool
Expand Down Expand Up @@ -137,8 +133,6 @@ def __init__(
azure_client_secret=None,
aws_requested_syncs=None,
analysis_job_directory=None,
crxcavator_api_base_uri=None,
crxcavator_api_key=None,
oci_sync_all_profiles=None,
okta_org_id=None,
okta_api_key=None,
Expand Down Expand Up @@ -196,8 +190,6 @@ def __init__(
self.azure_client_secret = azure_client_secret
self.aws_requested_syncs = aws_requested_syncs
self.analysis_job_directory = analysis_job_directory
self.crxcavator_api_base_uri = crxcavator_api_base_uri
self.crxcavator_api_key = crxcavator_api_key
self.oci_sync_all_profiles = oci_sync_all_profiles
self.okta_org_id = okta_org_id
self.okta_api_key = okta_api_key
Expand Down
2 changes: 0 additions & 2 deletions cartography/data/indexes.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ CREATE INDEX IF NOT EXISTS FOR (n:AccountAccessKey) ON (n.accesskeyid);
CREATE INDEX IF NOT EXISTS FOR (n:AccountAccessKey) ON (n.lastupdated);
CREATE INDEX IF NOT EXISTS FOR (n:AutoScalingGroup) ON (n.arn);
CREATE INDEX IF NOT EXISTS FOR (n:AutoScalingGroup) ON (n.lastupdated);
CREATE INDEX IF NOT EXISTS FOR (n:ChromeExtension) ON (n.id);
CREATE INDEX IF NOT EXISTS FOR (n:ChromeExtension) ON (n.lastupdated);
CREATE INDEX IF NOT EXISTS FOR (n:CrowdstrikeHost) ON (n.id);
CREATE INDEX IF NOT EXISTS FOR (n:CrowdstrikeHost) ON (n.instance_id);
CREATE INDEX IF NOT EXISTS FOR (n:CrowdstrikeHost) ON (n.lastupdated);
Expand Down
18 changes: 0 additions & 18 deletions cartography/data/jobs/cleanup/crxcavator_import_cleanup.json

This file was deleted.

44 changes: 0 additions & 44 deletions cartography/intel/crxcavator/__init__.py

This file was deleted.

Loading

0 comments on commit dc4adad

Please sign in to comment.