Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A library that provides a plain function-call interface to the Slack API web endpoints.
Add this line to your application's Gemfile:
gem 'slack-api-wrapper'
And then execute:
bundle
Or install it yourself as:
gem install 'slack-api-wrapper
You need to get an api token to use the ruby client. You can follow Slack documentation about it (https://api.slack.com/docs/oauth), or use omniauth-slack to get one.
# Initialize client
client = Slack::Client.new api_token
# Test user token
response = client.auth_test
puts "id: #{response['user_id']}, name: #{response['user']}"
# Get user teammates
response = client.users_list
response['members'].each do |user|
puts "id: #{user['id']}, name: #{user['name']}"
end
# Get user channels
response = client.channels_list
response['channels'].each do |channel|
puts "id: #{channel['id']}, name: #{channel['name']}"
end
# Get user private groups
response = client.groups_list
response['groups'].each do |group|
puts "id: #{group['id']}, name: #{group['name']}"
end
# Posting a message
response = client.chat_post_message('channel'=> 'CXXXX', 'text'=> 'Testing Slack API', 'as_user'=> true)
Slack API Docs: https://api.slack.com/
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)MIT License. Copyright 2015 Gustavo Bazan. http://gustavobazan.com
This software is not created by, affiliated with, or supported by Slack Technologies, Inc.
FAQs
Unknown package
We found that slack-api-wrapper 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.