Ivan Christian
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Homework 1 (FCS) ### Group 10 #### Ivan Christian (1003056) #### Andy Tay (1001306) #### Tan Jia Han (100059) ## Exercise 1 ### Classify each of the following as a violation of confidentiality, of integrity, of availability or of some combination thereof a) **Confidentiality** is violated because the answers were meant for the graders only and should not be shared with others. ( **Unauthorized Access** ) b) **Availability** is violated because the authorised party (Linda) is denied access to her system (iPhone). ( **Unable to Access** ) c) **Integrity** is violated. Integrity of the original check is compromised as original value of Angelo's check is editted. ( **Data Integrity** ) d) **Integrity** is violated because the trustworthiness of the deed is no longer valid as it was not signed by Roger. ( **Origin Integrity** ) Assuming that the deed is only for Roger's eyes (due to sensitivity of some issues), **Confidentiality** is also violated as only Roger was supposed ot know about the deed. ( **Unauthorized Access** ) e) **Availability** is compromised as Peter will no longer have access to his credit card. ( **Unable to access** ) **Confidentiality** is also violated Peter's Credit Card numbers, CVC numbers and many other personal informations are no longer protected. ( **Unauthorized Access** ) f) **Confidentiality** is compromised from the guessed password.( **Unauthorized Access** ) **Integrity** is compromised as it was not Julie who tweeted. ( **Origin Integrity** ) ## Exercise 2 ### With the following mechanisms being implemented, state what policy or policies they might be enforcing and what informal security requirement might have inspired such policies. a. Policy: In a system, users cannot have commonly used password and passwords that are short. Informal Requirements: Users passwords should be hard to guess. b. Policy: In a system, users cannot infinitely guess their passsword in the case they do not remember or know the password. It will be locked within finite tries. Informal Requirements: Users should not keep guessing their password if they forgot. c. Policy: In a system, users cannot access other users' contents without permission. Informal Requirements: Users should not be able to cheat and copy each other's homeworks. d. Policy: In a system, users bandwidth to non-educational sites must be throttled during class time. Informal Requirements: Users should focus on Cyber Security class and not surf facebook e. Policy: In a system, homeworks must be submitted on time. Informal Requirements: Users should not be able to submit assignments or deliveriables past the deadline. ## Exercise 3 a) ```csvpreview {header="true"} Name/File,alicerc,bobrc,cyndyrc Alice,[execute|own],[read],[No Access] Bob,[read],[execute|own],[No Access] Cyndy,[read],[read|write],[read|write|execute|own] ``` b) ```csvpreview {header="true"} Name/File,alicerc,bobrc,cyndyrc Alice,[execute|own],[read],[read] Bob,[No Access],[execute|own],[No Access] Cyndy,[read],[read|write],[read|write|execute|own] ``` ```[python] # Giving read access from cyndy to alice command give_read_rights(Alice,Cyndy,cyndyrc) if own in a[Cyndy, cyndyrc] then enter read into a[Alice, cyndyrc] end ``` ```[python] command remove_read_rights(Alice, Bob, alicerc) if own in a[Alice , alicerc] then delete read from a[Bob , alicerc] end ``` ## Exercise 4 a) ```[python] # {read, write, execute, append, list, modify, own} command copy_all_rights(p,q,s) if read in a[p,s] then enter read into a[q,s]; if write in a[p,s] then enter write into a[q,s]; if execute in a[p,s] then enter execute into a[q,s]; if append in a[p,s] then enter append into a[q,s]; if list in a[p,s] then enter list into a[q,s]; if modify in a[p,s] then enter modify into a[q,s]; if own in a[p,s] then enter own into a[q,s]; end ``` b) ```[python] # {read, write, execute, append, list, modify, own} command copy_all_rights(p,q,s) if read in a[p,s] and c in a[p,s] then enter read into a[q,s]; if write in a[p,s] and c in a[p,s] then enter write into a[q,s]; if execute in a[p,s] and c in a[p,s] then enter execute into a[q,s]; if append in a[p,s] and c in a[p,s] then enter append into a[q,s]; if list in a[p,s] and c in a[p,s] then enter list into a[q,s]; if modify in a[p,s] and c in a[p,s] then enter modify into a[q,s]; if own in a[p,s] and c in a[p,s] then enter own into a[q,s]; delete c in a[q,s] # Deleting the c flag so the new copy is confirmed # to not have the c flag end ``` c) By copying the c flag along with the rights, any copies with the c flag will be allowed to grant rights to other objects, which may not be intended. Having the c flag along with the user rights essentially allows granting other users the rights, without the copy flag q will not be allowed to grant rights to other objects. ## Exercise 5 a) Not applying the Principle at all will lead to unintended users having rights that they should not have, making the system insecure. The maximum set of rights would be owning every single possible files and processes and this can be done if the system does not follow the Principles of Attentuation of Privilege. b) No, because by not limiting the "own" right, subject will be able to grant read, write and other rights even though the access rights "read" and "write" are limited by the principles. This will not ameliorate the problem in a) because subject will be able to grant "own" rights to one another and unintended subject will be able to have access that they should not have and making the system insecure. c) By limiting rights available based on ancestry, q would be allowed to only bequeath what q has to the next subject. There will be a limited spread of rights as a subject can only give what it has to the next subject. However, if the subject can have multiple ancestors then the descendants may have more rights than that of its predecessors as multiple ancestors can give different rights to the subject. ```csvpreview {header="true"} , file f, file g, file h, file i o[Ancestor of q | Ancestor of p], ORW, RW, [No Access], W p[Ancestor of q],R,[No Access],[No Access], W r[Ancestor of q],E,W,E,E q,ORWE , RW , E, WE ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully