Where is the icon used in this dialogue box?
Lock Icon

The lock icon is located in 

/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car



Install Theme Engine

Note: You may want to download the released version.
Open the file
Select Security
Drag the icon to the desktop to convert to a png




Finder Icon

macOS just places the app icon in front of it.