aquasecurity / aquasecurity/cloudsploit

TypeError: newData.forEach is not a function

Open
#762 12 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
751
Avg merge
11d 9h
Merged PRs (30d)
3

Description

INFO: No config file provided, using default AWS credential chain.
INFO: Skipping AWS pagination mode
INFO: Determining API calls to make...
INFO: Found 192 API calls to make for aws plugins
INFO: Collecting metadata. This may take several minutes...
INFO: Metadata collection complete. Analyzing...
INFO: Analysis complete. Scan report to follow...
Plugin Web-Tier Auto Scaling Group Associated ELB returned no results. There may be a problem with this plugin.
Plugin App-Tier ASG Launch Configurations Approved AMIs returned no results. There may be a problem with this plugin.
Plugin Web-Tier ASG Launch Configurations Approved AMIs returned no results. There may be a problem with this plugin.
Plugin App-Tier Auto Scaling Group CloudWatch Logs Enabled returned no results. There may be a problem with this plugin.
Plugin Web-Tier Auto Scaling Group CloudWatch Logs Enabled returned no results. There may be a problem with this plugin.
Plugin Web-Tier Launch Configurations IAM Roles returned no results. There may be a problem with this plugin.
Plugin App-Tier Launch Configurations IAM Roles returned no results. There may be a problem with this plugin.
INFO: Using custom ASL for plugin: CloudFront Logging Enabled
Plugin CloudTrail S3 Bucket returned no results. There may be a problem with this plugin.
Plugin App-Tier EC2 Instance IAM Role returned no results. There may be a problem with this plugin.
Plugin Open Custom Ports returned no results. There may be a problem with this plugin.
Plugin Allowed Custom Ports returned no results. There may be a problem with this plugin.
Plugin Web-Tier EC2 Instance IAM Role returned no results. There may be a problem with this plugin.
Plugin VPN Tunnel State returned no results. There may be a problem with this plugin.
Plugin App-Tier ELB Security Policy returned no results. There may be a problem with this plugin.
Plugin ElasticSearch Access From IP Addresses returned no results. There may be a problem with this plugin.
INFO: Using custom ASL for plugin: Access Keys Extra
INFO: Using custom ASL for plugin: Access Keys Last Used
INFO: Using custom ASL for plugin: Certificate Expiry
INFO: Using custom ASL for plugin: Empty Groups
/Users/uridor/clients/cloudsploit_test/cloudsploit/helpers/asl/asl-1.js:374
newData.forEach(element =>{
^

TypeError: newData.forEach is not a function
at /Users/uridor/clients/cloudsploit_test/cloudsploit/helpers/asl/asl-1.js:374:25
at Array.forEach ()
at runConditions (/Users/uridor/clients/cloudsploit_test/cloudsploit/helpers/asl/asl-1.js:339:27)
at asl (/Users/uridor/clients/cloudsploit_test/cloudsploit/helpers/asl/asl-1.js:444:25)
at /Users/uridor/clients/cloudsploit_test/cloudsploit/engine.js:221:21
at /Users/uridor/clients/cloudsploit_test/cloudsploit/node_modules/async/dist/async.js:3682:9
at replenish (/Users/uridor/clients/cloudsploit_test/cloudsploit/node_modules/async/dist/async.js:1011:17)
at iterateeCallback (/Users/uridor/clients/cloudsploit_test/cloudsploit/node_modules/async/dist/async.js:995:17)
at /Users/uridor/clients/cloudsploit_test/cloudsploit/node_modules/async/dist/async.js:969:16
at /Users/uridor/clients/cloudsploit_test/cloudsploit/node_modules/async/dist/async.js:3685:13

can someone assist?

Contributor guide

Open the contributing guide

Research direction

Start with helpers/asl/asl-1.js at line 374 and follow the runConditions and asl callers shown in the stack trace to determine what newData contains during custom ASL processing. Reproduce the AWS scan described in the report and confirm that it completes without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cloud, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.