JEA
Setting up JEA
This link is helpful:
Create the session configuration file
Edit the session configuration file
It should look something like this
Note that the sessiontype was altered to restricted and that the role definition includes the user and the visible cmdlet. I dont know if thats needed but it was in the example document generated.
Create the directory
Create the capability file
Edit the capability file
Should look something like below
Note that the visible cmdlets has been uncommented and we can put the cmds in there. If we want something like whoami or net, we will need to add it as an external command since its not a cmdlet.
Start winrm on the box if not done already
Register the JEA
Restart service
Test
With the above, when you type command the only cmdlet you should see is get-process. The others are functions.
Breaking Out of JEA
As the JEA session runs with higher privs, if a breakout happens then you can perform fun actions.
Breakouts will depend on the cmdlets available and as there are a huge amount it wont all be covered anywhere.
When enter the JEA session you can enum whats available with the command cmdlet:
Some cmdlets to look out for
Last updated
Was this helpful?
