Giter VIP home page Giter VIP logo

windowsjoblock's Introduction

Windows Process Lockdown Using Job Objects

A Microsoft Windows Process Lockdown Tool using Job Objects

Released as open source by NCC Group Plc - http://www.nccgroup.com/

Developed by Ollie Whitehouse, ollie dot whitehouse at nccgroup dot com

https://github.com/nccgroup/WindowsJobLock

Released under AGPL see LICENSE for more information

Overview of Windows Jobs Objects

Read - http://msdn.microsoft.com/en-us/library/windows/desktop/ms684161(v=vs.85).aspx
Chrome's use - http://src.chromium.org/viewvc/chrome/trunk/src/sandbox/win/src/job.cc

What it can do

[*] A Microsoft Windows Process Lockdown Tool using Job Objects - https://github.com/nccgroup/WindowsJobLock
[*] NCC Group Plc - http://www.nccgroup.com/
[*] -h for help
    i.e. Win.JobLock.exe [-h]

 [.General Settings / Options.]
    -g          - Get process list
    -P <name>   - Process name to apply the job to
    -p <PID>    - PID to apply the job to
    -n <name>   - What the job will be called (optional)
 [.Process Limits.]
    -l <number> - Limit the number of process to this many
 [.Memory.]
    -m <bytes>  - Limit the total memory in bytes for the entire job
    -M <bytes>  - Limit the total memory in bytes for each process in the job
 [.Process Control.]
    -k          - Kill all process when the job handle dies
    -B          - Allow child process to be created with CREATE_BREAKAWAY_FROM_JOB (weak security)
    -b          - Allow child process which aren't part of the job (weak security)
 [.UI Security Controls.]
    -d          - Prevent processes within the job from switching or creating desktops
    -D          - Prevent processes within the job from calling the change display setting function
    -x          - Prevent processes within job from calling the exit Windows function
    -a          - Prevent processes within job from accessing global atoms
    -u          - Prevent processes within job from user user handles
    -c          - Prevent processes within job from reading the clipboard
    -s          - Prevent processes within job from changing system parameters
    -C          - Prevent processes within job from writing the clipboard

Example

This example will stop you from being able to paste into Notepad or it from spawning other processes :)

C:\>Win.JobLock.exe -P notepad.exe -c -l 1
[*] A Microsoft Windows Process Lockdown Tool using Job Objects - https://github.com/nccgroup/WindowsJobLock
[*] NCC Group Plc - http://www.nccgroup.com/
[*] -h for help
[*] Opened process notepad.exe
[i] Process Limit                 - True  - 1
[i] Job Memory Limit              - False - 0
[i] Process Memory Limit          - False - 0
[i] Kill Process on Job Close     - False
[i] Break Away from Job OK        - False
[i] Silent Break Away from Job OK - False
[i] Limit Desktop Operations      - False
[i] Limit Display Changes         - False
[i] Limit Exit Windows            - False
[i] Limit Global Atoms            - False
[i] Limit User Handles            - False
[i] Limit Reading of Clipboard    - True
[i] Limit System Parameter Change - False
[i] Limit Writing to Clipboard    - False
[i] Final job name                - NONAME
[*] Applied job exended limits to job object
[*] Applied UI limits to job object
[*] Applied UI limits to job object
[*] Applied job object to process!
[*] Successfully built and deployed job object to notepad.exe!

windowsjoblock's People

Stargazers

Tatyana BRuk avatar  avatar  avatar Ninja Labs avatar tzf-omkey avatar Marcos Oviedo avatar Aadil Varsh avatar Оками 0жff666 λ avatar silo avatar Katze avatar d0gkiller87 avatar Ryota Sakai avatar  avatar afang5472 avatar Winston Ho avatar Dan avatar  avatar puzz-h avatar wdnmd avatar xrkk avatar  avatar 面向大海 avatar  avatar  avatar  avatar fearless avatar Ryan Baxendale avatar David André avatar genuine_ avatar  avatar  avatar Ege Balcı avatar Machevalia avatar Christian Korneck avatar Daniel Müller avatar Jake Smith avatar Rowan de Haas avatar Tommy Wu avatar Chaitanya Krishna avatar Zafer Balkan avatar Mohamed Saher avatar  avatar  avatar 突突兔 avatar Lays avatar  avatar Lucas Leong avatar rys avatar  avatar luciouskami avatar Arch-Vile avatar MeeSong avatar y11en avatar  avatar guage avatar  avatar  avatar Mark Burnett avatar Alexey Melnichuk avatar genBTC avatar  avatar Kent Gruber avatar wyrover avatar Josh avatar Ali Rizvi-Santiago avatar Alessandro Tanasi avatar Bernardo Damele A. G. avatar Byungho avatar Dan Guido avatar

Watchers

Felix Ingram avatar James Cloos avatar Raviv Cohen avatar cara marie avatar  avatar Ollie avatar Daniel Müller avatar STEFANOS METZIDAKIS avatar  avatar  avatar

windowsjoblock's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.