Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4a4a7df
cloudsplit 2.0.0 fixed
NxPKG Oct 16, 2023
2a21932
Bump @babel/traverse from 7.9.0 to 7.23.2
dependabot[bot] Oct 16, 2023
e05d96a
init commit
NxPKG Oct 16, 2023
2fefb53
Merge pull request #27 from khulnasoft/dependabot/npm_and_yarn/babel/…
sulaiman-coder Oct 16, 2023
785d7b1
Create SECURITY.md
sulaiman-coder Oct 16, 2023
b93a21c
Bump @octokit/app from 14.0.1 to 14.0.2
dependabot[bot] Dec 16, 2023
fae1a2f
Bump follow-redirects from 1.15.3 to 1.15.4
dependabot[bot] Jan 11, 2024
3e2f2cc
Merge pull request #29 from khulnasoft/dependabot/npm_and_yarn/follow…
sulaiman-coder Jan 21, 2024
60d5d58
Merge pull request #28 from khulnasoft/dependabot/npm_and_yarn/octoki…
sulaiman-coder Jan 21, 2024
7687208
ci: build
NxPKG May 25, 2024
79c83a7
Update scans_ci.yml
NxPKG May 25, 2024
a5998cd
1.0.0 add
NxPKG May 25, 2024
cbe749f
Update README.md
NxPKG May 25, 2024
f438951
Azure/gov cloud
NxPKG May 25, 2024
51a4703
ci: build (#30)
NxPKG May 25, 2024
90ba105
fix index
NxPKG May 25, 2024
6db7545
Ci (#31)
NxPKG May 25, 2024
0a48434
update
NxPKG May 25, 2024
4ccb6c6
Merge branch 'master' into developr
NxPKG May 25, 2024
6a6dd01
Update eksKubernetesVersion.spec.js
gitworkflows Sep 25, 2024
69c433d
Update scans_ci.yml
gitworkflows Sep 25, 2024
199e6ce
Create docker-publish.yml
gitworkflows Sep 25, 2024
17a6fde
Delete package-lock.json
gitworkflows Sep 25, 2024
3d18633
Update .gitignore
gitworkflows Sep 25, 2024
1eecef8
Update scans_ci.yml
gitworkflows Sep 25, 2024
41c5a66
Update scans_ci.yml
gitworkflows Sep 25, 2024
df19f51
Feature: CloudEploit 2.0.1
khulnasoft-bot Dec 10, 2024
ace1370
Feature: CloudEploit 2.0.1
khulnasoft-bot Dec 10, 2024
fd5f027
Feature: CloudEploit 2.0.1
khulnasoft-bot Dec 10, 2024
9f43b38
Feature: CloudEploit 2.0.1
khulnasoft-bot Dec 10, 2024
b15bb09
Merge pull request #50 from envrs/feature/update-ci-cd-and-docs
envrs Dec 3, 2025
8ad162a
Bump minimatch in the npm_and_yarn group across 1 directory
dependabot[bot] Feb 23, 2026
69dab18
☁️ CloudExploit by KhulnaSoft Security, Ltd. 🔐 Multi‑Cloud Secur…
envrs Mar 12, 2026
de9eb3b
Merge branch 'master' into dependabot/npm_and_yarn/npm_and_yarn-eee95…
khulnasoft-bot May 19, 2026
62cd0cb
Bump minimatch in the npm_and_yarn group across 1 directory (#53)
khulnasoft-bot May 19, 2026
a830b50
improve (#54)
envrs Aug 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.*
Dockerfile
docs
LICENSE
README.md
14 changes: 13 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"helpers/google/functions.js",
"helpers/oracle/functions.js",
"plugins/github/",
"plugins/google/",
"plugins/oracle/",
"*.spec.js"
],
Expand Down Expand Up @@ -50,6 +49,19 @@
],
"no-eval": [
"error"
],
"keyword-spacing": [
"error",
{
"before": true
}
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
]
}
}
4 changes: 2 additions & 2 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CloudSploit Code of Conduct
# CloudExploit Code of Conduct

## Our Pledge

Expand Down Expand Up @@ -55,7 +55,7 @@ a project may be further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at support@cloudsploit.com. All
reported by contacting the project team at support@khulnasoft.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
10 changes: 5 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Contributing to CloudSploit
Thank you for your interest in contributing to CloudSploit! We welcome your PRs, issues, feedback, and other contributions to this open source repository. To keep things moving smoothly, please use the following guidelines when working with the CloudSploit source code.
# Contributing to CloudExploit
Thank you for your interest in contributing to CloudExploit! We welcome your PRs, issues, feedback, and other contributions to this open source repository. To keep things moving smoothly, please use the following guidelines when working with the CloudExploit source code.

## Code of Conduct
The CloudSploit project, maintainers, and contributors are governed by the [CloudSploit Code of Conduct](CODE_OF_CONDUCT.md). By contributing, you are agreeing to uphold this code in your interactions with the CloudSploit community.
The CloudExploit project, maintainers, and contributors are governed by the [CloudExploit Code of Conduct](CODE_OF_CONDUCT.md). By contributing, you are agreeing to uphold this code in your interactions with the CloudExploit community.

## License
By contributing code to CloudSploit, you attest that you have the rights to all code and that you are assigning these rights to Khulnasoft Security, Ltd. for use within its projects.
By contributing code to CloudExploit, you attest that you have the rights to all code and that you are assigning these rights to KhulnaSoft Security, Ltd. for use within its projects.

## Getting Started
Please read our [README](../README.md#installation) for information on getting setup to use and develop CloudSploit scans locally. We also have a [guide for writing new plugins](../docs/writing-plugins.md).
Please read our [README](../README.md#installation) for information on getting setup to use and develop CloudExploit scans locally. We also have a [guide for writing new plugins](../docs/writing-plugins.md).

## Proposing Large Changes
While we welcome all contributions, large pull requests that make significant changes to the codebase are difficult to review are merge without prior discussion. Please open an issue to discuss these changes before beginning work on them.
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/scans_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name:
on: [push, pull_request, create, delete, issue_comment]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.github/*,.git,./package.json,./package-lock.json,./node_modules,./tests,./config,*.png,Dockerfile,./scripts,*.spec.js,./plugins/azure/storageaccounts/storageAccountsAADEnabled.js,./plugins/aws/cloudtrail/cloudtrailBucketAccessLogging.js,./helpers/google/index.js,*zip
ignore_words_list: iam,\"tRe\",AKS,aks,optin,callInt,callInt
- run: npm install

- name: Lint
run: npm run lint

- name: NPM Test
run: npm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ vscode/*
.idea
coverage/
.nyc_output
config.js
config.js
package-lock.json
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- stage: Lint
script: npm run lint
- stage: NPM release
# Deployment of cloudsploit is setup to work nicely both for the master repo
# Deployment of cloudexploit is setup to work nicely both for the master repo
# any forks. That is, a fork can also publish to NPM to a custom scope. To do
# this, you need to do the following in the Travis CI settings for your account
#
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
before_deploy:
# You need to create a variable in your Travis CI settings to provide the
# npm package scope. This allows forks to publish under their own name.
- sed -i 's#"cloudsploit"#"'$NPM_SCOPE'cloudsploit"#g' package.json
- sed -i 's#"cloudexploit"#"'$NPM_SCOPE'cloudexploit"#g' package.json
deploy:
# We modify package.json to change the package name automatically, so
# don't to cleanup otherwise that would revert the package name change.
Expand All @@ -61,18 +61,18 @@ jobs:
#
# 2. Similarly, add an environment variable with your DOCKER_PASSWORD
#
# 3. If you want to install a different version of cloudsploit in the container
# 3. If you want to install a different version of cloudexploit in the container
# (for example because you are building a fork), then set DOCKER_NPMPACKAGENAME
# to the name of NPM package you want to install, for example @myscope/cloudsploit
# to the name of NPM package you want to install, for example @myscope/cloudexploit
#
# There is probably a strong relationship between NPM_SCOPE and DOCKER_NPMPACKAGENAME
# but that's up for you in Travis CI to define.
if: env(DOCKER_USERNAME) AND env(DOCKER_PASSWORD)
script:
- DOCKER_BUILD_NPMPACKAGENAME="${DOCKER_NPMPACKAGENAME:-cloudsploit}"
- DOCKER_BUILD_NPMPACKAGENAME="${DOCKER_NPMPACKAGENAME:-cloudexploit}"
- echo "Creating docker image from NPM package ${DOCKER_NPMPACKAGENAME}"
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build --build-arg PACKAGENAME=$DOCKER_BUILD_NPMPACKAGENAME -t cloudsploit-scans .
- docker build --build-arg PACKAGENAME=$DOCKER_BUILD_NPMPACKAGENAME -t cloudexploit-scans .
- docker images
- docker tag cloudsploit-scans $DOCKER_USERNAME/cloudsploit-scans
- docker push $DOCKER_USERNAME/cloudsploit-scans
- docker tag cloudexploit-scans $DOCKER_USERNAME/cloudexploit-scans
- docker push $DOCKER_USERNAME/cloudexploit-scans
31 changes: 21 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
FROM node:8-alpine
FROM node:lts-alpine3.12

# Define a build argment that can be supplied when building the container
# You can then do the following:
#
# docker build --build-arg PACKAGENAME=@myscope/cloudsploit
# docker build --build-arg PACKAGENAME=@myscope/cloudexploit
#
# This allows a fork to build their own container from this common Dockerfile.
# You could also use this to specify a particular version number.
ARG PACKAGENAME=cloudsploit
ARG PACKAGENAME=cloudexploit

# Install cloudsploit/scan into the container using npm from NPM
RUN mkdir /var/scan \
&& cd /var/scan \
&& npm init --yes \
&& npm install ${PACKAGENAME}
# Create a non-root user and group
RUN addgroup -S cloudexploit && adduser -S cloudexploit -G cloudexploit

# Setup the container's path so that you can run cloudsploit directly
COPY . /var/scan/cloudexploit/

# Set the working directory to /var/scan
WORKDIR /var/scan

# Install cloudexploit/scan into the container using npm from NPM
RUN npm init --yes \
&& npm install ${PACKAGENAME} \
&& npm link /var/scan/cloudexploit \
&& chown -R cloudexploit:cloudexploit /var/scan

# Setup the container's path so that you can run cloudexploit directly
# in case someone wants to customize it when running the container.
ENV PATH "$PATH:/var/scan/node_modules/.bin"

# Switch to non-root user
USER cloudexploit

# By default, run the scan. CMD allows consumers of the container to supply
# command line arguments to the run command to control how this executes.
# Thus, you can use the parameters that you would normally give to index.js
# when running in a container.
ENTRYPOINT ["cloudsploitscan"]
ENTRYPOINT ["cloudexploit"]
CMD []
Loading
Loading