aws-cis-controls-assessment 1.0.5__py3-none-any.whl → 1.0.6__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.
@@ -6,6 +6,6 @@ CIS Controls Implementation Groups (IG1, IG2, IG3). Implements 145 comprehensive
6
6
  across all implementation groups for complete security compliance assessment.
7
7
  """
8
8
 
9
- __version__ = "1.0.5"
9
+ __version__ = "1.0.6"
10
10
  __author__ = "AWS CIS Assessment Team"
11
11
  __description__ = "Production-ready AWS CIS Controls Compliance Assessment Framework"
@@ -1134,7 +1134,10 @@ class AssessmentEngine:
1134
1134
  'assessments_by_ig': {}
1135
1135
  }
1136
1136
 
1137
- total_assessments = 0
1137
+ # Track unique rules across all IGs to avoid double-counting
1138
+ # Since IG2 includes IG1 and IG3 includes IG2, we need to count unique rules
1139
+ unique_rules = set()
1140
+
1138
1141
  for ig in implementation_groups:
1139
1142
  if ig in self._assessment_registry:
1140
1143
  ig_controls = self._filter_controls_for_ig(ig, controls, exclude_controls)
@@ -1142,9 +1145,11 @@ class AssessmentEngine:
1142
1145
  'count': len(ig_controls),
1143
1146
  'rules': list(ig_controls.keys())
1144
1147
  }
1145
- total_assessments += len(ig_controls)
1148
+ # Add rules to unique set
1149
+ unique_rules.update(ig_controls.keys())
1146
1150
 
1147
- summary['total_assessments'] = total_assessments
1151
+ # Total assessments is the count of unique rules across all selected IGs
1152
+ summary['total_assessments'] = len(unique_rules)
1148
1153
  return summary
1149
1154
 
1150
1155
  def _filter_controls_for_ig(self, implementation_group: str,
@@ -1,16 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-cis-controls-assessment
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Production-ready AWS CIS Controls compliance assessment framework with 145 comprehensive rules
5
5
  Author-email: AWS CIS Assessment Team <security@example.com>
6
6
  Maintainer-email: AWS CIS Assessment Team <security@example.com>
7
7
  License: MIT
8
- Project-URL: Homepage, https://github.com/yourusername/aws-cis-assessment
9
- Project-URL: Documentation, https://github.com/yourusername/aws-cis-assessment/blob/main/README.md
10
- Project-URL: Repository, https://github.com/yourusername/aws-cis-assessment.git
11
- Project-URL: Bug Reports, https://github.com/yourusername/aws-cis-assessment/issues
12
- Project-URL: Changelog, https://github.com/yourusername/aws-cis-assessment/blob/main/CHANGELOG.md
13
- Project-URL: Source Code, https://github.com/yourusername/aws-cis-assessment
8
+ Project-URL: Homepage, https://github.com/yourusername/aws-cis-controls-assessment
9
+ Project-URL: Documentation, https://github.com/yourusername/aws-cis-controls-assessment/blob/main/README.md
10
+ Project-URL: Repository, https://github.com/yourusername/aws-cis-controls-assessment.git
11
+ Project-URL: Bug Reports, https://github.com/yourusername/aws-cis-controls-assessment/issues
12
+ Project-URL: Changelog, https://github.com/yourusername/aws-cis-controls-assessment/blob/main/CHANGELOG.md
13
+ Project-URL: Source Code, https://github.com/yourusername/aws-cis-controls-assessment
14
14
  Keywords: aws,security,compliance,cis,controls,assessment,audit,enterprise,production
15
15
  Classifier: Development Status :: 5 - Production/Stable
16
16
  Classifier: Intended Audience :: System Administrators
@@ -76,11 +76,11 @@ A production-ready, enterprise-grade framework for evaluating AWS account config
76
76
 
77
77
  ```bash
78
78
  # Install from PyPI (production-ready)
79
- pip install aws-cis-assessment
79
+ pip install aws-cis-controls-assessment
80
80
 
81
81
  # Or install from source for development
82
82
  git clone <repository-url>
83
- cd aws-cis-assessment
83
+ cd aws-cis-controls-assessment
84
84
  pip install -e .
85
85
  ```
86
86
 
@@ -1,4 +1,4 @@
1
- aws_cis_assessment/__init__.py,sha256=UpxV3g2cOtqu3O4FETEj63RdV8-W6sQOhv2tvBEM0qU,480
1
+ aws_cis_assessment/__init__.py,sha256=ENW-oYsdAEpNlcdVOswJHLtIyWLwm1qKC0CaFVObN4Q,480
2
2
  aws_cis_assessment/cli/__init__.py,sha256=DYaGVAIoy5ucs9ubKQxX6Z3ZD46AGz9AaIaDQXzrzeY,100
3
3
  aws_cis_assessment/cli/examples.py,sha256=F9K2Fe297kUfwoq6Ine9Aj_IXNU-KwO9hd7SAPWeZHI,12884
4
4
  aws_cis_assessment/cli/main.py,sha256=i5QoqHXsPG_Kw0W7jM3Zj2YaAaCJnxxnfz82QBBHq-U,49441
@@ -50,7 +50,7 @@ aws_cis_assessment/controls/ig3/control_3_14.py,sha256=fY2MZATcicuP1Zich5L7J6-MM
50
50
  aws_cis_assessment/controls/ig3/control_7_1.py,sha256=GZQt0skGJVlUbGoH4MD5AoJJONf0nT9k7WQT-8F3le4,18499
51
51
  aws_cis_assessment/core/__init__.py,sha256=aXt5Z3mqaaDvFyZPyMaJYFy66A_phfFIhhH_eyaic8Q,52
52
52
  aws_cis_assessment/core/accuracy_validator.py,sha256=jnN2O32PpdDfWAp6erV4v4zKugC9ziJkDYnVF93FVuY,18386
53
- aws_cis_assessment/core/assessment_engine.py,sha256=IRERKu6qSwWNC8ywfTwn-qkFx89iNa4bwJJZHtIb9Cg,61981
53
+ aws_cis_assessment/core/assessment_engine.py,sha256=QqQXWHRJOZadigA7fSwZld2nl2qhFY-MEhcDk2mVazY,62268
54
54
  aws_cis_assessment/core/audit_trail.py,sha256=qapCkI2zjbAPHlHQcgYonfDYyjU2MoX5Sc2IXtYj3eE,18395
55
55
  aws_cis_assessment/core/aws_client_factory.py,sha256=1qTLfQ3fgPBH3mWRpX1_i3bbHlQQYsmSE8vsKxKTz8w,13143
56
56
  aws_cis_assessment/core/error_handler.py,sha256=5JgH3Y2yG1-ZSuEJR7o0ZMzqlwGWFRW2N4SjcL2gnBw,24219
@@ -61,17 +61,18 @@ aws_cis_assessment/reporters/base_reporter.py,sha256=xalVCTpNzSrTcfZmyRL2I-3B6dd
61
61
  aws_cis_assessment/reporters/csv_reporter.py,sha256=r83xzfP1t5AO9MfKawgN4eTeOU6eGZwJQgvNDLEd7NI,31419
62
62
  aws_cis_assessment/reporters/html_reporter.py,sha256=1MdbKQ8Eujc0B6x_toHmr3WupjgfTpNzSYwLNFWxzW8,81712
63
63
  aws_cis_assessment/reporters/json_reporter.py,sha256=MObCzTc9nlGTEXeWc7P8tTMeKCpEaJNfcSYc79cHXhc,22250
64
- aws_cis_controls_assessment-1.0.5.dist-info/licenses/LICENSE,sha256=T_p0qKH4RoI3ejr3tktf3rx2Zart_9KeUmJd5iiqXW8,1079
65
- docs/README.md,sha256=Wjg0WxRPz1JLMWx-BeNcnFjT7OR7X1DsQcv1JTvlDQg,4143
64
+ aws_cis_controls_assessment-1.0.6.dist-info/licenses/LICENSE,sha256=T_p0qKH4RoI3ejr3tktf3rx2Zart_9KeUmJd5iiqXW8,1079
65
+ deprecation-package/aws_cis_assessment_deprecated/__init__.py,sha256=WOaufqanKNhvWQ3frj8e627tS_kZnyk2R2hwqPFqydw,1892
66
+ docs/README.md,sha256=lZNUghM9wgl1uW8OoVHpxt5ugKB6DL0rqx_hVTx8yZc,4152
66
67
  docs/assessment-logic.md,sha256=7t1YPkLPI3-MpvF3cLpO4x4LeNMfM950-es4vn0W4Zc,27123
67
68
  docs/cli-reference.md,sha256=zyTacw3neOJ2lQmq8E7WPJUDGMIDgUzQCqutu0lJ3SY,17854
68
69
  docs/config-rule-mappings.md,sha256=Jk31ZqnSn1JAR3iXHlhGnVxVpPukVuCZtK4H58j08Nk,18508
69
- docs/developer-guide.md,sha256=vAbY-e0G74m0CSun71qDmLRH_0VA0R6h2zpDmBHKAss,31008
70
- docs/installation.md,sha256=CSejc0L0SbPeBktlA3_XE1iE1Tj0IotXU9MS1z_qI88,7061
70
+ docs/developer-guide.md,sha256=uC0DvgmBoOQ2LnBNManTe_rdOccvjWbzvqd93huO4jE,31026
71
+ docs/installation.md,sha256=ELCw7jhvtbavzL18sitbpi02We-_qB4sg8t3jKBy5cw,7481
71
72
  docs/troubleshooting.md,sha256=JcYw6qS9G9YsM0MxxxZUGfPZmmZBxDYTV8tAIK0Sa2U,13175
72
73
  docs/user-guide.md,sha256=8XZpgnDTMBFc1s3nR__9GnwjRqPnSXAYBDow3586OcQ,9927
73
- aws_cis_controls_assessment-1.0.5.dist-info/METADATA,sha256=fZMMoXlvKvaFUPoYMxA3jN6asoxPHLZyqw86NU2zA2k,11218
74
- aws_cis_controls_assessment-1.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
75
- aws_cis_controls_assessment-1.0.5.dist-info/entry_points.txt,sha256=-AxPn5Y7yau0pQh33F5_uyWfvcnm2Kg1_nMQuLrZ7SY,68
76
- aws_cis_controls_assessment-1.0.5.dist-info/top_level.txt,sha256=26tkntrVzt9EPxjrf6-Ve9-CnXUzic6jKAL0ljBK5Uw,24
77
- aws_cis_controls_assessment-1.0.5.dist-info/RECORD,,
74
+ aws_cis_controls_assessment-1.0.6.dist-info/METADATA,sha256=wRved3YCBUAXrbjjmyO-ZR4kpj9E4h0hUnvRz4JztME,11290
75
+ aws_cis_controls_assessment-1.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
76
+ aws_cis_controls_assessment-1.0.6.dist-info/entry_points.txt,sha256=-AxPn5Y7yau0pQh33F5_uyWfvcnm2Kg1_nMQuLrZ7SY,68
77
+ aws_cis_controls_assessment-1.0.6.dist-info/top_level.txt,sha256=4OHmV6RAEWkz-Se50kfmuGCd-mUSotDZz3iLGF9CmkI,44
78
+ aws_cis_controls_assessment-1.0.6.dist-info/RECORD,,
@@ -1,2 +1,3 @@
1
1
  aws_cis_assessment
2
+ deprecation-package
2
3
  docs
@@ -0,0 +1,65 @@
1
+ """
2
+ DEPRECATED: This package has been renamed to aws-cis-controls-assessment
3
+
4
+ This is a deprecation shim that redirects to the new package.
5
+ """
6
+
7
+ import warnings
8
+ import sys
9
+
10
+ # Show deprecation warning
11
+ warnings.warn(
12
+ "\n\n"
13
+ "=" * 80 + "\n"
14
+ "⚠️ DEPRECATION WARNING\n"
15
+ "=" * 80 + "\n"
16
+ "The package 'aws-cis-assessment' has been renamed to 'aws-cis-controls-assessment'\n"
17
+ "\n"
18
+ "Please uninstall this package and install the new one:\n"
19
+ " pip uninstall aws-cis-assessment\n"
20
+ " pip install aws-cis-controls-assessment\n"
21
+ "\n"
22
+ "This deprecation package will not receive updates.\n"
23
+ "All development continues under 'aws-cis-controls-assessment'.\n"
24
+ "=" * 80 + "\n",
25
+ DeprecationWarning,
26
+ stacklevel=2
27
+ )
28
+
29
+ __version__ = "1.0.3.post1"
30
+ __deprecated__ = True
31
+
32
+
33
+ def main():
34
+ """
35
+ Entry point that shows deprecation warning and delegates to the new package.
36
+ """
37
+ print("\n" + "=" * 80)
38
+ print("⚠️ DEPRECATION WARNING")
39
+ print("=" * 80)
40
+ print("The package 'aws-cis-assessment' has been renamed to 'aws-cis-controls-assessment'")
41
+ print()
42
+ print("Please uninstall this package and install the new one:")
43
+ print(" pip uninstall aws-cis-assessment")
44
+ print(" pip install aws-cis-controls-assessment")
45
+ print()
46
+ print("Attempting to run the new package...")
47
+ print("=" * 80 + "\n")
48
+
49
+ try:
50
+ # Try to import and run the new package
51
+ from aws_cis_assessment.cli.main import main as new_main
52
+ new_main()
53
+ except ImportError:
54
+ print("\n" + "=" * 80)
55
+ print("❌ ERROR: The new package 'aws-cis-controls-assessment' is not installed.")
56
+ print("=" * 80)
57
+ print()
58
+ print("Please install it manually:")
59
+ print(" pip install aws-cis-controls-assessment")
60
+ print()
61
+ sys.exit(1)
62
+
63
+
64
+ if __name__ == "__main__":
65
+ main()
docs/README.md CHANGED
@@ -17,7 +17,7 @@ Welcome to the comprehensive documentation for the AWS CIS Controls Compliance A
17
17
 
18
18
  ## Quick Start
19
19
 
20
- 1. **Install the framework**: `pip install aws-cis-assessment`
20
+ 1. **Install the framework**: `pip install aws-cis-controls-assessment`
21
21
  2. **Configure AWS credentials**: `aws configure` or set environment variables
22
22
  3. **Run basic assessment**: `aws-cis-assess assess`
23
23
  4. **View results**: Open the generated HTML report
docs/developer-guide.md CHANGED
@@ -70,8 +70,8 @@ aws_cis_assessment/
70
70
 
71
71
  ```bash
72
72
  # Clone the repository
73
- git clone https://github.com/your-org/aws-cis-assessment.git
74
- cd aws-cis-assessment
73
+ git clone https://github.com/your-org/aws-cis-controls-assessment.git
74
+ cd aws-cis-controls-assessment
75
75
 
76
76
  # Create virtual environment
77
77
  python -m venv venv
docs/installation.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This guide covers the installation and initial setup of the AWS CIS Controls Compliance Assessment Framework - a production-ready, enterprise-grade solution for AWS security compliance assessment.
4
4
 
5
+ > **📦 Package Name Change**: Starting from version 1.0.4, this package is published as `aws-cis-controls-assessment` (previously `aws-cis-assessment`). If you have the old package installed, please uninstall it first: `pip uninstall aws-cis-assessment` then install the new package: `pip install aws-cis-controls-assessment`
6
+
5
7
  ## Production Status
6
8
 
7
9
  **✅ Ready for Enterprise Deployment**
@@ -33,7 +35,7 @@ This guide covers the installation and initial setup of the AWS CIS Controls Com
33
35
 
34
36
  ```bash
35
37
  # Install the latest production version
36
- pip install aws-cis-assessment
38
+ pip install aws-cis-controls-assessment
37
39
 
38
40
  # Verify installation
39
41
  aws-cis-assess --version
@@ -43,8 +45,8 @@ aws-cis-assess --version
43
45
 
44
46
  ```bash
45
47
  # Clone the repository
46
- git clone https://github.com/your-org/aws-cis-assessment.git
47
- cd aws-cis-assessment
48
+ git clone https://github.com/your-org/aws-cis-controls-assessment.git
49
+ cd aws-cis-controls-assessment
48
50
 
49
51
  # Create virtual environment (recommended)
50
52
  python -m venv venv
@@ -223,18 +225,18 @@ aws-cis-assess assess --dry-run
223
225
  python --version
224
226
 
225
227
  # Use specific Python version
226
- python3.9 -m pip install aws-cis-assessment
228
+ python3.9 -m pip install aws-cis-controls-assessment
227
229
  ```
228
230
 
229
231
  #### Permission Issues
230
232
  ```bash
231
233
  # Install for current user only
232
- pip install --user aws-cis-assessment
234
+ pip install --user aws-cis-controls-assessment
233
235
 
234
236
  # Use virtual environment
235
237
  python -m venv aws-cis-env
236
238
  source aws-cis-env/bin/activate
237
- pip install aws-cis-assessment
239
+ pip install aws-cis-controls-assessment
238
240
  ```
239
241
 
240
242
  #### AWS Credential Issues
@@ -249,7 +251,7 @@ aws-cis-assess validate-credentials --verbose
249
251
  #### Network/Proxy Issues
250
252
  ```bash
251
253
  # Install with proxy
252
- pip install --proxy http://proxy.company.com:8080 aws-cis-assessment
254
+ pip install --proxy http://proxy.company.com:8080 aws-cis-controls-assessment
253
255
 
254
256
  # Configure AWS CLI with proxy
255
257
  aws configure set proxy.http http://proxy.company.com:8080
@@ -275,16 +277,16 @@ After successful installation:
275
277
  3. **Run Your First Assessment**: Follow the quick start in the user guide
276
278
  4. **Explore CLI Commands**: `docs/cli-reference.md`
277
279
 
278
- ## Upgrading
280
+ ### Upgrading
279
281
 
280
282
  ### Upgrade from PyPI
281
283
  ```bash
282
- pip install --upgrade aws-cis-assessment
284
+ pip install --upgrade aws-cis-controls-assessment
283
285
  ```
284
286
 
285
287
  ### Upgrade from Source
286
288
  ```bash
287
- cd aws-cis-assessment
289
+ cd aws-cis-controls-assessment
288
290
  git pull origin main
289
291
  pip install -e .
290
292
  ```
@@ -295,5 +297,5 @@ pip install -e .
295
297
  aws-cis-assess --version
296
298
 
297
299
  # Check for available updates
298
- pip list --outdated | grep aws-cis-assessment
300
+ pip list --outdated | grep aws-cis-controls-assessment
299
301
  ```