PROBLEM TO BE SOLVED: To solve the problem in which an unmanned agricultural machine is expensive.SOLUTION: A control device that controls an agricultural machine comprising one or more holding parts that removably holds an attachment for farm working comprises: an attachment information acquisition unit that acquires type information indicating attachment identification information for identifying the attachment or an attachment type from the attachment held by the one or more holding parts; and an attachment determination unit that determines whether or not the holding parts hold an appropriate attachment on the basis of the attachment identification information or the type information acquired by the attachment information acquisition unit.SELECTED DRAWING: Figure 8