View in English

  • Apple Developer
    • 今すぐ始める

    「今すぐ始める」を詳しく見る

    • 概要
    • 学ぶ
    • Apple Developer Program

    最新情報

    • 最新ニュース
    • Hello Developer
    • プラットフォーム

    プラットフォームを詳しく見る

    • Appleプラットフォーム
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    特集

    • デザイン
    • 配信
    • ゲーム
    • アクセサリ
    • Web
    • Home
    • CarPlay
    • テクノロジー

    テクノロジーを詳しく見る

    • 概要
    • Xcode
    • Swift
    • SwiftUI

    特集

    • アクセシビリティ
    • App Intent
    • Apple Intelligence
    • ゲーム
    • 機械学習とAI
    • セキュリティ
    • Xcode Cloud
    • コミュニティ

    コミュニティを詳しく見る

    • 概要
    • 「Appleに相談」イベント
    • コミュニティによるイベント
    • デベロッパフォーラム
    • オープンソース

    特集

    • WWDC
    • Swift Student Challenge
    • デベロッパストーリー
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Center
    • ドキュメント

    ドキュメントを詳しく見る

    • ドキュメントライブラリ
    • テクノロジー概要
    • サンプルコード
    • ヒューマンインターフェイスガイドライン
    • ビデオ

    リリースノート

    • 注目のアップデート
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • ダウンロード

    ダウンロードを詳しく見る

    • すべてのダウンロード
    • オペレーティングシステム
    • アプリ
    • デザインリソース

    特集

    • Xcode
    • TestFlight
    • フォント
    • SF Symbols
    • Icon Composer
    • サポート

    サポートを詳しく見る

    • 概要
    • ヘルプガイド
    • デベロッパフォーラム
    • フィードバックアシスタント
    • お問い合わせ

    特集

    • アカウントヘルプ
    • App Reviewガイドライン
    • App Store Connectヘルプ
    • 近日導入予定の要件
    • 契約およびガイドライン
    • システムステータス
  • クイックリンク

    • イベント
    • ニュース
    • Forum
    • サンプルコード
    • ビデオ
 

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • すべてのビデオ
  • 利用方法

その他のビデオ

  • 概要
  • Summary
  • コード
  • アプリの保護:エージェント型機能によるリスクの軽減

    データ流出や意図しないアクションなどを引き起こす、間接プロンプトインジェクションによる脅威を評価する方法を解説します。App IntentやFoundation Modelフレームワークを利用する上でのシステム保護策とセキュリティのベストプラクティス(ユーザーの確認、セキュアなプロンプト設計、認証など)を紹介します。

    関連する章

    • 0:00 - Introduction
    • 2:06 - Risks
    • 6:32 - Threat modeling
    • 11:56 - Implementing mitigations
    • 12:03 - Foundation Models
    • 17:55 - App Intents

    リソース

    • Security Overview
      • HDビデオ
      • SDビデオ

    関連ビデオ

    WWDC26

    • App SchemaによるインテリジェントなSiri体験の構築
    • Foundation Modelフレームワークによる、エージェントを活用したアプリ体験の構築
    • SiriおよびApple Intelligence向けの高度なApp Intent機能

    WWDC25

    • オンデバイス基盤モデルのためのプロンプトの設計と安全性の詳細

    WWDC20

    • Appの保護:脅威のモデリングとアンチパターン
  • このビデオを検索
    • 12:50 - Tools

      // Tools
      
      struct OrderTeaTool: Tool {
        let name = "orderTeaTool"
        let description: String = "Orders a particular quantity of a tea from the store."
        // Arguments
        // Implementation
      }
      
      struct PostAndFetchPublicFeedTool: Tool {
        let name = "postAndFetchPublicFeedTool"
        let description: String = "Posts a message to the public feed.”
        // Arguments
        // Implementation
      }
    • 13:13 - Profile

      // Profile
      
      class LooseLeafAgent {
        struct DefaultProfile: LanguageModelSession.DynamicProfile {
          var body: some DynamicProfile {
            Profile {
              Instructions("You are a helpful, tea-loving assistant ... ")
      
              OrderTeaTool()
              PostAndFetchPublicFeedTool()
            }
            .model(SystemLanguageModel())
          }
        }
      }
    • 13:28 - Session

      // Session 
      
      class LooseLeafAgent {
        struct DefaultProfile: LanguageModelSession.DynamicProfile {
          var body: some DynamicProfile {
            Profile {
              Instructions("You are a helpful, tea-loving assistant ... ")
      
              OrderTeaTool()
              PostAndFetchPublicFeedTool()
            }
            .model(SystemLanguageModel())
          }
        }
      
        let session: LanguageModelSession
      
        public init() {
          self.session = LanguageModelSession(profile: DefaultProfile())
        }
      }
    • 14:33 - Confirmation via onToolCall

      // Confirmation via onToolCall
      
      var body: some DynamicProfile {
        Profile {
          Instructions("You are a helpful, tea-loving assistant ... ")
      
          OrderTeaTool() // Financial impact; risky tool.
          // Other Tools
        }
        
        .onToolCall { call in
          guard call.toolName == "orderTeaTool" else {
            return
          }
          guard ConfirmationAction.confirmWithUser() else {
            throw LooseLeafError.userConfirmationDenied
          }
        }
      }
    • 15:56 - Spotlighting via historyTransform

      // Spotlighting via historyTransform
      
      var body: some DynamicProfile {
        Profile {
          Instructions("You are a helpful, tea-loving assistant ... ")
      
          PostAndFetchPublicFeedTool() // Returns untrusted data; requires spotlighting
          // Other Tools
        }
      
        .historyTransform {γentries in
          entries.map { entry in
            guard case .toolOutput(var toolOutput) = entry,
              toolOutput.toolName == "postAndFetchPublicFeedTool"
            else {
              return entry
            }
          }
          toolOutput.segments = toolOutput.segments.map { segment in
            delimit(segment: segment,
                    startDelimiter: "<<UNTRUSTED>>",
                    endDelimiter: "<</UNTRUSTED>>")
          }
          return .toolOutput(toolOutput)
        }
      }
      
      func delimit(segment: Transcript.Segment,
                   startDelimiter: String,
                   endDelimiter: String) -> Transcript.Segment
    • 16:48 - Redaction via historyTransform

      // Redaction via historyTransform
      
      var body: some DynamicProfile {
        Profile {
          Instructions("You are a helpful, tea-loving assistant ... ")
      
          PostAndFetchPublicFeedTool() // Returns untrusted data; requires spotlighting
          // Other Tools
        }
      
        .historyTransform {γentries in
          entries.map { entry in
            guard case .toolOutput(var toolOutput) = entry,
              toolOutput.toolName == "postAndFetchPublicFeedTool"
            else {
              return entry
            }
          }
          toolOutput.segments = toolOutput.segments.map { segment in
            redactPII(segment: segment,
                      placeHolder: "[REDACTED]")
          }
          return .toolOutput(toolOutput)
        }
      }
      
      func redactPII(segment: Transcript.Segment,
                     placeHolder: String) -> Transcript.Segment
    • 23:08 - Intent authentication policy

      // Intent authentication policy
      
      struct DeletePhotoIntent: DeleteIntent {
          var entities: [LooseLeafPhoto]
      
          static var authenticationPolicy: IntentAuthenticationPolicy = .requiresAuthentication
      
          func perform() async throws -> some IntentResult {
              // Implementation
          }
      }
    • 23:27 - Schema authentication policy

      // Schema authentication policy
      
      @AppIntent(schema: .photos.deleteAssets)
      struct DeletePhotoIntent {
          var entities: [LooseLeafPhoto]
      
          // Example: Schema default authentication policy is .requiresAuthentication
      
          func perform() async throws -> some IntentResult {
              // Implementation
          }
      }
    • 0:00 - Introduction
    • Agentic features introduce new security risks. We cover how to identify those risks and introduce techniques and APIs to protect your users.

    • 2:06 - Risks
    • Understand new risks that come with using agentic systems in your app.

    • 6:32 - Threat modeling
    • A threat-modeling exercise for your app can help identify which context sources are untrusted and which actions are potentially risky.

    • 11:56 - Implementing mitigations
    • Learn about concrete tools that you can use to secure your agentic app.

    • 12:03 - Foundation Models
    • If you use the Foundation Models framework, learn how to inject security checkpoints into your agent execution.

    • 17:55 - App Intents
    • Learn about security mitigations available when integrating with Apple Intelligence using App Intents.

Developer Footer

  • ビデオ
  • WWDC26
  • アプリの保護:エージェント型機能によるリスクの軽減
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • Apple Intelligence
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習とAI
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(英語)
    • Mini Apps Partner Program
    • News Partner Program(英語)
    • Video Partner Program(英語)
    • セキュリティ報奨金プログラム(英語)
    • Security Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    最新ニュースを読む。
    Apple Developerアプリを入手する。
    Copyright © 2026 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン