
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
github.com/cloudfoundry-community/carousel
A BOSH aware cli tool for managing the rotation of credentials stored in CredHub.
As with all go applications you can create the binary by:
git clone https://github.com/starkandwayne/carousel
cd carousel
go build
you may then run it using ./carousel -help
or move it under your path i.e. cp carousel /usr/local/bin
To be able to talk to BOSH and CredHub the following environment variables need to set:
# BOSH
export BOSH_ENVIRONMENT=https://{bosh_director_ip}:25555
export BOSH_CLIENT={bosh_director_uaa_client}
export BOSH_CLIENT_SECRET={bosh_director_uaa_client_secret}
export BOSH_CA_CERT="-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----"
# CredHub
export CREDHUB_SERVER=https://{bosh_director_ip}:8844
export CREDHUB_CLIENT={credhub_uaa_client}
export CREDHUB_SECRET={credhub_uaa_client_secret}
export CREDHUB_CA_CERT="-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----"
When using bosh-bootloader the above
can be achieved by running eval "$(bbl print-env)"
in your terminal.
When using BOSH Genesis Kit the same can be achieved by running eval "$(genesis do environment-name-file.yml -- print-env)"
To make it easier to debug credential, and in particular certificate issues, carousel provides an interactive terminal UI. Which gives the user an simpel way of browsing trought certificate signing chains in a tree like fashion.
carousel browse
List CredHub credentials augmented with information from the BOSH director:
carousel list [flags]
Flags:
-d, --deployments strings filter by deployment names (comma separated)
-h, --help help for list
--include-all also show unused credential versions
--signing only show Certificates used to sign
-t, --types strings filter by credential type (comma sperated) (default [certificate,ssh,rsa,password,user,value,json])
TODO
TODO
TODO
Write a description of the resource here.
a
: Required. This is a required setting.
b
: Optional. This is an optional setting.
c
: Optional. Default true
This is an optional setting with a default value.
resource_types:
- name: carousel
type: registry-image
source:
repository: starkandwayne/carousel-concourse
resources:
- name: carousel
type: carousel
check_every: 5m
source:
log_level: debug
jobs:
- name: do-it
plan:
- get: carousel
trigger: true
- put: carousel
params:
version_path: carousel/version
check
: Check for somethingWrite a description of what is checked here.
in
: Fetch somethingWrite a description of what is fetched here.
a
: Required. This is a required parameter.
b
: Optional. This is an optional parameter.
out
: Put something somewhereWrite a description of what is being put somewhere.
a
: Required. This is a required parameter.
b
: Optional. Default true
This is an optional parameter with a default value.
The Makefile includes a test
target, and tests are also run inside the Docker build.
Run the tests with the following command:
make test
The Makefile includes targets for building and publishing the docker image. Each of these
takes an optional VERSION
argument, which will tag and/or push the docker image with
the given version.
make VERSION=1.2.3
make publish VERSION=1.2.3
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.