Package: vger
V'gerV'ger is an interactive command-line application for post-exploitation of authenticated Jupyter instances with a focus on AI/ML security operations.User StoriesAs aRed Teamer, you've found Jupyter credentials, but don't know what you can do with them. V'ger is organized in a format that should be intuitive for most offensive security professionals to help them understand the functionality of the target Jupyter server.As aRed Teamer, you know that some browser-based actions will be visibile to the legitimate Jupyter users. For example, modifying tabs will appear in their workspace and commands entered in cells will be recorded to the history. V'ger decreases the likelihood of detection.As anAI Red Teamer, you understand academic algorthmic attacks, but need a more practical execution vector. For instance, you may need to modify a large, foundational internet-scale dataset as part of a model poisoning operation. Modifying that dataset at its source may be impossible or generate undesirable auditable artifacts. with V'ger you can achieve the same objectives in-memory, a significant improvement in tradecraft.As aBlue Teamer, you want to understand logging and visibility into a live Jupyter deployment. V'ger can help you generate repeatable artifacts for testing instrumentation and performing incident response exercises.UsageInitial Setuppip install vgervger --helpCurrently,vger interactivehas maximum functionality, maintaining state for discovered artifacts and recurring jobs. However, most functionality is also available by-name in non-interactive format withvger <module>. List available modules withvger --help.CommandsOnce a connection is established, users drop into a nested set of menus.The top level menu is:Reset: Configure a different host.Enumerate: Utilities to learn more about the host.Exploit: Utilities to perform direct action and manipulation of the host and artifacts.Persist: Utilities to establish persistence mechanisms.Export: Save output to a text file.Quit: No one likes quitters.These menus contain the following functionality:List modules: Identify imported modules in target notebooks to determine what libraries are available for injected code.Inject: Execute code in the context of the selected notebook. Code can be provided in a text editor or by specifying a local.pyfile. Either input is processed as a string and executed in runtime of the notebook.Backdoor: Launch a new JupyterLab instance open to0.0.0.0, withallow-rooton a user-specifiedportwith a user-specifiedpassword.Check History: See ipython commands recently run in the target notebook.Run shell command: Spawn a terminal, run the command, return the output, and delete the terminal.List dir or get file: List directories relative to the Jupyter directory. If you don't know, start with/.Upload file: Upload file from localhost to the target. Specify paths in the same format as List dir (relative to the Jupyter directory). Provide a full path including filename and extension.Delete file: Delete a file. Specify paths in the same format as List dir (relative to the Jupyter directory).Find models: Find models based on common file formats.Download models: Download discovered models.Snoop: Monitor notebook execution and results until timeout.Recurring jobs: Launch/Kill recurring snippets of code silently run in the target environment.ExamplesOverwrite a Torch Dataset to change labels