
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Rails wrapper for the Swagger-UI API
Add this line to your application's Gemfile:
gem 'swagger-ui', :require => 'swagger'
And then execute:
$ bundle
Then run the generator:
$ rails generate swagger:install
Check out index.html.haml in the examples for basic setup. A docs controller and routes will also be required. Fill out the api in the docs controller. Example:
class Api::DocsController < Api::ApiController
include Swagger
def index
document = {
"swaggerVersion" => "1.1",
"basePath" => api_docs_url,
"apis" => [
{"path" => "/foo",
"description" => ""}]
}
render :json => document
end
def foo
document(api_url, :resourcePath => 'foos') do |doc|
doc.api('/foos') do |api|
api.operations(['GET','POST']) do |op|
op.param('param', :required => true)
end
end
end
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that swagger-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.