cartography 0.107.0rc3__py3-none-any.whl → 0.108.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cartography might be problematic. Click here for more details.

Files changed (47) hide show
  1. cartography/_version.py +2 -2
  2. cartography/cli.py +10 -0
  3. cartography/config.py +5 -0
  4. cartography/data/indexes.cypher +0 -10
  5. cartography/data/jobs/cleanup/github_repos_cleanup.json +2 -0
  6. cartography/intel/aws/__init__.py +1 -0
  7. cartography/intel/aws/cloudtrail.py +17 -4
  8. cartography/intel/aws/cloudtrail_management_events.py +560 -16
  9. cartography/intel/aws/cloudwatch.py +73 -4
  10. cartography/intel/aws/ec2/security_groups.py +140 -122
  11. cartography/intel/aws/ec2/snapshots.py +47 -84
  12. cartography/intel/aws/ec2/subnets.py +37 -63
  13. cartography/intel/aws/ecr.py +55 -80
  14. cartography/intel/aws/elasticache.py +102 -79
  15. cartography/intel/aws/guardduty.py +275 -0
  16. cartography/intel/aws/resources.py +2 -0
  17. cartography/intel/aws/secretsmanager.py +62 -44
  18. cartography/intel/github/repos.py +370 -28
  19. cartography/models/aws/cloudtrail/management_events.py +95 -6
  20. cartography/models/aws/cloudtrail/trail.py +21 -0
  21. cartography/models/aws/cloudwatch/metric_alarm.py +53 -0
  22. cartography/models/aws/ec2/security_group_rules.py +109 -0
  23. cartography/models/aws/ec2/security_groups.py +90 -0
  24. cartography/models/aws/ec2/snapshots.py +58 -0
  25. cartography/models/aws/ec2/subnets.py +65 -0
  26. cartography/models/aws/ec2/volumes.py +20 -0
  27. cartography/models/aws/ecr/__init__.py +0 -0
  28. cartography/models/aws/ecr/image.py +41 -0
  29. cartography/models/aws/ecr/repository.py +72 -0
  30. cartography/models/aws/ecr/repository_image.py +95 -0
  31. cartography/models/aws/elasticache/__init__.py +0 -0
  32. cartography/models/aws/elasticache/cluster.py +65 -0
  33. cartography/models/aws/elasticache/topic.py +67 -0
  34. cartography/models/aws/guardduty/__init__.py +1 -0
  35. cartography/models/aws/guardduty/findings.py +102 -0
  36. cartography/models/aws/secretsmanager/secret.py +106 -0
  37. cartography/models/github/dependencies.py +74 -0
  38. cartography/models/github/manifests.py +49 -0
  39. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/METADATA +3 -3
  40. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/RECORD +44 -29
  41. cartography/data/jobs/cleanup/aws_import_ec2_security_groupinfo_cleanup.json +0 -24
  42. cartography/data/jobs/cleanup/aws_import_secrets_cleanup.json +0 -8
  43. cartography/data/jobs/cleanup/aws_import_snapshots_cleanup.json +0 -30
  44. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/WHEEL +0 -0
  45. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/entry_points.txt +0 -0
  46. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/licenses/LICENSE +0 -0
  47. {cartography-0.107.0rc3.dist-info → cartography-0.108.0.dist-info}/top_level.txt +0 -0
@@ -1,24 +0,0 @@
1
- {
2
- "statements": [
3
- {
4
- "query": "MATCH (n:IpRule)-[:MEMBER_OF_EC2_SECURITY_GROUP]->(:EC2SecurityGroup)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE n.lastupdated <> $UPDATE_TAG WITH n LIMIT $LIMIT_SIZE DETACH DELETE (n)",
5
- "iterative": true,
6
- "iterationsize": 100
7
- },
8
- {
9
- "query": "MATCH (n:IpRange)-[:MEMBER_OF_IP_RULE]->(:IpRule)-[:MEMBER_OF_EC2_SECURITY_GROUP]->(:EC2SecurityGroup)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE n.lastupdated <> $UPDATE_TAG WITH n LIMIT $LIMIT_SIZE DETACH DELETE (n)",
10
- "iterative": true,
11
- "iterationsize": 100
12
- },
13
- {
14
- "query": "MATCH (:IpRule)-[r:MEMBER_OF_EC2_SECURITY_GROUP]->(:EC2SecurityGroup)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE r.lastupdated <> $UPDATE_TAG WITH r LIMIT $LIMIT_SIZE DELETE (r)",
15
- "iterative": true,
16
- "iterationsize": 100
17
- },
18
- {
19
- "query": "MATCH (:IpRange)-[r:MEMBER_OF_IP_RULE]->(:IpRule)-[:MEMBER_OF_EC2_SECURITY_GROUP]->(:EC2SecurityGroup)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE r.lastupdated <> $UPDATE_TAG WITH r LIMIT $LIMIT_SIZE DELETE (r)",
20
- "iterative": true,
21
- "iterationsize": 100
22
- }],
23
- "name": "cleanup EC2SecurityGroup|IpRule|IpRange"
24
- }
@@ -1,8 +0,0 @@
1
- {
2
- "statements": [{
3
- "query": "MATCH (:AWSAccount{id: $AWS_ID})-[:RESOURCE]->(s:SecretsManagerSecret) WHERE s.lastupdated <> $UPDATE_TAG WITH s LIMIT $LIMIT_SIZE DETACH DELETE (s)",
4
- "iterative": true,
5
- "iterationsize": 100
6
- }],
7
- "name": "cleanup SecretsManagerSecret"
8
- }
@@ -1,30 +0,0 @@
1
- {
2
- "statements": [
3
- {
4
- "query": "MATCH (n:EBSSnapshot)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE n.lastupdated <> $UPDATE_TAG WITH n LIMIT $LIMIT_SIZE DETACH DELETE (n)",
5
- "iterative": true,
6
- "iterationsize": 100
7
- },
8
- {
9
- "query": "MATCH (:EBSSnapshot)<-[r:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE r.lastupdated <> $UPDATE_TAG WITH r LIMIT $LIMIT_SIZE DELETE (r)",
10
- "iterative": true,
11
- "iterationsize": 100
12
- },
13
- {
14
- "query": "MATCH (:EBSSnapshot)-[:CREATED_FROM]->(n:EBSVolume)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE n.lastupdated <> $UPDATE_TAG WITH n LIMIT $LIMIT_SIZE DETACH DELETE (n)",
15
- "iterative": true,
16
- "iterationsize": 100
17
- },
18
- {
19
- "query": "MATCH (:EBSSnapshot)-[r:CREATED_FROM]->(:EBSVolume)<-[:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE r.lastupdated <> $UPDATE_TAG WITH r LIMIT $LIMIT_SIZE DELETE (r)",
20
- "iterative": true,
21
- "iterationsize": 100
22
- },
23
- {
24
- "query": "MATCH (:EBSSnapshot)-[:CREATED_FROM]->(:EBSVolume)<-[r:RESOURCE]-(:AWSAccount{id: $AWS_ID}) WHERE r.lastupdated <> $UPDATE_TAG WITH r LIMIT $LIMIT_SIZE DELETE (r)",
25
- "iterative": true,
26
- "iterationsize": 100
27
- }
28
- ],
29
- "name": "cleanup EBS Snapshots"
30
- }