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.
Tool to simplify deployments to ECS/Fargate
ecsutil
will manage ECS task definitions, scheduled tasks, services and secretsUsage: escutil <stage> <command>
Available commands:
* deploy - Perform a deployment
* run - Run a task
* scale - Change service quantities
* status - Show current status
* secrets - Manage secrets
* destroy - Delete all cloud resources
Example deployment configuration:
app: myapp
env: staging
cluster: staging
repository: your-ecr-repo-url
subnets:
- a
- b
- c
roles:
task: role ARN
execution: role ARN
schedule: role ARN
tasks:
web:
command: bundle exec ruby app.rb
env:
PORT: 4567
security_groups:
- sg1
- sg2
ports:
- 4567
awslogs:
region: us-east-1
group: myapp-staging
prefix: web
scheduled_tasks:
hourly:
task: web
command: bundle exec rake worker
expression: rate(1 hour)
services:
web:
task: web
desired_count: 3
max_percent: 200
min_healthy_percent: 100
lb:
target_group: load balancer target group ARN
container_name: web
container_port: 4567
Given you have ./terraform/(staging/production)
that contains all stage-specific
configuration and resources, you can add an output file outputs.tf
that might be
referenced in the deployment config. Here's an example:
// Output for subnets
// You can use regular terraform resources here
output "subnets" {
value = [
"subnet-a",
"subnet-b",
"subnet-c"
]
}
// Output for "web" security group
output "sg_web" {
value = aws_security_group.web.id
}
Once terraform apply
is executed your state file (or remote state) will include
the sg_web
output. We can reference it in the config:
# ...
subnets: $tf.subnets
# ....
tasks:
web:
security_groups: $tf.sg_web
FAQs
Unknown package
We found that ecsutil demonstrated a not healthy version release cadence and project activity because the last version was released 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.