Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ci-scripts/Actions_Bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ foreach ($Module in @($ToolPolicy.modules)) {
try {
if ([string]::IsNullOrWhiteSpace($ModuleInstallPath)) {
$ModuleCommandSplat['Scope'] = 'CurrentUser'
& $ModuleInstallCommand @ModuleCommandSplat
} else {
$ModuleCommandSplat['Path'] = $ModuleInstallPath
}
Invoke-DLLPickleGalleryOperation -Description "Install $($Module.name) $RequiredVersion" -Operation {
& $ModuleInstallCommand @ModuleCommandSplat
}
} catch {
Expand Down
22 changes: 22 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ Our goal is to have all reports acknowledged within 7 days and resolved within 3

## 3rd Party Modules

DLL Pickle selects and preloads dependency assemblies inside the caller's
PowerShell process. Its security responsibilities include runtime/profile
selection, assembly and native-library resolution, configuration interpretation,
and the integrity of its build and distributed package. It does not authenticate
users, authorize tenant operations, or implement token storage or cryptography;
those responsibilities belong to the consuming modules and Microsoft libraries.
DLL Pickle remains responsible for how it selects, uses, and packages them.

The per-user configuration is preferences, not an authorization boundary.
`Get-DPConfig` validates recognized setting types before applying them; a read or
validation failure reports `DPConfigReadFailed` and uses the complete default
configuration unless the caller requests terminating errors. In particular, the
default skip list is empty. Validation does not authenticate the configuration or
make a writable module installation trustworthy. Use trusted installation sources
and protect the module and user configuration with the operating system's access
controls. DLL Pickle does not sandbox assemblies or guarantee that conflicting
service modules can safely share a process.

See the existing [threat model](.oss-scanner/threat_model.md) for trust boundaries,
attacker prerequisites, and reproduction limits. Scanner environment preparation
or an enrollment request alone is not evidence that scanning is active.

Please report security bugs in third-party modules to the person or team maintaining the module. You can also report a vulnerability through GitHub for the [MSAL packages](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/security).

## Public Disclosure
Expand Down
29 changes: 29 additions & 0 deletions build/DLLPickle.Tooling.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,35 @@ function Assert-DLLPicklePesterAssemblyVersion {
}
}

function Invoke-DLLPickleGalleryOperation {
<#
.SYNOPSIS
Retry a Gallery operation at most three times without emitting failed-attempt results.
#>
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[scriptblock]$Operation,

[Parameter(Mandatory)]
[string]$Description
)

for ($Attempt = 1; $Attempt -le 3; $Attempt++) {
try {
$Result = @(& $Operation)
return $Result
} catch {
if ($Attempt -eq 3) {
throw
}

Write-Warning "$Description failed on attempt $Attempt of 3; retrying: $_"
Start-Sleep -Seconds (2 * $Attempt)
}
}
}

function Import-DLLPickleBuildTool {
[CmdletBinding()]
[OutputType([System.Management.Automation.PSModuleInfo])]
Expand Down
18 changes: 9 additions & 9 deletions build/dependency-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -922,21 +922,21 @@
"conflictSurfaceFingerprint": "8d9126e1fd627156420388e2a4e6eaee5f3bdfa0f65e9eaed7637a803d4c42c4",
"scenarioFingerprint": "bc72836637e796c86ee813caefd5f3d0ae62adff8acb1976cd06c7829b8375c3",
"evidencePath": "profile-evidence/ps7.4-net8.0-windows-x64.json",
"evidenceFingerprint": "465a91d522c80d76fe6419d3e93895aadb08fbb529afb1fcc272b60bc072e176"
"evidenceFingerprint": "1acefea3ccaa9b764809b2f417722ecf7f3f230b57d35a2a717079a5e81f3705"
},
"linux": {
"status": "accepted",
"conflictSurfaceFingerprint": "00800d99e57c6fabfe08b9a44bfb9b5c08bc539d624d4768ebd63f8375e79660",
"scenarioFingerprint": "bd88cc71e892c64c299931a352a581b8d2a62257d638bba1e58ca76022acc2fc",
"evidencePath": "profile-evidence/ps7.4-net8.0-linux-x64.json",
"evidenceFingerprint": "a8bb6fdcbde2991d79f0094af58d7fd7e4d1babd99bc023a22ac021343060c87"
"evidenceFingerprint": "067a169bdff65d0abcdc9425774eeaff1f605d99c40b44efbc50eba0ba4fa716"
},
"macos": {
"status": "accepted",
"conflictSurfaceFingerprint": "70f6f93e63273d6b7cd11c00e02831b848945b2dd4eb1b1c6f0a468f2ef82ae9",
"scenarioFingerprint": "8614993b02681544264ab1fff777f91126bc50e97d70a308114f8639757f0c64",
"evidencePath": "profile-evidence/ps7.4-net8.0-macos-x64.json",
"evidenceFingerprint": "a5a9a7f4c844a9ea7040f95b647b32612e8a54dd82c01c857584566f3ab27437"
"evidenceFingerprint": "db39107e349c58d76252736cfad1c1219cf679deea75fafe052f76bd67c2728c"
}
},
"legacyUnscopedBaseline": {
Expand Down Expand Up @@ -1022,21 +1022,21 @@
"conflictSurfaceFingerprint": "e047a87f6c40115b63aa4aec05667c0b85a4cab6d00db5920a00043ced1ea501",
"scenarioFingerprint": "8ae318bf583eb3467763048ad1cfcc946269c38b5794da32200d78bb5a3abd17",
"evidencePath": "profile-evidence/ps7.5-net9.0-windows-x64.json",
"evidenceFingerprint": "13e68db64b0a04cfd8104e4a4aeb1fbb6a083d47f14f9abbf8ff9a14be2be24d"
"evidenceFingerprint": "4a1d9871ac834eb7c8c7b55f7d4bd16e0c0f3942011baec342aba3a9bf846eb6"
},
"linux": {
"status": "accepted",
"conflictSurfaceFingerprint": "e30bb13a1d9f377568f7b9e098cd8c8191de835e3277211de958a2543f293e71",
"scenarioFingerprint": "b2d7c34818e7ef4ab3d8332c580873c8bbddf8404f2650f47675c2de79aac493",
"evidencePath": "profile-evidence/ps7.5-net9.0-linux-x64.json",
"evidenceFingerprint": "32d21e0b8c7bb2612253bd1b67f2f67a7785b0480a1879223172f0dc6b0110c9"
"evidenceFingerprint": "2608ab81fc4d6632a4595bc2b9d0889849e9add5c504f3f81487651e1975f7ab"
},
"macos": {
"status": "accepted",
"conflictSurfaceFingerprint": "21ca031497a05c4b802a61c4ef6bcdfad389769265e3b970485a1a22c4b7c6db",
"scenarioFingerprint": "ea5e8c4e81a25ea041c5d90237a69433fe474e29cecebf618b3eb148ce73e975",
"evidencePath": "profile-evidence/ps7.5-net9.0-macos-x64.json",
"evidenceFingerprint": "8e1f9cf805eed1f277e00c113572670d885912a8cd1d6b0cc947c6a8a8683e40"
"evidenceFingerprint": "d8efac5e0bc10a377378f1fe5de8fe6d40621d3aeec21b57079e20063b880321"
}
}
},
Expand Down Expand Up @@ -1118,21 +1118,21 @@
"conflictSurfaceFingerprint": "2541ee9b2c142e51d105677fa4a2157ffd2a21ecf9fdfdda3f8af035023d660e",
"scenarioFingerprint": "7e4647095b684a6e53a74fa1c8976f5e32fc88e2585b57c73c04dad1e3dccaa1",
"evidencePath": "profile-evidence/ps7.6-net10.0-windows-x64.json",
"evidenceFingerprint": "da0c3d1c8a8c26aab1e7999e884871f389a5fe3c89f6f2a83e11f321265aa693"
"evidenceFingerprint": "8f9a35019db8aec289b0b6dc260c07cf5fea73077664aace6b16c7c0740f9f11"
},
"linux": {
"status": "accepted",
"conflictSurfaceFingerprint": "552e9c6711bbced7ea0a623d37e2999ab7e597edddadf40b024e7a3ea92d7add",
"scenarioFingerprint": "2a2f0a41b894104b1a4718e0acf61777c2c02e4a046de4063dbc71c368cc12e7",
"evidencePath": "profile-evidence/ps7.6-net10.0-linux-x64.json",
"evidenceFingerprint": "95d1cf707af01a8dcece9f41868acec9ef897388594a8dda7d51bab4e55e2e25"
"evidenceFingerprint": "c7ea34cb69165efe4738e2fa88296dc592a5492ff237f0d1a6d293f05508a804"
},
"macos": {
"status": "accepted",
"conflictSurfaceFingerprint": "356617f04ac00f1ec3f6b2133268454d7927870d8d9bb7114431cb04509e634a",
"scenarioFingerprint": "3b22e14ce04b2175509dc426837a0a73defd28279d3f2980d7de2ddf410b0cc2",
"evidencePath": "profile-evidence/ps7.6-net10.0-macos-x64.json",
"evidenceFingerprint": "30f68b6d3730fe6c766f8dcc0fd414ed776593667c76f0c8810fb36e8b17cb5d"
"evidenceFingerprint": "335fa1dd124e22940bf943e10f96eedf327a96855a3de7dc4c1b2f9190c99ebb"
}
}
}
Expand Down
Loading
Loading