Skip to content

Scans the Python Sys global module list and wraps any function that could expose or implement secure logins

License

Notifications You must be signed in to change notification settings

MrPfister/Yoink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yoink

A Python library that when attached to a running process, can scan the loaded modules for any that expose function signatures that may enable the bypass or extraction of login credentials.

Implementation notes

Yoink works by recursively introspecting modules via getmembers(...) and then scanning over the internal code object of derived members objects subclassed from the Callable type. There are some checks as some Callable classes within Python do not contain code; usefully when implemented outside the standard def approach.

This is a brute force approach and technical example of how easy it is to bypass login functionality.

For example, if a module implemented:

def valid_user(username: str, password: str) -> bool:
  ...Do logic
  return False

Yoink can detect this function is performing a security operation by its code co_varnames signature and wrap it, thus potentially bypassing security checks .

About

Scans the Python Sys global module list and wraps any function that could expose or implement secure logins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages