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.
The Shot MVC implements a Model, View, Controller architecture on top of the base Shot Framework through a series of
Loaders and Routers. Additionally, the MVC gem allows you to use the MVCApplication
class, which will automatically
set up all required MVC loaders and routers.
gem install shot_mvc
require 'shot_mvc'
app = MVCApplication.new
app.run do
app.on 'load' do |instance|
instance.get 'controller', 'Home'
end
end
app.start
The Shot MVC is made up of a few different parts, which collectively make up a Model, View, Controller structure.
At the time of writing, Models are not yet finished, but coming soon!
The View portion of the MVC is made up of Elements and Templates.
Elements correspond to an actual HTML element on the user's screen. Elements have an assigned jQuery selector, and can trigger any jQuery function on the corresponding element on the page.
Elements are capable of rendering Templates, which are nothing more than an ERB file, with some special sauce.
body = get 'element', 'body'
body.html = 'Hello World'
body.jq 'css', ['background-color', 'red']
body.render 'some_template'
Controllers are just as you'd expect. All controllers inherit from the base Controller
class, and they can be loaded
using the built in Loader.
home_controller = get 'controller', 'Home'
home_controller.index
Licensed under the MIT License. For full licensing information, please see LICENSE.md.
FAQs
Unknown package
We found that shot_mvc 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.