
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
This is a wrapper of a FAST API application with some additional features that might be useful for quick web development.
It features:
commons.logging
;.sql
files, or migrate json
data that runs automagically on server startup;webserver.core.ServerDatabase
)webserver.core.ServerCache
)Accept-Language
(webserver.core.AvailableLocale
)webserver.frontend.css
);Jinja2Template
;webserver.extras.proxies
):
The following features are expected to be implemented in the future. Contribution is welcome.
Optionally, set up the environment variables. All environment variables can be found on .env
file in the root of this repository.
import webserver
from fastapi import APIRouter, FastAPI
router: APIRouter = APIRouter()
app: FastAPI = webserver.app
@router.get("/")
def index():
return {"Hello World": f"from {webserver.settings.APP_NAME}"}
app.include_router(router)
if __name__ == "__main__":
webserver.start()
This enables both local execution through main
method as well as fastapi (dev|run)
commands.
FAQs
A simple FastAPI webserver with a bunch of useful resources.
We found that fastapi-webserver 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.