Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Hook and resolver for Sceptre v2
to
package code dependencies and uploading it to an S3 bucket for usage in a
template.
Inspired by https://github.com/cloudreach/sceptre-zip-code-s3
Only Python 3 is actively being supported.
Install using pip:
pip install sceptre-s3-packager
Use the hook and resolver in your template config:
template_path: ...
hooks:
before_create:
- !sceptre_s3_upload ./directory-to-zip-to-s3
before_update:
- !sceptre_s3_upload ./directory-to-zip-to-s3
sceptre_user_data:
Code:
S3Bucket: my-s3-bucket
S3Key: !sceptre_s3_key ./directory-to-zip-to-s3
Use the data in the template, e.g. by using Jinja2 template with something like:
MyLambda:
Type: AWS::Lambda::Function
Properties:
Code:
S3Bucket: {{ sceptre_user_data.Code.S3Bucket }}
S3Key: {{ sceptre_user_data.Code.S3Key }}
Hook:
!sceptre_s3_upload <directory>
(reads S3Bucket
from
sceptre_user_data.Code.S3Bucket
)!sceptre_s3_upload <directory>^^<s3-bucket>
Resolver:
!sceptre_s3_key <directory>
(returns a path where the packaged
directory is uploaded, e.g. sceptre/68063a99bb6d95401d688d28f19ee412
)The hook will zip the contents of the directory and upload it as
sceptre/MD5HASH
to the S3-bucket, with MD5HASH
being md5 hash of the zip
file content.
When zipping all files will be given a fixed modification time, so that only the contents of the files are used to determine the upload file and cause invalidation on changes.
FAQs
S3 packager for Sceptre 2
We found that sceptre-s3-packager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.